<apex:page id="Page" showHeader="false" sidebar="false" Controller="ProvinceEvaluationController" action="{!init}">
|
<apex:stylesheet value="{!URLFOR($Resource.PersonalEvaluationCss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PersonalEvaluationJs2)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.html2canvasJs)}"/>
|
<script type="text/javascript">
|
var personalEvaluationMap = null;
|
var pProvince = '';
|
|
function getpProvince() {
|
// var pProvinceList = jQuery(escapeVfId('Page:Form:province:MultiselectController:multiselectPanel:rightList'))[0].options;
|
var pProvinceList = jQuery("input[name*='Page\\:Form\\:province']");
|
var i = 0;
|
for ( var x = 0; x < pProvinceList.length; x++) {
|
if (pProvinceList[x].checked) {
|
if (i == 0) {
|
pProvince += pProvinceList[x].value;
|
i++;
|
} else {
|
pProvince += "," + pProvinceList[x].value;
|
}
|
}
|
}
|
}
|
|
function searchByProvinceJs() {
|
var baseUrl = '{!ProvinceUrl}';
|
pProvince = '';
|
getpProvince();
|
if (pProvince != '') {
|
baseUrl += '&province=' + encodeURI(pProvince);
|
}
|
baseUrl = baseUrl.replace("/apex/ProvinceEvaluation&", "/apex/ProvinceEvaluation?")
|
alert('baseUrl' + baseUrl);
|
document.location.href = baseUrl;
|
}
|
</script>
|
<apex:form id="Form">
|
<apex:outputPanel id="SearchP" layout="none">
|
<table style="width:100%;">
|
<tr>
|
<td width="40" style="text-align:right;">省:</td><td width="{!IF(ProvinceOptsSize > 0, ProvinceOptsSize * 70, 70)}">
|
<apex:selectCheckboxes id="province" value="{!provinceSelected}">
|
<apex:selectOptions value="{!provinceOpts}"/>
|
</apex:selectCheckboxes>
|
</td>
|
<td>
|
<apex:commandButton value="刷新" onclick="searchByProvinceJs();return false;" reRender="dummy"/>
|
</td>
|
<td width="10"></td>
|
</tr>
|
</table>
|
</apex:outputPanel>
|
</apex:form>
|
|
<apex:outputPanel id="MessageP">
|
<apex:pageMessages />
|
</apex:outputPanel>
|
<apex:form id="Form2">
|
<apex:tabPanel id="MainP" value="{!selectedTab}" tabClass="activeTab" inactiveTabClass="inactiveTab">
|
<apex:tab label="{!peSettingsMap[51].Name}" id="tab1" name="{!peSettingsMap[51].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[51] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/ProvinceEvaluationIn{!peSettingsMap[51].Api_Name__c}?tabIdx=51&province={!province}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[52].Name}" id="tab2" name="{!peSettingsMap[52].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[52] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/ProvinceEvaluationIn{!peSettingsMap[52].Api_Name__c}?tabIdx=52&province={!province}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[53].Name}" id="tab3" name="{!peSettingsMap[53].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[53] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/ProvinceEvaluationIn{!peSettingsMap[53].Api_Name__c}?tabIdx=53&province={!province}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
</apex:tabPanel>
|
<div class="tabCommentPop" id="tabCommentPop" tab="{!selectedTab}" style="width: 990px;">
|
<table>
|
<tr>
|
<td>指定用户:<font color="red">*</font></td>
|
<td><apex:inputField value="{!dummyDr.Reporter__c}" id="userForComment" style="width:90px;"/></td>
|
</tr>
|
</table>
|
<textarea class="limitedtextarea" onKeyDown="limitText(this,200);" onKeyUp="limitText(this,200);"></textarea>
|
<br/>
|
<input readonly="readonly" type="text" class="countdown" value="200"/><font size="1"> characters left.</font>
|
<button class="saveComment" type="button" onclick="saveTabComment(this)">留言</button>
|
<iframe id="tabComment" seamless="seamless" src="/apex/PersonalEvaluationCommentList?province={!province}&tab={!selectedTab}" frameborder="0" allowtransparency="true" height="22" width="990"></iframe>
|
</div>
|
</apex:form>
|
<script type="text/javascript">
|
window.onresize = windowResize;
|
windowResize();
|
getpProvince();
|
</script>
|
</apex:page>
|