<%@ 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">
function otherCheck(){
	var $obj=$("#splitDayId");
	var v=parseInt($obj.val(),10);
	if(v<1 || v>31){
		checkMessage($obj.get(0),"工龄计算参数 必须是 1-31 之间的数值。");
		return false;
	}
	return true;
}
</script>
</head>

<body>
<div class="body_form">
<s:include value="../common/body.jsp" />
<s:form action="sysConfigEmpl" namespace="/system" onsubmit="return checkForm(this,otherCheck)">

 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
   <tr class="form_title">
     <td>到期提醒</td>
   </tr>
   <tr class="form_tr">
     <td><span class="item">&nbsp;</span>合同到期 <s:textfield title="合同到期提醒 必须为数字" cssClass="center"
     	name="formData['%{@com.hrmex.web.constants.ConstantSysConfig$EmplConfig@EMPL_CONTRACT_END_WARN}']" 
     	value="%{confMap.get(@com.hrmex.web.constants.ConstantSysConfig$EmplConfig@EMPL_CONTRACT_END_WARN).value}"
     	cssStyle="width:30px;"/> 天之内给予提醒</td>
   </tr>
   <tr class="form_tr">
     <td><span class="item">&nbsp;</span>试用到期 <s:textfield title="试用到期提醒 必须为数字" cssClass="center"
     	name="formData['%{@com.hrmex.web.constants.ConstantSysConfig$EmplConfig@EMPL_TRY_END_WARN}']" 
     	value="%{confMap.get(@com.hrmex.web.constants.ConstantSysConfig$EmplConfig@EMPL_TRY_END_WARN).value}"
     	cssStyle="width:30px;"/> 天之内给予提醒</td>
   </tr>
   <tr class="form_tr">
     <td><span class="item">&nbsp;</span>生日到期 <s:textfield title="生日到期提醒 必须为数字" cssClass="center"
     	name="formData['%{@com.hrmex.web.constants.ConstantSysConfig$EmplConfig@EMPL_BIRTHDAY_WARN}']" 
     	value="%{confMap.get(@com.hrmex.web.constants.ConstantSysConfig$EmplConfig@EMPL_BIRTHDAY_WARN).value}"
     	cssStyle="width:30px;"/> 天之内给予提醒</td>
   </tr>
 </table>
 
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
   <tr class="form_title">
     <td>工龄计算</td>
   </tr>
   <tr class="form_tr">
     <td>
     	<span class="item">&nbsp;</span>在日期 <s:textfield title="工龄计算参数 必须为数字" cssClass="center" id="splitDayId"
        name="formData['%{@com.hrmex.web.constants.ConstantSysConfig$EmplConfig@EMPL_WORKAGE_MONTH_SPLIT_DAY}']" 
     	value="%{confMap.get(@com.hrmex.web.constants.ConstantSysConfig$EmplConfig@EMPL_WORKAGE_MONTH_SPLIT_DAY).value}"
     	cssStyle="width:30px;"/> 之前入职计算为整月工龄
      	<div style="margin:5px 10px;" class="info">说明：允许填写 1 - 31 的日期数字，例如：15表示员工15日或更早入职，当月算一个月工龄。</div>
     </td>
   </tr>
 </table>

	<div style="padding:10px; text-align:center;">
    <input type="submit" name="button" id="button" value="修 改" />
    </div>

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