⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.jsp

📁 国外的一套开源CRM
💻 JSP
字号:
<BASE target="content">

<%@ page import="org.ofbiz.base.util.*" %>
<%@ page import="org.ofbiz.security.*" %>
<%@ page import="com.sourcetap.sfa.ui.UIScreenSection" %>
<%@ include file="/includes/crossbrowser.js" %>
<%@ include file="/includes/outlook.js" %>
<%@ include file="/includes/header.jsp" %>
<%@ include file="/includes/getMenuPrivileges.jsp" %>

<STYLE>
  div    {
         position:absolute;
         }
</STYLE>

<SCRIPT>

// ---------------------------------------------------------------------------
// Example of howto: use OutlookBar
// ---------------------------------------------------------------------------


  //create OutlookBar
  var o = new createOutlookBar('Bar',0,0,screenSize.width,screenSize.height,'#6699CC','white')//'#000099') // OutlookBar
  var p
  var mtarget = "parent.mainwindow.content.location"

  //create first panel
  p = new createPanel('l4','Sales');

<% if (menuPrivileges.contains(MENU_DASHBOARD)) { %>
  p.addButton('/sfaimages/screens.gif','Dashboard', mtarget+'="/sfa/control/frontpage"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_LEADS)) { %>
  p.addButton('/sfaimages/leads.gif','Leads', mtarget+'="/sfa/control/leadHome?action=<%=UIScreenSection.ACTION_QUERY%>&savedQueryName=<%=UIQuery.LAST_QUERY_NAME_URL_ENCODED%>"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_ACCOUNTS)) { %>
  p.addButton('/sfaimages/accounts.gif','Accounts', mtarget+'="/sfa/control/accounts"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_CONTACTS)) { %>
  p.addButton('/sfaimages/contacts.gif','Contacts', mtarget+'="/sfa/control/contacts"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_OPPORTUNITIES)) { %>
  p.addButton('/sfaimages/opportunities.gif','Opportunities', mtarget+'="/sfa/control/deals"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_ACTIVITIES)) { %>
  p.addButton('/sfaimages/activities.gif','Activities', mtarget+'="/sfa/control/activities"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_TIME_MANAGEMENT)) { %>
  p.addButton('/sfaimages/clock.gif','Time Management', mtarget+'="/sfa/control/activityCalendar"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_FORECASTS)) { %>
  p.addButton('/sfaimages/forecasts.gif','Forecasts', mtarget+'="/sfa/control/forecasts"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_PRODUCTS)) { %>
  p.addButton('/sfaimages/products.gif','Products', mtarget+'="/sfa/control/productsAdmin"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_TERRITORIES)) { %>
  p.addButton('/sfaimages/territories.gif','Territories', mtarget+'="/sfa/control/territory"');
<% } %>

  <% if (menuPrivileges.contains(MENU_REPORT_BUILDER_RPT)) { %>
  p.addButton('/sfaimages/quotas.gif','Report Builder', mtarget+'="/sfa/reports/uiReport.jsp?action=start"');
<% } %>


<% if (menuPrivileges.contains(MENU_XFER)) { %>
  p.addButton('/sfaimages/Refresh24.gif','Import/Export', mtarget+'="/sfa/control/xferHome"');
<% } %>
  
  o.addPanel(p);

  p = new createPanel('p','Services');
<% if (menuPrivileges.contains(MENU_ISSUE_TRACKING)) { %>
  p.addButton('/sfaimages/issues.gif','Issue Tracking', mtarget+'="/sfa/control/issues"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_CURRENT_ISSUES)) { %>
  p.addButton('/sfaimages/issuelist.gif','Current Issues', mtarget+'="/sfa/control/issueListReportQuery?action=<%=UIScreenSection.ACTION_SHOW_QUERY_REPORT%>"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_ISSUE_CHARTS)) { %>
 // p.addButton('/sfaimages/forecasts.gif','Issue Charts', mtarget+'="/sfa/control/issueChartFrame?chart=1"');
<% } %>
  
  o.addPanel(p);

  p = new createPanel('l','Reports');
<% if (menuPrivileges.contains(MENU_REPORT_BUILDER_RPT)) { %>
  p.addButton('/sfaimages/quotas.gif','Report Builder', mtarget+'="/sfa/reports/uiReport.jsp?action=start"');
<% } %>
<% if (menuPrivileges.contains(MENU_ACCOUNT_LIST_RPT)) { %>
  p.addButton('/sfaimages/accounts.gif','Account List', mtarget+'="/sfa/control/accountListReportQuery?action=<%=UIScreenSection.ACTION_SHOW_QUERY_REPORT%>"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_CONTACT_LIST_RPT)) { %>
  p.addButton('/sfaimages/contacts.gif','Contact List', mtarget+'="/sfa/control/contactListReportQuery?action=<%=UIScreenSection.ACTION_SHOW_QUERY_REPORT%>"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_PIPELINE_RPT)) { %>
  p.addButton('/sfaimages/quotas.gif','Pipeline Report', mtarget+'="/sfa/control/opportunityPipelineReportQuery?action=<%=UIScreenSection.ACTION_SHOW_QUERY_REPORT%>"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_PIPELINE_CHART)) { %>
  //p.addButton('/sfaimages/forecasts.gif','Pipeline Chart', mtarget+'="/sfa/control/pipelineChart"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_WIN_LOSS_RPT)) { %>
  //p.addButton('/sfaimages/winloss.gif','Win Loss', mtarget+'="/sfa/control/frontpage"');
<% } %>
  
<% if (menuPrivileges.contains(MENU_ACTIVITIES_RPT)) { %>
  p.addButton('/sfaimages/clock.gif','Activities', mtarget+'="/sfa/control/activitiesReportQuery?action=<%=UIScreenSection.ACTION_SHOW_QUERY_REPORT%>"');
<% } %>

<% if (menuPrivileges.contains(MENU_ACTIVITIES_RPT)) { %>
  p.addButton('/sfaimages/leads.gif','Lead Report', mtarget+'="/sfa/control/leadReport?groupName=status"');
<% } %>  
  
<% if (menuPrivileges.contains(MENU_OPPORTUNITY_OVERVIEW_RPT)) { %>
  p.addButton('/sfaimages/opportunities.gif','Opportunity Overview', mtarget+'="/sfa/control/opportunityOverviewReportQuery?action=<%=UIScreenSection.ACTION_SHOW_QUERY_REPORT%>"');
<% } %>

  o.addPanel(p);

  p = new createPanel('l2','Admin');
<% if (menuPrivileges.contains(MENU_MY_COMPANY)) { %>
  p.addButton('/sfaimages/accounts.gif','My Company', mtarget+'="/sfa/control/myCompany"');
<% } %>

<% if (menuPrivileges.contains(MENU_APPLICATIONS)) { %>
  p.addButton('/sfaimages/applications.gif','Applications', mtarget+'="/sfa/control/applications"');
<% } %>

<% if (menuPrivileges.contains(MENU_SCREENS)) { %>
  p.addButton('/sfaimages/screens.gif','Screens', mtarget+'="/sfa/control/uiScreen"');
<% } %>

<% if (menuPrivileges.contains(MENU_ENTITIES)) { %>
  p.addButton('/sfaimages/account.gif','Entities', mtarget+'="/sfa/control/uiEntity"');
<% } %>

<% if (menuPrivileges.contains(MENU_CODES)) { %>
  p.addButton('/sfaimages/codes.gif','Codes', mtarget+'="/sfa/control/codes"');
<% } %>

<% if (menuPrivileges.contains(MENU_DISPLAY_TYPES)) { %>
  p.addButton('/sfaimages/display.gif','Display Types', mtarget+'="/sfa/control/uiDisplayType"');
<% } %>

<% if (menuPrivileges.contains(MENU_PREFERENCES)) { %>
  p.addButton('/sfaimages/admin3.gif','Preferences', mtarget+'="/sfa/control/preferences"');
<% } %>

<% if (menuPrivileges.contains(MENU_LEAD_QUEUES)) { %>
  p.addButton('/sfaimages/leadQueue.gif','Lead Queues', mtarget+'="/sfa/control/leadQueues"');
<% } %>

<% if (menuPrivileges.contains(MENU_LEAD_RULES)) { %>
  p.addButton('/sfaimages/leadRule.gif', 'Lead Rules', mtarget+'="/sfa/control/leadRules"');
<% } %>

<% if (menuPrivileges.contains(MENU_STEPS_TO_CLOSE)) { %>
  p.addButton('/sfaimages/admin4.gif','Steps To Close', mtarget+'="/sfa/control/stepsToCloseAdmin"');
<% } %>

<% if (menuPrivileges.contains(MENU_REPLICATION)) { %>
  p.addButton('/sfaimages/admin2.gif','Replication', mtarget+'="/sfa/control/replicationLogin"');
<% } %>

<% if (menuPrivileges.contains(MENU_SQL_QUERY)) { %>
  p.addButton('/sfaimages/search.gif','Sql Query', mtarget+'="/sfa/control/sqlQueryInput"');
<% } %>

<% if (menuPrivileges.contains(MENU_USER_TRANSFER)) { %>
  p.addButton('/sfaimages/contacts.gif','User Transfer', mtarget+'="/sfa/control/contactTransfer"');
<% } %>

  o.addPanel(p);



  o.draw();         //draw the OutlookBar
  o.showPanel(0);

//-----------------------------------------------------------------------------
//functions to manage window resize
//-----------------------------------------------------------------------------
//resize OP5 (test screenSize every 100ms)
function resize_op5() {
  if (bt.op5) {
    o.showPanel(o.aktPanel);
    var s = new createPageSize();
    if ((screenSize.width!=s.width) || (screenSize.height!=s.height)) {
      screenSize=new createPageSize();
      //need setTimeout or resize on window-maximize will not work correct!
      //ben鰐ige das setTimeout oder das Maximieren funktioniert nicht richtig
      setTimeout("o.resize(0,0,screenSize.width,screenSize.height)",100);
    }
    setTimeout("resize_op5()",100);
  }
}

//resize IE & NS (onResize event!)
function myOnResize() {
  if (bt.ie4 || bt.ie5 || bt.ns5) {
    var s=new createPageSize();
    o.resize(0,0,s.width,s.height);
  }
  else
    if (bt.ns4) location.reload();
}

</SCRIPT>



</head>
<!-- need an onResize event to redraw outlookbar after pagesize changes! -->
<!-- OP5 does not support onResize event! use setTimeout every 100ms -->
<body onLoad="resize_op5();" onResize="myOnResize();">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -