<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->
<html>
<head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>

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

   
   %>
<script Language="JavaScript">
function form_check(){
var fso,f;  
if(document.form3.jibie.value.length<1){window.alert("请选择级别");document.form3.jibie.focus();return (false);}
if(document.form3.banbie.value.length<1){window.alert("请选择班别");document.form3.banbie.focus();return (false);}
if(document.form3.date1.value.length<1){window.alert("请选择日期");document.form3.date1.focus();return (false);}
if(document.form3.jieci.value.length<1){window.alert("请选择节次");document.form3.jieci.focus();return (false);}
if(document.form3.Oldkemu.value.length<1){window.alert("请选择原科目");document.form3.Oldkemu.focus();return (false);}
if(document.form3.OldTeacher.value.length<1){window.alert("请输入原教师");document.form3.OldTeacher.focus();return (false);}
if(document.form3.newKeMu.value.length<1){window.alert("请选择现科目");document.form3.newKeMu.focus();return (false);}
if(document.form3.NewTeacher.value.length<1){window.alert("请输入现教师");document.form3.NewTeacher.focus();return (false);}

}  
</script>
<table width="100%" height="495" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="27">
	<div class="header">
	<div class="nav">
        <ul>
            
             <li><a href="MyKeCheng.asp" target="_self">我的课程表</a></li>
            <li><a href="KeChengBiaoQuanXiao.asp" target="_self">全校课程表</a></li>
            <li class="on">课程异动情况</li>
        </ul>
    </div>	
	</td>
  </tr>


  <tr>
   <td height="470" valign="top"   class="NemuMainBox">		 
	<br>	
	
	 <table width="95%"  border="1" align="center" cellpadding="8" cellspacing="0" bgcolor="#F7FCFF" style="border-collapse:collapse">
		<tr>
		<td width="735" height="205" align="center" valign="top"> 
<form action="YiDongSaveModify.asp"  method="post" name="form3" onSubmit="return form_check();">
    
     <table width="513" border="0" align="center">
       <tr>
         <td width="96" height="30"><div align="right">级别：</div></td>
         <td width="151">
		 
			<div align="left">
			  <select name="jibie" id="jibie" style= "width:100px ">		    
			  <option selected="selected" value=<%=rs("年级")%>><%=rs("年级")%></option>
			    <% Set RSsel = Conn.Execute("select vname from  varset where name='grade' order by vid")
			While NOT RSsel.EOF %>
                <option value=<%=RSsel( "Vname" )%>><%=RSsel( "vname" )%></option>
                <% RSsel.MoveNext
			Wend
			RSsel.Close%>
		      </select>
		   </div></td>
         <td width="94"><div align="right">班别：</div></td>
         <td width="154"><select name="banbie" id="banbie" style= "width:100px ">
            <option selected="selected" value=<%=rs("班别")%>><%=rs("班别")%></option>
           <% Set RSsel = Conn.Execute("select vname from  varset where name='class' order by vid")
			While NOT RSsel.EOF %>
           <option value=<%=RSsel( "Vname" )%>><%=RSsel( "vname" )%></option>
           <% RSsel.MoveNext
			Wend
			RSsel.Close%>
         </select></td>
       </tr>
	   
	   <tr>
	     <td height="30"><div align="right">日期：</div></td>
	     <td>
		 <input name=date1 class="text" onClick="javascript:window.open('day.asp?form=form3&field=date1&oldDate='+this.value,'','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=200,top=220,left=250');"  size="12" readonly  value=<%=date()%>>		 </td>
         <td><div align="right">节次：</div></td>
         <td><select name="jieci" id="jieci" style= "width:100px ">
              <option selected="selected" value=<%=rs("节次")%>><%=rs("节次")%></option>
           <% Set RSsel = Conn.Execute("select vname from  varset where name='作息时间' order by vid")
			While NOT RSsel.EOF %>
           <option value=<%=RSsel( "Vname" )%>><%=RSsel( "vname" )%></option>
           <% RSsel.MoveNext
			Wend
			RSsel.Close%>
         </select></td>
	   </tr>
	   
	   <tr>
         <td width="96" height="30"><div align="right">原科目：</div></td>
         <td width="151">
		 
			<div align="left">
			  <select name="Oldkemu" id="Oldkemu" style= "width:100px ">  
			   <option selected="selected" value=<%=rs("原科目")%>><%=rs("原科目")%></option>
			    <% Set RSsel = Conn.Execute("select  subject from  subjectorder  order by vid")
			While NOT RSsel.EOF %>
                <option value=<%=RSsel( "subject" )%>><%=RSsel( "subject" )%></option>
                <% RSsel.MoveNext
			Wend
			RSsel.Close%>
			<option value=自习>自习</option>
			<option value=班会>班会</option>
			<option value=其他>其他</option>
		      </select>
		   </div></td>
         <td width="94"><div align="right">原教师：</div></td>
         <td width="154"><input name="OldTeacher" class="text" id="OldTeacher" size="12" value=<%=rs("原教师")%>></td>
	   </tr>
	   
	   <tr>
	     <td height="30"><div align="right">现科目：</div></td>
	     <td><select name="newKeMu" id="newKeMu" style= "width:100px ">
           <option selected="selected" value=<%=rs("现科目")%>><%=rs("现科目")%></option>
           <% Set RSsel = Conn.Execute("select  subject from  subjectorder  order by vid")
			While NOT RSsel.EOF %>
           <option value=<%=RSsel( "subject" )%>><%=RSsel( "subject" )%></option>
           <% RSsel.MoveNext
			Wend
			RSsel.Close%>
           <option value=自习>自习</option>
           <option value=班会>班会</option>
           <option value=其他>其他</option>
         </select></td>
         <td><div align="right">现教师：</div></td>
         <td><input name="NewTeacher" class="text" id="NewTeacher" size="12" value=<%=rs("现教师")%>></td>
	   </tr>
	   
	   <tr>
	     <td height="30"><div align="right">备注：</div></td>
	     <td colspan="3"><input name="beizhu" class="text" id="beizhu" size="38" value=<%=rs("备注")%>></td>
         </tr>
       
       <tr>
         <td height="23" colspan="4"><div align="center"><span class="mtdtl">
           <input name="button" type="button" class="topanniu" onClick="location='YiDongAdd.asp';"  value="返回">
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <input name="submit" type="submit" class="topanniu" value="保存">
         </span></div></td>
       </tr>
     </table>
	  <input type="hidden" name="id" value=<%=strId%>>		
     </form>          
</td>
		</tr>
	  </table>
	  
    <br></td>
  </tr>
</table>
</body>
</html>
