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.

545 lines
20 KiB

6 years ago
5 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
5 years ago
6 years ago
​
​
6 years ago
​
​
​
​
6 years ago
​
​
​
​
5 years ago
​
6 years ago
5 years ago
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 years ago
6 years ago
​
​
​
​
​
​
​
5 years ago
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
​
​
​
6 years ago
​
​
​
6 years ago
​
​
5 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. function UI_INSTALL_PageHeader(){
  3. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <head>
  6. <meta name="netinsert" content="0.0.1.1.2.5.2">
  7. <meta name="revisit-after" content="1 day">
  8. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  9. <title>ARGUS System Setup</title>
  10. <meta name="description" CONTENT="">
  11. <meta name="robots" content="index, follow"/>
  12. <meta name="keywords" content=""/>
  13. <link rel="stylesheet" type="text/css" href="style/style.css"/>
  14. <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  15. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  16. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  17. <link rel="manifest" href="/site.webmanifest">
  18. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  19. <meta name="msapplication-TileColor" content="#da532c">
  20. <meta name="theme-color" content="#ffffff">
  21. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  22. <meta name="viewport" content="width=device-width, initial-scale=1">
  23. <meta name="mobile-web-app-capable" content="yes">
  24. <meta name="apple-mobile-web-app-capable" content="yes">
  25. <style type="text/css">
  26. .flowplayer {
  27. width: 640px;
  28. }
  29. .fullscreen:-webkit-full-screen {
  30. width: auto !important;
  31. height: auto !important;
  32. margin:auto !important;
  33. }
  34. .fullscreen:-moz-full-screen {
  35. width: auto !important;
  36. height: auto !important;
  37. margin:auto !important;
  38. }
  39. .fullscreen:-ms-fullscreen {
  40. width: auto !important;
  41. height: auto !important;
  42. margin:auto !important;
  43. }
  44. .header_ttl{
  45. font: bold 24px;
  46. }
  47. html, body {
  48. font: normal 12px verdana;
  49. margin: 0;
  50. padding: 0;
  51. border: 0 none;
  52. /*overflow: hidden;
  53. height: 100%;*/
  54. background: #202020;
  55. }
  56. #output {
  57. margin-left: 350px;
  58. }
  59. #log {
  60. width: 80%;
  61. height: 100px;
  62. }
  63. #player {
  64. float: left;
  65. }
  66. #controls {
  67. clear: left;
  68. }
  69. p {
  70. margin: 0;
  71. }
  72. .timeInput, .volumeInput {
  73. width: 3em;
  74. }
  75. </style>
  76. </head>
  77. <body class="bgbody"><center><?php
  78. };
  79. function UI_PageHeader(){
  80. global $WEBPath, $Labels, $UserLang;
  81. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  82. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  83. <head>
  84. <meta name="netinsert" content="0.0.1.1.2.5.2">
  85. <meta name="revisit-after" content="1 day">
  86. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  87. <title><?=$Labels->GetLabel('_SITE_TITLE_');?></title>
  88. <meta name="description" CONTENT="<?=$Labels->GetLabel('_SITE_DESCRIPT_');?>">
  89. <base href="<?=$WEBPath;?>">
  90. <meta name="robots" content="index, follow"/>
  91. <meta name="keywords" content=""/>
  92. <link rel="stylesheet" type="text/css" href="style/style.css"/>
  93. <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  94. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  95. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  96. <link rel="manifest" href="/site.webmanifest">
  97. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  98. <meta name="msapplication-TileColor" content="#da532c">
  99. <meta name="theme-color" content="#ffffff">
  100. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  101. <meta name="viewport" content="width=device-width, initial-scale=1">
  102. <meta name="mobile-web-app-capable" content="yes">
  103. <meta name="apple-mobile-web-app-capable" content="yes">
  104. <style type="text/css">
  105. .flowplayer {
  106. width: 640px;
  107. }
  108. .fullscreen:-webkit-full-screen {
  109. width: auto !important;
  110. height: auto !important;
  111. margin:auto !important;
  112. }
  113. .fullscreen:-moz-full-screen {
  114. width: auto !important;
  115. height: auto !important;
  116. margin:auto !important;
  117. }
  118. .fullscreen:-ms-fullscreen {
  119. width: auto !important;
  120. height: auto !important;
  121. margin:auto !important;
  122. }
  123. .header_ttl{
  124. font: bold 24px;
  125. }
  126. html, body {
  127. font: normal 12px verdana;
  128. margin: 0;
  129. padding: 0;
  130. border: 0 none;
  131. /*overflow: hidden;
  132. height: 100%;*/
  133. background: #202020;
  134. }
  135. #output {
  136. margin-left: 350px;
  137. }
  138. #log {
  139. width: 80%;
  140. height: 100px;
  141. }
  142. #player {
  143. float: left;
  144. }
  145. #controls {
  146. clear: left;
  147. }
  148. p {
  149. margin: 0;
  150. }
  151. .timeInput, .volumeInput {
  152. width: 3em;
  153. }
  154. </style>
  155. </head>
  156. <body class="bgbody"><center><?php
  157. };
  158. function UI_PageHeaderExt($Static_Scoop = '', $Dynamic_Scoop = ''){
  159. global $WEBPath, $Labels, $UserLang;
  160. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  161. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  162. <head>
  163. <meta name="netinsert" content="0.0.1.1.2.5.2">
  164. <meta name="revisit-after" content="1 day">
  165. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  166. <title><?=$Labels->GetLabel('_SITE_TITLE_');?></title>
  167. <meta name="description" CONTENT="<?=$Labels->GetLabel('_SITE_DESCRIPT_');?>">
  168. <base href="<?=$WEBPath;?>">
  169. <meta name="robots" content="index, follow"/>
  170. <meta name="keywords" content=""/>
  171. <link rel="stylesheet" type="text/css" href="style/style.css"/>
  172. <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  173. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  174. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  175. <link rel="manifest" href="/site.webmanifest">
  176. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  177. <meta name="msapplication-TileColor" content="#da532c">
  178. <meta name="theme-color" content="#ffffff">
  179. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  180. <meta name="viewport" content="width=device-width, initial-scale=1">
  181. <meta name="mobile-web-app-capable" content="yes">
  182. <meta name="apple-mobile-web-app-capable" content="yes">
  183. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all.css"/-->
  184. <link href="lib/javascript/videojs/video-js.css" rel="stylesheet">
  185. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
  186. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-access.css"/>
  187. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-blue.css"/-->
  188. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-gray.css"/-->
  189. <link rel="stylesheet" type="text/css" href="/style/icons/silk.css"/>
  190. <!-- GC -->
  191. <!-- LIBS -->
  192. <script type="text/javascript" src="lib/javascript/jquery/jquery-1.12.4.min.js"></script>
  193. <script type="text/javascript" src="lib/javascript/videojs/video.js"></script>
  194. <script type="text/javascript" src="lib/javascript/videojs/videojs-offset.min.js"></script>
  195. <script type="text/javascript" src="lib/javascript/videojs/videojs-ie8.min.js"></script>
  196. <script type="text/javascript" src="lib/javascript/videojs/videojs-contrib-hls.js"></script>
  197. <script type="text/javascript" src="lib/javascript/extjs/adapter/jquery/ext-jquery-adapter.js"></script>
  198. <!--script type="text/javascript" src="lib/javascript/extjs/adapter/ext/ext-base.js"></script-->
  199. <script type="text/javascript" src="lib/javascript/extjs/ext-all.js"></script>
  200. <script type="text/javascript" src="lib/javascript/extjs/ux/ux-all.js"></script>
  201. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/css/ux-all.css"/-->
  202. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/fileuploadfield/css/fileuploadfield.css"/>
  203. <script type="text/javascript" src="lib/javascript/flash/swfobject.js"></script>
  204. <script type="text/javascript" src="lib/javascript/flash/html5video_flash.js"></script>
  205. <script type="text/javascript" src="lib/javascript/moment-2.8.4/moment.min.js"></script>
  206. <script type="text/javascript" src="lib/javascript/vis-4.21.0/dist/vis.min.js"></script>
  207. <link rel="stylesheet" type="text/css" href="lib/javascript/vis-4.21.0/dist/vis-network.min.css"/>
  208. <link rel="stylesheet" type="text/css" href="lib/javascript/vis-4.21.0/dist/vis-timeline-graph2d.min.css"/>
  209. <!--link rel="stylesheet" type="text/css" href="/style/leaflet.css"/-->
  210. <link rel="stylesheet" type="text/css" href="lib/javascript/leaflet/leaflet.css"/>
  211. <script type="text/javascript" src="lib/javascript/leaflet/leaflet.js"></script>
  212. <script type="text/javascript" src="lib/javascript/leaflet/Leaflet.ImageOverlay.Rotated.js"></script>
  213. <!-- ENDLIBS -->
  214. <style type="text/css">
  215. .flowplayer {
  216. width: 640px;
  217. }
  218. .fullscreen:-webkit-full-screen {
  219. width: auto !important;
  220. height: auto !important;
  221. margin:auto !important;
  222. }
  223. .fullscreen:-moz-full-screen {
  224. width: auto !important;
  225. height: auto !important;
  226. margin:auto !important;
  227. }
  228. .fullscreen:-ms-fullscreen {
  229. width: auto !important;
  230. height: auto !important;
  231. margin:auto !important;
  232. }
  233. .header_ttl{
  234. font: bold 24px;
  235. }
  236. html, body {
  237. font: normal 12px verdana;
  238. margin: 0;
  239. padding: 0;
  240. border: 0 none;
  241. /*overflow: hidden;
  242. height: 100%;*/
  243. background: #202020;
  244. }
  245. #output {
  246. margin-left: 350px;
  247. }
  248. #log {
  249. width: 80%;
  250. height: 100px;
  251. }
  252. #player {
  253. float: left;
  254. }
  255. #controls {
  256. clear: left;
  257. }
  258. p {
  259. margin: 0;
  260. }
  261. .timeInput, .volumeInput {
  262. width: 3em;
  263. }
  264. </style>
  265. <?php
  266. if(is_array( $Static_Scoop )){
  267. foreach( $Static_Scoop as $S ) {
  268. echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $S . '"></script>';
  269. };
  270. } else {
  271. if($Static_Scoop!=''){
  272. echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $Static_Scoop . '"></script>';
  273. };
  274. };
  275. if(is_array( $Dynamic_Scoop )){
  276. foreach( $Dynamic_Scoop as $S ) {
  277. echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $S . '"></script>';
  278. };
  279. } else {
  280. if($Dynamic_Scoop!=''){
  281. echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $Dynamic_Scoop . '"></script>';
  282. };
  283. };
  284. ?>
  285. </head>
  286. <body><?php
  287. };
  288. function UI_PageBottomExt(){
  289. global $Script_Start_Time, $Labels;
  290. ?></center>
  291. </body>
  292. </html>
  293. <?php
  294. };
  295. function UI_PageBottom(){
  296. global $Script_Start_Time, $Labels;
  297. ?>
  298. <table width="90%" class="fieldround20" style="position: fixed; bottom: 0;">
  299. <tr>
  300. <td class="r_cell" align="center">
  301. <p style="align: center; font-size: 8px" ><?php
  302. $GG_Time = microtime_float() - $Script_Start_Time;
  303. echo $Labels->GetLabel('__PAGEWASGENIN__');
  304. echo ' ' . $GG_Time . ' ';
  305. if( $GG_Time > 2 ) echo $Labels->GetLabel('__SECONDS__');
  306. else echo $Labels->GetLabel('__SECOND__');
  307. ?></p>
  308. </td>
  309. </tr>
  310. </table>
  311. </center>
  312. </body>
  313. </html>
  314. <?php
  315. };
  316. function UI_LoginForm($target = 'login.php'){
  317. global $Labels;
  318. ?>
  319. <table width="100%" border="0" style="background: #202020;">
  320. <tr><td align="center">
  321. <table width="100%"><tr>
  322. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  323. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  324. </tr></table>
  325. </td></tr>
  326. <tr><td align="center">
  327. <form method="Post" action="<?=$target;?>" enctype="multipart/form-data">
  328. <table width="500px" border="0" style="background-color: white;">
  329. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  330. <tr><td align="right" width="40%"><b><?=$Labels->GetLabel('__LOGIN_ID__');?>:</b></td><td><input type="text" name="login"></td></tr>
  331. <tr><td align="right"><b><?=$Labels->GetLabel('__PASSWORD__');?>:</b></td><td><input type="password" name="password"></td></tr>
  332. <tr><td colspan=2 align="center"><input type="submit" value="<?=$Labels->GetLabel('__LOGIN__');?>"></td></tr>
  333. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  334. </table>
  335. </form>
  336. </td>
  337. </tr>
  338. </table>
  339. <?php
  340. };
  341. function UI_INSTALL_DBCRED_Form( $A='', $B='', $C='', $D='', $E='' ){
  342. ?>
  343. <table width="100%" border="0" style="background: #202020;">
  344. <tr><td align="center">
  345. <table width="100%"><tr>
  346. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  347. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  348. </tr></table>
  349. </td></tr>
  350. <tr><td align="center">
  351. <form method="Post" action="/install.php?stp=1" enctype="multipart/form-data">
  352. <table width="500px" border="0" style="background-color: white;">
  353. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  354. <?php
  355. if( $E!='' ){
  356. ?>
  357. <tr><td align="center" colspan=2 style="background-color: red; color: yelow;" ><b><?=$E;?></b></td></tr>
  358. <?php
  359. };
  360. ?>
  361. <tr><td align="right" width="40%"><b>Database Host:</b></td><td><input type="text" name="dbh" value="<?=$A;?>"></td></tr>
  362. <tr><td align="right"><b>Database Name:</b></td><td><input type="text" name="dbn" value="<?=$B;?>"></td></tr>
  363. <tr><td align="right"><b>Database User:</b></td><td><input type="text" name="dbu" value="<?=$C;?>"></td></tr>
  364. <tr><td align="right"><b>Database Password:</b></td><td><input type="password" name="dbp" value="<?=$D;?>"></td></tr>
  365. <tr><td colspan=2 align="center"><input type="submit" value="SETUP"></td></tr>
  366. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  367. </table>
  368. </form>
  369. </td>
  370. </tr>
  371. </table>
  372. <?php
  373. };
  374. function UI_INSTALL_ADMIN_SITE_Form( $A='', $B='', $C='', $D='', $E='', $F='', $G='', $H='', $I='' ){
  375. ?>
  376. <table width="100%" border="0" style="background: #202020;">
  377. <tr><td align="center">
  378. <table width="100%"><tr>
  379. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  380. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  381. </tr></table>
  382. </td></tr>
  383. <tr><td align="center">
  384. <form method="Post" action="/install.php?stp=2" enctype="multipart/form-data">
  385. <table width="500px" border="0" style="background-color: white;">
  386. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  387. <?php
  388. if( $I!='' ){
  389. ?>
  390. <tr><td align="center" colspan=2 style="background-color: red; color: yelow;" ><b><?=$I;?></b></td></tr>
  391. <?php
  392. };
  393. ?>
  394. <tr><td align="right"><b>Admin User Login:</b></td><td><input type="text" name="adu" value="<?=$E;?>"></td></tr>
  395. <tr><td align="right"><b>Admin Password:</b></td><td><input type="password" name="adp" value="<?=$F;?>"></td></tr>
  396. <tr><td align="right"><b>Repeat Password:</b></td><td><input type="password" name="adp2" value="<?=$G;?>"></td></tr>
  397. <tr><td align="right"><b>Site Name:</b></td><td><input type="text" name="sina" value="<?=$H;?>"></td></tr>
  398. <tr><td align="right"><b>Database Host:</b></td><td><input readonly type="text" name="dbh" value="<?=$A;?>"></td></tr>
  399. <tr><td align="right"><b>Database Name:</b></td><td><input readonly type="text" name="dbn" value="<?=$B;?>"></td></tr>
  400. <tr><td align="right"><b>Database User:</b></td><td><input readonly type="text" name="dbu" value="<?=$C;?>"></td></tr>
  401. <tr><td align="right"><b>Database Password:</b></td><td><input readonly type="password" name="dbp" value="<?=$D;?>"></td></tr>
  402. <tr><td colspan=2 align="center"><input type="submit" value="SET"></td></tr>
  403. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  404. </table>
  405. </form>
  406. </td>
  407. </tr>
  408. </table>
  409. <?php
  410. };
  411. function UI_INSTALL_WELCOME_Form(){
  412. ?>
  413. <table width="100%" border="0" style="background: #202020;">
  414. <tr><td align="center">
  415. <table width="100%"><tr>
  416. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  417. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  418. </tr></table>
  419. </td></tr>
  420. <tr><td align="center">
  421. <form method="Post" action="/index.php" enctype="multipart/form-data">
  422. <table width="500px" border="0" style="background-color: white;">
  423. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  424. <tr><td align="center" colspan=2 style="background-color: blue; color: yelow;" ><b>All Done</b></td></tr>
  425. <tr><td colspan=2 align="center"><input type="submit" value="ENTER"></td></tr>
  426. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  427. </table>
  428. </form>
  429. </td>
  430. </tr>
  431. </table>
  432. <?php
  433. };
  434. function UI_SideMenu( $ActiveItem = 0 ){
  435. global $Labels, $CUser;
  436. if( $CUser->Data['id'] > 1 ){
  437. switch( $CUser->Data['access'] ){
  438. case 10:
  439. $mnu = array(
  440. '__PROFILE__'=>'/login.php?login=guest',
  441. '__DASHBOARD__'=>'/',
  442. '__SENSORS__'=>'/devices.php',
  443. '__VIDEOS__'=>'/login.php?login=guest',
  444. '__REPORTS__'=>'/login.php?login=guest',
  445. '__SYSCTRL__'=>'/login.php?login=guest',
  446. '__LOGOUT__'=>'/login.php?login=guest'
  447. );
  448. break;
  449. case 0:
  450. default:
  451. $mnu = array(
  452. '__PROFILE__'=>'/login.php?login=guest',
  453. '__DASHBOARD__'=>'/',
  454. '__LOGOUT__'=>'/login.php?login=guest'
  455. );
  456. break;
  457. };
  458. echo '<table width="100%" class="sideMenuBarTable">';
  459. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell">' . $CUser->Data['login'] . '(' . $CUser->Data['access'] .')' . '</a></td></tr>';
  460. $index = 1;
  461. foreach( $mnu as $Key=>$Value ){
  462. if( $index == $ActiveItem ){
  463. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
  464. } else {
  465. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
  466. };
  467. $index++;
  468. };
  469. echo "</table>";
  470. } else {
  471. ?><table width="100%" class="sideMenuBarTable">
  472. <tr class="sideMenuBarRow"><td class="sideMenuBarCell"></td></tr>
  473. </table><?php
  474. };
  475. };
  476. function UI_MainDashBoard(){
  477. global $Labels, $CUser;
  478. //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">';
  479. ?>
  480. <div id="mainDashBoard">
  481. </div>
  482. <!--object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
  483. codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"
  484. id="vlc"
  485. width = "640px"
  486. height = "480px"
  487. target = "/test_mp4.php"
  488. >
  489. <embed
  490. type="application/x-vlc-plugin"
  491. pluginspage="http://www.videolan.org"
  492. name="vlc"
  493. width = "640px"
  494. height = "480px"
  495. target = "/test_mp4.php"
  496. />
  497. </object-->
  498. <video width="640px" height="480px" controls>
  499. <source src="/test_mp4.php" type='video/webm;codecs="vp8, vorbis"'/>
  500. </video>
  501. <?php
  502. };
  503. function UI_Begin2Section( $Width = '' ){
  504. if( $Width != '' ){
  505. ?><table width="100%" border=0 class="contentTable">
  506. <tr><td width="<?=$Width;?>"><?php
  507. } else {
  508. ?><table width="100%" border=0 class="contentTable">
  509. <tr><td ><?php
  510. };
  511. };
  512. function UI_SectionDelimiter( $Width='' ){
  513. if( $Width != '' ){
  514. ?></td><td width="<?=$Width;?>"><?php
  515. } else {
  516. ?></td><td><?php
  517. };
  518. };
  519. function UI_End2Section(){
  520. ?></td></tr>
  521. </table><?php
  522. };
  523. ?>