本文整理匯總了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);