本文整理汇总了PHP中Board::toHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP Board::toHTML方法的具体用法?PHP Board::toHTML怎么用?PHP Board::toHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Board
的用法示例。
在下文中一共展示了Board::toHTML方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
/// Execute stuff automagically
new Admin();
if (isset($_GET['j'])) {
switch ($_GET['j']) {
case "Pag":
$m = new Menu();
$p = new Board();
$ap = new AdminPanel();
echo "<div id='menu' class='menu'>\n";
$m->toHTML();
echo "</div>\n";
echo "<div class='panel'>\n";
$p->toHTML();
echo "</div>\n";
echo "<div class='image_panel hidden'>\n";
echo "</div>\n";
if (CurrentUser::$admin) {
echo "<div class='infos'>\n";
$ap->toHTML();
echo "</div>\n";
}
break;
case "Log":
$p = new LoginPage();
$p->toHTML();
break;
case "Reg":
$p = new RegisterPage();
$p->toHTML();
break;
case "Pan":
if (is_file(CurrentUser::$path)) {
$b = new ImagePanel(CurrentUser::$path);
$b->toHTML();
} else {
$b = new Board(CurrentUser::$path);
$b->toHTML();
}
break;
case "Men":
$m = new Menu();
$m->toHTML();
break;
case "Pan":
$f = new AdminPanel();
$f->toHTML();
break;
case "Inf":
$f = new Infos();
$f->toHTML();
break;
case "Jud":
$j = new Judge(CurrentUser::$path);
$j->toHTML();
break;
case "Acc":
$f = new Group();
$f->toHTML();
break;
case "Comm":
$f = new Comments(CurrentUser::$path);
$f->toHTML();
break;
default:
break;
}
}
}