<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->

<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
<!--
.STYLE6 {color: #FF0000}
-->
</style>
<p>
<script Language="JavaScript">
function form_check(){
if(document.form3.bianhao.value.length<1){window.alert("请输入编号");document.form3.bianhao.focus();return (false);}
if(document.form3.mingcheng.value.length<1){window.alert("请输入名称");document.form3.mingcheng.focus();return (false);}

}

</script>
</p>

<% 
nowxueqi=Right(request.cookies("nowxueqi"),4)   'request.cookies("nowxueqi") 
strGrade = TRIM(Request("grade"))
strsubject = TRIM(Request("subject"))
zhangci= TRIM(Request("zhangci"))
zhangming= TRIM(Request("zhangming"))
%>
		<form id="form3" name="form3" method="post" action="savevarJie.asp?Grade=<%=strGrade%>&subject=<%=strsubject%>&zhangci=<%=zhangci%>&zhangming=<%=zhangming%>"  onSubmit="return form_check();">
		<table width="365" border="0" align="center" cellspacing="0" bordercolorlight="#11b1ff" bordercolordark="#f0f8ff">
		
		<tr align="middle">
		  <td height="30" class="STYLE1">&nbsp;</td>
		  <td align="center" valign="middle" class="STYLE1"><div align="left" class="STYLE6"><%=zhangming%> 节次设置</div></td>
		  <td>&nbsp;</td>
		  </tr>
		<tr align="middle">
		<td width="76" height="30" class="STYLE1"><div align="right">编号</div></td>
		<td width="249" align="center" valign="middle" class="STYLE1"><div align="left">
		<input name="bianhao" onKeyPress="if((event.keyCode<48 || event.keyCode>57) && event.keyCode!=46 || /\.\d\d$/.test(value))event.returnValue=false"  type="text" class="text" id="bianhao" size="5" />
		</div></td>
		<td width="34">&nbsp;</td>
		</tr>
		<tr align="middle">
		<td height="30" class="STYLE1"><div align="right">节次名称 </div></td>
		<td align="center" valign="middle" class="STYLE1"><div align="left">
		<input name="mingcheng" type="text" class="text" id="mingcheng" />
		<input name="Submit" type="submit" class="topanniu" value="添加" />
		</div></td>
		<td>&nbsp;</td>
		</tr>
		</table>
		</form>
		
		<table width="90%" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">   
		<tr style="background-color:#D6E4FF"  class="TableHeader">
		<td width="55" height="30" align="center" nowrap class="STYLE1">节次编号
		<div align="center"></div></td>
		<td  align="center" nowrap class="STYLE1">节名</td>
		<td width="60" align="center" nowrap class="STYLE1">设置人</td>
		<td width="60" align="center" nowrap class="STYLE1">操作</td>
		</tr>
		
		
		<%Set Rslist=Server.CreateObject("Adodb.Recordset")
		sqllist="select * from Subjectvar where    类别='节次'  and 学期='"&nowxueqi& "' and 年级='"&strGrade& "'  and 科目='"&strsubject& "' and 章次='"&zhangci& "'  order by 编号" 
		Rslist.open sqllist,conn,1,1
		while not Rslist.eof and not Rslist.bof%>
		<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#EFF8FF'">
		<td   height="30" align="center" nowrap class="STYLE1"><%=Rslist("编号")%></td>
		<td align="center" nowrap class="STYLE1"><%=Rslist("节次")%></td>
		<td align="center" nowrap class="STYLE1"><%=Rslist("设置人")%></td>
		<td align="center" nowrap class="STYLE1">
		<%if Rslist("设置人")=request.cookies("tname")  or  request.cookies("tname")="admin"  then %>
		<a   href= "# "   onclick= "javascript:if(confirm( '您真的要删除记录？ '))href= 'deletevarjie.asp?id=<%=Rslist("id")%>&Grade=<%=strGrade%>&subject=<%=strsubject%>&zhangci=<%=zhangci%>'; "> 删除 </a>	 
		<%end if %>
		 </td>	
		</tr>
		<%  Rslist.movenext
		wend
		%>
</table>
 
   
