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



<style type="text/css">
<!--
.STYLE2 {color: #FF0000}
-->
</style>
<p>
  <script Language="JavaScript">
 function form_check(){
  if(document.form3.vid.value.length<1){window.alert("请输入序号");document.form3.vid.focus();return (false);}
   
                  }

  </script>
</p>

<%
   varname=request("varname")
   
   
   %>
      <form id="form3" name="form3" method="post" action="saveTime.asp?varname=<%=varname%>"  onSubmit="return form_check();">
      <table width="788" 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="788" 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="right">序号</div></td>
      <td align="center" valign="middle" class="STYLE1">&nbsp;</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="right">节次</div></td>
        <td align="center" valign="middle" class="STYLE1">&nbsp;</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 class="STYLE1">&nbsp;</td>
        <td height="27" class="STYLE1"><div align="right">开始时间</div></td>
        <td align="center" valign="middle" class="STYLE1">&nbsp;</td>
        <td align="center" valign="middle" class="STYLE1"><div align="left">
          <input name="vname1" type="text" class="text" id="vname1"    style="ime-mode:disabled">  
        (时间：例如 8:20)</div></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle"> <td width="46" class="STYLE1">&nbsp;</td>
      <td width="235" height="28" class="STYLE1"><div align="right">结束时间</div></td>
      <td width="10" align="center" valign="middle" class="STYLE1">&nbsp;</td>
      <td width="416" align="center" valign="middle" class="STYLE1"><div align="left">
	  <input name="vname2" type="text" class="text" id="vname2"  style="ime-mode:disabled">  
	  <input name="Submit" type="submit" class="topanniu" value="添加" />
      </div> </label></td><td width="71">&nbsp;</td> 
      </tr></table>
	  </td>    </tr>    </table> 
      </form>

    <table width="788" 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 align="center" nowrap class="STYLE1"><div align="center">节次</div></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='"&varname& "'  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 width="184" align="center" nowrap class="STYLE1"><%=Rslist("vname1")%></td>
    <td align="center" nowrap class="STYLE1"><%=Rslist("vname2")%></td>
    <td align="center" nowrap class="STYLE1">
	<a href="modifyTime.asp?varname=<%=varname%>&id=<%=Rslist("id")%>">修改</a>&nbsp;&nbsp;&nbsp;
	 
	<a   href= "# "   onclick= "javascript:if(confirm( '您真的要删除记录？ '))href= 'deleteTime.asp?varname=<%=varname%>&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="45" class="STYLE1"><div align="center">说明：</div></td>
        <td width="502" class="STYLE1"><p class="STYLE2">谨慎修改，尽量学期初修改，会影响到所有教师的课程表</p>
        <p>1、时间使用 24小时制 （<span class="STYLE2">必须为时间格式，否则会出错</span>） </p>
        <p>2、间隔不用填写时间（如午休，晚上）</p>
        <p>如 中午 ，不用填写时间 </p></td>
      </tr>
      <tr>
        <td height="23" class="STYLE1">&nbsp;</td>
        <td class="STYLE1"><p>&nbsp;</p>          </td>
      </tr>
    </table>
