<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>
<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 refreshPage(returnVal) {
   //self.location.replace(self.location.href);
   self.location.reload();
}
function set_form_action()
{
	if( CheckNotNull(Check_Form.teachersID, "任课教师") != false )
	{
		document.getElementById('Action').value = "SetTeacherSubmit";
		document.Check_Form.submit();
	}
}

</script>
<META content="MSHTML 6.00.3790.0" name=GENERATOR></HEAD>
<body oncontextmenu="return false">

<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>[{coursesNum} {coursesName}]</span>选修课<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"><b style="font-size:14px;">&nbsp;&nbsp;课程信息&nbsp;&nbsp;<input class=inputsubmit name="createNewRel" type="button" id="createNewRel" value=" 编辑 " onclick="javascript:showPopWin('CoursesSeting.php?Action=Edit&node=0&isElective=0&coursesID={coursesID}', 650, 240, refreshParent, null,'编辑课程记录')"></b></td></tr>
	 <tr><td style="padding-top:10px;padding-bottom:10px">&nbsp;&nbsp;&nbsp;课程编号：</b>&nbsp;{coursesNum}<br/>
	 &nbsp;&nbsp;&nbsp;课程名称：&nbsp;{coursesName}<br/>
	 &nbsp;&nbsp;&nbsp;课程类型：&nbsp;选修<br/>
	 &nbsp;&nbsp;&nbsp;课程适用：&nbsp;{coursesRange}<br/>
		</td></tr>
	</table>

	<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>{theTeacherName}</b>&nbsp;<br/>
	 &nbsp;&nbsp;&nbsp;设定任课教师：&nbsp;
		<script>
			var TwoDropList = new DropList('TwoDropList','root',false);
			TwoDropList.AddSelect("groupID","groupID","请选择教师所属教研组...");
			TwoDropList.AddSelect("teachersID","teachersID","请选择教师...");
			<!-- BEGIN GROUP -->
			TwoDropList.AddSelectItem('{groupName}','root','g{groupID}','{groupSelected}');
			<!-- END GROUP -->
			<!-- BEGIN TEACHER -->
			TwoDropList.AddSelectItem('{teacherName}','g{groupID}','t{teacherID}','{teacherSelected}');
			<!-- END TEACHER -->
			TwoDropList.InitControl();
		  </script>
		&nbsp;&nbsp;		 
	     <input name="classIDValue" id="classIDValue" value="{classID}" type="hidden">
		 <input name="classNameValue" id="classNameValue" value="{nodeName}" type="hidden">
		 <input name="SetTeacherSubmit" class=inputsubmit type="button" id="SetTeacherSubmit" value=" 设定 "  onclick="javascript:set_form_action();">
		</td></tr>
	</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&coursesID={coursesID}&classID={classID}', 650, 450, refreshPage, 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="17%"><strong>院系</strong></td>
        <td width="17%"><strong>专业</strong></td>
        <td width="17%"><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="?Action=Delete&coursesID={coursesID}&classID={classID}&{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>
		  <input name="Action" id="Action" type="hidden">
		  <input class=inputsubmit name="DeleteSubmit" type="submit" id="DeleteSubmit" value="删除记录" onclick="return window.confirm('您真的想删除这些学生记录吗？本操作不可恢复！')"></td>
      </tr>
   </form>
   </table>
</div>
</div></div></div>
</body></html>
