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

OA系统

开发平台:

Java

  1. <#--
  2.  *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
  3.  *
  4.  *  Permission is hereby granted, free of charge, to any person obtaining a 
  5.  *  copy of this software and associated documentation files (the "Software"), 
  6.  *  to deal in the Software without restriction, including without limitation 
  7.  *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
  8.  *  and/or sell copies of the Software, and to permit persons to whom the 
  9.  *  Software is furnished to do so, subject to the following conditions:
  10.  *
  11.  *  The above copyright notice and this permission notice shall be included 
  12.  *  in all copies or substantial portions of the Software.
  13.  *
  14.  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
  15.  *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
  16.  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
  17.  *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
  18.  *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
  19.  *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
  20.  *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21.  *
  22.  *@author     Andy Zeneski (jaz@ofbiz.org)
  23.  *@version    $Revision: 1.5 $
  24.  *@since      2.1
  25. -->
  26. <#assign security = requestAttributes.security>
  27. <#assign externalKeyParam = requestAttributes.externalKeyParam>
  28. <#if requestAttributes.userLogin?has_content>
  29. <table align="center" width="100%" border="0" cellspacing="0" cellpadding="0">
  30.   <tr bgcolor="#FFFFFF">
  31.     <td height="15">
  32.   <table width="100%" border="0" cellspacing="0" cellpadding="0">                      
  33.         <tr>        
  34.           <#if security.hasEntityPermission("PARTYMGR", "_VIEW", session)> 
  35.           <#if requestAttributes.isPartyMgrActive?default(false)> 
  36.             <#assign colClass = "mainblock">
  37.             <#assign leftClass = "tabupleft">
  38.             <#assign centerClass = "tabupcenter">
  39.             <#assign rightClass = "tabupright">
  40.             <#assign linkClass = "tablinkselected">
  41.           <#else>
  42.             <#assign colClass = "tabdownblock">
  43.             <#assign leftClass = "tabdownleft">
  44.             <#assign centerClass = "tabdowncenter">
  45.             <#assign rightClass = "tabdownright">
  46.             <#assign linkClass = "tablink">
  47.           </#if>          
  48.           <td height="15" class="${colClass}">
  49.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  50.               <tr>
  51.                 <td class="tabdownleft"><a href="${response.encodeURL("/partymgr/control/main" + externalKeyParam)}" title="Party Manager" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  52.                 <td nowrap="nowrap" class="tabdowncenter"><a href="${response.encodeURL("/partymgr/control/main" + externalKeyParam)}" title="Party Manager" class="${linkClass}">Party</a></td>
  53.                 <td class="tabdownright"><a href="${response.encodeURL("/partymgr/control/main" + externalKeyParam)}" title="Party Manager" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  54.               </tr> 
  55.               <#if !requestAttributes.isPartyMgrActive?default(false)>
  56.               <tr><td colspan="3" class="blackarea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>
  57.               <tr><td colspan="3" class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>                                          
  58.               </#if>
  59.             </table>
  60.           </td>  
  61.           </#if>
  62.           <#if security.hasEntityPermission("MARKETING", "_VIEW", session)>   
  63.           <#if requestAttributes.isMarketingMgrActive?default(false)> 
  64.             <#assign colClass = "mainblock">
  65.             <#assign leftClass = "tabupleft">
  66.             <#assign centerClass = "tabupcenter">
  67.             <#assign rightClass = "tabupright">
  68.             <#assign linkClass = "tablinkselected">
  69.           <#else>
  70.             <#assign colClass = "tabdownblock">
  71.             <#assign leftClass = "tabdownleft">
  72.             <#assign centerClass = "tabdowncenter">
  73.             <#assign rightClass = "tabdownright">
  74.             <#assign linkClass = "tablink">
  75.           </#if>                       
  76.           <td height="15" class="${colClass}">
  77.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  78.               <tr>
  79.                 <td class="${leftClass}"><a href="${response.encodeURL("/marketing/control/main" + externalKeyParam)}" title="Marketing Manager" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  80.                 <td nowrap="nowrap" class="${centerClass}"><a href="${response.encodeURL("/marketing/control/main" + externalKeyParam)}" title="Marketing Manager" class="${linkClass}">Marketing</a></td>
  81.                 <td class="${rightClass}"><a href="${response.encodeURL("/marketing/control/main" + externalKeyParam)}" title="Marketing Manager" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  82.               </tr>
  83.               <#if !requestAttributes.isMarketingMgrActive?default(false)>
  84.               <tr><td colspan="3" class="blackarea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>
  85.               <tr><td colspan="3" class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>               
  86.               </#if>
  87.             </table>
  88.           </td>
  89.           </#if>
  90.           <#if security.hasEntityPermission("CATALOG", "_VIEW", session)>    
  91.           <#if requestAttributes.isCatalogMgrActive?default(false)> 
  92.             <#assign colClass = "mainblock">
  93.             <#assign leftClass = "tabupleft">
  94.             <#assign centerClass = "tabupcenter">
  95.             <#assign rightClass = "tabupright">
  96.             <#assign linkClass = "tablinkselected">
  97.           <#else>
  98.             <#assign colClass = "tabdownblock">
  99.             <#assign leftClass = "tabdownleft">
  100.             <#assign centerClass = "tabdowncenter">
  101.             <#assign rightClass = "tabdownright">
  102.             <#assign linkClass = "tablink">
  103.           </#if>                                                          
  104.           <td height="15" class="${colClass}">
  105.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  106.               <tr>
  107.                 <td class="${leftClass}"><a href="${response.encodeURL("/catalog/control/main" + externalKeyParam)}" title="Catalog Manager" class="${linkClass}selected"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  108.                 <td nowrap="nowrap" class="${centerClass}"><a href="${response.encodeURL("/catalog/control/main" + externalKeyParam)}" title="Catalog Manager" class="${linkClass}">Catalog</a></td>
  109.                 <td class="${rightClass}"><a href="${response.encodeURL("/catalog/control/main" + externalKeyParam)}" title="Catalog Manager" class="${linkClass}selected"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  110.               </tr>  
  111.               <#if !requestAttributes.isCatalogMgrActive?default(false)>
  112.               <tr><td colspan="3" class="blackarea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>
  113.               <tr><td colspan="3" class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>                                           
  114.               </#if>
  115.             </table>
  116.           </td>      
  117.           </#if>
  118.           <#if security.hasEntityPermission("FACILITY", "_VIEW", session)>
  119.           <#if requestAttributes.isFacilityMgrActive?default(false)> 
  120.             <#assign colClass = "mainblock">
  121.             <#assign leftClass = "tabupleft">
  122.             <#assign centerClass = "tabupcenter">
  123.             <#assign rightClass = "tabupright">
  124.             <#assign linkClass = "tablinkselected">
  125.           <#else>
  126.             <#assign colClass = "tabdownblock">
  127.             <#assign leftClass = "tabdownleft">
  128.             <#assign centerClass = "tabdowncenter">
  129.             <#assign rightClass = "tabdownright">
  130.             <#assign linkClass = "tablink">
  131.           </#if>                    
  132.           <td height="15" class="${colClass}">
  133.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  134.               <tr>
  135.                 <td class="${leftClass}"><a href="${response.encodeURL("/facility/control/main" + externalKeyParam)}" title="Facility Manager" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  136.                 <td nowrap="nowrap" class="${centerClass}"><a href="${response.encodeURL("/facility/control/main" + externalKeyParam)}" title="Facility Manager" class="${linkClass}">Facility</a></td>
  137.                 <td class="${rightClass}"><a href="${response.encodeURL("/facility/control/main" + externalKeyParam)}" title="Facility Manager" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  138.               </tr>
  139.               <#if !requestAttributes.isFacilityMgrActive?default(false)>
  140.               <tr><td colspan="3" class="blackarea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>
  141.               <tr><td colspan="3" class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>               
  142.               </#if>
  143.             </table>
  144.           </td>                
  145.           </#if>
  146.           <#if security.hasEntityPermission("ORDERMGR", "_VIEW", session)>  
  147.           <#if requestAttributes.isOrderMgrActive?default(false)> 
  148.             <#assign colClass = "mainblock">
  149.             <#assign leftClass = "tabupleft">
  150.             <#assign centerClass = "tabupcenter">
  151.             <#assign rightClass = "tabupright">
  152.             <#assign linkClass = "tablinkselected">
  153.           <#else>
  154.             <#assign colClass = "tabdownblock">
  155.             <#assign leftClass = "tabdownleft">
  156.             <#assign centerClass = "tabdowncenter">
  157.             <#assign rightClass = "tabdownright">
  158.             <#assign linkClass = "tablink">
  159.           </#if>                                  
  160.           <td height="15" class="${colClass}">
  161.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  162.               <tr>
  163.                 <td class="${leftClass}"><a href="${response.encodeURL("/ordermgr/control/main" + externalKeyParam)}" title="Order Manager" class="${linkClass}selected"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  164.                 <td nowrap="nowrap" class="${centerClass}"><a href="${response.encodeURL("/ordermgr/control/main" + externalKeyParam)}" title="Order Manager" class="${linkClass}">Order</a></td>
  165.                 <td class="${rightClass}"><a href="${response.encodeURL("/ordermgr/control/main" + externalKeyParam)}" title="Order Manager" class="${linkClass}selected"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  166.               </tr> 
  167.               <#if !requestAttributes.isOrderMgrActive?default(false)>
  168.               <tr><td colspan="3" class="blackarea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>
  169.               <tr><td colspan="3" class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>               
  170.               </#if>                                       
  171.             </table>
  172.           </td>
  173.           </#if>
  174.           <#if security.hasEntityPermission("ACCOUNTING", "_VIEW", session)>
  175.           <#if requestAttributes.isAccountingMgrActive?default(false)> 
  176.             <#assign colClass = "mainblock">
  177.             <#assign leftClass = "tabupleft">
  178.             <#assign centerClass = "tabupcenter">
  179.             <#assign rightClass = "tabupright">
  180.             <#assign linkClass = "tablinkselected">
  181.           <#else>
  182.             <#assign colClass = "tabdownblock">
  183.             <#assign leftClass = "tabdownleft">
  184.             <#assign centerClass = "tabdowncenter">
  185.             <#assign rightClass = "tabdownright">
  186.             <#assign linkClass = "tablink">
  187.           </#if>                    
  188.           <td height="15" class="${colClass}">
  189.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  190.               <tr>
  191.                 <td class="${leftClass}"><a href="${response.encodeURL("/accouting/control/main" + externalKeyParam)}" title="Accounting" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  192.                 <td nowrap="nowrap" class="${centerClass}"><a href="${response.encodeURL("/accounting/control/main" + externalKeyParam)}" title="Accounting" class="${linkClass}">Accounting</a></td>
  193.                 <td class="${rightClass}"><a href="${response.encodeURL("/accounting/control/main" + externalKeyParam)}" title="Accounting" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  194.               </tr>
  195.               <#if !requestAttributes.isAccountingMgrActive?default(false)>
  196.               <tr><td colspan="3" class="blackarea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>
  197.               <tr><td colspan="3" class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>               
  198.               </#if>
  199.             </table>
  200.           </td>     
  201.           </#if>               
  202.           <#if security.hasEntityPermission("WORKEFFORTMGR", "_VIEW", session)>
  203.           <#if requestAttributes.isWorkEffortMgrActive?default(false)> 
  204.             <#assign colClass = "mainblock">
  205.             <#assign leftClass = "tabupleft">
  206.             <#assign centerClass = "tabupcenter">
  207.             <#assign rightClass = "tabupright">
  208.             <#assign linkClass = "tablinkselected">
  209.           <#else>
  210.             <#assign colClass = "tabdownblock">
  211.             <#assign leftClass = "tabdownleft">
  212.             <#assign centerClass = "tabdowncenter">
  213.             <#assign rightClass = "tabdownright">
  214.             <#assign linkClass = "tablink">
  215.           </#if>                    
  216.           <td height="15" class="${colClass}">
  217.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  218.               <tr>
  219.                 <td class="${leftClass}"><a href="j${response.encodeURL("/workeffort/control/main" + externalKeyParam)}" title="WorkEffort" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  220.                 <td nowrap="nowrap" class="${centerClass}"><a href="${response.encodeURL("/workeffort/control/main" + externalKeyParam)}" title="WorkEffort" class="${linkClass}">WorkEffort</a></td>
  221.                 <td class="${rightClass}"><a href="${response.encodeURL("/workeffort/control/main" + externalKeyParam)}" title="WorkEffort" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  222.               </tr>
  223.               <#if !requestAttributes.isWorkEffortMgrActive?default(false)>
  224.               <tr><td colspan="3" class="blackarea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>
  225.               <tr><td colspan="3" class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>               
  226.               </#if>
  227.             </table>
  228.           </td>                        
  229.           </#if>
  230.           <#if security.hasEntityPermission("CONTENTMGR", "_VIEW", session)>
  231.           <#if requestAttributes.isContentMgrActive?default(false)> 
  232.             <#assign colClass = "mainblock">
  233.             <#assign leftClass = "tabupleft">
  234.             <#assign centerClass = "tabupcenter">
  235.             <#assign rightClass = "tabupright">
  236.             <#assign linkClass = "tablinkselected">
  237.           <#else>
  238.             <#assign colClass = "tabdownblock">
  239.             <#assign leftClass = "tabdownleft">
  240.             <#assign centerClass = "tabdowncenter">
  241.             <#assign rightClass = "tabdownright">
  242.             <#assign linkClass = "tablink">
  243.           </#if>                    
  244.           <td height="15" class="${colClass}">
  245.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  246.               <tr>
  247.                 <td class="${leftClass}"><a href="${response.encodeURL("/content/control/main" + externalKeyParam)}" title="Content Manager" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  248.                 <td nowrap="nowrap" class="${centerClass}"><a href="${response.encodeURL("/content/control/main" + externalKeyParam)}" title="Content Manager" class="${linkClass}">Content</a></td>
  249.                 <td class="${rightClass}"><a href="${response.encodeURL("/content/control/main" + externalKeyParam)}" title="Content Manager" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  250.               </tr>
  251.               <#if !requestAttributes.isContentMgrActive?default(false)>
  252.               <tr><td colspan="3" class="blackarea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>
  253.               <tr><td colspan="3" class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>               
  254.               </#if>
  255.             </table>
  256.           </td>  
  257.           </#if>          
  258.           <#if requestAttributes.isWebToolsActive?default(false)> 
  259.             <#assign colClass = "mainblock">
  260.             <#assign leftClass = "tabupleft">
  261.             <#assign centerClass = "tabupcenter">
  262.             <#assign rightClass = "tabupright">
  263.             <#assign linkClass = "tablinkselected">
  264.           <#else>
  265.             <#assign colClass = "tabdownblock">
  266.             <#assign leftClass = "tabdownleft">
  267.             <#assign centerClass = "tabdowncenter">
  268.             <#assign rightClass = "tabdownright">
  269.             <#assign linkClass = "tablink">
  270.           </#if>          
  271.           <td height="15" class="${colClass}">
  272.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  273.               <tr>
  274.                 <td class="${leftClass}"><a href="${response.encodeURL("/webtools/control/main" + externalKeyParam)}" title="WebTools" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  275.                 <td nowrap="nowrap" class="${centerClass}"><a href="${response.encodeURL("/webtools/control/main" + externalKeyParam)}" title="WebTools" class="${linkClass}">WebTools</a></td>
  276.                 <td class="${rightClass}"><a href="${response.encodeURL("/webtools/control/main" + externalKeyParam)}" title="WebTools" class="${linkClass}"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" width="10" height="15" border="0"></a></td>
  277.               </tr>
  278.               <#if !requestAttributes.isWebToolsActive?default(false)>
  279.               <tr><td colspan="3" class="blackarea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>
  280.               <tr><td colspan="3" class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td></tr>               
  281.               </#if>
  282.             </table>
  283.           </td>            
  284.           <td width="100%" style="vertical-align: bottom;">
  285.             <table width="100%" border="0" cellspacing="0" cellpadding="0">                
  286.               <tr>
  287.                 <td class="whitearea"><img src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" alt="" height="1"></td>               
  288.               </tr>               
  289.             </table>
  290.           </td>           
  291.         </tr>        
  292.       </table>
  293.     </td>
  294.   </tr>
  295. </table>
  296. </#if>