<%@ 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>
<script type="text/javascript">
</script>
</head>

<body>
<div class="body_list">
  <s:include value="../common/body.jsp" />
  <s:form action="emplContactList" id="queryForm" onsubmit="return checkForm(this)">
    <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="31%">工号：
          <s:textfield name="emplInfo.emplNo" title="工号必须为数字。"  cssStyle="width:100px;"/></td>
        <td width="31%">姓名：
          <s:textfield name="emplInfo.name" cssStyle="width:100px;"/> </td>
        <td width="29%">部门：
          <s:textfield name="emplInfo.emplOrg.name" readonly="true" onClick="codeTree('emplOrgTree',gi('eimpOrgId'),this)" cssStyle="width:100px;" cssClass="find_input"/>
          <s:hidden name="emplInfo.emplOrg.id" id="eimpOrgId"/></td>
        <td width="9%"> <input name="q" value="查询" onclick="query()" type="button" /></td>
      </tr>
    </table>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
      <tr class="list_title">
        <td width="8%">工号</td>
        <td width="6%">姓名</td>
        <td width="16%">部门</td>
        <td width="7%">职务</td>
        <td width="8%">工作地区</td>
        <td width="11%">座机</td>
        <td width="10%">手机</td>
        <td width="12%">邮箱</td>
        <td width="17%">即时通讯</td>
        <td width="5%">照片</td>
      </tr>
      <s:iterator value="emplList" 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 class="center"><s:property value="emplNo"/></td>
          <td class="center"><s:property value="name"/></td>
          <td ><s:property value="emplOrg.fullName"/></td>
          <td class="center"><s:property value="job.codeName"/></td>
          <td class="center"><s:property value="workArea.codeName"/></td>
          <td class="center"><s:property value="phone"/></td>
          <td class="center"><s:property value="mobile"/></td>
          <td class="center"><s:property value="email"/></td>
          <td class="center"><s:property value="imType.codeName"/>
          	<s:if test="imNo!=null && imNo!=''">
             : <s:property value="imNo"/>
            </s:if>
           </td>
           <td class="center">
           <s:if test="photoFile==null">
           		&nbsp;
           </s:if>
           <s:else>
           	 <a title="点击查看 “<s:property value='name'/>” 的照片" 
             	href="<s:url namespace='/system' action='sysFileItemGet'/>?id=<s:property value='photoFile.id'/>" target="_blank"><img src="../resources/images/photo.gif" width="16" height="16" border="0" alt="照片" /></a>
           </s:else>
           </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>