You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
2.5 KiB
119 lines
2.5 KiB
//<?php require_once('../../js_asm.php'); ?>
|
|
|
|
Ext.onReady(function(){
|
|
var viewport = new Ext.Viewport({
|
|
id: 'main_viewport',
|
|
layout:'border',
|
|
items: [{
|
|
xtype: 'panel',
|
|
region: 'north',
|
|
baseCls: 'x-plain',
|
|
height: 50,
|
|
items:[{
|
|
xtype: 'panel',
|
|
id:'top',
|
|
baseCls: 'x-plain',
|
|
html: '<p style="padding:10px;color:#556677;font-size:11px;"><img src="/style/img/logo32.png"> R-Goose Security System</p>'
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
id:'btns',
|
|
region:'west',
|
|
bsaseCls:'x-plain',
|
|
title: 'R-Goose System',
|
|
collapsible: true,
|
|
split:true,
|
|
width:150,
|
|
minWidth: 100,
|
|
maxWidth: 250,
|
|
layout:'accordion',
|
|
margins: '5 0 5 5',
|
|
cmargins:'5 5 5 5',
|
|
layoutConfig:{
|
|
animate:true
|
|
},
|
|
items: [{
|
|
title: 'Dashboard',
|
|
layout: 'vbox',
|
|
height: 120,
|
|
pack: 'center',
|
|
align : 'strech',
|
|
items:[{
|
|
xtype: 'button',
|
|
width: '100%',
|
|
id:'go_home',
|
|
text: 'Go Home',
|
|
handler: function( b, e ){
|
|
loadDashBoard();
|
|
}
|
|
},{
|
|
xtype: 'button',
|
|
width: '100%',
|
|
id:'go_monitor',
|
|
text: 'Monitor Events',
|
|
handler: function( b, e ){
|
|
loadTimeLine();
|
|
}
|
|
},{
|
|
xtype: 'button',
|
|
width: '100%',
|
|
id:'go_out',
|
|
text: 'Logout',
|
|
handler: function( b, e ){
|
|
window.location = '/login.php?UID=1';
|
|
}
|
|
}]
|
|
},{
|
|
title: 'System Settings',
|
|
layout: 'vbox',
|
|
height: 120,
|
|
pack: 'center',
|
|
align : 'strech',
|
|
items:[{
|
|
xtype: 'button',
|
|
width: '100%',
|
|
id:'sys_edit',
|
|
text: 'Edit Connections',
|
|
handler: function( b, e ){
|
|
loadSystemEditor();
|
|
}
|
|
},{
|
|
xtype: 'button',
|
|
width: '100%',
|
|
id:'map_edit',
|
|
text: 'Edit Locations',
|
|
handler: function( b, e ){
|
|
loadLocationEditor();
|
|
}
|
|
},{
|
|
xtype: 'button',
|
|
width: '100%',
|
|
id:'logout',
|
|
text: 'Logout',
|
|
handler: function( b, e ){
|
|
window.location = '/login.php?UID=1';
|
|
}
|
|
}]
|
|
},{
|
|
title: 'Profile Settings',
|
|
html: '<p>Panel content!</p>'
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
region:'center',
|
|
margins: '5 5 5 0',
|
|
id: 'main_content',
|
|
title: 'System Dashboard',
|
|
items:[{
|
|
xtype: 'portal',
|
|
id: 'main_portal',
|
|
frame: false,
|
|
border: false,
|
|
items:{
|
|
html: '<p style="padding:10px;color:#556677;font-size:11px;"><center><img src="/style/img/logo.png"></center></p>'
|
|
}
|
|
}]
|
|
}]
|
|
});
|
|
loadDashBoard();
|
|
});
|