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.

367 lines
13 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
​
​
6 years ago
​
​
​
​
6 years ago
​
​
​
​
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
​
​
​
6 years ago
​
​
​
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. function UI_PageHeader(){
  3. global $WEBPath, $Labels, $UserLang;
  4. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  6. <head>
  7. <meta name="netinsert" content="0.0.1.1.2.5.2">
  8. <meta name="revisit-after" content="1 day">
  9. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  10. <title><?=$Labels->GetLabel('_SITE_TITLE_');?></title>
  11. <meta name="description" CONTENT="<?=$Labels->GetLabel('_SITE_DESCRIPT_');?>">
  12. <base href="<?=$WEBPath;?>">
  13. <meta name="robots" content="index, follow"/>
  14. <meta name="keywords" content=""/>
  15. <link rel="stylesheet" type="text/css" href="style/style.css"/>
  16. <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  17. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  18. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  19. <link rel="manifest" href="/site.webmanifest">
  20. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  21. <meta name="msapplication-TileColor" content="#da532c">
  22. <meta name="theme-color" content="#ffffff">
  23. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  24. <meta name="viewport" content="width=device-width, initial-scale=1">
  25. <meta name="mobile-web-app-capable" content="yes">
  26. <meta name="apple-mobile-web-app-capable" content="yes">
  27. <style type="text/css">
  28. .flowplayer {
  29. width: 640px;
  30. }
  31. .fullscreen:-webkit-full-screen {
  32. width: auto !important;
  33. height: auto !important;
  34. margin:auto !important;
  35. }
  36. .fullscreen:-moz-full-screen {
  37. width: auto !important;
  38. height: auto !important;
  39. margin:auto !important;
  40. }
  41. .fullscreen:-ms-fullscreen {
  42. width: auto !important;
  43. height: auto !important;
  44. margin:auto !important;
  45. }
  46. .header_ttl{
  47. font: bold 24px;
  48. }
  49. html, body {
  50. font: normal 12px verdana;
  51. margin: 0;
  52. padding: 0;
  53. border: 0 none;
  54. /*overflow: hidden;
  55. height: 100%;*/
  56. background: #202020;
  57. }
  58. #output {
  59. margin-left: 350px;
  60. }
  61. #log {
  62. width: 80%;
  63. height: 100px;
  64. }
  65. #player {
  66. float: left;
  67. }
  68. #controls {
  69. clear: left;
  70. }
  71. p {
  72. margin: 0;
  73. }
  74. .timeInput, .volumeInput {
  75. width: 3em;
  76. }
  77. </style>
  78. </head>
  79. <body class="bgbody"><center><?php
  80. };
  81. function UI_PageHeaderExt($Static_Scoop = '', $Dynamic_Scoop = ''){
  82. global $WEBPath, $Labels, $UserLang;
  83. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  84. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  85. <head>
  86. <meta name="netinsert" content="0.0.1.1.2.5.2">
  87. <meta name="revisit-after" content="1 day">
  88. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  89. <title><?=$Labels->GetLabel('_SITE_TITLE_');?></title>
  90. <meta name="description" CONTENT="<?=$Labels->GetLabel('_SITE_DESCRIPT_');?>">
  91. <base href="<?=$WEBPath;?>">
  92. <meta name="robots" content="index, follow"/>
  93. <meta name="keywords" content=""/>
  94. <link rel="stylesheet" type="text/css" href="style/style.css"/>
  95. <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  96. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  97. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  98. <link rel="manifest" href="/site.webmanifest">
  99. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  100. <meta name="msapplication-TileColor" content="#da532c">
  101. <meta name="theme-color" content="#ffffff">
  102. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  103. <meta name="viewport" content="width=device-width, initial-scale=1">
  104. <meta name="mobile-web-app-capable" content="yes">
  105. <meta name="apple-mobile-web-app-capable" content="yes">
  106. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all.css"/-->
  107. <link href="lib/javascript/videojs/video-js.css" rel="stylesheet">
  108. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
  109. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-access.css"/>
  110. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-blue.css"/-->
  111. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-gray.css"/-->
  112. <link rel="stylesheet" type="text/css" href="/style/icons/silk.css"/>
  113. <!-- GC -->
  114. <!-- LIBS -->
  115. <script type="text/javascript" src="lib/javascript/jquery/jquery-1.12.4.min.js"></script>
  116. <script type="text/javascript" src="lib/javascript/videojs/video.js"></script>
  117. <script type="text/javascript" src="lib/javascript/videojs/videojs-ie8.min.js"></script>
  118. <script type="text/javascript" src="lib/javascript/videojs/videojs-contrib-hls.js"></script>
  119. <script type="text/javascript" src="lib/javascript/extjs/adapter/jquery/ext-jquery-adapter.js"></script>
  120. <!--script type="text/javascript" src="lib/javascript/extjs/adapter/ext/ext-base.js"></script-->
  121. <script type="text/javascript" src="lib/javascript/extjs/ext-all.js"></script>
  122. <script type="text/javascript" src="lib/javascript/extjs/ux/ux-all.js"></script>
  123. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/css/ux-all.css"/-->
  124. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/fileuploadfield/css/fileuploadfield.css"/>
  125. <script type="text/javascript" src="lib/javascript/flash/swfobject.js"></script>
  126. <script type="text/javascript" src="lib/javascript/flash/html5video_flash.js"></script>
  127. <script type="text/javascript" src="lib/javascript/moment-2.8.4/moment.min.js"></script>
  128. <script type="text/javascript" src="lib/javascript/vis-4.21.0/dist/vis.min.js"></script>
  129. <link rel="stylesheet" type="text/css" href="lib/javascript/vis-4.21.0/dist/vis-network.min.css"/>
  130. <link rel="stylesheet" type="text/css" href="lib/javascript/vis-4.21.0/dist/vis-timeline-graph2d.min.css"/>
  131. <link rel="stylesheet" type="text/css" href="/style/leaflet.css"/>
  132. <script type="text/javascript" src="lib/javascript/leaflet/leaflet.js"></script>
  133. <!-- ENDLIBS -->
  134. <style type="text/css">
  135. .flowplayer {
  136. width: 640px;
  137. }
  138. .fullscreen:-webkit-full-screen {
  139. width: auto !important;
  140. height: auto !important;
  141. margin:auto !important;
  142. }
  143. .fullscreen:-moz-full-screen {
  144. width: auto !important;
  145. height: auto !important;
  146. margin:auto !important;
  147. }
  148. .fullscreen:-ms-fullscreen {
  149. width: auto !important;
  150. height: auto !important;
  151. margin:auto !important;
  152. }
  153. .header_ttl{
  154. font: bold 24px;
  155. }
  156. html, body {
  157. font: normal 12px verdana;
  158. margin: 0;
  159. padding: 0;
  160. border: 0 none;
  161. /*overflow: hidden;
  162. height: 100%;*/
  163. background: #202020;
  164. }
  165. #output {
  166. margin-left: 350px;
  167. }
  168. #log {
  169. width: 80%;
  170. height: 100px;
  171. }
  172. #player {
  173. float: left;
  174. }
  175. #controls {
  176. clear: left;
  177. }
  178. p {
  179. margin: 0;
  180. }
  181. .timeInput, .volumeInput {
  182. width: 3em;
  183. }
  184. </style>
  185. <?php
  186. if(is_array( $Static_Scoop )){
  187. foreach( $Static_Scoop as $S ) {
  188. echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $S . '"></script>';
  189. };
  190. } else {
  191. if($Static_Scoop!=''){
  192. echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $Static_Scoop . '"></script>';
  193. };
  194. };
  195. if(is_array( $Dynamic_Scoop )){
  196. foreach( $Dynamic_Scoop as $S ) {
  197. echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $S . '"></script>';
  198. };
  199. } else {
  200. if($Dynamic_Scoop!=''){
  201. echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $Dynamic_Scoop . '"></script>';
  202. };
  203. };
  204. ?>
  205. </head>
  206. <body><?php
  207. };
  208. function UI_PageBottomExt(){
  209. global $Script_Start_Time, $Labels;
  210. ?>
  211. </body>
  212. </html>
  213. <?php
  214. };
  215. function UI_PageBottom(){
  216. global $Script_Start_Time, $Labels;
  217. ?>
  218. <table width="90%" class="fieldround20">
  219. <tr>
  220. <td class="r_cell" align="center">
  221. <p style="align: center; font-size: 8px" ><?php
  222. $GG_Time = microtime_float() - $Script_Start_Time;
  223. echo $Labels->GetLabel('__PAGEWASGENIN__');
  224. echo ' ' . $GG_Time . ' ';
  225. if( $GG_Time > 2 ) echo $Labels->GetLabel('__SECONDS__');
  226. else echo $Labels->GetLabel('__SECOND__');
  227. ?></p>
  228. </td>
  229. </tr>
  230. </table>
  231. </center>
  232. </body>
  233. </html>
  234. <?php
  235. };
  236. function UI_LoginForm($target = 'login.php'){
  237. global $Labels;
  238. ?>
  239. <table width="100%" border="0" style="background: #202020;">
  240. <tr><td align="center">
  241. <table width="100%"><tr>
  242. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  243. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  244. </tr></table>
  245. </td></tr>
  246. <tr><td align="center">
  247. <form method="Post" action="<?=$target;?>" enctype="multipart/form-data">
  248. <table width="500px" border="0" style="background-color: white;">
  249. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  250. <tr><td align="right" width="40%"><b><?=$Labels->GetLabel('__LOGIN_ID__');?>:</b></td><td><input type="text" name="login"></td></tr>
  251. <tr><td align="right"><b><?=$Labels->GetLabel('__PASSWORD__');?>:</b></td><td><input type="password" name="password"></td></tr>
  252. <tr><td colspan=2 align="center"><input type="submit" value="<?=$Labels->GetLabel('__LOGIN__');?>"></td></tr>
  253. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  254. </table>
  255. </form>
  256. </td>
  257. </tr>
  258. </table>
  259. <?php
  260. };
  261. function UI_SideMenu( $ActiveItem = 0 ){
  262. global $Labels, $CUser;
  263. if( $CUser->Data['id'] > 1 ){
  264. switch( $CUser->Data['access'] ){
  265. case 10:
  266. $mnu = array(
  267. '__PROFILE__'=>'/login.php?login=guest',
  268. '__DASHBOARD__'=>'/',
  269. '__SENSORS__'=>'/devices.php',
  270. '__VIDEOS__'=>'/login.php?login=guest',
  271. '__REPORTS__'=>'/login.php?login=guest',
  272. '__SYSCTRL__'=>'/login.php?login=guest',
  273. '__LOGOUT__'=>'/login.php?login=guest'
  274. );
  275. break;
  276. case 0:
  277. default:
  278. $mnu = array(
  279. '__PROFILE__'=>'/login.php?login=guest',
  280. '__DASHBOARD__'=>'/',
  281. '__LOGOUT__'=>'/login.php?login=guest'
  282. );
  283. break;
  284. };
  285. echo '<table width="100%" class="sideMenuBarTable">';
  286. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell">' . $CUser->Data['login'] . '(' . $CUser->Data['access'] .')' . '</a></td></tr>';
  287. $index = 1;
  288. foreach( $mnu as $Key=>$Value ){
  289. if( $index == $ActiveItem ){
  290. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
  291. } else {
  292. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
  293. };
  294. $index++;
  295. };
  296. echo "</table>";
  297. } else {
  298. ?><table width="100%" class="sideMenuBarTable">
  299. <tr class="sideMenuBarRow"><td class="sideMenuBarCell"></td></tr>
  300. </table><?php
  301. };
  302. };
  303. function UI_MainDashBoard(){
  304. global $Labels, $CUser;
  305. //echo '<img name="main" id="main" border="1" width="640" height="480" src="http://gagua:4GetMyID@192.168.200.116/ISAPI/Streaming/channels/101/picture?videoResolutionWidth=1920&videoResolutionHeight=1080">';
  306. ?>
  307. <div id="mainDashBoard">
  308. </div>
  309. <!--object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
  310. codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"
  311. id="vlc"
  312. width = "640px"
  313. height = "480px"
  314. target = "/test_mp4.php"
  315. >
  316. <embed
  317. type="application/x-vlc-plugin"
  318. pluginspage="http://www.videolan.org"
  319. name="vlc"
  320. width = "640px"
  321. height = "480px"
  322. target = "/test_mp4.php"
  323. />
  324. </object-->
  325. <video width="640px" height="480px" controls>
  326. <source src="/test_mp4.php" type='video/webm;codecs="vp8, vorbis"'/>
  327. </video>
  328. <?php
  329. };
  330. function UI_Begin2Section( $Width = '' ){
  331. if( $Width != '' ){
  332. ?><table width="100%" border=0 class="contentTable">
  333. <tr><td width="<?=$Width;?>"><?php
  334. } else {
  335. ?><table width="100%" border=0 class="contentTable">
  336. <tr><td ><?php
  337. };
  338. };
  339. function UI_SectionDelimiter( $Width='' ){
  340. if( $Width != '' ){
  341. ?></td><td width="<?=$Width;?>"><?php
  342. } else {
  343. ?></td><td><?php
  344. };
  345. };
  346. function UI_End2Section(){
  347. ?></td></tr>
  348. </table><?php
  349. };
  350. ?>