本文整理汇总了PHP中templates::PopupPage方法的典型用法代码示例。如果您正苦于以下问题:PHP templates::PopupPage方法的具体用法?PHP templates::PopupPage怎么用?PHP templates::PopupPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类templates
的用法示例。
在下文中一共展示了templates::PopupPage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content
function content()
{
$user = new user($_SESSION["uid"]);
$tiny = TinyMce('vacationInfo', stripslashes($user->vacationInfo));
$tpl = new templates();
$html = "\n\t<form name='tinymcedisclaimer' method='post' action=\"{$page}\">\n\t{$tiny}\n\t<center>\n\t<hr>" . button("{edit}", "document.forms['tinymcedisclaimer'].submit();") . "</center>\n\t</form>\n\t\n\t";
$page = $tpl->_ENGINE_parse_body($html);
echo $tpl->PopupPage($page);
}
示例2: altermime_disclaimer
function altermime_disclaimer()
{
$user = new user($_SESSION["uid"]);
writelogs("user_disclaimer:: user_disclaimer({$user->ou},{$user->uid})", __FUNCTION__, __FILE__, __LINE__);
$dd = new user_disclaimer($user->ou, $user->uid);
if (isset($_POST["DisclaimerContent"])) {
$dd->DisclaimerActivate = $_POST["DisclaimerActivate"];
$dd->DisclaimerOutbound = $_POST["DisclaimerOutbound"];
$dd->DisclaimerInbound = $_POST["DisclaimerInbound"];
$dd->DisclaimerContent = $_POST["DisclaimerContent"];
$dd->uid = $_SESSION["uid"];
$dd->ou = $user->ou;
$dd->SaveDislaimerParameters();
}
if ($dd->DisclaimerContent == null) {
$dd->DisclaimerContent = $dd->DisclaimerExample;
}
$tpl = new templates();
$tiny = TinyMce('DisclaimerContent', stripslashes($dd->DisclaimerContent));
$page = CurrentPageName();
$html = "\n\t<H1>{$user->ou}/{$user->DisplayName}</H1>\n\t<p class=caption>{edit_disclaimer_text}</p>\n\t<form name='tinymcedisclaimer' method='post' action=\"{$page}\">\n\t<div style='background-color:white;margin:5px'>\n\t<table style='width:99%' class=form style='background-color:white'>\n\t<tr>\n\t\t<td class=legend>{enable_disclaimer}:</td>\n\t\t<td>" . Field_TRUEFALSE_checkbox_img("DisclaimerActivate", $dd->DisclaimerActivate, "{enable_disable}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{enable_outbound}:</td>\n\t\t<td>" . Field_TRUEFALSE_checkbox_img("DisclaimerOutbound", $dd->DisclaimerOutbound, "{enable_disable}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{enable_inbound}:</td>\n\t\t<td>" . Field_TRUEFALSE_checkbox_img("DisclaimerInbound", $dd->DisclaimerInbound, "{enable_disable}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "document.forms['tinymcedisclaimer'].submit();") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t{$tiny}\n\t<hr>\n\t<center>" . button("{apply}", "document.forms['tinymcedisclaimer'].submit();") . "</center>\n\t</form>\n\t\n\t\n\t";
$tpl = new templates();
$page = $tpl->_ENGINE_parse_body($html);
echo $tpl->PopupPage($page);
}