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

📄 frontpage.jsp

📁 国外的一套开源CRM
💻 JSP
📖 第 1 页 / 共 2 页
字号:
        <td>

         <!-- Table for the lifetime title -->
         <table class="freeFormSectionTitleTable" width="100%">
          <tr>
           <td colspan=2>
            Lifetime
           </td>
          </tr>
         </table>

<% if (leadDashBoard) { %>
         <!-- Table for the lifetime LEADS info -->
         <table class="freeFormSectionDisplayTable" width="100%">
          <tr>
           <td class="freeFormSectionLabelOptional">
            Leads Assigned:
           </td>
           <td class="freeFormSectionField">
            <%=String.valueOf(allLeadsAssigned)%>
           </td>
          </tr>
          <tr>
           <td class="freeFormSectionLabelOptional">
            Leads Converted:
           </td>
           <td class="freeFormSectionField">
            <%=String.valueOf(allLeadsConverted)%>
           </td>
          </tr>
          <tr>
           <td class="freeFormSectionLabelOptional">
            Conversion Rate:
           </td>
           <td class="freeFormSectionField">
            %<%=decimalFormat.format(allLeadConversionRate)%>
           </td>
          </tr>
          <tr>
           <td class="freeFormSectionLabelOptional">
            Time since last lead conversion:
           </td>
           <td class="freeFormSectionField">
            <%=daysSinceLastLeadConversion(partyId, daysFromHire, delegator)%>&nbsp;days
           </td>
          </tr>
          <tr>
           <td class="freeFormSectionLabelOptional">
            Tenure:
           </td>
           <td class="freeFormSectionField">
            <%=daysFromHire%>&nbsp;days
           </td>
          </tr>
         </table>
<% } else { %>
         <!-- Table for the lifetime info -->
         <table class="freeFormSectionDisplayTable" width="100%">
          <tr>
           <td class="freeFormSectionLabelOptional">
            Time since last sale:
           </td>
           <td class="freeFormSectionField">
            <%=daysSinceLastSale(partyId, daysFromHire, delegator)%>&nbsp;days
           </td>
          </tr>
          <tr>
           <td class="freeFormSectionLabelOptional">
            Tenure:
           </td>
           <td class="freeFormSectionField">
            <%=daysFromHire%>&nbsp;days
           </td>
          </tr>
          <tr>
           <td class="freeFormSectionLabelOptional">
            Personal Goal:
           </td>
           <td class="freeFormSectionField">
            &nbsp;
           </td>
          </tr>
         </table>
<% } %>

        </td>
       </tr>
      </table>

     </td>

     <!-- Cell for quarterly sales chart -->
     <td valign="top">

      <!-- Table for the chart title and chart (to make things line up with the
           year-to-date and lifetime area, and makes the header the same size as the contents.) -->
      <table border="0">
       <tr>
        <td>

<% if (leadDashBoard) { %>
         <!-- Table for the lead chart title -->
         <table class="freeFormSectionTitleTable" width="100%">
          <tr>
           <td>
            Leads Converted
           </td>
          </tr>
         </table>

         <!-- Table for the chart -->
         <table class="tabularSectionDisplayTable" width="100%">
          <tr>
           <td>
            <img src="<ofbiz:url>/ChartServlet</ofbiz:url>?report=leadsForQuarter">
           </td>
          </tr>
         </table>
<% } else { %>
         <!-- Table for the chart title -->
         <table class="freeFormSectionTitleTable" width="100%">
          <tr>
           <td>
            Current Quarter Sales
           </td>
          </tr>
         </table>

         <!-- Table for the chart -->
         <table class="tabularSectionDisplayTable" width="100%">
          <tr>
           <td>
            <img src="<ofbiz:url>/ChartServlet</ofbiz:url>?report=salesForQuarter">
           </td>
          </tr>
         </table>
<% } %>
        </td>
       </tr>
      </table>

     </td>
     <td valign="top">

      <!-- Table for calendar (to make things line up with the
           year-to-date and lifetime area) -->
      <table border="0">
       <tr>
        <td>

         <!-- Table for the calendar -->
         <%=CalendarView.getSmallMonthCalendarHTML(year,month,iday,"frontpage")%>

        </td>
       </tr>
      </table>

     </td>
    </tr>
   </table>

  </td>
 </tr>
 <!-- End top half of screen. -->

 <!-- Start bottom half of screen. -->
 <tr>
  <td>

   <!-- Table to hold the columns of the bottom half of the screen -->
   <table border=0>
    <tr>

     <!-- Cell to hold the opportunity list. -->
     <td valign="top">

      <!-- Table for the opportunity list title and contents
           (makes the title the same size as the contents.) -->
      <table border="0">
       <tr>
        <td>

<% if (leadDashBoard) { %>
         <!-- Table for the LEAD list title -->
         <table class="tabularSectionTitleTable" width="100%">
          <tr>
           <td colspan=2>
            Most Recent Open Leads
           </td>
          </tr>
         </table>

         <!-- Table for the opportunity list header and contents -->
         <table class="tabularSectionDisplayTable" width="100%">

          <!-- Recent Lead List Header -->
          <tr class="tabularSectionLabel">
           <td>
            Created
           </td>
           <td>
            Lead Name
           </td>
           <td>
            Units
           </td>
           <td>
            Status
           </td>
          </tr>

<%
    GenericValue leadDetails[] = getRecentLeads(partyId, delegator);
    if(leadDetails.length == 0){
    %>
          <!-- No Opportunities Found Row -->
          <tr class="tabularSectionField1">
           <td colspan="4">
            No Open Leads Found
           </td>
          </tr>
    <%
    } else {
         GenericValue leadDetail = null;
         String rowClass = "";
         for(int i=0;i<leadDetails.length;i++){
            if (i > 20) break;
            leadDetail = leadDetails[i];
            rowClass = (((i % 2) != 0) ? "tabularSectionField2" : "tabularSectionField1");
            String leadId = leadDetail.getString("leadId") == null ? "" : leadDetail.getString("leadId");
            String firstName = leadDetail.getString("firstName") == null ? "" : leadDetail.getString("firstName");
            String lastName = leadDetail.getString("lastName") == null ? "" : leadDetail.getString("lastName");
            String leadCompanyName = leadDetail.getString("companyName") == null ? "" : leadDetail.getString("companyName");
            String leadName = firstName + " " + lastName;
            if (!leadCompanyName.equals("")) leadName += " (" + leadCompanyName + ")";
            String unitsRequired  = decimalFormat.format(leadDetail.getLong("unitsRequired") == null ? 0 : leadDetail.getLong("unitsRequired").longValue());
            String createdDateString = simpleDateFormat.format(leadDetail.get("createdDate"));
            String statusId = leadDetail.getString("statusId") == null ? "" : leadDetail.getString("statusId");
            String statusDescription = CodeHelper.getCodeValue("LEAD_STATUS", statusId, delegator);

      %>
          <!-- Opportunity List Row -->
          <tr class="<%=rowClass%>">
           <td>
            <%=createdDateString%>
           </td>
           <td>
            <a href="<ofbiz:url>/leads</ofbiz:url>?leadId=<%=leadId%>"><%=leadName%></a>
           </td>
           <td ALIGN="right">
            <%=unitsRequired%>
           </td>
           <td>
            <%=statusDescription%>
           </td>
          </tr>
<%
      }
    }
%>
         </table>
<% } else { %>
         <!-- Table for the opportunity list title -->
         <table class="tabularSectionTitleTable" width="100%">
          <tr>
           <td colspan=2>
            Current Quarter Opportunities
           </td>
          </tr>
         </table>

         <!-- Table for the opportunity list header and contents -->
         <table class="tabularSectionDisplayTable" width="100%">

          <!-- Opportunity List Header -->
          <tr class="tabularSectionLabel">
           <td>
            Projected Close
           </td>
           <td>
            Opportunity Name
           </td>
           <td>
            Amount
           </td>
           <td>
            Status
           </td>
          </tr>

<%
    GenericValue dealDetails[] = getQuarterlyOpportunities(partyId, delegator, fyStartMonth);
    if(dealDetails.length == 0){
    %>
          <!-- No Opportunities Found Row -->
          <tr class="tabularSectionField1">
           <td colspan="4">
            No Opportunities Found
           </td>
          </tr>
    <%
    } else {
         GenericValue dealDetail = null;
         String rowClass = "";
         for(int i=0;i<dealDetails.length;i++){
            if (i > 20) break;
            dealDetail = dealDetails[i];
           rowClass = (((i % 2) != 0) ? "tabularSectionField2" : "tabularSectionField1");
           String dealStatusId = dealDetail.getString("dealStatusId") == null ? "" : dealDetail.getString("dealStatusId");
           String dealStatusDescription = CodeHelper.getCodeValue("OPPORTUNITY_STATUS", dealStatusId, delegator);
           if (dealDetail.getString("dealStatusId").equals("10") && dealDetail.get("actualCloseDate")!=null) {
		     String actualCloseDateString = simpleDateFormat.format(dealDetail.get("actualCloseDate"));
             dealStatusDescription += " on " + actualCloseDateString;
           }
      %>
          <!-- Opportunity List Row -->
          <tr class="<%=rowClass%>">
           <td>
            <%=simpleDateFormat.format(dealDetail.get("projectedCloseDate"))%>
           </td>
           <td>
            <a href="<ofbiz:url>/deals</ofbiz:url>?dealId=<%=dealDetail.get("dealId")%>"><%=dealDetail.get("dealName")%></a>
           </td>
           <td ALIGN="right">
            $<%=decimalFormat.format(dealDetail.get("amount"))%>
           </td>
           <td>
            <%=dealStatusDescription%>
           </td>
          </tr>
<%
      }
    }
%>
         </table>
<% } %>
        </td>
       </tr>
      </table>

     </td>

     <!-- Cell for activity list -->
     <td  valign="top">

      <!-- Table to divide the 2 activity lists -->
      <table border="0">
       <tr>
        <td>

         <!-- Table for the daily activity list title -->
         <table class="tabularSectionTitleTable" width="100%">
          <tr>
           <td colspan=2>
            Activities For <%=month%>/<%=iday%>/<%=year%>
           </td>
          </tr>
         </table>

<%
    GenericValue activityDetails[] = getDailyActivities(partyId, selectedDayCalendar, delegator);
%>

         <!-- Table for daily activity list -->
         <%@ include file="/includes/simpleActivityList.jsp" %>

        </td>
       </tr>
       <tr>
        <td>

         <!-- Table for the daily activity list title -->
         <table class="tabularSectionTitleTable" width="100%">
          <tr>
           <td colspan=2>
            All Incomplete Activities
           </td>
          </tr>
         </table>

<%
    activityDetails = getIncompleteActivities(partyId, delegator);
%>

         <!-- Table for incomplete activities list -->
         <%@ include file="/includes/simpleActivityList.jsp" %>

        </td>
       </tr>
      </table>

     </td>
    </tr>
   </table>

  </td>
 </tr>
 <!-- End bottom half of screen. -->

</table>
</table>

 	  <TABLE CLASS="freeFormSectionDisplayTable">
		       <tr>
		       <td TD WIDTH="453">
		       		<p align="Center"><img border="0" src="/sfaimages/people.jpg" ></p>
		       </td>
		       <td>
		       </tr>
	 </TABLE>

<% } else { %>

<%@ include file="/includes/loginForm.jsp" %>

<%   }%>

<%@ include file="/includes/footer.jsp" %>

⌨️ 快捷键说明

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