|
|
<?php require_once('../ajax_asm.php'); if( $CUser->Data['id'] > 1 ){ $Z = intval( $_POST['NID'] ); $CT = intval( $_POST['TAB'] ); 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: <?=$CT;?>,
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', handler: function(){ var addModuleWindow = new Ext.Window({ id: 'huha_boa', title: 'Add Server Module', modal: true, width: 400, height: 300, items:[{ xtype: 'form', items: [{ xtype: 'combo', fieldLabel: "<?=$Labels->GetLabel( 'MOD_TYPE' );?>", id: 'mod_type', lazyRender: true, mode: 'local', forceSelection: true, triggerAction: 'all', editable: false, disableKeyFilter: true, store: new Ext.data.ArrayStore({ fields: ['az_t','az_txt'], data: [<?php $QS = "SELECT * FROM `server_module_types`"; $MM = $DATABASE->Query( $QS ); $MIMO = array(); foreach( $MM as $M ) $MIMO[]="[{$M['id']},'".$Labels->GetLabel($M['name'])."']"; echo implode( ',', $MIMO ); ?>]
}), valueField: 'az_t', displayField: 'az_txt', value: 1, listeners:{ select: function( t, r, i ){ var n = r.data.az_t; Ext.Ajax.request({ url: '/lib/controller/getModuleInfo.php', params: { MID: n, UID: <?=$UserID;?>,
SID: '<?=$Session;?>' }, success: function( response, opts ){ Ext.getCmp('infopan').update( response.responseText ); } }); } } },{ xtype: 'panel', id: 'infopan', html: '<table width="100%" border=0 class="setEd_infoPanel" id="UART"><tr><td width="65px"><img width="64px" src="/style/assets/ZL_logo.png"></td><td valign="middle"><?=$Labels->GetLabel('_ZL_MEDIA_DESC_SHO_');?></td></tr><tr><td colspan=2><?=$Labels->GetLabel('_ZL_MEDIA_DESC_LOO_');?></td></tr></table>' }] }], bbar:[{ text: 'Cancel', handler: function(){ addModuleWindow.close(); } },{ text: 'Add Module', handler: function(){ var mtyp = Ext.getCmp('mod_type').getValue(); Ext.Ajax.request({ url: '/lib/controller/addServerModule.php', params: { SERVID: <?=$Node['aux_id'];?>,
TYPE: mtyp, UID: <?=$UserID;?>,
SID: '<?=$Session;?>' }, success: function( response, opts ){ // If the response is JSON, you have to decode it
var data = Ext.decode(response.responseText); if( data.status == 'ok' ){ addModuleWindow.close(); showSettings( SelectedNodeID, 2 ); } else { Ext.Msg.show({ title:'<?=$Labels->GetLabel("_INFO_MSG_");?>', msg: data.msg, buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){ //SettingsLidar3D.hide();
}, icon: Ext.MessageBox.INFO //QUESTION
}); } }, failure: failureAJAXFunction }); } }] }); addModuleWindow.show(); } }], 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: 'numberfield', fieldLabel: "<?=$Labels->GetLabel( '_PROTO_DEVICE_ID_' );?>", id: 'node_pid', value: '<?=$NData['device_id'];?>', listeners:{ change: function( t, n, o ){ settingsChangeNotifier( 'node_pid' ); 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(){ var nm = Ext.getCmp('node_name').getValue(); var typ = Ext.getCmp('node_type').getValue(); var rang = Ext.getCmp('node_range').getValue(); var pipi = Ext.getCmp('node_pid').getValue(); Ext.Ajax.request({ url: '/lib/controller/updateLrfSettings.php', params: { NID: <?=$Node['id'];?>,
NAME: nm, TYPE: typ, RANGE: rang, PID: pipi, UID: <?=$UserID;?>,
SID: '<?=$Session;?>' }, success: function( response, opts ){ var data = Ext.decode(response.responseText); if( data.status == 'ok' ){ settingsWindow.hide(); loadSystemEditor(); } else { Ext.Msg.show({ title:'<?=$Labels->GetLabel("_INFO_MSG_");?>', msg: data.msg, buttons: Ext.Msg.OK, fn: function(){ //SettingsLidar3D.hide();
}, icon: Ext.MessageBox.INFO //QUESTION
}); }; }, failure: failureAJAXFunction }); } }] }] },{ 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 "{}"; }; ?>
|