<%@ 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="../code/vm/ExtCodeJs.htm"></script>
<script language="javascript" src="../resources/js/calendar/calendar.js"></script>
</head>

<body style="background-color:#FFF; margin:0; padding:0; ">
<div class="body_form" style="width:98%; padding-top:5px;">
  <s:include value="../common/body.jsp" />
  
  <s:set name="TYPE_TEXT_FILED" value="@com.hrmex.web.constants.ConstantCode$EmplifoExtconfFieldType@TEXT_FILED"/>
  <s:set name="TYPE_TEXT_AREA" value="@com.hrmex.web.constants.ConstantCode$EmplifoExtconfFieldType@TEXT_AREA"/>
  <s:set name="TYPE_DATE" value="@com.hrmex.web.constants.ConstantCode$EmplifoExtconfFieldType@DATE"/>
  <s:set name="TYPE_SELECT" value="@com.hrmex.web.constants.ConstantCode$EmplifoExtconfFieldType@SELECT"/>
  
  <s:form action="emplInfoExtEdit" namespace="/employe" onsubmit="return checkForm(this)">
  
  	<s:if test="extconfList!=null && extconfList.size()>0">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <s:iterator value="extconfList" status="st">
        <tr class="form_tr">
          <td width="18%" align="right" valign="middle"><s:property value='top[0].name'/>：</td>
          <td width="32%" valign="middle">
            <s:if test="top[0].fieldType.id==#TYPE_SELECT">
              <s:select cssStyle="width:200px;" name="data[%{top[0].id}]" list="top[0].initValueList" headerKey="" headerValue=""/>
            </s:if>
            <s:if test="top[0].fieldType.id==#TYPE_DATE">
              <s:textfield name="data[%{top[0].id}]" readonly="true" onClick="showDate(this)" cssClass="date_input" cssStyle="width:200px;"/>
            </s:if>
            <s:if test="top[0].fieldType.id==#TYPE_TEXT_AREA">
              <s:textarea  name="data[%{top[0].id}]" cssStyle="width:200px;height:35px;"/>
            </s:if>
            <s:if test="top[0].fieldType.id==#TYPE_TEXT_FILED">
              <s:textfield  name="data[%{top[0].id}]" cssStyle="width:200px;"/>
            </s:if></td>
          <td width="18%" align="right" valign="middle"><s:if test="top[1]!=null"><s:property value='top[1].name'/>：</s:if></td>
          <td width="32%" valign="middle">
            <s:if test="top[1].fieldType.id==#TYPE_SELECT">
              <s:select cssStyle="width:200px;" name="data[%{top[1].id}]" list="top[1].initValueList" headerKey="" headerValue=""/>
            </s:if>
            <s:if test="top[1].fieldType.id==#TYPE_DATE">
              <s:textfield name="data[%{top[1].id}]" readonly="true" onClick="showDate(this)" cssClass="date_input" cssStyle="width:200px;"/>
            </s:if>
            <s:if test="top[1].fieldType.id==#TYPE_TEXT_AREA">
              <s:textarea  name="data[%{top[1].id}]" cssStyle="width:200px;height:35px;"/>
            </s:if>
            <s:if test="top[1].fieldType.id==#TYPE_TEXT_FILED">
              <s:textfield  name="data[%{top[1].id}]" cssStyle="width:200px;"/>
            </s:if></td>
        </tr>
      </s:iterator>
      <tr class="form_tr_min">
        <td height="30" colspan="4" align="center" valign="top">
        	<input type="submit" name="button" id="button" value="修 改" />
        	<s:hidden name="emplInfo.id" />
        </td>
      </tr>
    </table>
	</s:if>
	<s:else>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td style="height:80px; line-height:80px; text-align:center;">您还没有对员工“<strong>扩展资料</strong>”进行配置，请先点击左边菜单中的“<strong>员工 -&gt; 高级管理 -&gt; 扩展资料配置</strong>”进行扩展资料的配置。</td>
		  </tr>
		</table>
	</s:else>
  </s:form>

</div>
</body>
</html>