📄 leadfrontpage.jsp
字号:
</tr>
</table>
</td>
</tr>
<tr>
<td>
<!-- Table for the lifetime title -->
<table class="freeFormSectionTitleTable" width="100%">
<tr>
<td colspan=2>
Lifetime
</td>
</tr>
</table>
<!-- 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)%> days
</td>
</tr>
<tr>
<td class="freeFormSectionLabelOptional">
Tenure:
</td>
<td class="freeFormSectionField">
<%=daysFromHire%> days
</td>
</tr>
<tr>
<td class="freeFormSectionLabelOptional">
Personal Goal:
</td>
<td class="freeFormSectionField">
</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>
<!-- 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>/chartServer</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>
<!-- 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++){
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 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 + -