| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 | /** *  */var basePath;var company_code;var V_LOGINNAME;var V_PASSWORD;var theme;var menuidx = 'm1';var body_resize = function() {	$("#proform_bg_mm").css('display','none');	if($(document).innerWidth()>=1370){		$("#proform_bg_tm").css('display','block');		$("#proform_bg_tm").css('width',($(document).innerWidth()-1370)+'px');		$("#proform_bg_bm").css('display','block');		$("#proform_bg_bm").css('width',($(document).innerWidth()-1370)+'px');	}else{		$("#proform_bg_tm").css('display','none');		$("#proform_bg_bm").css('display','none');	}	if($(document).innerHeight()>=922){		$("#proform_bg_ml").css('display','block');		$("#proform_bg_mr").css('display','block');		$("#proform_bg_ml").css('height',($(document).innerHeight()-922)+'px');		$("#proform_bg_mr").css('height',($(document).innerHeight()-922)+'px');		if($(document).innerWidth()>=1370){			$("#proform_bg_mm").css('display','block');			$("#proform_bg_mm").css('height',($(document).innerHeight()-922)+'px');			$("#proform_bg_mm").css('width',($(document).innerWidth()-1370)+'px');		}	}else{		$("#proform_bg_ml").css('display','none');		$("#proform_bg_mr").css('display','none');	}	$("#main_page").css('width',($(document).innerWidth()-449)+'px');	$("#main_page").css('height',($(document).innerHeight()-208)+'px');}var mouseon = function(obj){	var id = obj.id;	$("#"+id).removeClass(id);	$("#"+id).addClass(id+'_on');}var mouseoff = function(obj){	var mid = "proform2_";//	var id = obj.id;//	$("#"+id).removeClass(id+'_on');//	$("#"+id).addClass(id);	for(var i=1;i<6;i++){		var id = "proform2_menu_"+i;		$("#"+id).removeClass(id+'_on');		$("#"+id).addClass(id);	}	if(menuidx=='m1')		mid += 'menu_1';	else if(menuidx=='m2')		mid += 'menu_2';	else if(menuidx=='m3')		mid += 'menu_3';	else if(menuidx=='m4')		mid += 'menu_4';	else if(menuidx=='m5')		mid += 'menu_5';	$("#"+mid).removeClass(mid);	$("#"+mid).addClass(mid+'_on');}var menu_click = function(obj){	var id = obj.id;	if(id=='proform2_menu_1'){		menuidx = 'm1';		show_page();	}	else if(id=='proform2_menu_2'){		menuidx = 'm2';		show_page();	}	else if(id=='proform2_menu_3'){		menuidx = 'm3';		show_page();	}	else if(id=='proform2_menu_4'){		menuidx = 'm4';		show_page();	}else if(id=='proform2_menu_5'){		menuidx = 'm5';		show_page();	}}var show_page = function(){	var mid = "proform2_";	var div = document.getElementById('main_page');	if(menuidx=='m1'){		mid += 'menu_1';		try{			div.innerHTML='<iframe frameborder=0 width="100%" height="100%" allowtransparency="true" scrolling=auto src="'+basePath+'view/checkrecord2/index.jsp?theme='+theme+($("#company_code").val().length>0?('&company_code='+$("#company_code").val()):'')+'"></iframe>';		}catch(e){}	}else if(menuidx=='m2'){		mid += 'menu_2';		try{			div.innerHTML='<iframe frameborder=0 width="100%" height="100%" allowtransparency="true" scrolling=auto src="'+basePath+'view/maintenanceplan/index.jsp?theme='+theme+($("#company_code").val().length>0?('&company_code='+$("#company_code").val()):'')+'"></iframe>';		}catch(e){}	}else if(menuidx=='m3'){		mid += 'menu_3';		try{			div.innerHTML='<iframe frameborder=0 width="100%" height="100%" allowtransparency="true" scrolling=auto src="'+basePath+'view/maintenanceperson/index.jsp?theme='+theme+($("#company_code").val().length>0?('&company_code='+$("#company_code").val()):'')+'"></iframe>';		}catch(e){}	}else if(menuidx=='m4'){		mid += 'menu_4';		try{			div.innerHTML='<iframe frameborder=0 width="100%" height="100%" allowtransparency="true" scrolling=auto src="'+basePath+'view/maintenance/index.jsp?theme='+theme+($("#company_code").val().length>0?('&company_code='+$("#company_code").val()):'')+'"></iframe>';		}catch(e){}	}else if(menuidx=='m5'){		mid += 'menu_5';		try{			div.innerHTML='<iframe frameborder=0 width="100%" height="100%" allowtransparency="true" scrolling=auto src="'+basePath+'view/patrolAnalysis2/index.jsp?theme='+theme+($("#company_code").val().length>0?('&company_code='+$("#company_code").val()):'')+'"></iframe>';		}catch(e){}	}	for(var i=1;i<6;i++){		var id = "proform2_menu_"+i;		$("#"+id).removeClass(id+'_on');		$("#"+id).addClass(id);	}	$("#"+mid).removeClass(mid);	$("#"+mid).addClass(mid+'_on');}Ext.onReady(function(){	basePath = $("#basePath").val();	$("#V_LOGINNAME").val(sessionStorage.getItem('V_LOGINNAME'));	$("#V_PASSWORD").val(sessionStorage.getItem('V_PASSWORD'));	V_LOGINNAME = $("#V_LOGINNAME").val();	V_PASSWORD = $("#V_PASSWORD").val();	company_code = $("#company_code").val();	theme = $("#theme").val();	$(window).resize(function(){    	body_resize();    });    body_resize();	show_page();});
 |