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.

569 lines
22 KiB

6 years ago
5 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 years ago
6 years ago
​
5 years ago
​
6 years ago
​
​
​
6 years ago
5 years ago
5 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
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
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="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  172. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  173. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  174. <link rel="manifest" href="/site.webmanifest">
  175. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  176. <meta name="msapplication-TileColor" content="#da532c">
  177. <meta name="theme-color" content="#ffffff">
  178. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  179. <meta name="viewport" content="width=device-width, initial-scale=1">
  180. <meta name="mobile-web-app-capable" content="yes">
  181. <meta name="apple-mobile-web-app-capable" content="yes">
  182. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all.css"/-->
  183. <!--link href="lib/javascript/videojs/video-js.css" rel="stylesheet"-->
  184. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
  185. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-access.css"/>
  186. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-blue.css"/>
  187. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-gray.css"/-->
  188. <link rel="stylesheet" type="text/css" href="/style/icons/silk.css"/>
  189. <!-- GC -->
  190. <!-- LIBS -->
  191. <script type="text/javascript" src="lib/javascript/jquery/jquery-1.12.4.min.js"></script>
  192. <!--script type="text/javascript" src="lib/javascript/videojs/video.js"></script>
  193. <script type="text/javascript" src="lib/javascript/videojs/videojs-offset.min.js"></script>
  194. <script type="text/javascript" src="lib/javascript/videojs/videojs-ie8.min.js"></script>
  195. <script type="text/javascript" src="lib/javascript/videojs/videojs-contrib-hls.js"></script-->
  196. <script type="text/javascript" src="lib/javascript/extjs/adapter/jquery/ext-jquery-adapter.js"></script>
  197. <!--script type="text/javascript" src="lib/javascript/extjs/adapter/ext/ext-base.js"></script-->
  198. <script type="text/javascript" src="lib/javascript/extjs/ext-all.js"></script>
  199. <script type="text/javascript" src="lib/javascript/extjs/ux/ux-all.js"></script>
  200. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/css/ux-all.css"/-->
  201. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/fileuploadfield/css/fileuploadfield.css"/>
  202. <script type="text/javascript" src="lib/javascript/flash/swfobject.js"></script>
  203. <script type="text/javascript" src="lib/javascript/flash/html5video_flash.js"></script>
  204. <script type="text/javascript" src="lib/javascript/moment-2.8.4/moment.min.js"></script>
  205. <script type="text/javascript" src="lib/javascript/vis-4.21.0/dist/vis.min.js"></script>
  206. <link rel="stylesheet" type="text/css" href="lib/javascript/vis-4.21.0/dist/vis-network.min.css"/>
  207. <link rel="stylesheet" type="text/css" href="lib/javascript/vis-4.21.0/dist/vis-timeline-graph2d.min.css"/>
  208. <!--link rel="stylesheet" type="text/css" href="/style/leaflet.css"/-->
  209. <link rel="stylesheet" type="text/css" href="lib/javascript/leaflet/leaflet.css"/>
  210. <script type="text/javascript" src="lib/javascript/leaflet/leaflet.js"></script>
  211. <script type="text/javascript" src="lib/javascript/leaflet/Leaflet.ImageOverlay.Rotated.js"></script>
  212. <script type="text/javascript" src="lib/javascript/howler/howler.min.js"></script>
  213. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotify.css" />
  214. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/BrightTheme.css" />
  215. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/Material.css" />
  216. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/Angeler.css" />
  217. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyBootstrap4.css" />
  218. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyMobile.css" />
  219. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyDesktop.css" />
  220. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyConfirm.css" />
  221. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyCountdown.css" />
  222. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyPaginate.css" />
  223. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyReference.css" />
  224. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotify.js"></script>
  225. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyBootstrap4.js"></script>
  226. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyFontAwesome5Fix.js"></script>
  227. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyFontAwesome5.js"></script>
  228. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyAnimate.js"></script>
  229. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyMobile.js"></script>
  230. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyDesktop.js"></script>
  231. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyConfirm.js"></script>
  232. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyCountdown.js"></script>
  233. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyPaginate.js"></script>
  234. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyReference.js"></script>
  235. <script type="text/javascript" src="lib/javascript/three/three.js"></script>
  236. <script type="text/javascript" src="lib/javascript/paper/paper-full.min.js"></script>
  237. <!-- ENDLIBS -->
  238. <style type="text/css">
  239. .flowplayer {
  240. width: 640px;
  241. }
  242. .fullscreen:-webkit-full-screen {
  243. width: auto !important;
  244. height: auto !important;
  245. margin:auto !important;
  246. }
  247. .fullscreen:-moz-full-screen {
  248. width: auto !important;
  249. height: auto !important;
  250. margin:auto !important;
  251. }
  252. .fullscreen:-ms-fullscreen {
  253. width: auto !important;
  254. height: auto !important;
  255. margin:auto !important;
  256. }
  257. .header_ttl{
  258. font: bold 24px;
  259. }
  260. html, body {
  261. font: normal 12px verdana;
  262. margin: 0;
  263. padding: 0;
  264. border: 0 none;
  265. /*overflow: hidden;
  266. height: 100%;*/
  267. background: #202020;
  268. }
  269. #output {
  270. margin-left: 350px;
  271. }
  272. #log {
  273. width: 80%;
  274. height: 100px;
  275. }
  276. #player {
  277. float: left;
  278. }
  279. #controls {
  280. clear: left;
  281. }
  282. p {
  283. margin: 0;
  284. }
  285. .timeInput, .volumeInput {
  286. width: 3em;
  287. }
  288. </style>
  289. <?php
  290. if(is_array( $Static_Scoop )){
  291. foreach( $Static_Scoop as $S ) {
  292. echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $S . '"></script>';
  293. };
  294. } else {
  295. if($Static_Scoop!=''){
  296. echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $Static_Scoop . '"></script>';
  297. };
  298. };
  299. if(is_array( $Dynamic_Scoop )){
  300. foreach( $Dynamic_Scoop as $S ) {
  301. echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $S . '"></script>';
  302. };
  303. } else {
  304. if($Dynamic_Scoop!=''){
  305. echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $Dynamic_Scoop . '"></script>';
  306. };
  307. };
  308. ?>
  309. <link rel="stylesheet" type="text/css" href="style/style.css"/>
  310. </head>
  311. <body><?php
  312. };
  313. function UI_PageBottomExt(){
  314. global $Script_Start_Time, $Labels;
  315. ?></center>
  316. </body>
  317. </html>
  318. <?php
  319. };
  320. function UI_PageBottom(){
  321. global $Script_Start_Time, $Labels;
  322. ?>
  323. <table width="90%" class="fieldround20" style="position: fixed; bottom: 0;">
  324. <tr>
  325. <td class="r_cell" align="center">
  326. <p style="align: center; font-size: 8px" ><?php
  327. $GG_Time = microtime_float() - $Script_Start_Time;
  328. echo $Labels->GetLabel('__PAGEWASGENIN__');
  329. echo ' ' . $GG_Time . ' ';
  330. if( $GG_Time > 2 ) echo $Labels->GetLabel('__SECONDS__');
  331. else echo $Labels->GetLabel('__SECOND__');
  332. ?></p>
  333. </td>
  334. </tr>
  335. </table>
  336. </center>
  337. </body>
  338. </html>
  339. <?php
  340. };
  341. function UI_LoginForm($target = 'login.php'){
  342. global $Labels;
  343. ?>
  344. <table width="100%" border="0" style="background: #202020;">
  345. <tr><td align="center">
  346. <table width="100%"><tr>
  347. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  348. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  349. </tr></table>
  350. </td></tr>
  351. <tr><td align="center">
  352. <form method="Post" action="<?=$target;?>" enctype="multipart/form-data">
  353. <table width="500px" border="0" style="background-color: white;">
  354. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  355. <tr><td align="right" width="40%"><b><?=$Labels->GetLabel('__LOGIN_ID__');?>:</b></td><td><input type="text" name="login"></td></tr>
  356. <tr><td align="right"><b><?=$Labels->GetLabel('__PASSWORD__');?>:</b></td><td><input type="password" name="password"></td></tr>
  357. <tr><td colspan=2 align="center"><input type="submit" value="<?=$Labels->GetLabel('__LOGIN__');?>"></td></tr>
  358. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  359. </table>
  360. </form>
  361. </td>
  362. </tr>
  363. </table>
  364. <?php
  365. };
  366. function UI_INSTALL_DBCRED_Form( $A='', $B='', $C='', $D='', $E='' ){
  367. ?>
  368. <table width="100%" border="0" style="background: #202020;">
  369. <tr><td align="center">
  370. <table width="100%"><tr>
  371. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  372. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  373. </tr></table>
  374. </td></tr>
  375. <tr><td align="center">
  376. <form method="Post" action="/install.php?stp=1" enctype="multipart/form-data">
  377. <table width="500px" border="0" style="background-color: white;">
  378. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  379. <?php
  380. if( $E!='' ){
  381. ?>
  382. <tr><td align="center" colspan=2 style="background-color: red; color: yelow;" ><b><?=$E;?></b></td></tr>
  383. <?php
  384. };
  385. ?>
  386. <tr><td align="right" width="40%"><b>Database Host:</b></td><td><input type="text" name="dbh" value="<?=$A;?>"></td></tr>
  387. <tr><td align="right"><b>Database Name:</b></td><td><input type="text" name="dbn" value="<?=$B;?>"></td></tr>
  388. <tr><td align="right"><b>Database User:</b></td><td><input type="text" name="dbu" value="<?=$C;?>"></td></tr>
  389. <tr><td align="right"><b>Database Password:</b></td><td><input type="password" name="dbp" value="<?=$D;?>"></td></tr>
  390. <tr><td colspan=2 align="center"><input type="submit" value="SETUP"></td></tr>
  391. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  392. </table>
  393. </form>
  394. </td>
  395. </tr>
  396. </table>
  397. <?php
  398. };
  399. function UI_INSTALL_ADMIN_SITE_Form( $A='', $B='', $C='', $D='', $E='', $F='', $G='', $H='', $I='' ){
  400. ?>
  401. <table width="100%" border="0" style="background: #202020;">
  402. <tr><td align="center">
  403. <table width="100%"><tr>
  404. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  405. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  406. </tr></table>
  407. </td></tr>
  408. <tr><td align="center">
  409. <form method="Post" action="/install.php?stp=2" enctype="multipart/form-data">
  410. <table width="500px" border="0" style="background-color: white;">
  411. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  412. <?php
  413. if( $I!='' ){
  414. ?>
  415. <tr><td align="center" colspan=2 style="background-color: red; color: yelow;" ><b><?=$I;?></b></td></tr>
  416. <?php
  417. };
  418. ?>
  419. <tr><td align="right"><b>Admin User Login:</b></td><td><input type="text" name="adu" value="<?=$E;?>"></td></tr>
  420. <tr><td align="right"><b>Admin Password:</b></td><td><input type="password" name="adp" value="<?=$F;?>"></td></tr>
  421. <tr><td align="right"><b>Repeat Password:</b></td><td><input type="password" name="adp2" value="<?=$G;?>"></td></tr>
  422. <tr><td align="right"><b>Site Name:</b></td><td><input type="text" name="sina" value="<?=$H;?>"></td></tr>
  423. <tr><td align="right"><b>Database Host:</b></td><td><input readonly type="text" name="dbh" value="<?=$A;?>"></td></tr>
  424. <tr><td align="right"><b>Database Name:</b></td><td><input readonly type="text" name="dbn" value="<?=$B;?>"></td></tr>
  425. <tr><td align="right"><b>Database User:</b></td><td><input readonly type="text" name="dbu" value="<?=$C;?>"></td></tr>
  426. <tr><td align="right"><b>Database Password:</b></td><td><input readonly type="password" name="dbp" value="<?=$D;?>"></td></tr>
  427. <tr><td colspan=2 align="center"><input type="submit" value="SET"></td></tr>
  428. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  429. </table>
  430. </form>
  431. </td>
  432. </tr>
  433. </table>
  434. <?php
  435. };
  436. function UI_INSTALL_WELCOME_Form(){
  437. ?>
  438. <table width="100%" border="0" style="background: #202020;">
  439. <tr><td align="center">
  440. <table width="100%"><tr>
  441. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  442. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  443. </tr></table>
  444. </td></tr>
  445. <tr><td align="center">
  446. <form method="Post" action="/index.php" enctype="multipart/form-data">
  447. <table width="500px" border="0" style="background-color: white;">
  448. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  449. <tr><td align="center" colspan=2 style="background-color: blue; color: yelow;" ><b>All Done</b></td></tr>
  450. <tr><td colspan=2 align="center"><input type="submit" value="ENTER"></td></tr>
  451. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  452. </table>
  453. </form>
  454. </td>
  455. </tr>
  456. </table>
  457. <?php
  458. };
  459. function UI_SideMenu( $ActiveItem = 0 ){
  460. global $Labels, $CUser;
  461. if( $CUser->Data['id'] > 1 ){
  462. switch( $CUser->Data['access'] ){
  463. case 10:
  464. $mnu = array(
  465. '__PROFILE__'=>'/login.php?login=guest',
  466. '__DASHBOARD__'=>'/',
  467. '__SENSORS__'=>'/devices.php',
  468. '__VIDEOS__'=>'/login.php?login=guest',
  469. '__REPORTS__'=>'/login.php?login=guest',
  470. '__SYSCTRL__'=>'/login.php?login=guest',
  471. '__LOGOUT__'=>'/login.php?login=guest'
  472. );
  473. break;
  474. case 0:
  475. default:
  476. $mnu = array(
  477. '__PROFILE__'=>'/login.php?login=guest',
  478. '__DASHBOARD__'=>'/',
  479. '__LOGOUT__'=>'/login.php?login=guest'
  480. );
  481. break;
  482. };
  483. echo '<table width="100%" class="sideMenuBarTable">';
  484. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell">' . $CUser->Data['login'] . '(' . $CUser->Data['access'] .')' . '</a></td></tr>';
  485. $index = 1;
  486. foreach( $mnu as $Key=>$Value ){
  487. if( $index == $ActiveItem ){
  488. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
  489. } else {
  490. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
  491. };
  492. $index++;
  493. };
  494. echo "</table>";
  495. } else {
  496. ?><table width="100%" class="sideMenuBarTable">
  497. <tr class="sideMenuBarRow"><td class="sideMenuBarCell"></td></tr>
  498. </table><?php
  499. };
  500. };
  501. function UI_MainDashBoard(){
  502. global $Labels, $CUser;
  503. //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">';
  504. ?>
  505. <div id="mainDashBoard">
  506. </div>
  507. <!--object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
  508. codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"
  509. id="vlc"
  510. width = "640px"
  511. height = "480px"
  512. target = "/test_mp4.php"
  513. >
  514. <embed
  515. type="application/x-vlc-plugin"
  516. pluginspage="http://www.videolan.org"
  517. name="vlc"
  518. width = "640px"
  519. height = "480px"
  520. target = "/test_mp4.php"
  521. />
  522. </object-->
  523. <video width="640px" height="480px" controls>
  524. <source src="/test_mp4.php" type='video/webm;codecs="vp8, vorbis"'/>
  525. </video>
  526. <?php
  527. };
  528. function UI_Begin2Section( $Width = '' ){
  529. if( $Width != '' ){
  530. ?><table width="100%" border=0 class="contentTable">
  531. <tr><td width="<?=$Width;?>"><?php
  532. } else {
  533. ?><table width="100%" border=0 class="contentTable">
  534. <tr><td ><?php
  535. };
  536. };
  537. function UI_SectionDelimiter( $Width='' ){
  538. if( $Width != '' ){
  539. ?></td><td width="<?=$Width;?>"><?php
  540. } else {
  541. ?></td><td><?php
  542. };
  543. };
  544. function UI_End2Section(){
  545. ?></td></tr>
  546. </table><?php
  547. };
  548. ?>