高章伟
2022-03-18 4bfe21c4b5ddc089ae5a95f4b10f6cff148b690d
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
<apex:page id="Page" showHeader="false" sidebar="false" Controller="PersonalCalendarController" action="{!init}" applyHtmlTag="false" applyBodyTag="false">
<head>
<title>用户日历-{!IF(IsWeek, '周', '日')}视图</title>
<apex:includeScript value="/jslibrary/main.js"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PersonalCalendarJs)}"/>
<apex:stylesheet value="{!URLFOR($Resource.fullcalendarCss)}"/>
<script type="text/javascript">
    function searchBySalesDptJs() {
        var baseUrl = '{!ProvinceUrl}';
        var pSalesDpt = j$(escapeVfId('Page:Form:salesDpt')).val();
        if (pSalesDpt != '') {
            baseUrl += '&salesDpt=' + encodeURI(pSalesDpt);
        } else {
            baseUrl += '&salesDpt=0';
        }
        // 本部のプルダウンから検索する時、必ず「全部省」を外す
        j$(escapeVfId('Page:Form:allProvince'))[0].checked = false;
        baseUrl += '&ap=0';
        baseUrl = baseUrl.replace("/apex/PersonalCalendar&", "/apex/PersonalCalendar?")
        document.location.href = baseUrl;
    }
    function searchByProvinceJs() {
        var baseUrl = '{!ProvinceUrl}';
        var pSalesDpt = j$(escapeVfId('Page:Form:salesDpt')).val();
        if (pSalesDpt == '') {
            baseUrl += '&salesDpt=0';
        }
        var pProvince = j$(escapeVfId('Page:Form:province')).val();
        if (pProvince != '') {
            baseUrl += '&province=' + encodeURI(pProvince);
        }
        // 省のプルダウンから検索する時、必ず「全部省」を外す
        j$(escapeVfId('Page:Form:allProvince'))[0].checked = false;
        baseUrl += '&ap=0';
        baseUrl = baseUrl.replace("/apex/PersonalCalendar&", "/apex/PersonalCalendar?")
        document.location.href = baseUrl;
    }
    function searchJs() {
        var baseUrl = '{!SearchJsUrl}';
        if (j$(escapeVfId('Page:Form:ocmUser'))[0].checked == false) {
            baseUrl += '&ocm=0';
        } else {
            baseUrl += '&ocm=1';
        }
        // 全部省check
        if (j$(escapeVfId('Page:Form:allProvince'))[0].checked == false) {
            baseUrl += '&ap=0';
        } else {
            baseUrl += '&ap=1';
        }
        var pText = j$(escapeVfId('Page:Form:text1')).val();
        if (pText != '') {
            baseUrl += '&text=' + pText;
        }
        var pCond = j$(escapeVfId('Page:Form:cond1')).val();
        if (pCond != '') {
            baseUrl += '&cond=' + pCond;
        }
 
        var pVal = encodeURIComponent(j$(escapeVfId('Page:Form:val1')).val());
        baseUrl += '&val=' + pVal;
 
        var pSearch = encodeURIComponent(j$(escapeVfId('Page:Form:searchText')).val());
        if (pSearch != '') {
            baseUrl += '&search=' + pSearch;
        }
        baseUrl = baseUrl.replace("/apex/PersonalCalendar&", "/apex/PersonalCalendar?")
        document.location.href = baseUrl;
    }
    function change2DayView() {
        var baseUrl = '{!DayViewUrl}';
        var pSearch = encodeURIComponent(j$(escapeVfId('Page:Form:searchText')).val());
        if (pSearch != '') {
            baseUrl += '&search=' + pSearch;
        }
        baseUrl = baseUrl.replace("/apex/PersonalCalendar&", "/apex/PersonalCalendar?")
        document.location.href = baseUrl;
    }
    function change2WeekView() {
        var baseUrl = '{!WeekViewUrl}';
        var pSearch = encodeURIComponent(j$(escapeVfId('Page:Form:searchText')).val());
        if (pSearch != '') {
            baseUrl += '&search=' + pSearch;
        }
        baseUrl = baseUrl.replace("/apex/PersonalCalendar&", "/apex/PersonalCalendar?")
        document.location.href = baseUrl;
    }
    function changedDay(pVal) {
<apex:outputPanel layout="none" rendered="{!IF(IsWeek, true, false)}">
        var baseUrl = '{!ChangeDayUrl}' + '&mk=' + pVal;
</apex:outputPanel>
<apex:outputPanel layout="none" rendered="{!IF(IsWeek, false, true)}">
        var baseUrl = '{!ChangeDayUrl}' + '&md=' + pVal;
</apex:outputPanel>
        var pSearch = encodeURIComponent(j$(escapeVfId('Page:Form:searchText')).val());
        if (pSearch != '') {
            baseUrl += '&search=' + pSearch;
        }
        baseUrl = baseUrl.replace("/apex/PersonalCalendar&", "/apex/PersonalCalendar?")
        document.location.href = baseUrl;
    }
    function showDayAll(pT2) {
        var baseUrl = '';
        if (pT2.checked) {
            baseUrl = '{!ShowDayAllUrl}' + '&t2=all';
        } else {
            baseUrl = '{!ShowDayAllUrl}';
        }
        var pSearch = encodeURIComponent(j$(escapeVfId('Page:Form:searchText')).val());
        if (pSearch != '') {
            baseUrl += '&search=' + pSearch;
        }
        baseUrl = baseUrl.replace("/apex/PersonalCalendar&", "/apex/PersonalCalendar?")
        document.location.href = baseUrl;
    }
 
    function showFcPopover(eventA, eventStyleClass) {
        var jEvent = j$(escapeVfId(eventA));
        var parentOffset = j$('#calendar').offset();
        var eventChildren = jEvent.children()[0];
//        var jEventTime = jEvent.children('.fc-content').children('.fc-time');
        var jEventTime = j$(eventChildren.children[2]);     // time2
        var jEventTitle = j$(eventChildren.children[1]);
        var jEventTitle2 = j$(eventChildren.children[3]);   // title2
        var jEventWhatId = j$(eventChildren.children[4]);
        var jEventMainVisit = j$(eventChildren.children[5]);
        var jEventPurposeType = j$(eventChildren.children[6]);
        var jEventOpp1 = j$(eventChildren.children[7]);
        var jEventService1 = j$(eventChildren.children[8]);
        j$('#fc-popover').css("top", (jEvent.offset().top - 16 - parentOffset.top)+ 'px').css("left", (jEvent.offset().left - parentOffset.left)+ 'px');
        j$(escapeVfId('fc-popover:container')).removeClass().addClass(eventStyleClass);
        j$(escapeVfId('fc-popover:time')).html(jEventTime.html());
        if (jEventTitle2.text().length > 0) {
            j$(escapeVfId('fc-popover:title')).html(jEventTitle2.html()).show();
        } else if (jEventTitle.text().length > 0) {
            j$(escapeVfId('fc-popover:title')).html(jEventTitle.html()).show();
        } else {
            j$(escapeVfId('fc-popover:title')).hide();
        }
        if (jEventWhatId.text().length > 0) {
            j$(escapeVfId('fc-popover:whatId')).html('{!$ObjectType.Daily_Report__c.Label}:' + jEventWhatId.html()).show();
        } else {
            j$(escapeVfId('fc-popover:whatId')).hide();
        }
        if (jEventMainVisit.text().length > 0) {
            j$(escapeVfId('fc-popover:mainVisit')).html('{!$ObjectType.Event.fields.Main_Visit_Location__c.label}:' + jEventMainVisit.html()).show();
        } else {
            j$(escapeVfId('fc-popover:mainVisit')).html('');
        }
        if (jEventPurposeType.text().length > 0) {
            j$(escapeVfId('fc-popover:purposeType')).html('{!$ObjectType.Event.fields.Purpose_Type__c.label}:' + jEventPurposeType.html()).show();
        } else {
            j$(escapeVfId('fc-popover:purposeType')).html('');
        }
        if (jEventOpp1.text().length > 0) {
            j$(escapeVfId('fc-popover:opp1')).html('{!$Label.Involved}{!$Label.Opportunity}:' + jEventOpp1.html()).show();
        } else {
            j$(escapeVfId('fc-popover:opp1')).html('');
        }
        if (jEventService1.text().length > 0) {
            j$(escapeVfId('fc-popover:service1')).html('{!$Label.Involved}{!$Label.Service_Agreement}:' + jEventService1.html()).show();
        } else {
            j$(escapeVfId('fc-popover:service1')).html('');
        }
        j$('#fc-popover').show();
//    j$('#fc-scroller-container').scroll(function() {
//        j$('#fc-popover').css("top", (jEvent.offset().top - 16 - parentOffset.top)+ 'px').css("left", (jEvent.offset().left - parentOffset.left)+ 'px');
//    });
    }
</script>
</head>
<body>
    <apex:form id="Form">
        <apex:outputPanel id="MessageP">
            <apex:pageMessages />
        </apex:outputPanel>
        <div class="calendarHeaderBG calendarHeader">
            <div class="userIcons">
                本部&nbsp;<apex:selectList id="salesDpt" value="{!salesDpt}" size="1" style="width:123px;" onchange="searchBySalesDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList>
<!--                 省&nbsp;<apex:inputField id="province" value="{!loginUser.Province__c}" style="width:140px;" onchange="searchByProvinceJs();return false;"></apex:inputField> -->
                省&nbsp;<apex:selectList id="province" value="{!province}" size="1" style="width:140px;" onchange="searchByProvinceJs();return false;"><apex:selectOptions value="{!provinceOpts}"/></apex:selectList>
            </div>
            <div id="condHeader">
                <font>用户字段</font>&nbsp;
                &nbsp;<apex:selectList value="{!text1}" id="text1" size="1"><apex:selectOptions value="{!textOpts}"/></apex:selectList>
                &nbsp;<apex:selectList value="{!cond1}" id="cond1" size="1"><apex:selectOptions value="{!equalOpts}"/></apex:selectList>
                &nbsp;<apex:inputText value="{!val1}" id="val1" style="width:200px"/>
                &nbsp;<input type="submit" value="Search" onclick="searchJs();return false;"/>
                &nbsp;<apex:inputCheckbox value="{!ocmUser}" id="ocmUser" onclick="searchJs();return false;"/><apex:outputLabel value="销售本部" for="ocmUser"/>
                &nbsp;<apex:inputCheckbox value="{!allProvince}" id="allProvince" onclick="searchJs();return false;"/><apex:outputLabel value="全部省" for="allProvince"/>
            </div>
            <div style="clear:both;"></div>
            <div class="dateLinks line2" style="margin:1px 10px;">
                <apex:inputText value="{!searchText}" id="searchText" style="width:200px" html-placeholder="Search Calendar" onchange="searchMark();return false;" onkeypress="return onKeyEvent(event);"/>
                &nbsp;<input type="button" value="Prev" onclick="prevMark();return false;"/>
                &nbsp;<input type="button" value="Next" onclick="nextMark();return false;"/>
            </div><script type="text/javascript">var jSearch = j$(escapeVfId('Page:Form:searchText'));jSearch.attr("current", "0");jSearch.attr("max", "{!markCnt}");</script>
<apex:outputPanel layout="none" rendered="{!IF(IsWeek, true, false)}">
            <!-- 週 -->
            <div class="dwmIcons line2">
                <a onclick="change2DayView();" title="日视图"><img src="/s.gif" alt="日视图" class="dayViewIcon" onblur="this.className = 'dayViewIcon';" onfocus="this.className = 'dayViewIconOn';" onmouseout="this.className = 'dayViewIcon';this.className = 'dayViewIcon';" onmouseover="this.className = 'dayViewIconOn';this.className = 'dayViewIconOn';" title="日视图" /></a>
                <a onclick="change2WeekView();" title="周视图"><img src="/s.gif" alt="周视图" class="weekViewIconOn" onblur="this.className = 'weekViewIconOn';" onfocus="this.className = 'weekViewIconOn';" onmouseout="this.className = 'weekViewIconOn';this.className = 'weekViewIconOn';" onmouseover="this.className = 'weekViewIconOn';this.className = 'weekViewIconOn';" title="周视图" /></a>
            </div>
            <div class="dateText line2">
                <apex:outputText value="{0, date, yyyy/MM/dd}">
                    <apex:param value="{!mdDay}" />
                </apex:outputText>〜<apex:outputText value="{0, date, yyyy/MM/dd}">
                    <apex:param value="{!mdDay + 6}" />
                </apex:outputText>
            </div>
</apex:outputPanel>
<apex:outputPanel layout="none" rendered="{!IF(IsWeek, false, true)}">
            <!-- 日 -->
            <div class="dwmIcons line2">
                <a onclick="change2DayView();" title="日视图"><img src="/s.gif" alt="日视图" class="dayViewIconOn" onblur="this.className = 'dayViewIconOn';" onfocus="this.className = 'dayViewIconOn';" onmouseout="this.className = 'dayViewIconOn';this.className = 'dayViewIconOn';" onmouseover="this.className = 'dayViewIconOn';this.className = 'dayViewIconOn';" title="日视图" /></a>
                <a onclick="change2WeekView();" title="周视图"><img src="/s.gif" alt="周视图" class="weekViewIcon" onblur="this.className = 'weekViewIcon';" onfocus="this.className = 'weekViewIconOn';" onmouseout="this.className = 'weekViewIcon';this.className = 'weekViewIcon';" onmouseover="this.className = 'weekViewIconOn';this.className = 'weekViewIconOn';" title="周视图" /></a>
            </div>
            <div class="dateText line2">
                <apex:outputText value="{0, date, E yyyy/MM/dd}">
                    <apex:param value="{!mdDay}" />
                </apex:outputText>
                <apex:inputCheckbox value="{!t2}" onclick="showDayAll(this);"/><span style="font-size:80%;">全部展开</span>
            </div>
</apex:outputPanel>
            <div class="arrowIcons line2">
                <a href="{!PrevUrl}" title="Prev" class="prev"><img src="/s.gif" alt="Prev" title="Prev" class="prevCalArrow"/></a>
                <a href="{!NextUrl}" title="Next" class="next"><img src="/s.gif" alt="Next" title="Next" class="nextCalArrow"/></a>
            </div>
            <div class="dateLinks line2" style="margin:4px 10px 2px 0px;">
                <input type="hidden" value="{!mdDayFormat}" id="mdDayFormat" onchange="changedDay(this.value)" />
                <img src="/s.gif" alt="选择日期" class="datePickerIcon" onclick="DatePicker.pickDate(true, 'mdDayFormat', false, this);DatePicker.datePicker.cancelHide(getEvent(event));" title="选择日期"/>
            </div>
            <div class="reportActions" style="float:left;margin-left:20px;margin-bottom:0px;">
                <div class="menuButton" id="runMutton" style="position:relative;margin-bottom:0px;">
                    <div class="menuButtonButton hasDefault" id="runMuttonButton" style="height:16px;padding-top:2px;padding-bottom:2px;">
                        <span class="menuButtonLabel" id="runMuttonLabel" tabindex="0" style="position:absolute;top:3px;left:5px;">报表/仪表板</span>
                    </div>
                    <div class="menuButtonMenu" id="runMuttonMenu" style="display:none;">
                        <!-- <a href="/00O10000003s5pN" target="_blank" class="menuButtonMenuLink">报告详细</a>
                        <a href="/00O10000003sfjN" target="_blank" class="menuButtonMenuLink">本周计划</a>
                        <a href="/00O10000004UUa5" target="_blank" class="menuButtonMenuLink">每月报告和实际拜访匹配</a>
                        <a href="/01Z10000000foL2" target="_blank" class="menuButtonMenuLink">销售仪表板</a>
                        <a href="/01Z10000000fqLn" target="_blank" class="menuButtonMenuLink">FSE仪表板</a> -->
                        <a href="/00O10000003s5pN" target="_blank" class="menuButtonMenuLink">上周报告明细</a>
                        <a href="/00O10000004wbL7" target="_blank" class="menuButtonMenuLink">本周计划</a>
                        <a href="/00O10000004UUa5" target="_blank" class="menuButtonMenuLink">月别计划实施情况</a>
                        <a href="/01Z100000010pq7" target="_blank" class="menuButtonMenuLink">推广仪表板</a>
                        <a href="/01Z10000000T76l" target="_blank" class="menuButtonMenuLink">服务仪表板</a>
                    </div>
                </div><script type="text/javascript">new MenuButton('runMutton', false);</script>
            </div>
        </div>
    </apex:form>
    <div style="clear:both;"></div>
    <div id="calendar" class="fc fc-ltr fc-unthemed"><apex:outputPanel styleClass="fc-view-container">
        <div class="fc-view fc-month-view fc-basic-view"><table>
            <thead><tr>
                <td class="fc-widget-header">
                    <div id="fc-widget-header-div" class="fc-row fc-widget-header"><table><thead>
                        <tr>
                            <th class="col_User fc-widget-header">User</th>
<apex:variable value="{!0}" var="cnt" />
<apex:repeat value="{!mdKeyList2}" var="md2">
    <apex:outputPanel layout="none" rendered="{!IF(cnt == 0, false, true)}">
                            <th class="fc-day-header fc-widget-header{!md2['mdCss']}">{!md2['md2']}</th>
    </apex:outputPanel>
    <apex:variable value="{!cnt + 1}" var="cnt" />
</apex:repeat>
                        </tr>
                    </thead></table></div>
                </td>
            </tr></thead>
            <tbody>
                <!-- Campaign -->
                <tr><td class="fc-widget-content"><div class="fc-day-grid-container fc-scroller" id="fc-widget-campaign-div" style="height:112px;z-index:1000;width:100%;"><div class="fc-day-grid fc-row">
<div id="fc-popover" class="fc-popover fc-more-popover" style="display:none;">
    <div class="fc-header fc-widget-header">
        <span class="fc-close fc-icon fc-icon-x" onclick="hideFcPopover();"></span>
        <span id="fc-popover:header" class="fc-title">事件详细信息</span>
        <div class="fc-clear"></div>
    </div>
    <div class="fc-body fc-widget-content">
        <div class="fc-event-container">
            <div id="fc-popover:container"><div class="fc-content">
                <div id="fc-popover:time" class="fc-time">time</div>
                <div id="fc-popover:title" class="fc-title">title</div>
                <div id="fc-popover:whatId" style="display:none;" class="fc-title">whatId</div>
                <div id="fc-popover:mainVisit" class="fc-title">mainVisit</div>
                <div id="fc-popover:purposeType" class="fc-title">purposeType</div>
                <div id="fc-popover:opp1" class="fc-title">opp1</div>
                <div id="fc-popover:service1" class="fc-title">service1</div>
 
            </div></div>
        </div>
    </div>
</div>
                    <div class="fc-row fc-week fc-widget-content fc-rigid" style="height: {!IF(campaignInfo.maxTr > 4, campaignInfo.maxTr * 32, 112)}px;">
                        <div class="fc-bg"><table><tbody>
                            <tr>
        <apex:variable value="{!0}" var="cnt" />
        <apex:repeat value="{!campaignInfo.mdKeyList3}" var="md2">
            <apex:outputPanel layout="none" rendered="{!IF(cnt == 0, true, false)}">
                                <td class="fc-day fc-widget-content col_User{!md2['mdCss']}"></td>
            </apex:outputPanel>
            <apex:outputPanel layout="none" rendered="{!IF(cnt == 0, false, true)}">
                                <td class="fc-day fc-widget-content{!md2['mdCss']}" data-date="{!md2['md']}"></td>
            </apex:outputPanel>
            <apex:variable value="{!cnt + 1}" var="cnt" />
        </apex:repeat>
                            </tr>
                        </tbody></table></div>
                        <div class="fc-content-skeleton"><table><tbody>
        <apex:outputPanel layout="none" rendered="{!IF(campaignInfo.maxTr == 0, true, false)}">
                            <tr>
                                <td class="col_User">
                                    {!campaignInfo.userAlias}
                                </td>
                            </tr>
        </apex:outputPanel>
        <apex:outputPanel layout="none" rendered="{!IF(campaignInfo.maxTr == 0, false, true)}">
                            <tr>
                                <td class="col_User" rowspan="{!campaignInfo.rowspan}">
                                    {!campaignInfo.userAlias}
                                </td>
                                <td class="fc-event-container">
            <apex:repeat value="{!campaignInfo.rowInfoList}" var="rowInfo">
                <apex:repeat value="{!rowInfo}" var="ev">
                    <apex:outputPanel layout="none" rendered="{!IF(ev['isEvent'] == '1', true, false)}">
<div class="fc-day-grid-event {!ev['at2Css']}" style="left:{!ev['sLeft']};width:{!ev['eWidth']};border:0;padding:0;" id="lookup{!ev['evtId']}campaign" onblur="LookupHoverDetail.getHover('lookup{!ev['evtId']}campaign').hide();" onfocus="LookupHoverDetail.getHover('lookup{!ev['evtId']}campaign', '/{!ev['evtId']}/m?isAjaxRequest=1').show();" onmouseout="LookupHoverDetail.getHover('lookup{!ev['evtId']}campaign').hide();" onmouseover="LookupHoverDetail.getHover('lookup{!ev['evtId']}campaign', '/{!ev['evtId']}/m?isAjaxRequest=1').show();">
                                    <div class="fc-content {!ev['at2Css']}" style="padding:1px 1px 0px 1px;">
                                        <div class="fc-time">{!ev['time']}</div>
                                        <div class="fc-title">{!ev['title']}</div>
                                    </div>
</div>
                    </apex:outputPanel>
                </apex:repeat>
            </apex:repeat>
                                </td>
                            </tr>
        </apex:outputPanel>
                        </tbody></table></div>
                    </div><!-- /fc-row fc-week fc-widget-content fc-rigid -->
                </div></div><hr class="fc-widget-header"/></td></tr>
<apex:outputPanel layout="none" rendered="{!IF(IsWeek, true, false)}">
                <!-- 週 -->
                <tr><td class="fc-widget-content"><div class="fc-day-grid-container fc-scroller" id="fc-scroller-container"><div id="fc-scroller" class="fc-day-grid">
    <apex:repeat value="{!userIds}" var="userId">
                    <div class="fc-row fc-week fc-widget-content fc-rigid" style="height: {!userCalendarInfoMap[userId].rowspan * 31}px;">
                        <div class="fc-bg"><table><tbody>
                            <tr>
        <apex:variable value="{!0}" var="cnt" />
        <apex:repeat value="{!userCalendarInfoMap[userId].mdKeyList3}" var="md2">
            <apex:outputPanel layout="none" rendered="{!IF(cnt == 0, true, false)}">
                                <td class="fc-day fc-widget-content col_User{!md2['mdCss']}"></td>
            </apex:outputPanel>
            <apex:outputPanel layout="none" rendered="{!IF(cnt == 0, false, true)}">
                                <td class="fc-day fc-widget-content{!md2['mdCss']}" data-date="{!md2['md']}"></td>
            </apex:outputPanel>
            <apex:variable value="{!cnt + 1}" var="cnt" />
        </apex:repeat>
                            </tr>
                        </tbody></table></div>
                        <div class="fc-content-skeleton"><table><tbody>
        <apex:outputPanel layout="none" rendered="{!IF(userCalendarInfoMap[userId].maxTr == 0, true, false)}">
                            <tr>
                                <td class="col_User">
<apex:outputPanel layout="block" style="float:left;width:auto;" rendered="{!IF(userCalendarInfoMap[userId].Photo_Text == '', false, true)}">
    <img id="img{!userCalendarInfoMap[userId].userId}photo" onload='resizeByPhoto("img{!userCalendarInfoMap[userId].userId}photo", "lookup{!userCalendarInfoMap[userId].userId}cas1")' border="0" src="{!userCalendarInfoMap[userId].Photo_Text}" height="32" />
</apex:outputPanel>
<div><a href="/{!userCalendarInfoMap[userId].userId}" id="lookup{!userCalendarInfoMap[userId].userId}cas1" onblur="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1').hide();" onfocus="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1', '/{!userCalendarInfoMap[userId].userId}/m?isAjaxRequest=1').show();" onmouseout="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1').hide();" onmouseover="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1', '/{!userCalendarInfoMap[userId].userId}/m?isAjaxRequest=1').show();">{!userCalendarInfoMap[userId].userAlias}</a>
<br/> {!userCalendarInfoMap[userId].userDesc}</div>
<script type="text/javascript">
resizeByPhoto("img{!userCalendarInfoMap[userId].userId}photo", "lookup{!userCalendarInfoMap[userId].userId}cas1");
</script>
                                </td>
                            </tr>
        </apex:outputPanel>
        <apex:outputPanel layout="none" rendered="{!IF(userCalendarInfoMap[userId].maxTr == 0, false, true)}">
            <apex:variable value="{!1}" var="line" />
            <apex:repeat value="{!userCalendarInfoMap[userId].rowInfoList}" var="rowInfo">
                            <tr>
                <apex:outputPanel layout="none" rendered="{!IF(line == 1, true, false)}">
                                <td class="col_User" rowspan="{!userCalendarInfoMap[userId].rowspan}">
<apex:outputPanel layout="block" style="float:left;width:auto;" rendered="{!IF(userCalendarInfoMap[userId].Photo_Text == '', false, true)}">
    <img id="img{!userCalendarInfoMap[userId].userId}photo" onload='resizeByPhoto("img{!userCalendarInfoMap[userId].userId}photo", "lookup{!userCalendarInfoMap[userId].userId}cas1")' border="0" src="{!userCalendarInfoMap[userId].Photo_Text}" height="32" />
</apex:outputPanel>
<div><a href="/{!userCalendarInfoMap[userId].userId}" id="lookup{!userCalendarInfoMap[userId].userId}cas1" onblur="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1').hide();" onfocus="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1', '/{!userCalendarInfoMap[userId].userId}/m?isAjaxRequest=1').show();" onmouseout="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1').hide();" onmouseover="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1', '/{!userCalendarInfoMap[userId].userId}/m?isAjaxRequest=1').show();">{!userCalendarInfoMap[userId].userAlias}</a>
<br/> {!userCalendarInfoMap[userId].userDesc}</div>
<script type="text/javascript">
resizeByPhoto("img{!userCalendarInfoMap[userId].userId}photo", "lookup{!userCalendarInfoMap[userId].userId}cas1");
</script>
                                </td>
                </apex:outputPanel>
                <apex:repeat value="{!rowInfo}" var="ev">
                                <td class="fc-event-container">
                    <apex:outputPanel layout="none" rendered="{!IF(ev['isEvent'] == '1', true, false)}">
<div class="fc-day-grid-event {!ev['at2Css']}" style="border:0;padding:0;" id="lookup{!ev['evtId']}event" onclick="showFcPopover('lookup{!ev['evtId']}event', '{!ev['at2Css']}');">
                                    <div class="fc-content forEvtMark {!ev['at2Css']}" id="{!IF(ev['evtMarked'] != '0', 'Mark' + ev['evtMarked'], '')}" style="padding:1px 1px 0px 1px;border-radius:2px;">
                                        <div class="fc-time" style="{!IF(ev['evtMarked'] != '0', 'background-color:yellow;color:red;', '')}"><apex:outputPanel layout="none" rendered="{!IF(ev['isScheduled'] == 'true', true, false)}"><span style="font-size:8px;">&#10003;</span></apex:outputPanel><a href="/{!ev['evtId']}" target="_blank">{!ev['time']}</a></div>
                                        <div class="fc-title">{!ev['title']}</div>
                                        <div class="fc-time2" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['isScheduled'] == 'true', true, false)}"><span style="font-size:8px;">&#10003;</span></apex:outputPanel>{!ev['time']}</div>
                                        <div class="fc-title2" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['accId'] == 'false', false, true)}"><a href="/{!ev['accId']}" target="WHATIDC_{!ev['accId']}">{!ev['title']}</a></apex:outputPanel></div>
                                        <div class="fc-whatId" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['whatId'] == 'false', false, true)}">日报:<a href="/{!ev['whatId']}" target="DR_{!ev['whatId']}">Link</a></apex:outputPanel></div>
                                        <div class="fc-mainVisit" style="display:none;">{!ev['mainVisit']}</div>
                                        <div class="fc-purposeType" style="display:none;">{!ev['purposeType']}</div>
                                        <div class="fc-opp1Id" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['opp1Id'] == 'false', false, true)}"><a href="/{!ev['opp1Id']}" target="OPP_{!ev['opp1Id']}">{!ev['opp1Name']}</a></apex:outputPanel></div>
                                        <div class="fc-service1Id" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['service1Id'] == 'false', false, true)}"><a href="/{!ev['service1Id']}" target="OPP_{!ev['service1Id']}">{!ev['service1Name']}</a></apex:outputPanel></div>
                                        <div class="fc-searchWord" style="display:none;">{!ev['searchWord']}</div>
                                    </div>
</div>
                    </apex:outputPanel>
                                </td>
                </apex:repeat>
                            </tr>
                <apex:variable value="{!line + 1}" var="line" />
            </apex:repeat>
        </apex:outputPanel>
                        </tbody></table></div>
                    </div><!-- /fc-row fc-week fc-widget-content fc-rigid -->
    </apex:repeat>
                </div></div></td></tr>
</apex:outputPanel>
<apex:outputPanel layout="none" rendered="{!IF(IsWeek, false, true)}">
                <!-- 日 -->
                <tr><td class="fc-widget-content"><div class="fc-time-grid-container fc-scroller" id="fc-scroller-container"><div id="fc-scroller" class="fc-time-grid">
    <apex:repeat value="{!userIds}" var="userId">
                    <div class="fc-row fc-week fc-widget-content fc-rigid" style="height: {!userCalendarInfoMap[userId].rowspan * 32}px;">
                        <div class="fc-bg"><table><tbody>
                            <tr>
        <apex:variable value="{!0}" var="cnt" />
        <apex:repeat value="{!userCalendarInfoMap[userId].mdKeyList3}" var="md2">
            <apex:outputPanel layout="none" rendered="{!IF(cnt == 0, true, false)}">
                                <td class="fc-time fc-widget-content col_User{!md2['mdCss']}"></td>
            </apex:outputPanel>
            <apex:outputPanel layout="none" rendered="{!IF(cnt == 0, false, true)}">
                                <td class="fc-time fc-widget-content{!md2['mdCss']}" data-date="{!md2['md']}"></td>
            </apex:outputPanel>
            <apex:variable value="{!cnt + 1}" var="cnt" />
        </apex:repeat>
                            </tr>
                        </tbody></table></div>
                        <div class="fc-content-skeleton"><table><tbody>
        <apex:outputPanel layout="none" rendered="{!IF(userCalendarInfoMap[userId].maxTr == 0, true, false)}">
                            <tr>
                                <td class="col_User">
<apex:outputPanel layout="block" style="float:left;width:auto;" rendered="{!IF(userCalendarInfoMap[userId].Photo_Text == '', false, true)}">
    <img id="img{!userCalendarInfoMap[userId].userId}photo" onload='resizeByPhoto("img{!userCalendarInfoMap[userId].userId}photo", "lookup{!userCalendarInfoMap[userId].userId}cas1")' border="0" src="{!userCalendarInfoMap[userId].Photo_Text}" height="32" />
</apex:outputPanel>
<div><a href="/{!userCalendarInfoMap[userId].userId}" id="lookup{!userCalendarInfoMap[userId].userId}cas1" onblur="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1').hide();" onfocus="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1', '/{!userCalendarInfoMap[userId].userId}/m?isAjaxRequest=1').show();" onmouseout="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1').hide();" onmouseover="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1', '/{!userCalendarInfoMap[userId].userId}/m?isAjaxRequest=1').show();">{!userCalendarInfoMap[userId].userAlias}</a>
<br/> {!userCalendarInfoMap[userId].userDesc}</div>
<script type="text/javascript">
resizeByPhoto("img{!userCalendarInfoMap[userId].userId}photo", "lookup{!userCalendarInfoMap[userId].userId}cas1");
</script>
                                </td>
                            </tr>
        </apex:outputPanel>
        <apex:outputPanel layout="none" rendered="{!IF(userCalendarInfoMap[userId].maxTr == 0, false, true)}">
                            <tr>
                                <td class="col_User">
<apex:outputPanel layout="block" style="float:left;width:auto;" rendered="{!IF(userCalendarInfoMap[userId].Photo_Text == '', false, true)}">
    <img id="img{!userCalendarInfoMap[userId].userId}photo" onload='resizeByPhoto("img{!userCalendarInfoMap[userId].userId}photo", "lookup{!userCalendarInfoMap[userId].userId}cas1")' border="0" src="{!userCalendarInfoMap[userId].Photo_Text}" height="32" />
</apex:outputPanel>
<div><a href="/{!userCalendarInfoMap[userId].userId}" id="lookup{!userCalendarInfoMap[userId].userId}cas1" onblur="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1').hide();" onfocus="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1', '/{!userCalendarInfoMap[userId].userId}/m?isAjaxRequest=1').show();" onmouseout="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1').hide();" onmouseover="LookupHoverDetail.getHover('lookup{!userCalendarInfoMap[userId].userId}cas1', '/{!userCalendarInfoMap[userId].userId}/m?isAjaxRequest=1').show();">{!userCalendarInfoMap[userId].userAlias}</a>
<br/> {!userCalendarInfoMap[userId].userDesc}</div>
<script type="text/javascript">
resizeByPhoto("img{!userCalendarInfoMap[userId].userId}photo", "lookup{!userCalendarInfoMap[userId].userId}cas1");
</script>
                                </td>
                                <td class="fc-event-container">
            <apex:variable value="{!0}" var="cnt" />
            <apex:repeat value="{!userCalendarInfoMap[userId].dayEventInfoList}" var="evList">
                <apex:repeat value="{!evList}" var="ev">
                    <apex:outputPanel layout="none" rendered="{!IF(ev['isEvent'] == '1', true, false)}">
<div class="fc-time-grid-event {!ev['at2Css']}" style="z-index:{!cnt};top:{!ev['sTop']}px;left:{!ev['sLeft']};width:{!ev['eWidth']};border:0;padding:0;" id="lookup{!ev['evtId']}event" onclick="showFcPopover('lookup{!ev['evtId']}event', '{!ev['at2Css']}');">
                                    <div class="fc-content forEvtMark {!ev['at2Css']}" id="{!IF(ev['evtMarked'] != '0', 'Mark' + ev['evtMarked'], '')}" style="padding:1px 1px 0px 1px;border-radius:2px;">
                                        <div class="fc-time" style="{!IF(ev['evtMarked'] != '0', 'background-color:yellow;color:red;', '')}"><apex:outputPanel layout="none" rendered="{!IF(ev['isScheduled'] == 'true', true, false)}"><span style="font-size:8px;">&#10003;</span></apex:outputPanel><a href="/{!ev['evtId']}" target="_blank">{!ev['time']}</a></div>
                                        <div class="fc-title">{!ev['title']}</div>
                                        <div class="fc-time2" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['isScheduled'] == 'true', true, false)}"><span style="font-size:8px;">&#10003;</span></apex:outputPanel>{!ev['time2']}</div>
                                        <div class="fc-title2" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['accId'] == 'false', false, true)}"><a href="/{!ev['accId']}" target="WHATIDC_{!ev['accId']}">{!ev['title']}</a></apex:outputPanel></div>
                                        <div class="fc-whatId" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['whatId'] == 'false', false, true)}"><a href="/{!ev['whatId']}" target="DR_{!ev['whatId']}">Link</a></apex:outputPanel></div>
                                        <div class="fc-mainVisit" style="display:none;">{!ev['mainVisit']}</div>
                                        <div class="fc-purposeType" style="display:none;">{!ev['purposeType']}</div>
                                        <div class="fc-opp1Id" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['opp1Id'] == 'false', false, true)}"><a href="/{!ev['opp1Id']}" target="OPP_{!ev['opp1Id']}">{!ev['opp1Name']}</a></apex:outputPanel></div>
                                        <div class="fc-service1Id" style="display:none;"><apex:outputPanel layout="none" rendered="{!IF(ev['service1Id'] == 'false', false, true)}"><a href="/{!ev['service1Id']}" target="OPP_{!ev['service1Id']}">{!ev['service1Name']}</a></apex:outputPanel></div>
                                        <div class="fc-searchWord" style="display:none;">{!ev['searchWord']}</div>
                                    </div>
</div>
            <apex:variable value="{!cnt + 1}" var="cnt" />
                    </apex:outputPanel>
                </apex:repeat>
            </apex:repeat>
                                </td>
                            </tr>
        </apex:outputPanel>
                        </tbody></table></div>
                    </div><!-- /fc-row fc-week fc-widget-content fc-rigid -->
    </apex:repeat>
                </div></div></td></tr>
</apex:outputPanel>
            </tbody>
        </table></div>
    </apex:outputPanel></div>
 
<script type="text/javascript">
    window.onresize = windowResize;
    windowResize();
</script>
</body>
</apex:page>