<%@ 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" />
<link href="../resources/style/base.css" rel="stylesheet" type="text/css"/>
<s:include value="../common/head.jsp" />
<title>image</title>
</head>
<body style="padding:0; margin:0; text-align:center;">
<s:if test="#parameters.id==null || #parameters.id[0].length()<1">
	<table width="${param.width}" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="${param.height}" align="center" class="empl_photo">无照片</td>
        </tr>
      </table>
</s:if>
<s:else>
	<a href="<s:url namespace='/system' action='sysFileItemGet'/>?id=${param.id}" target="_blank"> 
		<img id="photoImg" src="<s:url namespace='/system' action='sysFileItemGet'/>?id=${param.id}" 
		style="border:1px #CCC solid;" title="点击查看大图"/>
	</a>
    <script language="javascript">
		$(function(){
			resizeImg('photoImg',${param.width},${param.height});
		});
	</script>
</s:else>
</body>
</html>