<!--#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>

<p>
  <%
   
  
   strId=request("id")
   tname=request("tname")
   Set rs=Server.CreateObject("Adodb.Recordset")
   sql="select * from varlong where     ID='"&strID& "'"
   rs.open sql,conn,1,1

   
   %>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form id="form3" name="form3" method="post" action="saveMod.asp?tname=<%=tname%>&id=<%=strid%>" onSubmit="return form_check();">
<table width="582" border="0" align="center" cellspacing="0" bordercolorlight="#11b1ff" bordercolordark="#f0f8ff">
    <tr align="middle">  <td class="STYLE1">&nbsp;</td>
      <td height="30" 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" value=<%=rs("vid")%>></label>
      </div></td><td>&nbsp;</td> </tr>
      <tr align="middle">
        <td class="STYLE1">&nbsp;</td>
        <td height="24" 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"  value="<%=rs("vname1")%>">
        </div></td>
        <td><input name="Submit" type="submit" class="topanniu" value="保存修改" /></td>
      </tr>
      <tr align="middle">
        <td class="STYLE1">&nbsp;</td>
        <td height="22" 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="vname2" type="text" class="text" id="vname2" value="<%=rs("vname2")%>"  onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" >
        </div></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle" height="30">
        <td class="STYLE1">&nbsp;</td>
        <td height="19" 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">
          <select name="vname6" id="vname6" style= "width:118px ">
            <option selected="selected" value=<%=rs("vname6")%>><%=rs("vname6")%></option>
            <option value="不限">不限</option>
            <option value="男">男</option>
            <option value="女">女</option>
          </select>
        </div></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle" height="30"> <td width="5" class="STYLE1">&nbsp;</td>
      <td width="166" height="31" class="STYLE1"><div align="right">每班限制人数</div></td>
      <td width="11" align="center" valign="middle" class="STYLE1">&nbsp;</td>
      <td width="238" align="center" valign="middle" class="STYLE1"><div align="left">
	  <input name="vname3" type="text" class="text" id="vname3" value="<%=rs("vname3")%>" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" >
      </div> 
        </label></td>
      <td width="152"><input name="button" type="button" class="topanniu" onclick="location='set.asp?tname=<%=tname%>'" value="返回上页" /></td>
    </tr>
      <tr align="middle height="30"">
        <td class="STYLE1">&nbsp;</td>
        <td height="21" 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="vname4" type="text" class="text" id="vname4"  value="<%=rs("vname4")%>" />
        </div></td>
        <td>&nbsp;</td>
      </tr>
      <tr align="middle" height="30">
        <td class="STYLE1">&nbsp;</td>
        <td height="21" 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="vname5" type="text" class="text" id="vname5"  value="<%=rs("vname5")%>" />
        </div></td>
        <td>&nbsp;</td>
      </tr>
      </table>
      <div align="center" class="STYLE1"></div>
</form>

    