高章伟
2022-02-18 650847118307a1c9ae0ada15b7c69bbf5792c54c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<apex:page controller="TrialCustomerPortalHomePageController" showHeader="false">
<script type="text/javascript">
 
var date1 = '{!TODAY() + 7}';
var date2 = '{!TODAY() + 15}';
var date3 = '{!TODAY() + 24}';
 
</script>
 
<apex:image value="{!URLFOR($Resource.TrialPortalBanner)}" width="804" style="margin-bottom: 3px;"/>
<apex:form >   
   <!-- This section shows the customer's recent cases in a table -->
    <apex:pageBlock title="My Recent Cases">
      <apex:pageBlockTable value="{!MyRecentCases}" var="currentCase" id="caseTable">
         <apex:column >
            <apex:facet name="header">
                 <apex:commandLink value="Case Number" action="{!SortCases}" rerender="caseTable">
                     <apex:param name="sortField2" value="CaseNumber" assignTo="{!sortField2}"/>
                 </apex:commandLink>
            </apex:facet>
            <a href="/{!currentCase.id}" target="_top">{!currentCase.CaseNumber}</a>
         </apex:column>
         <apex:column >
            <apex:facet name="header">
                 <apex:commandLink value="Subject" action="{!SortCases}" rerender="caseTable">
                     <apex:param name="sortField2" value="Subject" assignTo="{!sortField2}"/>
                 </apex:commandLink>
            </apex:facet>
            <a href="/{!currentCase.id}" target="_top">{!currentCase.Subject}</a>
         </apex:column>
         <apex:column >
            <apex:facet name="header">
                 <apex:commandLink value="Status" action="{!SortCases}" rerender="caseTable">
                     <apex:param name="sortField2" value="Status" assignTo="{!sortField2}"/>
                 </apex:commandLink>
            </apex:facet>
            <apex:outputField value="{!currentCase.Status}" />
         </apex:column> 
 
      </apex:pageBlockTable>
   </apex:pageBlock>
    
   <!-- This section shows the top solutions in a table -->
    <div class="apexp">
        <div class="bPageBlock brandSecondaryBrd apexDefaultPageBlock secondaryPalette">
            <div class="pbHeader">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                        <tr>
                            <td class="pbTitle">
                                <h2 class="mainTitle">Popular Articles</h2>
                            </td>
                            <td>&nbsp;</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="pbBody">
                <table class="list " border="0" cellpadding="0" cellspacing="0">
                    <colgroup span="2"></colgroup>
                    <thead class="rich-table-thead">
                        <tr class="headerRow ">
                            <th class="headerRow  " scope="col" colspan="1">
                                <div>
                                    Article Title
                                </div>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <knowledge:articleList articleVar="article" sortBy="mostViewed" pageSize="10">
                            <tr class="dataRow odd" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}">
                                <td class="dataCell" colspan="1">
                                    <a href="{!URLFOR($Action.KnowledgeArticle.View, article.id)}">{!article.title}</a>
                                </td>
                            </tr>      
                        </knowledge:articleList>
                    </tbody>
                </table>
            </div>
            <div class="pbFooter secondaryPalette">
                <div class="bg"></div>
            </div>
        </div>
    </div>
 
 
   <!-- This section shows the most popular ideas (uncomment it to show) -->
   <!--
   <apex:pageBlock title="Popular Ideas">
      <apex:pageBlockTable value="{!PopularIdeas}" var="currentIdea" id="ideaTable">
         <apex:column >
            <apex:facet name="header">
                 <apex:commandLink value="Idea Name" action="{!SortIdeas}" rerender="ideaTable">
                     <apex:param name="sortField4" value="Title" assignTo="{!sortField4}"/>
                 </apex:commandLink>
            </apex:facet>
            <a href="/{!currentIdea.id}" target="_top">{!currentIdea.Title}</a>
         </apex:column>
         <apex:column >
            <apex:facet name="header">
                 <apex:commandLink value="Category" action="{!SortIdeas}" rerender="ideaTable">
                     <apex:param name="sortField4" value="Category" assignTo="{!sortField4}"/>
                 </apex:commandLink>
            </apex:facet>         
            <apex:outputField value="{!currentIdea.Categories}" />
         </apex:column>
         <apex:column >
            <apex:facet name="header">
                 <apex:commandLink value="Votes" action="{!SortIdeas}" rerender="ideaTable">
                     <apex:param name="sortField4" value="VoteTotal" assignTo="{!sortField4}"/>
                 </apex:commandLink>
            </apex:facet>         
            <apex:outputField value="{!currentIdea.VoteTotal}" />         
         </apex:column>
      </apex:pageBlockTable>
   </apex:pageBlock>
    -->
</apex:form>  
<style>
   .welcome_marketingheaderimage {
        width:30%;
        padding:10px 0;
   }
   body{
    /*
        background-color: transparent;
    */      
    }
    #intro {
        font-size: 12px;
        font-weight: bold;
        text-align: center;
    }
    
    .text{
        font-size: 12px;
        text-align: top left;
    }
    
    .list .headerRow th, .list .headerRow th a {
        font-size: 12px;
    }
    
    .list tr.even th, .list tr.odd th, .list tr.even td, .list tr.odd td {
        font-size: 12px;
    }
    
    .bPageBlock .pbTitle {
        font-size: 12px;
    }
    
    .bPageBlock .pbHeader { /*Header section*/
        padding: 4px;
    }
    
/** Uncomment below for Rounded Data Tables on Homepage **/
    
    /*
    .bPageBlock .pbHeader { 
        padding: 4px;
        
            -webkit-border-top-left-radius: 6px;
            -moz-border-radius-topright: 6px;
            -webkit-border-top-right-radius: 6px;
        box-shadow: 0px 2px 6px #ccc;
        -moz-border-radius-topleft:6px;
        -moz-border-radius-topright:6px;
        border-left:1px solid #C1C1C1;
        border-right:1px solid #C1C1C1;
        border-top:1px solid #C1C1C1;
    }
    .bPageBlock .pbBody {
        -moz-border-radius-bottomleft:6px;
        -moz-border-radius-bottomright:6px;
        background:none repeat scroll 0 0 white;
        border-bottom:1px solid #C1C1C1;
        border-left:1px solid #C1C1C1;
        border-right:1px solid #C1C1C1;
        background-color:#FFFFFF;
    }
    .bPageBlock, .individualPalette .bPageBlock {
        background:none repeat scroll 0 0 transparent;
        border:medium none;
        background-color:#FFFFFF;
    }
   */     
</style>
</apex:page>