<!--#include file="../checkLogin.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>预定</title>

<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>
</head>

<body >

<script Language="JavaScript">

 function form_check(){  
   if(document.form1.name.value.length<1){window.alert("网页已经过期，请重新登录");return (false);}
   if(document.form1.grade.value.length<1){window.alert("请输入班级");document.form1.grade.focus();return (false);}
   if(document.form1.subject.value.length<1){window.alert("请选择科目 ");document.form1.subject.focus();return (false);}
   if(document.form1.content.value.length<1){window.alert("请输入内容");document.form1.content.focus();return (false);}
	 
 }
		
</script>
      <%
		
		shichang=request("shichang")
		tname=request.cookies("tname")
		bookdate=request("bookdate")
		jieci=request("jieci")
		%>
		<form name="form1" method="post" action="savebooking.asp?shichang=<%=shichang%>&bookdate=<%=bookdate%>&jieci=<%=jieci%>"  onSubmit="return form_check();">
				
<%
			
	      Set MyOAASPObj = Server.CreateObject("YFSchoolOApro2.YFSchoolDll2")
           call  MyOAASPObj.ShiChangAddBooking(tname,shichang)
           set MyOAASPObj=nothing%>
</form>
<p>&nbsp;</p>
</body>
</html>
