<html><head><title>列出所有学生</title>
<meta http-equiv=content-language content=zh-cn>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<LINK href="../CSS/Base.css" rel=stylesheet>
<link href="../CSS/Common.css" rel="stylesheet" type="text/css"/>
<link href="../CSS/Tab.css" rel="stylesheet" type="text/css"/>
<LINK href="../CSS/Window.css" type=text/css rel=stylesheet>
<script language=javascript src="../JS/DropList.js.php"></script>
<script language=javascript src="../JS/CheckQuestion.js.php"></script>
<script type="text/javascript" src="../JS/Common.js.php"></script>
<script type="text/javascript" src="../JS/Window.js.php"></script>
<script language="javascript"> 
function checkall(form) 
{
	if( form.all.checked)
	{
		for(var i = 0;i < form.elements.length-1; i++) 
		{
			var e = form.elements[i];
			e.checked = true;
		}
	}
	else
	{
		for(var i = 0;i < form.elements.length-1; i++) 
		{
			var e = form.elements[i];
			e.checked = false;
		}
    }
}
function refreshParent(returnVal) {
   //self.location.replace(self.location.href);
   self.location.reload();
   //parent.AjaxDataListRequest('../DHTMLTree/TreeData.php');
}
function submit_form_action()
{
    if( Check_Form_Valid() != false )
	{
		document.getElementById('Action').value = "TranUsersSubmit";
		document.Check_Form.submit();
	}
}
function Check_Form_Valid()
{
	if (!CheckNotNull(Check_Form.departmentID, "学生所属院系")) {return false;}
	if (!CheckNotNull(Check_Form.gradeID, "学生所属专业")) {return false;}
	if (!CheckNotNull(Check_Form.classID, "学生所属班级")) {return false;}
}
</script>
<META content="MSHTML 6.00.3790.0" name=GENERATOR></HEAD>
<body oncontextmenu="return false" style="margin-top:0px">

<div id="tabs1"> 
    <ul> 
        <li id="current"><a href="{studentURL}"><span>班级学生名单</span></a></li> 
        <li><a href="{importURL}"><span>导入导出数据</span></a></li> 
        <li><a href="{loginModeURL}"><span>设置匿名评教</span></a></li> 
    </ul> 
</div> 

<div style="line-height:10px">&nbsp;</div>
<div class="wrap q_clear" id=wrap>
<div>
<div>
<div class=q_clear id=myheadertext><h1>列出<span class=red>[{nodeName}]</span>班主任、课程、教师、学生名单</h1>&nbsp;&nbsp;<br/></div>
<div id=myname></div>
<div class="datalist">
 <form name="Check_Form" method="post" action="">
	<table class=datatable id="datatable" cellspacing=0 cellpadding=0>
	 <tr><td bgcolor="#edf3fe" height=32><b style="font-size:14px;">&nbsp;&nbsp;班主任</b></td></tr>
	 <tr><td style="padding-top:10px;padding-bottom:10px">&nbsp;&nbsp;&nbsp;<b>{banzhurenName}</b></td></tr>
	</table>

	<table class=datatable id="datatable" cellspacing=0 cellpadding=0>
	 <tr><td colspan=5 bgcolor="#edf3fe"><b style="font-size:14px;">&nbsp;&nbsp;课程与任课教师</b>&nbsp;[ <span class=red>{recRelNum}</span> 记录 ]&nbsp;&nbsp;<input class=inputsubmit name="createNewRel" type="button" id="createNewRel" value="新增记录" onclick="javascript:showPopWin('?Action=AddRel&depid={departmentID0}&gradeid={gradeID0}&classid={classID0}&type=1', 650, 200, refreshParent, null,'新增课程与任课教师记录')"></td></tr>
     <tr class=coltitle>
	    <td width=3%>&nbsp;</td>
	    <td width=23%><b>课程</b></td>
		<td width=25%><b>教师</b></td>
		<td width=34%>&nbsp;</td>
		<td width=15% align="center"><b>操作</b></td>
	 </tr>
	 <!-- BEGIN COURSE -->
	 <tr><td>&nbsp;</td>
	     <td>{coursesName}</td>
		 <td>{teachersName}</td>
		 <td width=34%>&nbsp;</td>
		 <td width=15% align="center"><A href="javascript:void(0);" onclick="javascript:showPopWin('?Action=EditRel&depid={departmentID0}&gradeid={gradeID0}&classid={classID0}&relID={relID}&type=1', 650, 200, refreshParent, null,'编辑课程与任课教师记录')">编辑</A>&nbsp;&nbsp;<A href="?Action=DeleteRel&depid={departmentID0}&gradeid={gradeID0}&classid={classID0}&type=1&{deleteURL}" onclick="return window.confirm('您真的想删除该记录吗？本操作不可恢复！')">删除</A></td>
	 </tr>
	 <!-- END COURSE -->
	</table>
	 
	 <table class=datatable id="datatable" cellspacing=0 cellpadding=0>
	 <tr><td colspan=8 bgcolor="#edf3fe"><b style="font-size:14px;">&nbsp;&nbsp;学生</b>&nbsp;[ <span class=red>{recNum}</span> 记录 ]&nbsp;&nbsp;<input class=inputsubmit name="createNew" type="button" id="createNew" value="新增学生" onclick="javascript:showPopWin('?Action=Add&depid={departmentID0}&gradeid={gradeID0}&classid={classID0}&type=1', 650, 400, refreshParent, null,'新增学生记录')"></td></tr>
     <tr class=coltitle> 
        <td width=3%  noWrap>&nbsp;</td>
        <td width="10%"><strong>学号</strong></td>
        <td width="13%"><strong>学生姓名</strong></td>
        <td width="8%"><strong>性别</strong></td>
        <td width="16%"><strong>院系</strong></td>
        <td width="16%"><strong>专业</strong></td>
        <td width="16%"><strong>班级</strong></td>
        <td align="center"><strong>操作</strong></td>
     </tr>

     <!-- BEGIN LIST -->
     <tr onmouseover="this.style.backgroundColor='#DEEFFF'"  onmouseout="this.style.backgroundColor='#FFFFFF'"> 
        <td><input name="usersID[]" type="checkbox" id="usersID[]" value="{usersID}"></td>
        <td>&nbsp;{usersNum}</td>
        <td>&nbsp;{usersName}</td>
        <td>&nbsp;{usersGender}</td>
        <td>&nbsp;{depName}</td>
        <td>&nbsp;{gradeName}</td>
        <td>&nbsp;{className}</td>
        <td align=center> <A href="javascript:void(0);" onclick="javascript:showPopWin('?Action=Edit&usersID={usersID}&type=1', 650, 400, refreshParent, null,'编辑学生记录')">编辑</A>&nbsp;&nbsp;<A href="javascript:void(0);" onclick="javascript:showPopWin('?Action=EditCourses&depid={departmentID}&usersID={usersID}&type=1', 650, 450, refreshParent, null,'编辑选修课记录')">选修课</A>&nbsp;&nbsp;<A href="?Action=Delete&depid={departmentID0}&gradeid={gradeID0}&classid={classID0}&type=1&{deleteURL}" onclick="return window.confirm('您真的想删除该学生记录吗？本操作不可恢复！')">删除</A></td>
     </tr>
     <!-- END LIST -->   
	 </table>

	 <table style="border:0px;" id="datatable" cellspacing=0 cellpadding=0>
	 <tr> 
	      <td width=3% style="border:0px;"><input name="all" type="checkbox" id="all" value="all" onclick="checkall(this.form)" style="BACKGROUND-COLOR:#ffffff"></td>
	      <td style="border:0px;" colspan=8>
		  选中的学生迁移至：
		  <script>
			var ThreeDropList = new DropList('ThreeDropList','root',false);
			ThreeDropList.AddSelect("departmentID","departmentID","请选择院系...");
			ThreeDropList.AddSelect("gradeID","gradeID","请选择专业...");
			ThreeDropList.AddSelect("classID","classID","请选择班级...");
			<!-- BEGIN DEP -->
			ThreeDropList.AddSelectItem('{depName}','root','d{depID}','{depSelected}');
			<!-- END DEP -->
			<!-- BEGIN GRADE -->
			ThreeDropList.AddSelectItem('{gradeName}','d{depID}','g{gradeID}','{gradeSelected}');
			<!-- END GRADE -->
			<!-- BEGIN CLASS -->
			ThreeDropList.AddSelectItem('{className}','g{gradeID}','c{classID}','{classSelected}');
			<!-- END CLASS -->
			ThreeDropList.InitControl();
		  </script>
		  <input name="Action" id="Action" type="hidden">
		  <input name="TranUsersSubmit" class=inputsubmit type="button" id="TranUsersSubmit" value="开始迁移"  onclick="javascript:submit_form_action();"> 
		  <input class=inputsubmit name="DeleteSubmit" type="submit" id="DeleteSubmit" value="删除记录" onclick="return window.confirm('您真的想删除这些学生记录吗？本操作不可恢复！')"></td>
      </tr>
   </form>
   </table>
</div>
</div></div></div>
</body></html>
