本文整理匯總了PHP中HtmlPage::add方法的典型用法代碼示例。如果您正苦於以下問題:PHP HtmlPage::add方法的具體用法?PHP HtmlPage::add怎麽用?PHP HtmlPage::add使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HtmlPage
的用法示例。
在下文中一共展示了HtmlPage::add方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Locale
require "auth.php";
if (!defined("LOCALE_LIBRARY")) {
include LIBRARY_PATH . "locale.library";
}
if (!defined("OOPHTML_LIBRARY")) {
include LIBRARY_PATH . "oophtml.library";
}
if (!defined("ADMINGUI_LIBRARY")) {
include LIBRARY_PATH . "admingui.library";
}
if (!defined("MODULES_LIBRARY")) {
include LIBRARY_PATH . "modules.library";
}
$adloc = new Locale("xmlrpcgateway", AMP_LOCALE);
$page = new HtmlPage($adloc->GetStr("title"));
$page->add(pagecaption($adloc->GetStr("title")));
$modcfg = new moduleconfig($env["ampdb"], "xmlrpcgateway");
switch ($env["disp"]["pass"]) {
case "setcfg":
$modcfg->setkey("DEST_HOST", $env["disp"]["desthost"]);
$modcfg->setkey("DEST_PORT", $env["disp"]["destport"]);
$modcfg->setkey("DEST_CGI", $env["disp"]["destcgi"]);
break;
}
switch ($env["disp"]["act"]) {
case "def":
$table[0][0] = new htmltext($adloc->GetStr("hostdesc"));
$table[1][0] = new htmlformtext("", "desthost", $modcfg->getkey("DEST_HOST"), "", 20);
$table[0][1] = new htmltext($adloc->GetStr("hostnote"));
$table[0][1]->colspan = 2;
$table[0][2] = new htmltext($adloc->GetStr("portdesc"));