function _showevents($n = 0) { $n = (int) $n; $data['body'][] = '<h2>Show Events</h2><br />'; _make_html_table($n, $data); View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data); }
function _manage($n = 0) { loginRequireMgmt(); $n = (int) $n; $data['body'][] = '<h2>Manage Users</h2><br />'; if (loginCheckPermission(USER::MGMT_USER)) { _make_html_table($n, $data); $data['body'][] = '<p><a href="' . myUrl('mgmt_user/add') . '">Add New User</a></p>'; } else { $data['body'][] = '<p>You do not have permission for this operation'; } View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data); }
function _manage($n = 0) { $table = "t_school"; $item = "School"; $urlPrefix = "mgmt_school"; loginRequireMgmt(); $n = (int) $n; $data['body'][] = "<h2>Manage {$item}</h2><br />"; if (loginCheckPermission(USER::MGMT_SCHOOL)) { _make_html_table($table, $item, $urlPrefix, $n, $data); $data['body'][] = '<p><a href="' . myUrl("{$urlPrefix}/add") . '">Add New ' . $item . '</a></p>'; } else { $data['body'][] = '<p>You do not have permission for this operation'; } View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data); }