本文整理匯總了PHP中box::draw方法的典型用法代碼示例。如果您正苦於以下問題:PHP box::draw方法的具體用法?PHP box::draw怎麽用?PHP box::draw使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類box
的用法示例。
在下文中一共展示了box::draw方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: drawWidget
function drawWidget()
{
$s = new session();
if (session::check() != false) {
$w = new box($this->logged_in_realm_caption);
$w->css_box = "login";
$w->addWidget(html::write($this->logged_in_caption . $s->user->username));
$w->addWidget(new button($this->logout_caption, $this->logouttarget . "?logout=1"));
return $w->draw();
}
$h = new html();
$h->html .= "\n\t\t\t\t\t\n\t\t\t\t\t<form method=\"post\" action=\"" . $this->target . "\">\n\t\t\t\t\t<table>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t\t" . $this->realm_caption . "\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr><td>" . $this->username_caption . "</td><td><input type=\"text\" name=\"username\"></td></tr>\t\t\t\n\t\t\t\t\t\t<tr><td>" . $this->password_caption . "</td><td><input type=\"password\" name=\"password\"></td></tr>\n\t\t\t\t\t\t<tr><td><input type=\"submit\" value=\"" . $this->submit_caption . "\"></td></tr></table></form>";
$b = new box($this->realm_caption, $h);
$b->css_box = "login";
return $b->draw();
}