<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->
<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>



<p>
  <script Language="JavaScript">
 function form_check(){
  if(document.form3.vid.value.length<1){window.alert("请输入序号");document.form3.vid.focus();return (false);}
   
                  }

  </script>
</p>

<%
   tname=request("tname")
   
   
   %>
      <form id="form3" name="form3" method="post" action="saveSubject.asp?tname=<%=tname%>"  onSubmit="return form_check();">
	  <table width="588" border="1" align="center" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtablehui"> 
<tr style="background-color:#D6E4FF"  class="TableHeader">      <td height="30" colspan="3" valign="middle"  align="center" nowrap class="NemuNot">
	  
      <table width="588" border="0" align="center" cellspacing="0" bordercolorlight="#11b1ff" bordercolordark="#f0f8ff">
      <tr align="middle">  <td class="STYLE1">&nbsp;</td>
      <td height="25" class="STYLE1"><div align="center">序号</div></td>
      <td align="center" valign="middle" class="STYLE1"><div align="left">
      <label><input name="vid" type="text" class="text" id="vid" size="5" /></label>
      </div></td><td>&nbsp;</td> </tr>
      <tr align="middle">
        <td class="STYLE1">&nbsp;</td>
        <td height="27" class="STYLE1"><div align="center">科目明细</div></td>
        <td align="center" valign="middle" class="STYLE1"><div align="left">
          <input name="vname" type="text" class="text" id="vname" />
        </div></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle"> <td width="83" class="STYLE1">&nbsp;</td>
      <td width="64" height="28" class="STYLE1"><div align="center">所属科目</div></td>
      <td width="421" align="center" valign="middle" class="STYLE1"><div align="left">
	  <input name="shuoming" type="text" class="text" id="shuoming" />
	  <input name="Submit" type="submit" class="topanniu" value="添加" />
      </div> </label></td><td width="12">&nbsp;</td> 
      </tr></table>
	    </td>    </tr>    </table> 
      </form>

    <table width="588" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">   
    <tr style="background-color:#D6E4FF"  class="TableHeader">
    <td align="center" nowrap class="STYLE1">序号</td>
    <td height="27" align="center" nowrap class="STYLE1">科目明细
      （子科目）
      <div align="center"></div></td>
    <td width="184" align="center" nowrap class="STYLE1">科目（用于统计成绩的科目）</td>
    <td width="111" align="center" nowrap class="STYLE1">操作</td>
    </tr>

   
   <%Set Rslist=Server.CreateObject("Adodb.Recordset")
   sqllist="select * from varset where  name='"&tname& "'  order by vid" 
   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 width="52" height="27" align="center" nowrap class="STYLE1"><%=Rslist("vid")%></td>
    <td width="184" align="center" nowrap class="STYLE1"><%=Rslist("vname")%></td>
    <td align="center" nowrap class="STYLE1"><%=Rslist("shuoming")%></td>
    <td align="center" nowrap class="STYLE1">
	<a href="modifySubject.asp?tname=<%=tname%>&id=<%=Rslist("id")%>">修改</a>&nbsp;&nbsp;&nbsp;
	 
	<a   href= "# "   onclick= "javascript:if(confirm( '您真的要删除记录？ '))href= 'deleteSubject.asp?tname=<%=tname%>&id=<%=Rslist("id")%>'; "> 删除 </a>
		</td>	
    </tr>
<%  Rslist.movenext
    wend
%>
</table>
<br>
    <table width="555" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="53" height="19" class="STYLE1"><div align="center">说明</div></td>
        <td width="502" class="STYLE1">1、科目明细是指一科里面可以用于输入或导入成绩的 子科目。</td>
      </tr>
      <tr>
        <td height="23" class="STYLE1">&nbsp;</td>
        <td class="STYLE1">2、科目是指成绩统计时显示的科目，多个科目明细可以同时属于一个科目，自动合计。</td>
      </tr>
    </table>
