<!--#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="../css/style.css" />
<body>

<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);} 
	 
	 
	      }    
</script>


<FORM ACTION="saveZhengShu.asp" METHOD="post" enctype="multipart/form-data" NAME="form3"  onSubmit="return form_check();">
  <div align="center">
    <p>
      <%
		
		
		Id=request("id")
		Set RsImggonggao=Server.CreateObject("Adodb.Recordset")
		sqlgonggao="Select * from Employee where  ID='"&id& "'"
		RsImggonggao.open sqlgonggao,conn,1,1
		
	%>
    </p>
    <p class="STYLETITLE2"><%=RsImggonggao("姓名")%>   的证书管理</p>
    
	  <table width="700" 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">
					<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 class="text" onClick="javascript:window.open('day.asp?form=form3&field=datetime&oldDate='+this.value,'','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=200,top=220,left=250');"  size="15" readonly>		</td>
      </tr>
      <tr>
        <td width="165" height="30" class="STYLE1"><div align="right">说明</div></td>
        <td width="519" 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>
    </table>
	<input type="hidden" name="fid" value=<%=strid%>>
    <p>
      <input name="button" type="button" class="topanniu" onClick="location='dangan.asp'" value="返回">
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input name="submit" type="submit" class="topanniu" value="保存"> 
    </p>
  </div>
				
			  <br>
			  <table width="700" border="0" align="center" cellspacing="0">
				<% 
			 	Set RsImg = Conn.Execute("select * from  EmployeeZhengshu where Tid='"&id& "'")
				While NOT RsImg.EOF %>
				<tr> 
				  <td width="349" height="54" align="center" valign="middle" >
							  <table width="239" height="45" border="0" cellspacing="3">
								<tr>
								  <td><div align="center">
								  <a href="showBigimg.asp?id=<%=RsImg("id")%>" target="_blank">
								  <img src=showimg.asp?id=<%=RsImg("id")%> border="0" ></a>
								  </div></td>
								</tr>
								<tr>
								  <td class="STYLE1"><div align="center"><%=RsImg("shuoming")%>&nbsp;
							<a href="delzhengshu.asp?tid=<%=id%>&id=<%=RsImg("id")%>"  target="main" class="STYLE1"> 删除</a>
								  </div></td>
								</tr>
								<tr>
								  <td class="STYLE1"><div align="center"><%=RsImg("leibie")%>&nbsp;&nbsp;<%=RsImg("jibie")%>&nbsp;&nbsp;<%=RsImg("datetime")%></div></td>
							    </tr>
								
	                </table>
				  </td>  
				  
				  <% RsImg.MoveNext%>
				  
				  
				  
			     <td width="347" height="54" align="center" valign="middle" >
							 
							  <%if  not RsImg.EOF then %>
							  <table width="239" height="45" border="0" cellspacing="15">
								<tr>
								  <td><div align="center">
		                        <a href="showBigimg.asp?id=<%=RsImg("id")%>" target="_blank"><img src=showimg.asp?id=<%=RsImg("id")%> border="0" ></a> 
								
								  </div></td>
								</tr>
								<tr>
								   
								     <td class="STYLE1"><div align="center"><%=RsImg("shuoming")%>&nbsp;
					       	<a href="delzhengshu.asp?tid=<%=id%>&id=<%=RsImg("id")%>"  target="main" class="STYLE1"> 删除</a>			 
								  </div></td>
			  
								</tr>
								<tr>
								  <td class="STYLE1"><div align="center"><%=RsImg("leibie")%>&nbsp;&nbsp;<%=RsImg("jibie")%>&nbsp;&nbsp;<%=RsImg("datetime")%></div></td>
							    </tr>
								
	               </table>
				      <%end if %>
				   
				  </td>  

			    </tr>
				
				<% RsImg.MoveNext 
				  Wend
				  RsImg.Close
				  %>
  </table>
</FORM>
 
</body>
</html>
