<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<script type="text/javascript" src="../resources/js/init.js"></script>
<%-- =================== message begin =================== --%>
<s:if test="message!=null">
<table width="100%" border="0" cellpadding="0"  align="center" cellspacing="0" class="table_line" 
	id="common_msaage_box" style="margin:0 0 10px 0; display:;">
  <tr>
    <td width="1%" style="padding:5px;">
    	<s:if test="!message.success">
        	<img src="../resources/images/warning.gif" style="float:left;">
        </s:if>
        <s:else>
    		<img src="../resources/images/info.gif" style="float:left;">
    	</s:else>
    </td>
    <td width="98%" style="padding:5px;" class="message_<s:property value='message.success'/>">
    	<s:property value="message.message" escape="false"/>
        <s:if test="!message.success && message.exception.message!=null && message.exception.message!='' ">
        &nbsp;( <s:property value="message.exception.message" escape="false"/> )
        </s:if>
    </td>
    <td width="1%" valign="top" style="padding:5px;">
    	<img style="cursor:pointer;" title="隐藏提示信息" onclick="hideMessageBox()"
          src="../resources/images/del.gif" width="14" height="12" alt="隐藏" />
    	<script type="text/javascript">
        	function hideMessageBox(){
				document.getElementById("common_msaage_box").style.display="none";	
			}
        </script>
    </td>
  </tr>
  <s:if test="message.errorList!=null && message.errorList.size>0">
      <s:iterator value="message.errorList">
      <tr>
        <td>&nbsp;</td>
        <td style="padding:5px;">
        	    <span class="item"><s:property/></span>    
        </td>
        <td>&nbsp;</td>
      </tr>
      </s:iterator>
  </s:if>
</table>
</s:if>
<%-- =================== message end =================== --%>
