<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="cm" uri="/commons-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>执业证照</title>
<link href="../resources/style/base.css" rel="stylesheet" type="text/css"/>
<s:include value="../common/head.jsp" />
<script language="javascript" src="../resources/js/calendar/calendar.js"></script>
</head>

<body>
<div class="body_form">
<s:include value="../common/body.jsp" />

<s:form action="emplInfoLinkOperate" namespace="/employe" enctype="multipart/form-data" onsubmit="return checkForm(this)">

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr class="form_tr">
      <td width="32%" align="right"><span class="required">•</span>证照名称：</td>
      <td width="68%" valign="top">
          <s:textfield name="quali.name"  maxlength="50" cssStyle="width:225px;" title="证照名称为必填项"/>
      </td>
      <tr class="form_tr">
       <td align="right" valign="top">证照编号：</td>
       <td valign="top"><s:textfield name="quali.qualiNo" maxlength="50" cssStyle="width:225px;"/></td>
     </tr>  
      <tr class="form_tr">
       <td align="right" valign="top">证照类型：</td>
       <td valign="top"><s:textfield name="quali.qualiType" maxlength="50" cssStyle="width:225px;"/></td>
     </tr>          
     </tr>     
     <tr class="form_tr">
       <td align="right" valign="top"><span class="required">•</span>取证日期：</td>
       <td valign="top"><s:textfield name="quali.getDate" onClick="showDate(this)" readonly="true" cssClass="date_input" cssStyle="width:225px;" title="取证日期为必填项">
                <s:param name="value"><s:date name="quali.getDate" format="yyyy-MM-dd"/></s:param>
          </s:textfield>       
       </td>
     </tr>
     <tr class="form_tr">
       <td align="right" valign="top">有效日期：</td>
       <td valign="top"><s:textfield name="quali.availDate" onClick="showDate(this)" readonly="true" cssClass="date_input" cssStyle="width:225px;" title="取证日期为必填项">
                <s:param name="value"><s:date name="quali.availDate" format="yyyy-MM-dd"/></s:param>
          </s:textfield>       
       </td>
     </tr>          
     <tr class="form_tr">
       <td width="32%" align="right" valign="top">备注：</td>
       <td width="68%" valign="top"><s:textarea  name="quali.descr" cssStyle="width:225px;height:50px;"/>
        </td>
     </tr>
      <tr class="form_tr">
       <td width="32%" align="right" valign="top">附件：</td>
       <td width="68%" valign="top"><s:file name="attach" cssStyle="width:225px;"/>
            <s:if test="quali.attach!=null&&quali.attach.id!=null&&quali.attach.id!=''">
                 <div class="info" style="margin:5px 0;">
                 	说明：重新上传附件将替换已有的附件。
                 </div>
             	 <div class="attach">
                 <a href="<s:url namespace='/system' action='sysFileItemGet'/>?id=<s:property value='quali.attach.id'/>" 
                    target="_blank"><s:property value='quali.attach.name'/></a>
                 </div>                 
            </s:if>
        </td>
     </tr>    
    <tr class="form_tr">
      <td width="32%" align="right">&nbsp;</td>
      <td width="68%" valign="top">
      	 <s:if test="oper=='edit'">
         	<input type="submit" name="button" id="button" value="修 改" />
         </s:if>
      	 <s:if test="oper=='add'">
         	<input type="submit" name="button" id="button" value="添 加" />
         </s:if>
          <!-- back begin -->
          &nbsp;
          <input name="winID" type="hidden" value="${param.winID}" />
          <input type="button" onclick="iframeWindowClose('${param.winID}')" name="button" id="button" value="返 回" />
          <!-- back end -->                    
         <s:hidden name="emplInfo.id" />
         <s:hidden name="quali.id" />
         <s:hidden name="quali.emplInfo.id" />
         <s:hidden name="type" />
         <s:hidden name="oper" />
        </td>
    </tr>
  </table>

</s:form>
</div>
</body>
</html>