<apex:page id="Page" showHeader="false" sidebar="false" Controller="PersonalEvaluationController" 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 peTabRange = '{!peTabRange}';
|
function searchBySalesDptJs() {
|
var baseUrl = '{!ProvinceUrl}';
|
var pSalesDpt = jQuery(escapeVfId('Page:Form:salesDpt')).val();
|
if (pSalesDpt != '') {
|
baseUrl += '&salesDpt=' + encodeURI(pSalesDpt);
|
} else {
|
baseUrl += '&salesDpt=0';
|
}
|
baseUrl = baseUrl.replace("/apex/PersonalEvaluation&", "/apex/PersonalEvaluation?")
|
document.location.href = baseUrl;
|
}
|
function searchByProvinceJs() {
|
var baseUrl = '{!ProvinceUrl}';
|
var pSalesDpt = jQuery(escapeVfId('Page:Form:salesDpt')).val();
|
if (pSalesDpt == '') {
|
baseUrl += '&salesDpt=0';
|
}
|
var pProvince = jQuery(escapeVfId('Page:Form:province')).val();
|
if (pProvince != '') {
|
baseUrl += '&province=' + encodeURI(pProvince);
|
}
|
baseUrl = baseUrl.replace("/apex/PersonalEvaluation&", "/apex/PersonalEvaluation?")
|
document.location.href = baseUrl;
|
}
|
function searchJs() {
|
var baseUrl = '{!SearchJsUrl}';
|
if (jQuery(escapeVfId('Page:Form:ocmUser'))[0].checked == false) {
|
baseUrl += '&ocm=0';
|
}
|
if (jQuery(escapeVfId('Page:Form:leadUser'))[0].checked == false) {
|
baseUrl += '&lead=0';
|
}
|
// var pText = jQuery(escapeVfId('Page:Form:text1')).val();
|
// if (pText != '') {
|
// baseUrl += '&text=' + pText;
|
// }
|
// var pCond = jQuery(escapeVfId('Page:Form:cond1')).val();
|
// if (pCond != '') {
|
// baseUrl += '&cond=' + pCond;
|
// }
|
|
// var pVal = encodeURIComponent(jQuery(escapeVfId('Page:Form:val1')).val());
|
// baseUrl += '&val=' + pVal;
|
baseUrl = baseUrl.replace("/apex/PersonalEvaluation&", "/apex/PersonalEvaluation?")
|
document.location.href = baseUrl;
|
}
|
function personChangeJs() {
|
var baseUrl = '{!UserUrl}';
|
var pUser = jQuery(escapeVfId('Page:Form:selectUser')).val();
|
if (pUser != '') {
|
baseUrl += '&user=' + pUser;
|
}
|
baseUrl = baseUrl.replace("/apex/PersonalEvaluation&", "/apex/PersonalEvaluation?")
|
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;">{!$Label.SalesDept_Short}:</td><td width="120"><apex:selectList id="salesDpt" value="{!salesDpt}" size="1" style="width:90%;" onchange="searchBySalesDptJs();return false;"><apex:selectOptions value="{!salesDptOpts}"/></apex:selectList></td>
|
<td width="20" style="text-align:right;">{!$Label.Province}:</td><td width="100"><apex:selectList id="province" value="{!province}" size="1" style="width:90%;" onchange="searchByProvinceJs();return false;"><apex:selectOptions value="{!provinceOpts}"/></apex:selectList></td>
|
<td width="80" style="text-align:right;">{!$Label.Select_User}:</td>
|
<td width="260"><apex:selectList value="{!selectUser}" id="selectUser" size="1" style="width:95%" onchange="personChangeJs();return false;"><apex:selectOptions value="{!userOpts}"/></apex:selectList></td>
|
<td width="200">
|
<apex:inputCheckbox value="{!ocmUser}" id="ocmUser" onclick="searchJs();return false;"/><apex:outputLabel value="{!$Label.SalesDept}" for="ocmUser"/>
|
<apex:inputCheckbox value="{!leadUser}" id="leadUser" onclick="searchJs();return false;"/><apex:outputLabel value="{!$Label.Under_Resp}" for="leadUser"/>
|
<input id="selectedTab" type="hidden" value="{!selectedTab}"/>
|
</td>
|
<td></td>
|
<td width="160" style="text-align:right;"><div id="smarmLink" class="smarmLink" /></td>
|
<td width="10"></td>
|
</tr>
|
</table>
|
</apex:outputPanel>
|
</apex:form>
|
|
<apex:outputPanel id="MessageP">
|
<apex:pageMessages />
|
</apex:outputPanel>
|
<apex:pageBlock id="rightBlock" title="{!$Label['Personal_Evaluation_' + pe99.Api_Name__c]}">
|
<div id="rightBlockSidebarDiv">
|
<a href="javascript:void(0);" id="handlebarLink" title="{!$Label.Click_to_Close_Sidebar}" onclick="toggleHandlebarLink('{!$Label.Click_to_Open_Sidebar}', '{!$Label.Click_to_Close_Sidebar}');">
|
<div class="indicator" id="pinIndicator" />
|
</a>
|
</div>
|
<span>{!$Label['Personal_Evaluation_RightSide_Report1_1_Name']}:</span>
|
<apex:pageblocktable value="{!r1InfoList}" var="rInfo">
|
<apex:repeat value="{!r1InfoColumnList}" var="col">
|
<apex:column value="{!rInfo[col]}"/>
|
</apex:repeat>
|
</apex:pageblocktable>
|
<span>{!$Label['Personal_Evaluation_RightSide_Report1_2_Name']}:</span>
|
<apex:pageblocktable value="{!r2InfoList}" var="rInfo">
|
<apex:repeat value="{!r2InfoColumnList}" var="col">
|
<apex:column value="{!rInfo[col]}"/>
|
</apex:repeat>
|
</apex:pageblocktable>
|
<span>{!$Label['Personal_Evaluation_RightSide_Report1_3_Name']}:</span>
|
<apex:pageblocktable value="{!r3InfoList}" var="rInfo">
|
<apex:repeat value="{!r3InfoColumnList}" var="col">
|
<apex:column value="{!rInfo[col]}"/>
|
</apex:repeat>
|
</apex:pageblocktable>
|
</apex:pageBlock>
|
<apex:form id="Form2">
|
<apex:tabPanel id="MainP" value="{!selectedTab}" tabClass="activeTab" inactiveTabClass="inactiveTab">
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[1].Api_Name__c]}" id="tab1" name="{!peSettingsMap[1].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[1] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[1].Api_Name__c}?tabIdx=1&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[2].Api_Name__c]}" id="tab2" name="{!peSettingsMap[2].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[2] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[2].Api_Name__c}?tabIdx=2&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[3].Api_Name__c]}" id="tab3" name="{!peSettingsMap[3].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[3] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[3].Api_Name__c}?tabIdx=3&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[4].Api_Name__c]}" id="tab4" name="{!peSettingsMap[4].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[4] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[4].Api_Name__c}?tabIdx=4&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[5].Api_Name__c]}" id="tab5" name="{!peSettingsMap[5].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[5] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[5].Api_Name__c}?tabIdx=5&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[6].Api_Name__c]}" id="tab6" name="{!peSettingsMap[6].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[6] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[6].Api_Name__c}?tabIdx=6&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[7].Api_Name__c]}" id="tab7" name="{!peSettingsMap[7].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[7] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[7].Api_Name__c}?tabIdx=7&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[8].Api_Name__c]}" id="tab8" name="{!peSettingsMap[8].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[8] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[8].Api_Name__c}?tabIdx=8&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[9].Api_Name__c]}" id="tab9" name="{!peSettingsMap[9].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[9] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[9].Api_Name__c}?tabIdx=9&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[10].Api_Name__c]}" id="tab10" name="{!peSettingsMap[10].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[10] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationIn{!peSettingsMap[10].Api_Name__c}?tabIdx=10&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[11].Api_Name__c]}" id="tab11" name="{!peSettingsMap[11].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[11] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=11&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!$Label['Personal_Evaluation_' + peSettingsMap[12].Api_Name__c]}" id="tab12" name="{!peSettingsMap[12].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[12] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=12&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[21].Name}" name="{!peSettingsMap[21].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[21] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=21&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[0].Name}" id="tab0" name="{!peSettingsMap[0].Api_Name__c}" rendered="{!peSettingsMap[0].IsActive__c}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=0&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[23].Name}" name="{!peSettingsMap[23].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[23] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=23&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[24].Name}" name="{!peSettingsMap[24].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[24] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=24&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[25].Name}" name="{!peSettingsMap[25].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[25] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=25&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[26].Name}" name="{!peSettingsMap[26].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[26] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=26&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[27].Name}" name="{!peSettingsMap[27].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[27] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=27&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[28].Name}" name="{!peSettingsMap[28].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[28] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=28&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[29].Name}" name="{!peSettingsMap[29].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[29] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=29&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<apex:tab label="{!peSettingsMap[30].Name}" name="{!peSettingsMap[30].Api_Name__c}" rendered="{!IF(peSettingsMapHasIdx[30] == 'true', true, false)}">
|
<div id="in_Tab_container">
|
<iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=30&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>
|
</div>
|
</apex:tab>
|
<!-- 100は特殊、固定出す -->
|
<!-- <apex:tab label="{!peSettingsMap[100].Name}" name="{!peSettingsMap[100].Api_Name__c}" >-->
|
<!-- <div id="in_Tab_container">-->
|
<!-- <iframe id="in_Tab" seamless="seamless" src="/apex/PersonalEvaluationInTab?tabIdx=100&user={!selectUser}" frameborder="0" allowtransparency="true" width="100%"></iframe>-->
|
<!-- </div>-->
|
<!--</apex:tab>-->
|
</apex:tabPanel>
|
<div class="tabCommentPop" id="tabCommentPop" tab="{!selectedTab}" style="width: 990px;">
|
<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)">{!$Label.Evalutaion_Comment}</button>
|
<iframe id="tabComment" seamless="seamless" src="/apex/PersonalEvaluationCommentList?user={!selectUser}&tab={!selectedTab}" frameborder="0" allowtransparency="true" height="22" width="990"></iframe>
|
</div>
|
</apex:form>
|
<script type="text/javascript">
|
window.onresize = windowResize;
|
windowResize();
|
defaultSidebarToggle();
|
tabHighlight();
|
</script>
|
</apex:page>
|