<!--#include file="../SQLconn.asp"-->
<link rel="stylesheet" type="text/css" href="../css/style.css" />

<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="339" 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="61" height="30" class="STYLE1"><div align="right">编号</div></td>
		<td width="315" 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="8">&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="80%" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">   
		<tr style="background-color:#D6E4FF"  class="TableHeader">
		<td width="10%" height="30" align="center" nowrap class="STYLE1">节次编号
		<div align="center"></div></td>
		<td width="40%" align="center" nowrap class="STYLE1">节名</td>
		<td width="10%" 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">
		<a   href= "# "   onclick= "javascript:if(confirm( '您真的要删除记录？ '))href= 'deletevarjie.asp?id=<%=Rslist("id")%>&Grade=<%=strGrade%>&subject=<%=strsubject%>&zhangci=<%=zhangci%>'; "> 删除 </a>	  </td>	
		</tr>
		<%  Rslist.movenext
		wend
		%>
		</table>
 
   
