main_template.jsp
上传用户:hbzhoufeng
上传日期:2009-12-23
资源大小:75k
文件大小:3k
源码类别:

OA系统

开发平台:

Java

  1. <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <%@ include file="/includes/envsetup.jsp" %>
  3. <%@ taglib uri='ofbizTags' prefix='ofbiz' %>
  4. <%@ taglib uri='regions' prefix='region' %>
  5. <html>
  6. <head>
  7.     <%@page contentType='text/html; charset=UTF-8'%>
  8.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  9.     <title><%EntityField.run("layoutSettings", "companyName", pageContext);%>: <region:render section='title'/></title>
  10.     <script language='javascript' src='<ofbiz:contenturl>/images/calendar1.js</ofbiz:contenturl>' type='text/javascript'></script>
  11.     <link rel='stylesheet' href='<ofbiz:contenturl>/images/maincss.css</ofbiz:contenturl>' type='text/css'>
  12.     <link rel='stylesheet' href='<ofbiz:contenturl>/images/tabstyles.css</ofbiz:contenturl>' type='text/css'>    
  13. </head>
  14. <body>
  15. <TABLE border=0 width='100%' cellspacing='0' cellpadding='0' class='headerboxoutside'>
  16.   <TR>
  17.     <TD width='100%'>
  18.       <table width='100%' border='0' cellspacing='0' cellpadding='0' class='headerboxtop'>
  19.         <tr>
  20.           <%if (UtilValidate.isNotEmpty((String) layoutSettings.get("headerImageUrl"))) {%>
  21.             <TD align=left width='1%'><IMG alt="<%EntityField.run("layoutSettings", "companyName", pageContext);%>" src='<ofbiz:contenturl><%=(String) layoutSettings.get("headerImageUrl")%></ofbiz:contenturl>'></TD>
  22.           <%}%>         
  23.           <TD align=right width='1%' nowrap <%EntityField.run("layoutSettings", "headerRightBackgroundUrl", "background='", "'", pageContext);%>>
  24.               <ofbiz:if name="person">
  25.                 <div class="insideHeaderText">Welcome<%EntityField.run("person", "firstName", "&nbsp;", "", pageContext);%><%EntityField.run("person", "lastName", "&nbsp;", "", pageContext);%>!</div>
  26.               </ofbiz:if>
  27.               <ofbiz:unless name="person">
  28.                 <ofbiz:if name="partyGroup">
  29.                   <div class="insideHeaderText">Welcome<%EntityField.run("partyGroup", "groupName", "", "", pageContext);%>!</div>
  30.                 </ofbiz:if>
  31.                 <ofbiz:unless name="partyGroup">
  32.                   <div class="insideHeaderText">Welcome!</div>
  33.                 </ofbiz:unless>
  34.               </ofbiz:unless>
  35.             <div class="insideHeaderText">&nbsp;<%=UtilDateTime.nowTimestamp().toString()%></div>
  36.           </td>
  37.         </tr>
  38.       </table>
  39.     </TD>
  40.   </TR>
  41. </TABLE>
  42. <region:render section='appbar'/>
  43. <div class="centerarea">
  44.   <region:render section='header'/>
  45.   <div class="contentarea">
  46.     <div style='border: 0; margin: 0; padding: 0; width: 100%;'>
  47.       <table style='border: 0; margin: 0; padding: 0; width: 100%;' cellpadding='0' cellspacing='0'>
  48.         <tr>
  49.           <region:render section='leftbar'/>
  50.           <td width='100%' valign='top' align='left'>
  51.             <region:render section='error'/>
  52.             <region:render section='content'/>
  53.           </td>
  54.           <region:render section='rightbar'/>
  55.         </tr>
  56.       </table>       
  57.     </div>
  58.     <div class='spacer'></div>
  59.   </div>
  60. </div>
  61. <region:render section='footer'/>
  62. </body>
  63. </html>