本文整理汇总了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"));