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.
485 lines
19 KiB
485 lines
19 KiB
<?php
|
|
require_once('../ajax_asm.php');
|
|
if( $CUser->Data['id'] > 1 ){
|
|
$Z = intval( $_POST['NID'] );
|
|
if( $Z ){
|
|
$QS = "SELECT * FROM `nodes` WHERE `id`={$Z}";
|
|
$NN = $DATABASE->Query( $QS );
|
|
if( count( $NN ) ){
|
|
$Node = $NN[0];
|
|
switch( $Node['type'] ){
|
|
case 0:{
|
|
$QS="SELECT * FROM `servers` WHERE `id`={$Node['aux_id']}";
|
|
$SDD = $DATABASE->Query( $QS );
|
|
$NData = $SDD[0];
|
|
$QS="SELECT * FROM `resources` WHERE `node_id`={$Z} AND ( `type`=101 OR `type`=102 )";
|
|
$CN = $DATABASE->Query( $QS );
|
|
$IL=array();
|
|
foreach( $CN as $N ){
|
|
$QS="SELECT * FROM `networks` WHERE `nif_id`={$N['aux_id']} AND `type`=0";
|
|
$NWD = $DATABASE->Query( $QS );
|
|
$NW = $NWD[0];
|
|
$IL[]="<td width=\"50px\"><img width=\"32\" src=\"/style/assets/".(($N['type']==101)?'NICs.png':'wifi-icon.png')."\"></td><td align=\"right\"><b>{$N['device']}:</b></td><td><b>{$NW['address']}</b></td>";
|
|
};
|
|
$NIFO = '<table><tr>' . implode( '</tr><tr>', $IL ) . '</tr></table>';
|
|
?>
|
|
{
|
|
xtype: 'tabpanel',
|
|
frame: false,
|
|
id: 'node_settings_content',
|
|
border: false,
|
|
activeTab: 0,
|
|
items: [{
|
|
xtype: 'panel',
|
|
title: 'General Info',
|
|
layout: 'hbox',
|
|
items:[{
|
|
xtype: 'panel',
|
|
flex: 1,
|
|
height: 303,
|
|
autoScroll: false,
|
|
html: '<table width="100%" border=0><tr><td height="290px" align="center" valign="middle"><div class="server_img_set"></div></td></tr></table>'
|
|
},{
|
|
xtype: 'form',
|
|
id: '_ed_small',
|
|
flex: 1,
|
|
height: 303,
|
|
autoScroll: false,
|
|
//layout: 'vbox',
|
|
labelWidth: 120,
|
|
labelAlign: 'right',
|
|
items:[{
|
|
xtype: 'textfield',
|
|
fieldLabel: '<?=$Labels->GetLabel( 'SERV_NAME' );?>',
|
|
id: 'node_name',
|
|
value: '<?=$Node['name'];?>',
|
|
listeners:{
|
|
change: function(){
|
|
settingsChangeNotifier( 'node_name' );
|
|
Ext.getCmp('sasa_bo').enable();
|
|
}
|
|
}
|
|
},{
|
|
xtype: 'panel',
|
|
width: '100%',
|
|
html: '<div class="sideInfo_item" id="INFO_ON"><?=$Labels->GetLabel( 'SERV_BLD_TAG' ).': '.$NData['version_string'];?></div>'
|
|
},{
|
|
xtype: 'panel',
|
|
width: '100%',
|
|
html: '<div class="setEd_infoPanel" id="INFO_IPS"><?=$NIFO;?></div>'
|
|
},{
|
|
xtype: 'button',
|
|
id: 'sasa_bo',
|
|
width: '100%',
|
|
disabled: true,
|
|
text: 'Apply Changes',
|
|
handler: function(){
|
|
}
|
|
}]
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
title: 'Resources',
|
|
layout: 'hbox',
|
|
items:[{
|
|
xtype: 'panel',
|
|
flex: 1,
|
|
height: 303,
|
|
autoScroll: 'auto',
|
|
//layout: 'fit',
|
|
items:[<?php
|
|
$QS = "SELECT * FROM resources WHERE `node_id`={$Z}";
|
|
$Result = $DATABASE->Query( $QS, false );
|
|
if( count( $Result ) ){
|
|
foreach( $Result as $R ){
|
|
switch( $R['type'] ){
|
|
case 1:
|
|
//Uart
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="UART_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('UART_LINE_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 6:
|
|
//USB DC
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="USBDC_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('UART_LINE_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 31:
|
|
//Video Grabber
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="VIDEO_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('FRAMEGRAB_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 100:
|
|
//Loopback
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('LOOPBACK_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 101:
|
|
//Ethernet Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('ETHERNET_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 102:
|
|
//WiFi Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('WIFI_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 103:
|
|
//Virtual IP Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('VIRTUALIP_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 104:
|
|
//VPN Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('VPN_TUN_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 105:
|
|
//WAN Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('WAN_LINE_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
//Media Encoder Sink
|
|
case 131: // Video Encoder Sink
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="MEDIA_'.(($R['active']==0)?'N':'O').'">'.'Video Sink'.' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 132: // Audio Encoder Sink
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="MEDIA_'.(($R['active']==0)?'N':'O').'">'.'Audio Sink'.' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
default:
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a align="center" style="padding: 5px; color: black; background-color: grey;">'.$R['device'].' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
};
|
|
};
|
|
echo implode( ',', $SockDataParts );
|
|
};
|
|
?>]
|
|
},{
|
|
xtype: 'panel',
|
|
id: 'res_ed_small',
|
|
flex: 1,
|
|
height: 303,
|
|
layout: 'fit',
|
|
items:[{
|
|
html:'<div class="setEd_infoPanel" id="NUNU"><?=$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_');?></div>'
|
|
}]
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
title: 'Modules',
|
|
layout: 'hbox',
|
|
items:[{
|
|
xtype: 'panel',
|
|
flex: 1,
|
|
height: 303,
|
|
autoScroll: 'auto',
|
|
tbar:[{
|
|
text: 'Add Module'
|
|
}],
|
|
items:[<?php
|
|
$QS = "SELECT * FROM server_modules WHERE `server_id`={$Node['aux_id']}";
|
|
$Result = $DATABASE->Query( $QS, false );
|
|
if( count( $Result ) ){
|
|
foreach( $Result as $R ){
|
|
$QS = "SELECT * FROM server_module_types WHERE id={$R['type']}";
|
|
$MOMO = $DATABASE->Query( $QS, false );
|
|
$MOD = $MOMO[0];
|
|
switch( $R['type'] ){
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
case 8:
|
|
case 9:
|
|
case 10:
|
|
$ModPart[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="UART_'.(($R['enabled']==0)?'N':'O').'" onclick="editModule('.$R['id'].');">'.$Labels->GetLabel($MOD['name']).'</a>\'}';
|
|
break;
|
|
default:
|
|
$ModPart[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a align="center" style="padding: 5px; color: black; background-color: grey;">'.$R['device'].'</a>\'}';
|
|
};
|
|
};
|
|
echo implode( ',', $ModPart );
|
|
};
|
|
?>]
|
|
},{
|
|
xtype: 'panel',
|
|
id: 'mod_ed_small',
|
|
flex: 1,
|
|
height: 303,
|
|
layout: 'fit',
|
|
items:[{
|
|
html:'<div class="setEd_infoPanel" id="NUNU"><?=$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_');?></div>'
|
|
}]
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
title: 'Network',
|
|
items:[]
|
|
}],
|
|
listeners:{
|
|
afterrender: function(){
|
|
settingsAreChanged = false;
|
|
}
|
|
},
|
|
updateSettings: function(){
|
|
alert('Update Settings');
|
|
}
|
|
}
|
|
<?php
|
|
break;
|
|
};
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:{
|
|
//Serial Devices
|
|
$QS = "SELECT * FROM `lrf_sensors` WHERE `id`={$Node['aux_id']}";
|
|
$RR=$DATABASE->Query( $QS );
|
|
$NData = $RR[0];
|
|
$NIFO = $Labels->GetLabel( 'SERV_BLD_TAG' ).':'. $NData['version'];
|
|
?>
|
|
{
|
|
xtype: 'tabpanel',
|
|
frame: false,
|
|
id: 'node_settings_content',
|
|
border: false,
|
|
activeTab: 0,
|
|
items: [{
|
|
xtype: 'panel',
|
|
title: 'General Info',
|
|
layout: 'hbox',
|
|
items:[{
|
|
xtype: 'panel',
|
|
flex: 1,
|
|
height: 303,
|
|
autoScroll: false,
|
|
html: '<table width="100%" border=0><tr><td height="290px" align="center" valign="middle"><div id="node_pic" class="node_<?=$Node['type'];?>_img_set"></div></td></tr></table>'
|
|
},{
|
|
xtype: 'form',
|
|
id: '_ed_small',
|
|
flex: 1,
|
|
height: 303,
|
|
autoScroll: false,
|
|
//layout: 'vbox',
|
|
labelWidth: 120,
|
|
labelAlign: 'right',
|
|
items:[{
|
|
xtype: 'textfield',
|
|
fieldLabel: "<?=$Labels->GetLabel( 'SENS_NAME' );?>",
|
|
id: 'node_name',
|
|
value: '<?=$Node['name'];?>',
|
|
listeners:{
|
|
change: function(){
|
|
settingsChangeNotifier( 'node_name' );
|
|
Ext.getCmp('sasa_bo').enable();
|
|
}
|
|
}
|
|
},{
|
|
xtype: 'combo',
|
|
fieldLabel: "<?=$Labels->GetLabel( 'SENS_TYPE' );?>",
|
|
id: 'node_type',
|
|
lazyRender: true,
|
|
mode: 'local',
|
|
forceSelection: true,
|
|
triggerAction: 'all',
|
|
editable: false,
|
|
disableKeyFilter: true,
|
|
store: new Ext.data.ArrayStore({
|
|
fields: ['aa_t','aa_txt'],
|
|
data: [
|
|
[1,'ALS Sensor'],
|
|
[2,'LFS Sensor'],
|
|
[3,'PLS 200 Sensor'],
|
|
[4,'PLS 360 Sensor']
|
|
]
|
|
}),
|
|
valueField: 'aa_t',
|
|
displayField: 'aa_txt',
|
|
value: '<?=$Node['type'];?>',
|
|
listeners:{
|
|
select: function( t, r, i ){
|
|
var n = r.data.aa_t;
|
|
//var b = t.getValue();
|
|
//if( n != b ){
|
|
document.getElementById('node_pic').className = 'node_'+ n +'_img_set';
|
|
settingsChangeNotifier( 'node_type' );
|
|
Ext.getCmp('sasa_bo').enable();
|
|
//};
|
|
},
|
|
change: function( t, n, o ){
|
|
document.getElementById('node_pic').className = 'node_'+ n +'_img_set';
|
|
settingsChangeNotifier( 'node_type' );
|
|
Ext.getCmp('sasa_bo').enable();
|
|
}
|
|
}
|
|
},{
|
|
xtype: 'numberfield',
|
|
fieldLabel: "<?=$Labels->GetLabel( 'SENS_RANGE' );?>",
|
|
id: 'node_range',
|
|
value: '<?=$NData['max_range'];?>',
|
|
listeners:{
|
|
change: function( t, n, o ){
|
|
settingsChangeNotifier( 'node_range' );
|
|
Ext.getCmp('sasa_bo').enable();
|
|
}
|
|
}
|
|
},{
|
|
xtype: 'panel',
|
|
width: '100%',
|
|
html: '<div class="sideInfo_item" id="INFO_ON"><?=$Labels->GetLabel( 'SETIAL_TAG' ).': '.$NData['serial'];?></div>'
|
|
},{
|
|
xtype: 'panel',
|
|
width: '100%',
|
|
html: '<div class="setEd_infoPanel" id="INFO_IPS"><?=$NIFO;?></div>'
|
|
},{
|
|
xtype: 'button',
|
|
id: 'sasa_bo',
|
|
width: '100%',
|
|
disabled: true,
|
|
text: 'Apply Changes',
|
|
handler: function(){
|
|
}
|
|
}]
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
title: 'Resources',
|
|
layout: 'hbox',
|
|
items:[{
|
|
xtype: 'panel',
|
|
flex: 1,
|
|
height: 303,
|
|
autoScroll: 'auto',
|
|
//layout: 'fit',
|
|
items:[<?php
|
|
$QS = "SELECT * FROM resources WHERE `node_id`={$Z}";
|
|
$Result = $DATABASE->Query( $QS, false );
|
|
$SockDataParts = array();
|
|
if( count( $Result ) ){
|
|
foreach( $Result as $R ){
|
|
switch( $R['type'] ){
|
|
case 1:
|
|
//Uart
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="UART_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('UART_LINE_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 6:
|
|
//USB DC
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="USBDC_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('UART_LINE_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 31:
|
|
//Video Grabber
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="VIDEO_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('FRAMEGRAB_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 100:
|
|
//Loopback
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('LOOPBACK_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 101:
|
|
//Ethernet Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('ETHERNET_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 102:
|
|
//WiFi Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('WIFI_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 103:
|
|
//Virtual IP Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('VIRTUALIP_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 104:
|
|
//VPN Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('VPN_TUN_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 105:
|
|
//WAN Interface
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="NET_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$Labels->GetLabel('WAN_LINE_PROP').' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
//Media Encoder Sink
|
|
case 131: // Video Encoder Sink
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="MEDIA_'.(($R['active']==0)?'N':'O').'">'.'Video Sink'.' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
case 132: // Audio Encoder Sink
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="MEDIA_'.(($R['active']==0)?'N':'O').'">'.'Audio Sink'.' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
break;
|
|
default:
|
|
$SockDataParts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a align="center" style="padding: 5px; color: black; background-color: grey;">'.$R['device'].' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
};
|
|
};
|
|
echo implode( ',', $SockDataParts );
|
|
};
|
|
?>]
|
|
},{
|
|
xtype: 'panel',
|
|
id: 'res_ed_small',
|
|
flex: 1,
|
|
height: 303,
|
|
layout: 'fit',
|
|
items:[{
|
|
html:'<div class="setEd_infoPanel" id="NUNU"><?=$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_');?></div>'
|
|
}]
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
title: 'Detection Settings',
|
|
layout: 'hbox',
|
|
items:[{
|
|
xtype: 'panel',
|
|
flex: 1,
|
|
height: 303,
|
|
autoScroll: 'auto',
|
|
//layout: 'fit',
|
|
items:[<?php
|
|
$QS = "SELECT DISTINCT `profile_id` FROM `lrf_detection_profiles` WHERE `aux_id`={$Node['aux_id']} ORDER BY `profile_id`";
|
|
$ZUBI = $DATABASE->Query( $QS );
|
|
$Proparts = array();
|
|
foreach( $ZUBI as $Z ){
|
|
switch( $Z['profile_id'] ){
|
|
case 1: $MOMO = 'Low Sensitivity Profile'; break;
|
|
case 2: $MOMO = 'Medium Sensitivity Profile'; break;
|
|
case 3: $MOMO = 'High Sensitivity Profile'; break;
|
|
default: $MOMO = 'Factory Profile'; break;
|
|
};
|
|
$Proparts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="VIDEO_'.(($R['active']==0)?'N':'O').'" onclick="editResource('.$R['id'].');">'.$MOMO.' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
};
|
|
if( count( $ZUBI ) > 1 ){
|
|
$Proparts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="VIDEO_O" onclick="editWidthTable('.$Node['aux_id'].');">'."Profiles Schedule".' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
};
|
|
$Proparts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="VIDEO_O" onclick="editWidthTable('.$Node['aux_id'].');">'."Width Table".' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
// Check if Masks Exists
|
|
$QS = "SELECT `id` FROM `lrf_masks` WHERE `sensor_id`={$Node['aux_id']}";
|
|
$MM = $DATABASE->Query( $QS );
|
|
if( count( $MM ) ){
|
|
$Proparts[] = '{ xtype: \'panel\', boder: false, frame: false, html: \'<a class="sideInfo_item" id="VIDEO_O" onclick="editMaskSchedule('.$Node['aux_id'].');">'."Mask Schedule".' '.(($R['used']==0)?'':'<img title="used" src="/style/icons/icons/link.png">').'</a>\'}';
|
|
};
|
|
echo implode( ',', $Proparts );
|
|
?>]
|
|
},{
|
|
xtype: 'panel',
|
|
id: 'dep_ed_small',
|
|
flex: 1,
|
|
height: 303,
|
|
layout: 'fit',
|
|
items:[{
|
|
html:'<div class="setEd_infoPanel" id="NUNU"><?=$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_');?></div>'
|
|
}]
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
title: 'Embed Options',
|
|
layout: 'hbox',
|
|
items:[{
|
|
}]
|
|
},{
|
|
xtype: 'panel',
|
|
title: 'Advanced',
|
|
layout: 'hbox',
|
|
items:[{
|
|
}]
|
|
}]
|
|
}
|
|
<?php
|
|
break;
|
|
};
|
|
};
|
|
} else {
|
|
echo "{}";
|
|
};
|
|
} else {
|
|
echo "{}";
|
|
};
|
|
} else {
|
|
echo "{}";
|
|
};
|
|
?>
|