| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | 
							- /**
 
-  * fireDeviceIndex.js
 
-  */
 
- var baseUrl;
 
- var theme;
 
- var return_login;
 
- var V_LOGINNAME='',V_PASSWORD='';
 
- var maxWidth=10000,maxHeight=10000;
 
- var company_code='';
 
- var body_resize = function(){
 
- 	maxHeight =  document.documentElement.clientHeight;
 
- 	maxWidth = document.documentElement.clientWidth;
 
- 	Ext.getCmp('rtu_frame').setHeight(maxHeight);
 
- 	Ext.getCmp('rtu_frame').setWidth(maxWidth);
 
- }
 
- Ext.onReady(function(){  
 
- 	baseUrl = document.getElementById('basePath').value;
 
- 	theme = document.getElementById('theme').value;
 
- 	$("#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();
 
-     maxHeight =  document.documentElement.clientHeight;
 
-     maxWidth = document.documentElement.clientWidth;
 
-     return_login = function(){
 
-     	window.parent.document.location=baseUrl;
 
-     }
 
-     Ext.create('Ext.tab.Panel',{
 
-     	id:'rtu_frame',
 
-     	width:maxWidth,
 
-     	height:maxHeight,
 
-     	renderTo:document.body,
 
-     	items:[
 
-     		{
 
-     			title:'离线情况',
 
-     			html:'<iframe id="subVideoDevice" name="subVideoDevice" src="subVideoDevice.jsp?theme='+theme+'&company_code='+company_code+'" style="width:100%;height:100%;" frameborder="0"></iframe>'
 
-     		}
 
-     	]
 
-     });
 
- 	$(window).resize(function(){
 
-     	body_resize();
 
-     });
 
- 	body_resize();
 
- });
 
 
  |