function ach_render() { global $_USER, $_CONF; $c = "<table>\r\n\t\t\t<tr>\r\n\t\t\t\t<td>" . ach_render_yubopoints() . "</td>\r\n\t\t\t</tr>\r\n\t\t</table>\r\n\t\t\t\r\n\t\t<table>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width='230px'>"; $menu = new AchMenu($_REQUEST['cat']); $c .= ach_render_menu($menu); $c .= "</td>\r\n\t\t\t\t<td width='455px'>"; $open = $menu->getOpenCat(); if ($open != 0) { if ($_REQUEST['cult']) { $cult = $_REQUEST['cult']; } else { $cult = $_USER->getCult(); } if ($_REQUEST['civ']) { $civ = $_REQUEST['civ']; } else { $civ = $_USER->getCiv(); } $cat = new AchCategory($open, $_USER->getRace(), $cult, $civ); } else { $cat = new AchSummary($menu, $_CONF['summary_size']); $c .= ach_render_summary_header(); } $c .= ach_render_category($cat); if ($open == 0) { $c .= ach_render_summary_footer($cat); } $c .= "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>"; return $c; }
function ach_render() { global $_USER, $_CONF; $c = "<center><table>\n\t\t\t<tr>\n\t\t\t\t<td colspan='2' align='left'>\n\t\t\t\t\t<div style='display:block;border-bottom:1px solid #000000;'>\n\t\t\t\t\t\t<div style='float:left;width:420px;'>" . ach_render_yubopoints() . "</div>\n\t\t\t\t\t\t<div style='float:right;width:420px;text-align:right;'>" . ach_render_facebook() . "</div>\n\t\t\t\t\t\t<div style='clear:both;'></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td valign='top'><div style='width:230px;font-weight:bold;font-size:14px;'>"; #$_REQUEST['mid'] = 1; $menu = new AchMenu($_REQUEST['cat']); $c .= ach_render_menu($menu); $c .= "</div></td>\n\t\t\t\t<td width='645px' valign='top'>"; /*for($i=0;$i<15;$i++) { $c .= ach_render_box_done("Bejeweled"); }*/ $open = $menu->getOpenCat(); if ($open != 0) { if ($_REQUEST['cult']) { $cult = $_REQUEST['cult']; } else { $cult = $_USER->getCult(); } if ($_REQUEST['civ']) { $civ = $_REQUEST['civ']; } else { $civ = $_USER->getCiv(); } $cat = new AchCategory($open, $_USER->getRace(), $cult, $civ); } else { #die($_CONF['summary_size']); $cat = new AchSummary($menu, $_CONF['summary_size']); $c .= ach_render_summary_header(); } $c .= ach_render_category($cat); if ($open == 0) { $c .= ach_render_summary_footer($cat); } $c .= "</td>\n\t\t\t</tr>\n\t\t</table></center>"; return $c; }