本文整理汇总了PHP中PageGenerator::setLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP PageGenerator::setLayout方法的具体用法?PHP PageGenerator::setLayout怎么用?PHP PageGenerator::setLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PageGenerator
的用法示例。
在下文中一共展示了PageGenerator::setLayout方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
$pg->addBlock($pg->Column, $treng->_('New Section', "grouppage"), $text);
if ($pg->generateHTML()) {
$page_content .= $pg->getHTML();
} else {
die('Could not generate HTML');
}
}
$_nodata_warning = "<center><img src=\"{$service_host}images/nodata.png\" alt=\"No Data\" border=\"0\" /></center>";
if ($function == "" || $function == "/") {
$function = $defmod;
}
switch ($function) {
case 'join':
if (!$access_isGroupMember) {
if (!isAuthenticated()) {
$pg->setLayout($pg->EqualColumns);
$signin = "<form method=\"POST\" action=\"{$service_host}?function=signin\">";
$temp_translation_string_1 = $treng->_("Email", "groupjoin");
$temp_translation_string_2 = $treng->_("Password", "groupjoin");
$temp_translation_string_3 = $treng->_("Keep me signed in unless I sign out", "groupjoin");
$temp_translation_string_4 = $treng->_("Sign In", "groupjoin");
$trengvar = array($service_host, $group_name);
$temp_translation_string_5 = $treng->_("Forgot your username and/or password? <a href=\"%TRENGVAR_1%%TRENGVAR_2%/recover\">Recover</a>!<br />Alternatively, you can sign in via your <a href=\"%TRENGVAR_1%%TRENGVAR_2%/openid\">OpenID</a>", "authentication", $trengvar);
$temp_translation_string_6 = $treng->_("Sign Up", "groupjoin");
$signin .= <<<EOS
\t\t
\t\t <input type="hidden" name="join" value="1" />
\t\t
\t\t <div style="height:30px;width:100%;padding:5px;">
\t\t <div style="float:left;width:100px;font-weight:bold;">{$temp_translation_string_1}</div>