|
|
<?php
$STATION_VIEW_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', layout: 'vbox', border: false, frame: false, height: PanelH+16, items:[{ xtype: 'panel', height: PanelH+16, border: false, frame: false, width: '100%', autoScroll: true, //bodyCssClass: 'mon_videoPanel_allert',
tbar:[{ xtype: 'button', text: 'Map Level', handler: getBackToMap },{ xtype: 'button', text: '%%STATION%NAME%%', enableToggle: true, pressed: true, disabled: false, allowDepress: false },'->',{ xtype: 'button', id: 'aer_button', text: 'Event Auto Rise', enableToggle: true, pressed: autoRiseEvent, handler: function( t ){ autoRiseEvent = t.pressed; } }], items: [{ xtype:'spacer', height: 10 },%%%PANELS%%%] }]}DATA_BOUNDARY;$STATION_HISTORY_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', layout: 'vbox', border: false, frame: false, height: PanelH+16, items:[{ xtype: 'panel', height: PanelH+16, border: false, frame: false, width: '100%', autoScroll: true, //bodyCssClass: 'mon_videoPanel_allert',
tbar:[{ xtype: 'button', text: 'Map Level', handler: getBackToHistoryMap },{ xtype: 'button', text: '%%STATION%NAME%%', enableToggle: true, iconCls: 'reports_dates_btn_small', scale: 'small', pressed: true, disabled: false, allowDepress: false }], items: [{ xtype:'spacer', height: 10 },%%%PANELS%%%] }]}DATA_BOUNDARY;$PLATFORM_VIEW_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', layout: 'vbox', border: false, frame: false, height: PanelH+16, items:[{ xtype: 'panel', height: PanelH+16, border: false, frame: false, width: '100%', autoScroll: true, //bodyCssClass: 'mon_videoPanel_allert',
tbar:[{ xtype: 'button', text: 'Map Level', handler: getBackToMap },{ xtype: 'button', text: '%%STATION%NAME%%', handler: function(){ loadStationView( %%STATION%ID%% ); } },{ xtype: 'button', text: '%%PLATFORM%NAME%%', enableToggle: true, pressed: true, allowDepress: false },'->',{ xtype: 'button', id: 'aer_button', text: 'Event Auto Rise', enableToggle: true, pressed: autoRiseEvent, handler: function( t ){ autoRiseEvent = t.pressed; } }], items: [{ xtype:'spacer', height: 10 },%%%PANELS%%%] }]}DATA_BOUNDARY;
$TRACK_VIEW_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', layout: 'vbox', border: false, frame: false, height: PanelH+16, items:[{ id: 'trx_view', xtype: 'panel', height: PanelH+16, border: false, frame: false, width: '100%', autoScroll: true, tbar:[{ xtype: 'button', text: 'Map Level', handler: getBackToMap },{ xtype: 'button', text: '%%STATION%NAME%%', handler: function(){ loadStationView( %%STATION%ID%% ); } },{ xtype: 'button', text: '%%PLATFORM%NAME%%', handler: function(){ loadPlatformView( %%PLATFORM%ID%% ); } },{ xtype: 'button', text: '%%TRACK%NAME%%', enableToggle: true, pressed: true, allowDepress: false },'->',{ xtype: 'button', id: 'aer_button', text: 'Event Auto Rise', enableToggle: true, pressed: autoRiseEvent, handler: function( t ){ autoRiseEvent = t.pressed; } }], items: [{ xtype:'spacer', height: 10 },%%%PANELS%%%] }]}DATA_BOUNDARY;
$TRACK_HISTORY_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', layout: 'vbox', border: false, frame: false, height: PanelH+16, items:[{ id: 'trx_view', xtype: 'panel', height: PanelH+16, border: false, frame: false, width: '100%', autoScroll: true, tbar:[{ xtype: 'button', text: 'Map Level', handler: getBackToHistoryMap },{ xtype: 'button', text: '%%STATION%NAME%%', iconCls: 'reports_dates_btn_small', scale: 'small', handler: function(){ loadHistoryStation( %%STATION%ID%% ); } },{ xtype: 'button', text: '%%PLATFORM%NAME%%', enableToggle: true, pressed: true, allowDepress: false },{ xtype: 'button', text: '%%TRACK%NAME%%', enableToggle: true, pressed: true, allowDepress: false }], items: [{ xtype:'spacer', height: 10 },%%%PANELS%%%] }]}DATA_BOUNDARY;
$MODULE_VIEW_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', layout: 'vbox', border: false, frame: false, height: PanelH+16, items:[{ xtype: 'panel', height: PanelH+16, border: false, frame: false, width: '100%', autoScroll: true, //bodyCssClass: 'mon_videoPanel_allert',
tbar:[{ xtype: 'button', text: 'Map Level', handler: getBackToMap },{ xtype: 'button', text: '%%STATION%NAME%%', handler: function(){ loadStationView( %%STATION%ID%% ); } },{ xtype: 'button', text: '%%PLATFORM%NAME%%', handler: function(){ loadPlatformView(%%%PLATFORM%ID%%%); } },{ xtype: 'button', text: '%%MODULE%NAME%%', enableToggle: true, pressed: true, allowDepress: false },'->',{ xtype: 'button', id: 'aer_button', text: 'Event Auto Rise', enableToggle: true, pressed: autoRiseEvent, handler: function( t ){ autoRiseEvent = t.pressed; } }], items: [{ xtype:'spacer', height: 10 },%%%PANELS%%%] }]}DATA_BOUNDARY;$STATION_PLATFORM_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', border: true, frame: true, layout: 'table', width: '100%', defaults: { bodyStyle:'padding:3px' }, layoutConfig: { columns: 4 }, title: '%%%PLATFORM%TITLE%%%', id: 'plat_panel_%%%PLATFORM%ID%%%', items:[{ title: 'Platform Schematics', frame: true, id: 'plat_schematics_%%%PLATFORM%ID%%%', items:[{ xtype: 'panel', html: '%%%PLATFORM%MAP%%%' },{ xtype: 'spacer', height: 10 },{ xtype: 'button', text: 'Select', scale: 'large', width: '100%', handler: function(){ loadPlatformView(%%%PLATFORM%ID%%%); } }], colspan: 2, rowspan: 2 },%%%VIDEO1%%%,%%%VIDEO2%%%,%%%VIDEO3%%%,%%%VIDEO4%%%]}DATA_BOUNDARY;
$PLATFORM_PLATFORM_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', border: false, frame: false, layout: 'table', width: '100%', defaults: { //bodyStyle:'padding:3px'
}, layoutConfig: { columns: 4 }, //title: '%%%PLATFORM%TITLE%%%',
id: 'plat_panel_%%%PLATFORM%ID%%%', items:[%%%VIDEOUF%%%,{ frame: true, id: 'plat_schematics_%%%PLATFORM%ID%%%', items:[{ xtype: 'panel', html: '%%%PLATFORM%MAP%%%' },{ xtype: 'spacer', height: 10 }], colspan: 2, rowspan: 2 },%%%VIDEOUN%%%,%%%VIDEOBN%%%,%%%VIDEOBF%%%]}DATA_BOUNDARY;
$MODULE_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', border: true, frame: true, layout: 'table', width: '100%', defaults: { bodyStyle:'padding:3px' }, layoutConfig: { columns: 4 }, title: '%%%MODULE%TITLE%%%', id: 'module_panel_%%MID%%', items:[{ title: 'Location Schematics', frame: true, id: 'module_schematics_%%MID%%', width: 800, items:[{ xtype: 'panel', html: '%%%MODULE%MAP%%%' },{ xtype: 'spacer', height: 10 }], colspan: 2, rowspan: 2 },%%%VIDEO%%%]}DATA_BOUNDARY;
$EMPTY_VIDEO_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', frame: true, custom: '%%MID%%', items:[{ html:'<div id="plat_video_%%%PLATFORM%ID%%%_%%MID%%" style="display: block;"> </div><div style="display: block; height: 42px;"> </div>' }], listeners:{ afterrender: function( p ){ var zz = p.findParentByType('panel'); var xx = zz.getInnerWidth() * 450 / 1600; var yy = xx * 1600 / 900; p.setWidth( yy ); p.setHeight( xx + 32 ); //var z = Ext.getCmp('j_video_%%MID%%');
//z.setHeight( xx );
//z.setWidth( yy );
//var jv = document.getElementById('video_player_%%MID%%');
//jv.setAttribute('height', ''+xx);
//jv.setAttribute('width', ''+yy);
} }}DATA_BOUNDARY;
$EMPTY_NO_AC_VIDEO_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', frame: true, custom: '%%MID%%', items:[{ html:'<div id="plat_video_%%%PLATFORM%ID%%%_%%MID%%" style="display: block;"> </div><div style="display: block; height: 42px;"> </div>' }]}DATA_BOUNDARY;
$SIMPLE_VIDEO_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', title: '%%%%TITLE%%%', headerStyle: 'text-align:center', frame: true, custom: '%%MID%%', bodyCssClass: 'mon_videoPanel', items:[{ html:'<video id="plat_video_%%%PLATFORM%ID%%%_%%MID%%" ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" autoplay playsinline muted width="100%" ></video><!--img id="plat_video_%%%PLATFORM%ID%%%_%%MID%%" width="123px" src="%%%IMG%URL%%%"-->' },{ xtype: 'spacer', height: 5 },{ html:'<div id="plat_status_%%%PLATFORM%ID%%%_%%MID%%" class="%%%STATUS%CLASS%%">%%%STATUS%%%</div>' }], listeners:{ render: function(panel) { panel.body.on('click', function() { //loadModuleView( %%%PLATFORM%ID%%%, %%MID%% );
loadTrackView( %%TRACK%ID%% ); }); }, afterrender: function(){ //alert('A32');
startWhepClient( 'plat_video_%%%PLATFORM%ID%%%_%%MID%%', '%%MIP%%', 'stream_%%MCID%%' ); } }}DATA_BOUNDARY;
$EXT_VIDEO_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', id: 'plat_video_panel_%%MID%%', border: true, title: '%%%TITLE%%%', headerStyle: 'text-align:center', sukaMineWidth: -1, items:[{ id: 'plat_video_%%MID%%', border: true, width: '100%', html: '<div id="plat_video_div_%%MID%%" style="display: flex;align-items: center;" ><video id="plat_video_%%%PLATFORM%ID%%%_%%MID%%" ondblclick="fullScreen(\'plat_video_div_%%MID%%\');" style="cursor: zoom-in" autoplay playsinline muted width="100%" ></video><!--img id="plat_video_img_%%MID%%" ondblclick="fullScreen(\'plat_video_div_%%MID%%\');" style="cursor: zoom-in" src="%%%SELURL%%%" width="100%" /--><div id="cam_ctrl_%%MID%%" style="display: none; float: left; position: absolute; left: 30px; bottom: 30px; z-index: 1000;"><table width="100%" border=0><tr><td width="24"><img id="img_btn_010_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/010.png"></td><td width="24"><img id="img_btn_032_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/032.png"></td><td width="24"><img id="img_btn_033_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/033.png"></td><td width="24"><img id="img_btn_034_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/034.png"></td><td> </td></tr><tr><td><img id="img_btn_011_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/011.png"></td><td><img id="img_btn_031_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/031.png"></td><td><img id="img_btn_020_%%MID%%" class="ptz_ctrl_btn" src="/style/png/basic/020.png"></td><td><img id="img_btn_027_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/027.png"></td><td> </td></tr><tr><td>%%%HBTN%%%</td><td><img id="img_btn_030_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/030.png"></td><td><img id="img_btn_029_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/029.png"></td><td><img id="img_btn_028_%%MID%%" class="ptz_ctrl_btn" src="/style/png/player/028.png"></td><td> </td></tr></table></div></div>' }], listeners:{ afterrender: function( p ){ var zz = p.findParentByType('panel'); var xx = zz.getInnerWidth() * 450 / 1600; var yy = xx * 1600 / 900; p.setWidth( yy ); p.setHeight( xx + 32 ); var z = Ext.getCmp('plat_video_%%MID%%'); z.setHeight( xx ); z.setWidth( yy ); var jv = document.getElementById('plat_video_div_%%MID%%'); jv.setAttribute('height', ''+xx); jv.setAttribute('width', ''+yy); document.getElementById('img_btn_010_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_010_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_011_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_011_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_027_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_027_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_028_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_028_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_029_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_029_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_030_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_030_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_031_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_031_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_032_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_032_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_033_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_033_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_034_%%MID%%').addEventListener( 'mouseup', makePtzStop ); document.getElementById('img_btn_034_%%MID%%').addEventListener( 'mousedown', makePtzMove ); document.getElementById('img_btn_020_%%MID%%').addEventListener( 'mousedown', makePtzStop ); startWhepClient( 'plat_video_%%%PLATFORM%ID%%%_%%MID%%', '%%MIP%%', 'stream_%%MCID%%' ); } }}DATA_BOUNDARY;//
$VIDEOJS_CTX=<<<DATA_BOUNDARY{ xtype: 'panel', //title: '%%%TITLE%%%',
headerStyle: 'text-align:center', items:[{ id: 'j_video_%%MID%%', border: true, width: '100%', html: '<video id="video_player_%%MID%%" class="video-js" style="cursor: pointer; background-image: url(\'/style/assets/no-signal_h.png\'); background-size: 100% 100%;"/>' }], listeners:{ afterrender: function( p ){ var zz = p.findParentByType('panel'); var xx = parseInt( zz.getInnerWidth() * 450 / 1600 ); var yy = parseInt( xx * 1600 / 900 ); p.setWidth( yy ); p.setHeight( xx ); var z = Ext.getCmp('j_video_%%MID%%'); z.setHeight( xx ); z.setWidth( yy ); var jv = document.getElementById('video_player_%%MID%%'); if( jv != undefined ){ //jv.setAttribute('height', ''+xx+'px');
//jv.setAttribute('width', ''+yy+'px');
//jv.style.width = yy+"px";
//jv.style.height = xx+"px";
jv.setAttribute('height', "100%"); jv.setAttribute('width', "100%"); jv.style.width = "100%"; jv.style.height = "100%"; }; } }}DATA_BOUNDARY;?>
|