<!--#include file="../SQLconn.asp"-->
<html>

<head>

<title>保存文件</title>
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.STYLE3 {font-size: 12px}
-->
</style>
</head>
<body  topmargin="5" leftmargin="5">


<script Language="JavaScript">
function right(mainStr,lngLen) {
// alert(mainStr.length)
 if (mainStr.length-lngLen>=0 && mainStr.length>=0 && mainStr.length-lngLen<=mainStr.length) {
 return mainStr.substring(mainStr.length-lngLen,mainStr.length)}
 else{return null}
 }


 function form_check(){
     if(right(document.form3.file1.value,3)=="exe"){window.alert("不能直接诶发送EXE文件，请压缩后在发送");document.form3.file1.focus();return (false);}
   if(document.form3.file1.value.length<1){window.alert("请选择文件");document.form3.file1.focus();return (false);}
   if(document.form3.tname.value.length<1){window.alert("网页已经过期，请重新登录");return (false);}
    
	 
 }

</script>

<% 
	    nowxueqi=request.cookies("nowxueqi")
	  
	    tname=request.cookies("tname")			
        strGrade = TRIM( Request( "grade" ) )
      
        strsubject= TRIM(Request("subject"))
	    strzhouci = TRIM( Request( "zhouci" ) )
		ftype = TRIM( Request( "ftype" ) )
     %>         

<form method="post" ENCTYPE="multipart/form-data" name="form3" action="Aspupload.asp" onSubmit="return form_check();">


             <div align="center">
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p><br>
              
           
              <table width="60%" align="center" border="0" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8">   
                 <tr>
                   <td width="37" height="36" nowrap class="STYLE1">
                     
                     <div align="center">
                       <input name="tname" type="hidden" class="text" id="tname"  value=<%=tname%> size="5" readonly="true">
                     </div></td>
                   <td width="131">
                     <div align="left">
                       <input name="years" type="hidden" class="text" id="years"  value=<%=nowxueqi%> size="18" readonly="true"  style= "width:100px ">
                       </div></td>
                   <td width="424">
                     <div align="left">
	   <input name="grade" type="hidden" class="text" id="grade"  value=<%=strGrade%> size="5" readonly="true">
	   <input name="subject" type="hidden" class="text" id="subject" value=<%=strsubject%>  readonly="true"  style= "width:100px ">
	   <input name="zhouci" type="hidden" class="text" id="zhouci"  value=<%=strzhouci%> size="5" readonly="true">
	   <input name="ftype" type="hidden" class="text" id="ftype"  value=<%=ftype%> size="5" readonly="true">
                     </div>
                     
                     <div align="center"></div>                     
                     
                     <div align="center"></div>
                     
                     <div align="center"></div></td>
                 </tr>
                 
                 
                 <tr>
                   <td height="31" nowrap class="STYLE1"><%=tname%></td>
                   <td colspan="2" class="STYLE1"><%=strGrade%>&nbsp;&nbsp;<%=strsubject%>&nbsp;&nbsp;<%=ftype%>&nbsp;&nbsp;<%=strzhouci%> </td>
                 </tr>
                 <tr>
                   <td height="50" nowrap class="STYLE1"><div align="center">关键词</div></td>
                   <td colspan="2"><label>
                     <textarea name="guanjianci" cols="77" class="text" id="guanjianci"></textarea>
                   </label></td>
                 </tr>
                 <tr>
                   <td height="64" nowrap class="STYLE1"><div align="center">附 件</div></td>
                   <td colspan="2"><input name="file1" type="file" class="text" size=70></td>
                 </tr>
               </table>
			   <p><br>
               </p>
			  
  </div>
             <center>
    <input name="button" type="button" class="topanniu" onClick="location='beike.asp?Grade=<%=strGrade%>&subject=<%=strsubject%>&zhouci=<%=strzhouci%>'"  value="不保存返回" />
    &nbsp;&nbsp;&nbsp;&nbsp;
    <input name="submit" type="submit" class="topanniu" value="保存文件"  >
	
             </center>
</form>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>  
  
</html>  


