本文整理汇总了PHP中get_admin_userlist函数的典型用法代码示例。如果您正苦于以下问题:PHP get_admin_userlist函数的具体用法?PHP get_admin_userlist怎么用?PHP get_admin_userlist使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_admin_userlist函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ecs_header
ecs_header("Location: ./index.php\n");
exit;
} else {
sys_msg($_LANG['login_faild'], 1);
}
} elseif ($_REQUEST['act'] == 'list') {
/* 模板赋值 */
$smarty->assign('ur_here', $_LANG['admin_list']);
$smarty->assign('action_link', array('href' => 'privilege.php?act=add', 'text' => $_LANG['admin_add']));
$smarty->assign('full_page', 1);
$smarty->assign('admin_list', get_admin_userlist());
/* 显示页面 */
assign_query_info();
$smarty->display('privilege_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
$smarty->assign('admin_list', get_admin_userlist());
make_json_result($smarty->fetch('privilege_list.htm'));
} elseif ($_REQUEST['act'] == 'add') {
/* 检查权限 */
admin_priv('admin_manage');
/* 模板赋值 */
$smarty->assign('ur_here', $_LANG['admin_add']);
$smarty->assign('action_link', array('href' => 'privilege.php?act=list', 'text' => $_LANG['admin_list']));
$smarty->assign('form_act', 'insert');
$smarty->assign('action', 'add');
$smarty->assign('select_role', get_role_list());
/* 显示页面 */
assign_query_info();
$smarty->display('privilege_info.htm');
} elseif ($_REQUEST['act'] == 'insert') {
admin_priv('admin_manage');
示例2: action_query
function action_query()
{
// 全局变量
// $user = $GLOBALS['user'];
$_CFG = $GLOBALS['_CFG'];
$_LANG = $GLOBALS['_LANG'];
$smarty = $GLOBALS['smarty'];
$db = $GLOBALS['db'];
$ecs = $GLOBALS['ecs'];
$smarty->assign('admin_list', get_admin_userlist());
make_json_result($smarty->fetch('privilege_list.htm'));
}
示例3: array
for ($i = 0; $i < $room_nu; $i++) {
$sql_select = 'SELECT s.*,p.*,a.user_name AS admin_name,r.role_name FROM ' . $GLOBALS['ecs']->table('office_seat') . ' AS s LEFT JOIN ' . $GLOBALS['ecs']->table('pc_manager') . ' AS p ON s.pc_id=p.pc_id LEFT JOIN ' . $GLOBALS['ecs']->table('admin_user') . ' AS a ON s.admin_id=a.user_id LEFT JOIN ' . $GLOBALS['ecs']->table('role') . ' AS r ON a.role_id=r.role_id ' . " WHERE s.room='{$room_info[$i]['room']}' ORDER BY seat ASC";
$room_info[$i]['seat_info'] = $GLOBALS['db']->getAll($sql_select);
}
for ($i = 0; $i < $room_nu; $i++) {
if ($i == 0) {
$room_info[$i]['status'] = "style=\"display:''\"";
} else {
$room_info[$i]['status'] = "style=\"display:none\"";
}
}
} else {
//$res['message'] = '';
}
$sql_select = 'SELECT * FROM ' . $GLOBALS['ecs']->table('account_type');
$account_type = $GLOBALS['db']->getAll($sql_select);
$account_info = array();
$total = count($account_type);
$account_type_list = array('qq', 'ppcrm', 'qqcrm', 'wangwang');
for ($i = 0; $i < count($account_type_list); $i++) {
$sql_select = 'SELECT account_name FROM ' . $GLOBALS['ecs']->table('account') . ' WHERE type_id = (SELECT type_id FROM ' . $GLOBALS['ecs']->table('account_type') . " WHERE label='{$account_type_list[$i]}')";
$account_info[$account_type_list[$i]] = $GLOBALS['db']->getCol($sql_select);
}
$smarty->assign('super', $super);
$smarty->assign('room_info', $room_info);
$smarty->assign('room', $room);
$smarty->assign('account_info', $account_info);
$smarty->assign('admin_info', get_admin_userlist());
$res['main'] = $smarty->fetch('pc_manager.htm');
die($json->encode($res));
}
示例4: header
/*------------------------------------------------------ */
if ($_REQUEST['act'] == 'login') {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
if (intval($_CFG['captcha']) & CAPTCHA_ADMIN && gd_version() > 0) {
$smarty->assign('gd_version', gd_version());
$smarty->assign('random', mt_rand());
}
$smarty->display('login.htm');
} elseif ($_REQUEST['act'] == 'list') {
/* 模板赋值 */
$smarty->assign('ur_here', $_LANG['04_admin_role']);
$smarty->assign('action_link', array('href' => 'role.php?act=add', 'text' => $_LANG['admin_add_role']));
$smarty->assign('full_page', 1);
$admin_list = get_admin_userlist();
$role_list = get_role_list();
foreach ($admin_list as $val) {
$admin_list_tmp[$val['user_id']] = $val['user_name'];
}
foreach ($role_list as $key => $val) {
$role_list[$key]['manager'] = $admin_list_tmp[$val['manager']];
}
$smarty->assign('role_list', $role_list);
$smarty->assign('admin_list', $admin_list);
/* 显示页面 */
assign_query_info();
$smarty->display('role_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
$smarty->assign('admin_list', get_role_list());
make_json_result($smarty->fetch('role_list.htm'));