예제 #1
0
    $smarty->assign('action_link', array('text' => "添加班级管理员", 'href' => 'classAdmin.php?act=add'));
    $classAdmin_list = classAdmin_list($table);
    $class_list = class_list();
    $grade_list = grade_list();
    $smarty->assign('classAdmin_list', $classAdmin_list['classAdmin_list']);
    $smarty->assign('class_list', $class_list);
    $smarty->assign('grade_list', $grade_list);
    $smarty->assign('filter', $classAdmin_list['filter']);
    $smarty->assign('record_count', $classAdmin_list['record_count']);
    $smarty->assign('page_count', $classAdmin_list['page_count']);
    $smarty->assign('full_page', 1);
    $smarty->assign('sort_classAdmin_id', '<img src="images/sort_desc.gif">');
    assign_query_info();
    $smarty->display('classAdmin_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
    $classAdmin_list = classAdmin_list($table);
    $smarty->assign('classAdmin_list', $classAdmin_list['classAdmin_list']);
    $smarty->assign('filter', $classAdmin_list['filter']);
    $smarty->assign('record_count', $classAdmin_list['record_count']);
    $smarty->assign('page_count', $classAdmin_list['page_count']);
    $sort_flag = sort_flag($classAdmin_list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch('classAdmin_list.htm'), '', array('filter' => $classAdmin_list['filter'], 'page_count' => $classAdmin_list['page_count']));
} elseif ($_REQUEST['act'] == 'add') {
    /* 检查权限 */
    admin_priv('classAdmin_manage');
    $smarty->assign('ur_here', "添加班级管理员");
    $smarty->assign('action_link', array('text' => "班级管理员列表", 'href' => 'classAdmin.php?act=list'));
    $smarty->assign('form_action', 'insert');
    $class_list = class_list();
    $smarty->assign('class_list', $class_list);
예제 #2
0
    $classAdmin_list = classAdmin_list();
    $school_list = get_school_list();
    $sql = "select * from " . $ecs->table("admin_user");
    $user_list = $db->getAll($sql);
    $smarty->assign('classAdmin_list', $classAdmin_list['classAdmin_list']);
    $smarty->assign('school_list', $school_list);
    $smarty->assign('user_list', $user_list);
    $smarty->assign('filter', $classAdmin_list['filter']);
    $smarty->assign('record_count', $classAdmin_list['record_count']);
    $smarty->assign('page_count', $classAdmin_list['page_count']);
    $smarty->assign('full_page', 1);
    $smarty->assign('sort_classAdmin_id', '<img src="images/sort_desc.gif">');
    assign_query_info();
    $smarty->display('classAdmin_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
    $classAdmin_list = classAdmin_list();
    $smarty->assign('classAdmin_list', $classAdmin_list['classAdmin_list']);
    $smarty->assign('filter', $classAdmin_list['filter']);
    $smarty->assign('record_count', $classAdmin_list['record_count']);
    $smarty->assign('page_count', $classAdmin_list['page_count']);
    $sort_flag = sort_flag($classAdmin_list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch('classAdmin_list.htm'), '', array('filter' => $classAdmin_list['filter'], 'page_count' => $classAdmin_list['page_count']));
} elseif ($_REQUEST['act'] == 'add') {
    /* 检查权限 */
    admin_priv('schoolAdmin_manage');
    $smarty->assign('ur_here', "添加班级管理员");
    $smarty->assign('action_link', array('text' => "班级管理员列表", 'href' => 'classAdmin.php?act=list'));
    $smarty->assign('form_action', 'insert');
    $school_list = get_school_list();
    $smarty->assign('school_list', $school_list);