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

 function form_check(){
   
	if(document.form3.leibie.value.length<1){window.alert("请选择证书类别");document.form3.leibie.focus();return (false);}
	if(document.form3.file1.value.length<1){window.alert("请选择文件");document.form3.file1.focus();return (false);}
    if(document.form3.datetime.value.length<1){window.alert("请选择 证书的日期");document.form3.datetime.focus();return (false);} 
	if(document.form3.fazhengjiguan.value.length<1){window.alert("请输入发证机关");document.form3.fazhengjiguan.focus();return (false);} 
	if(document.form3.dengjidate.value.length<1){window.alert("请输入登记日期");document.form3.dengjidate.focus();return (false);} 
	
	      }    
</script>

<body>



<%
		tname=request.cookies("tname") 
		
		xingming=request("xingming")
		 
		
	%>
<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 class="on">新增证书</li>
            <li><a href="ZhengShuList.asp?xingming=<%=xingming%>">证书列表</a></li>
            <li><a href="ZhengShuFind.asp?xingming=<%=xingming%>">证书查询</a></li>
			<li><a href="ZhengShuTotal.asp?xingming=<%=xingming%>">证书汇总</a></li>
        </ul>
    </div>	
	</td>
  </tr>
  <tr>
   <td height="400" valign="top"   class="NemuMainBox">
	 
	 

<form method="post" ENCTYPE="multipart/form-data" name="form3" action="saveZhengShu.asp" onSubmit="return form_check();">
  <div align="center">
    <p>
      
    </p>
    <p class="STYLETITLE2">&nbsp;</p>
    <p class="STYLETITLE2">新增证书</p>
    <table width="625" border="1" align="center" cellpadding="3" cellspacing="0" style="border-collapse:collapse">  
      <tr>
        <td height="30" class="STYLE1"><div align="right">教师姓名</div></td>
        <td class="STYLE1"><input name="xingming" class="text" id="xingming" size=20 maxlength="20"  value="<%=xingming%>" ></td>
      </tr>
      <tr>
        <td height="30" class="STYLE1"><div align="right">证书类别</div></td>
        <td class="STYLE1">
					<select name="leibie" id="leibie"  >
					    
					  <option></option>
					   <% Set RSsel = Conn.Execute("select vname from  varset where name='zhengshutype'")
								   While NOT RSsel.EOF %>
						
						<OPTION value=<%=RSsel( "vname" )%>><%=RSsel( "vname" )%></OPTION>
						<% RSsel.MoveNext
								  Wend
								  RSsel.Close%>
		  </select>
		  <input name="TID" type="hidden" id="TID" value=<%=id%>>		</td>
      </tr>
      <tr>
        <td height="30" class="STYLE1"><div align="right">证书级别</div></td>
        <td class="STYLE1">
		           <select name="jibie" id="jibie">
					  
					  <option></option>
					   <% Set RSsel = Conn.Execute("select vname,shuoming from  varset where name='zhengshujibie'")
								   While NOT RSsel.EOF %>
						
						<OPTION><%=RSsel( "vname" )%></OPTION>
						<% RSsel.MoveNext
								  Wend
								  RSsel.Close%>
		  </select>		</td>
      </tr>
     
      <tr>
        <td height="30" class="STYLE1"><div align="right">发证日期</div></td>
        <td class="STYLE1">
		<input name=datetime  placeholder="请输入日期"  style="width:90px"    class="laydate-icon" onClick="laydate()">
		</td>
      </tr>
	   <tr>
        <td height="30" class="STYLE1"><div align="right">发证机关</div></td>
        <td class="STYLE1"><input name="fazhengjiguan" class="text" id="fazhengjiguan" size=50 maxlength="20" ></td>
      </tr>
      <tr>
        <td width="163" height="30" class="STYLE1"><div align="right">内容说明</div></td>
        <td width="479" class="STYLE1"><input name="shuoming" class="text" id="shuoming" size=50 maxlength="30" ></td>
      </tr>
      <tr>
        <td height="28" class="STYLE1"><div align="right">图片文件</div></td>
        <td class="STYLE1"><input name="file1" type="file" class="text" size=50   ></td>		
      </tr>
	  <tr>
        <td height="30" class="STYLE1"><div align="right">登记日期</div></td>
        <td class="STYLE1">
				<input name=dengjidate     placeholder="请输入日期"  style="width:90px"    class="laydate-icon" onClick="laydate()"  value=<%=date%>>
	 		</td>
      </tr>
    </table>
	<input type="hidden" name="fid" value=<%=strid%>>
    <p>
    
      <input name="submit" type="submit" class="topanniu" value="保存"> 
    </p>
  </div>
				
			 
</FORM>
 
	 
	
	
    </td>
  </tr>
</table>
</body>
</html>
