<?php
/**
 * 班级设定
 * $Id: class_list.php,v 1.1 2015/10/08 11:18:46 wanggb Exp $
 * @author zhanghuichuan
 * @package manager.public_html
 */
// 底层包含
require_once("manager_include.inc");

// 登录检查
require_once("check_login.inc");

// 权限检查
if (!checkAuthority("4")) {
	// エラー表示
	$layout_pages = array();
	$layout_pages["left"] = "menu.inc";
	$layout_pages["right"] = "error.inc";
	$message = "权限不足，请联系系统管理员。";
	require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
	exit;
}

$school_id = ParamUtil::getRequestString("school_id");
if(!empty($_account->school_id)){
  $school_id = $_account->school_id;
  $school_mst = SchoolMst::getById($school_id);
}

// 一览取得
$param = array();
if(!empty($school_id)){
  $param["school_id"] = $school_id;
}
$class_list = CompassHandler::getClassList($param,"id","asc");
if(empty($school_id)){
  $param = array();
  $param["delete_flg"] = false;
  $school_list = SchoolMst::getList($param);
}

// ページ
$layout_pages = array();
$layout_pages["left"] = "menu.inc";
$layout_pages["right"] = "class_list.inc";
$layout_pages["menu_clicked"] = "1-3";
require_once(MANAGER_TEMPLATE_DIR_PATH . "/layout/leftmenu_layout.inc");
exit;