<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/Window.css" type=text/css rel=stylesheet>
<link href="../CSS/Tab.css" rel="stylesheet" type="text/css"/>
<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();
   self.location.href = "{refreshURL}";
   //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><a href="ClasssSeting.php?gradeid={gradeID0}"><span>定义所属班级</span></a></li> 
        <li id="current"><a href="StudentsGradeList.php?gradeid={gradeID0}"><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><p class=recnumclass>[ <span class=red>{recNum} / {totalNum}</span> 记录 ]</p>&nbsp;&nbsp;<input class=inputsubmit name="createNew" type="button" id="createNew" value="新增学生" onclick="javascript:showPopWin('?Action=Add&depid={departmentID0}&gradeid={gradeID0}', 650, 400, refreshParent, null,'新增学生记录')"><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 colspan=8 height=35 valign=center bgcolor="#ffffff">
		  <span style="float:left"><IMG SRC="../Images/search.gif"> 查找
			  <select name="t_searchType" id="t_searchType">
				<option value='1'>学号</option>
		        <option value='2' {isName}>学生姓名</option>
			  </select>
		    中包含：<input type="text" name="t_name" value="{t_name}" size=15>
			性别为：<select name="t_usersGender">
			  <option value="">请选择性别...</option>
			  <option value="0" {usersGender_0}>男</option>
			  <option value="1" {usersGender_1}>女</option>
			</select><br/>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;所属班级为：
		  <script>
			var QueryDropList = new DropList('QueryDropList','root0',false);
			QueryDropList.AddSelect("t_classID","t_classID","请选择班级...");
			{classList}
			QueryDropList.InitControl();
		  </script>
			的学生
             <input name="Actions" type="hidden" id="Actions" value="querySubmit"> 
             <input type="submit" class=inputsubmit name="Submit" value="查询">
		   </span>
		   <span style="float:right"><IMG SRC="../Images/excel.gif">&nbsp;<a href={exportURL}>导出学生数据</a>&nbsp;</span>
    </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&depid={departmentID0}&gradeid={gradeID0}&usersID={usersID}', 650, 400, refreshParent, null,'编辑学生记录')">编辑</A>&nbsp;&nbsp;<A href="javascript:void(0);" onclick="javascript:showPopWin('?Action=EditCourses&depid={departmentID}&usersID={usersID}', 650, 450, refreshParent, null,'编辑选修课记录')">选修课</A>&nbsp;&nbsp;<A href="?Action=Delete&depid={departmentID0}&gradeid={gradeID0}&{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 class=pages>{pagesList}</div>
</div></div></div>
</body></html>
