本文整理汇总了PHP中HtmlPage::draw方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlPage::draw方法的具体用法?PHP HtmlPage::draw怎么用?PHP HtmlPage::draw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HtmlPage
的用法示例。
在下文中一共展示了HtmlPage::draw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmltext
$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"));
$table[1][2] = new htmlformtext("", "destport", $modcfg->getkey("DEST_PORT"), "", 20);
$table[0][3] = new htmltext($adloc->GetStr("portnote"));
$table[0][3]->colspan = 2;
$table[0][4] = new htmltext($adloc->GetStr("cgidesc"));
$table[1][4] = new htmlformtext("", "destcgi", $modcfg->getkey("DEST_CGI"), "", 20);
$table[0][5] = new htmltext($adloc->GetStr("cginote"));
$table[0][5]->colspan = 2;
$table[0][6] = new htmlslist(array(new htmlraw("<center>"), new htmlformsubmit("submit", $adloc->GetStr("submit")), new htmlformreset("reset", $adloc->GetStr("reset")), new htmlraw("</center>")));
$table[0][6]->setcolspan(2);
$table[0][6]->align = "center";
$form[0] = new htmlraw("<center>");
$form[1] = new htmltable($table, 5, 2);
$form[1]->setwidth("");
$form[2] = new htmlraw("</center>");
$form[3] = new htmlformhidden("act", "def");
$form[4] = new htmlformhidden("pass", "setcfg");
$page->add(new htmlform($PHP_SELF, $form, true, false));
break;
}
echo $page->draw(1);