version: '.$version.''; } echo "\n"; } public static function menu() { if (!User::logged()) return; if (User::hasAccess('menu')) { Lib::loadClass('ProcesMenu'); $procesMenu = ProcesMenu::getInstance(); $procesMenu->show(); if (!V::get('MENU_INIT', '', $_GET)) { Lib::loadClass('UserActivity'); //echo UserActivity::showListInContainer(); } } else { UI::loadTemplate('menuLevel6'); } } public static function loadTemplate($tmplName, $data = array()) { if (is_array($data) && !empty($data)) { extract($data); } include APP_PATH_LIB . "/tmpl/{$tmplName}.php"; } public static function hotKeyDBG($str) { if (User::hasAccess('dbg')) { echo '' . htmlspecialchars($str) . ''; } } public static function showMessagesForTable($tblName) { if (empty($tblName)) return; $msgsRoute = Router::getRoute('Msgs'); $msgs = $msgsRoute->getActiveMessagesForTable($tblName); if (!empty($msgs)) { self::loadTemplate('msgsForTable', array('msgs' => $msgs)); } } public static function alert($alertType, $msg) { ?>
... * $params['cols'] (optional) -> cols, if not set read from first row * $params['rows'] -> rows, if not set - empty table * $params['rows'] -> rows, if not set - empty table * $params['disable_lp'] -> disable lp. col */ public static function table($params) { $cols = V::get('cols', array(), $params); $rows = V::get('rows', array(), $params); $caption = V::get('caption', '', $params); $showLp = (!V::get('disable_lp', false, $params)); if (empty($cols) && !empty($rows)) { $firstRow = array(); foreach ($rows as $row) { $firstRow = $row; break; } $cols = array_keys((array)$firstRow); } // if (empty($cols)) return; $hiddenCols = V::get('hidden_cols', array(), $params); $html_id = V::get('__html_id', '', $params); ?> > >
Lp.