<?php
/**
 * 管理员管理
 * $Id: account_list.inc,v 1.1 2015/10/08 11:18:50 wanggb Exp $
 * @author netvillage
 * @access public
 * @package manager.templates
 */

global $account_list;

?>
<div class="page_title">班级设定</div>

<div class="page_buttons">
	<a class="flatbutton" href="class_edit_input.php?action_type=new">班级添加</a>
</div>


<br />
<div id="result_list" >
<table >
<tr>
<th class="contents_title" >编号</th>
<th class="contents_title" >年级名称</th>
<th class="contents_title" >班级名称</th>
<th class="contents_title" >班级人数</th>
<th class="contents_title" >操作</th>
<?
	foreach ($class_list as $class_mst) {
		$grade_mst = GradeMst::getById($class_mst->grade_id);
?>
<tr>
	<td align="center"><?=htmlspecialchars($class_mst->class_no) ?></td>
	<td align="center"><?=htmlspecialchars($grade_mst->title) ?></td>
	<td align="center"><?=htmlspecialchars($class_mst->title) ?></td>
	<td align="center"><?=htmlspecialchars($class_mst->member_count) ?></td>

	<td align="center">
		<a class="flatbutton" href="class_edit_input.php?action_type=edit&id=<?=$class_mst->id ?>">编辑</a>
		<a class="flatbutton" href="javascript:void(0);if (confirm('确定要删除吗？')) location.href='class_delete_result.php?id=<?=$class_mst->id ?>';">删除</a>
	</td>
</tr>
<?
}
?>
</table>
</div>
