Web UI for ARGUS server
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.
 
 
 
 

124 lines
2.8 KiB

//<?php require_once('../../js_asm.php'); ?>
Ext.onReady(function(){
var viewport = new Ext.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',
baseCls:'x-plain',
split:true,
width:150,
minWidth: 100,
maxWidth: 250,
layout:'fit',
margins: '5 0 5 5',
items: [{
xtype: 'panel',
//baseCls: 'x-plain',
height: 400,
title: 'R-Goose System',
layout:'accordion',
defaults: {
// applied to each contained panel
bodyStyle: 'padding:5px'
},
layoutConfig: {
// layout-specific configs go here
titleCollapse: false,
animate: true//,
//activeOnTop: 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>'
}]
}]
},{
region:'center',
margins: '5 5 5 0',
id: 'main_content',
layout: 'fit',
items:[{
xtype: 'panel',
html: '<p style="padding:10px;color:#556677;font-size:11px;"><center><img src="/style/img/logo.png"></center></p>'
}]
}]
});
loadDashBoard();
});