當前位置: 首頁>>代碼示例>>PHP>>正文


PHP templates::PopupPage方法代碼示例

本文整理匯總了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);
}
開發者ID:brucewu16899,項目名稱:artica,代碼行數:9,代碼來源:vacation.php

示例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);
}
開發者ID:BillTheBest,項目名稱:1.6.x,代碼行數:25,代碼來源:user.messaging.php


注:本文中的templates::PopupPage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。