Web Interface For Lite Argus Control modules
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.
 
 
 
 

111 lines
2.9 KiB

//<?php require_once('../../js_asm.php'); ?>
function loadSingleIPI(){
if( tlInterval!= null ){
window.clearInterval( tlInterval );
tlInterval = null;
timelineObj = null;
};
setUserContent( 11 );
var tPanel = Ext.getCmp('main_portal');
tPanel.removeAll( true );
Ext.getCmp('main_content').setTitle( 'Single IPI Monitoring' );
tPanel.add({
columnWidth: 1,//0.83
frame: false,
border: false,
items: [{
title: '<?=$Labels->getLabel('_VIDEO_MONITORING_');?>',
<?php
$QS = "SELECT * FROM `nodes` WHERE `type` IN (10,11,12,13)";
$RetVal = $DATABASE->Query( $QS );
?>
frame: false,
border: false,
collapsible: false,
draggable: false,
layout: 'vbox',
layoutConfig: {
align : 'stretch',
pack : 'start',
},
height: PanelH-300,
items:[{
height: PanelH-325,
flex: 1,
frame: false,
border: false,
layout: 'fit',
items:{
id: 'event_map',
html:
<?php
if( count( $RetVal ) == 1 ){
$CN = $RetVal[0];
$NODEID = intval( $CN['id'] );
$CAMID = intval( $CN['aux_id'] );
$STREAMID = intval( $CN['aux_parameter'] );
$QS="SELECT * FROM `module_embed_video_settings` WHERE `id`=1";
$S=$DATABASE->Query( $QS );
$MODULE_DATA = $S[0];
$FU = 'http://' . $_SERVER['SERVER_ADDR'].':' . $MODULE_DATA['web_port'] .'/stream?id='. $STREAMID;
echo "'<img onmouseover=\"ptzCtrl(\'img-{$NODEID}\');\" ondblclick=\"fullScreen(\'img-{$NODEID}\');\" style=\"cursor: zoom-in\" id=\"img-{$NODEID}\" src=\"{$FU}\" widtsh=\"%%%WIDTH%%%\" height=\"100%\"/>'";
} else if( count( $RetVal ) ){
echo "'&nbsp;Too Many Cameras are Defined For this Site'";
} else {
echo "'&nbsp;No Cameras Defined On the Site!'";
};
?>
}
}]
},{
frame: false,
border: true,
collapsible: false,
draggable: false,
layout: 'hbox',
items:[{
title: 'Event Log',
height: 303,
xtype: 'grid',
border: false,
frame: false,
collapsible: false,
draggable: false,
ds: eventsListStore,
cm: new Ext.grid.ColumnModel( eventsListColModel_ops ),
sm: new Ext.grid.RowSelectionModel( eventsListSelModel_ops ),
bbar: [{
text: 'Clear',
handler: function(){
Ext.Ajax.request({
url: '/lib/controller/clearEventCloud.php',
params: {
UID: <?=$UserID;?>,
SID: '<?=$Session;?>'
},
success: function( response, opts ){
},
failure: function( response, opts ) {
}
});
}
}]
}]
}]
});
//tPanel.add({
// columnWidth: 0.17,
// title: 'Event Information',
// frame: true,
// id: 'prop_content',
// border: false,
// items: [{
// html:'<div class="setEd_infoPanel" id="NUNU"><?=$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_');?></div>'
// }]
//});
tPanel.doLayout();
};