<%@ 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 type="text/javascript">
function emplAdd(){
	iframeWindow("<s:url action='emplInfoExtconfOperate'/>?oper=add",500,430,"添加扩展资料字段",refreshWindow);
}
function emplEdit(){
	if(getCheckedCount("sid")!=1){
		msgAlert("请选择一条您要修改的记录。");
		return;
	}
	iframeWindow("<s:url action='emplInfoExtconfOperate'/>?oper=edit&extconf.id="+getCheckedValue("sid"),500,430,"修改扩展资料字段",refreshWindow);
}
function emplDel(){
	if(getCheckedCount("sid")!=1){
		msgAlert("请选择一条您要删除的记录。");
		return;
	}
	msgConfirm("您确认要删除该记录吗？",function(){
		iframeWindow("<s:url action='emplInfoExtconfDelete'/>?extconf.id="+getCheckedValue("sid"),400,200,"删除扩展资料字段",refreshWindow);
	});
}
</script>
</head>

<body>
<div class="body_list">
<s:include value="../common/body.jsp" />
<s:form action="emplInfoExtconfList" id="queryForm" namespace="/employe">

 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
    <tr class="form_title">
      <td colspan="4">查询条件</td>
    </tr>
    <tr class="form_item">
      <td width="27%">名称：
        <s:textfield name="extconf.name" cssStyle="width:150px;"/></td>
         <td width="29%">
      	类型：<s:select cssStyle="width:150px;" name="extconf.fieldType.id"  list='#request.SysCodeFinder.find("EMPL_EXT_FIELD_TYPE")'  headerKey="" headerValue="" listKey="id" listValue="codeName"/>
       </td>     
      <td width="28%">
        备注：
       	<s:textfield name="extconf.descr" cssStyle="width:150px;"/>
      </td>

      <td width="16%" align="center">
        <input name="q" value="查 询" onclick="query()" type="button" />
        </td>
    </tr>
  </table>
  
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"  style="margin:15px 0 5px 0;" >
    <tr>
      <td>
	  	<input type="button" name="add" onclick="emplAdd()" value="添 加"/>
		<input type="button" name="edit" onclick="emplEdit()" value="修 改"/>
        <input type="button" name="delete" onclick="emplDel()" value="删 除"/>
      </td>
    </tr>
  </table>
  
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
    <tr class="list_title">
      <td width="3%" align="center"><input type="radio" name="array" onclick="checkedAll(this)" value="checkbox" /></td>
      <td width="9%">排序编号</td>
      <td width="14%">名称</td>
      <td width="8%">类型</td>
      <td width="46%">初始值</td>
      <td width="20%">描述</td>
      </tr>
    <s:iterator value="extconfList" status="st">
        <s:set name="row_cls" value=""/><s:if test="#st.Even"><s:set name="row_cls" value="%{'row_a'}"/></s:if>
        <tr class="list_data <s:property value='#row_cls'/>">
          <td align="center"><input type="radio" name="array" value="<s:property value='id'/>" lang="sid"/></td>
          <td><s:property value="orderBy"/></td>
          <td><s:property value="name"/></td>
          <td><s:property value="fieldType.codeName"/></td>
          <td><s:property value="initValues"/></td>
          <td><s:property value="descr"/></td>
        </tr>
    </s:iterator>
  </table>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="list_page">
    <tr>
      <td><cm:pager/></td>
    </tr>
  </table>

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