本文整理匯總了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>