public static function menu() { if (Privileges::access(__METHOD__) !== true || !G::isLoggedIn()) { return ''; } $html = Tag::hTag('b') . 'Database Menu' . Tag::_hTag('b') . Tag::form(['method' => 'get']) . Response::factory()->action(__CLASS__ . '->index()')->toHidden(false) . Lists::select('tblName', self::TABLES_SQL, ['size' => '10', 'onClick' => 'submit();']) . Tag::_form(); return $html; }
public function index() { if (!G::isLoggedIn()) { return Login::controller(Login::DEF); } else { return 'Select item from menu'; } }
public function index() { if (!G::isLoggedIn()) { return Login::controller(Login::DEF); } $crud = new CRUD('tblConfig', ['insDefaults' => ['fldUserID' => G::getUserID()], 'primaryKey' => 'fldKey']); $crud->setColDisplay('fldUserID', CRUD::HIDDEN); $crud->columnAttrib('fldValue', ['size' => 60]); return $crud->index(); }
public static function menu() { if (Privileges::access(__METHOD__) !== true || !G::isLoggedIn()) { return ''; } $resp = new Response(); $html = Tag::hTag('b') . 'Admin Menu' . Tag::_hTag('b') . Tag::ul(['id' => 'menuList']); foreach (self::getMenu() as $title => $action) { $html .= Tag::li() . Tag::hRef('?' . $resp->action($action)->toUrl(), $title) . Tag::_li(); } $html .= Tag::_ul(); return $html; }
public function index() { return G::isLoggedIn() ? $this->displayUserDetails() : $this->loginForm(); }
protected function getDisplayName() { $name = G::get('fldFirstName') . ' ' . G::get('fldLastName'); if (G::isLoggedIn() && G::accessLevel(Privileges::getSecurityLevel('SITE ADMIN'))) { $uName = Tag::hRef('superadmin.php', $name, ['class' => 'admin']); } else { $uName = Tag::e($name); } return $uName; }
private static function setUpSession() { Login::initSession(); // See if we can log the user in if (!Login::loadPreferencesFromCookies()) { if (G::isLoggedIn()) { Login::logOut(); } } }
<td nowrap="nowrap" valign="top" align="right" width="100%"> <?php echo \Jackbooted\Admin\FancyLogin::controller(); ?> </td> </tr> </table> </td> </tr> <tr> <td height="600px" width="100%"> <table width="100%" height="100%" cellpadding="5" cellspacing="0"> <tr> <td nowrap="nowrap" valign="top"> <?php echo \Jackbooted\G::isLoggedIn() ? \Jackbooted\Util\MenuUtils::display() : ' '; ?> </td> <td align="left" valign="top" width="100%"> <?php echo \Jackbooted\Html\WebPage::controller(Cfg::get('def_display')); ?> </td> </tr> </table> </td> </tr> <tr> <td width="100%"> <table width="100%" cellpadding="0" cellspacing="0"> <tr>