Web Interface For Lite Argus Control modules
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.

662 lines
27 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
4 years ago
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
4 years ago
​
​
​
​
​
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
4 years ago
4 years ago
​
​
​
​
4 years ago
​
​
​
​
​
​
4 years ago
​
​
​
​
4 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, $CUser;
  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. <?php
  183. switch( $CUser->Data['ui_theme'] ){
  184. case 0:
  185. ?>
  186. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
  187. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-access.css"/>
  188. <?php
  189. break;
  190. case 1:
  191. ?>
  192. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
  193. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-gray.css"/>
  194. <?php
  195. break;
  196. case 2:
  197. ?>
  198. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all-notheme.css"/>
  199. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/xtheme-blue.css"/>
  200. <?php
  201. break;
  202. default:
  203. ?>
  204. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/resources/css/ext-all.css"/>
  205. <?php
  206. break;
  207. };
  208. ?>
  209. <link rel="stylesheet" type="text/css" href="lib/javascript/videojs/video-js.css"/>
  210. <link rel="stylesheet" type="text/css" href="/style/icons/silk.css"/>
  211. <!-- GC -->
  212. <!-- LIBS -->
  213. <script type="text/javascript" src="lib/javascript/jquery/jquery-1.12.4.min.js"></script>
  214. <script type="text/javascript" src="lib/javascript/videojs/video.js"></script>
  215. <script type="text/javascript" src="lib/javascript/videojs/videojs-offset.min.js"></script>
  216. <script type="text/javascript" src="lib/javascript/videojs/videojs-ie8.min.js"></script>
  217. <script type="text/javascript" src="lib/javascript/videojs/videojs-contrib-hls.js"></script>
  218. <script type="text/javascript" src="lib/javascript/clipchamp/player.js"></script>
  219. <script type="text/javascript" src="lib/javascript/extjs/adapter/jquery/ext-jquery-adapter.js"></script>
  220. <!--script type="text/javascript" src="lib/javascript/extjs/adapter/ext/ext-base.js"></script-->
  221. <script type="text/javascript" src="lib/javascript/extjs/ext-all.js"></script>
  222. <script type="text/javascript" src="lib/javascript/extjs/ux/ux-all.js"></script>
  223. <!--link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/css/ux-all.css"/-->
  224. <link rel="stylesheet" type="text/css" href="lib/javascript/extjs/ux/fileuploadfield/css/fileuploadfield.css"/>
  225. <script type="text/javascript" src="lib/javascript/flash/swfobject.js"></script>
  226. <script type="text/javascript" src="lib/javascript/flash/html5video_flash.js"></script>
  227. <script type="text/javascript" src="lib/javascript/moment-2.8.4/moment.min.js"></script>
  228. <script type="text/javascript" src="lib/javascript/vis-4.21.0/dist/vis.min.js"></script>
  229. <link rel="stylesheet" type="text/css" href="lib/javascript/vis-4.21.0/dist/vis-network.min.css"/>
  230. <link rel="stylesheet" type="text/css" href="lib/javascript/vis-4.21.0/dist/vis-timeline-graph2d.min.css"/>
  231. <!--link rel="stylesheet" type="text/css" href="/style/leaflet.css"/-->
  232. <link rel="stylesheet" type="text/css" href="lib/javascript/leaflet/leaflet.css"/>
  233. <script type="text/javascript" src="lib/javascript/leaflet/leaflet.js"></script>
  234. <script type="text/javascript" src="lib/javascript/leaflet/Leaflet.ImageOverlay.Rotated.js"></script>
  235. <script type="text/javascript" src="lib/javascript/howler/howler.min.js"></script>
  236. <script type="text/javascript" src="lib/javascript/plupload/js/moxie.min.js"></script>
  237. <script type="text/javascript" src="lib/javascript/plupload/js/plupload.min.js"></script>
  238. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotify.css" />
  239. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/BrightTheme.css" />
  240. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/Material.css" />
  241. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/Angeler.css" />
  242. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyBootstrap4.css" />
  243. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyMobile.css" />
  244. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyDesktop.css" />
  245. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyConfirm.css" />
  246. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyCountdown.css" />
  247. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyPaginate.css" />
  248. <link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotifyReference.css" />
  249. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotify.js"></script>
  250. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyBootstrap4.js"></script>
  251. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyFontAwesome5Fix.js"></script>
  252. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyFontAwesome5.js"></script>
  253. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyAnimate.js"></script>
  254. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyMobile.js"></script>
  255. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyDesktop.js"></script>
  256. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyConfirm.js"></script>
  257. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyCountdown.js"></script>
  258. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyPaginate.js"></script>
  259. <script type="text/javascript" src="lib/javascript/pnotyfy/PNotifyReference.js"></script>
  260. <script type="text/javascript" src="lib/javascript/d3/d3.min.js"></script>
  261. <link rel="stylesheet" type="text/css" href="lib/javascript/activitymap/activitymap.css" />
  262. <script type="text/javascript" src="lib/javascript/activitymap/activitymap.js"></script>
  263. <script type="text/javascript" src="lib/javascript/three/three.js"></script>
  264. <script type="text/javascript" src="lib/javascript/paper/paper-full.min.js"></script>
  265. <!-- ENDLIBS -->
  266. <style type="text/css">
  267. .flowplayer {
  268. width: 640px;
  269. }
  270. .fullscreen:-webkit-full-screen {
  271. width: auto !important;
  272. height: auto !important;
  273. margin:auto !important;
  274. }
  275. .fullscreen:-moz-full-screen {
  276. width: auto !important;
  277. height: auto !important;
  278. margin:auto !important;
  279. }
  280. .fullscreen:-ms-fullscreen {
  281. width: auto !important;
  282. height: auto !important;
  283. margin:auto !important;
  284. }
  285. .header_ttl{
  286. font: bold 24px;
  287. }
  288. html, body {
  289. font: normal 12px verdana;
  290. margin: 0;
  291. padding: 0;
  292. border: 0 none;
  293. /*overflow: hidden;
  294. height: 100%;*/
  295. background: #202020;
  296. -webkit-user-select: none;
  297. user-select: none;
  298. }
  299. #output {
  300. margin-left: 350px;
  301. }
  302. #log {
  303. width: 80%;
  304. height: 100px;
  305. }
  306. #player {
  307. float: left;
  308. }
  309. #controls {
  310. clear: left;
  311. }
  312. p {
  313. margin: 0;
  314. }
  315. .timeInput, .volumeInput {
  316. width: 3em;
  317. }
  318. </style>
  319. <?php
  320. if(is_array( $Static_Scoop )){
  321. foreach( $Static_Scoop as $S ) {
  322. echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $S . '"></script>';
  323. };
  324. } else {
  325. if($Static_Scoop!=''){
  326. echo '<script type="text/javascript" src="lib/javascript/jsapi_static/'. $Static_Scoop . '"></script>';
  327. };
  328. };
  329. if(is_array( $Dynamic_Scoop )){
  330. foreach( $Dynamic_Scoop as $S ) {
  331. echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $S . '"></script>';
  332. };
  333. } else {
  334. if($Dynamic_Scoop!=''){
  335. echo '<script type="text/javascript" src="lib/javascript/jsapi_dynamic/'. $Dynamic_Scoop . '"></script>';
  336. };
  337. };
  338. ?>
  339. <link rel="stylesheet" type="text/css" href="style/style.css"/>
  340. </head>
  341. <body><?php
  342. };
  343. function UI_PageBottomExt(){
  344. global $Script_Start_Time, $Labels;
  345. ?></center>
  346. <div id="ss_bg" class="ss_hidden"></div>
  347. <div id="ss_content" class="ss_hidden">SS TEXT</div>
  348. </body>
  349. </html>
  350. <?php
  351. };
  352. function UI_PageBottom(){
  353. global $Script_Start_Time, $Labels;
  354. ?>
  355. <table width="90%" class="fieldround20" style="position: fixed; bottom: 0;">
  356. <tr>
  357. <td class="r_cell" align="center">
  358. <p style="align: center; font-size: 8px" ><?php
  359. $GG_Time = microtime_float() - $Script_Start_Time;
  360. echo $Labels->GetLabel('__PAGEWASGENIN__');
  361. echo ' ' . $GG_Time . ' ';
  362. if( $GG_Time > 2 ) echo $Labels->GetLabel('__SECONDS__');
  363. else echo $Labels->GetLabel('__SECOND__');
  364. ?></p>
  365. </td>
  366. </tr>
  367. </table>
  368. </center>
  369. </body>
  370. </html>
  371. <?php
  372. };
  373. function UI_LoginForm($target = 'login.php'){
  374. global $Labels;
  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" height="200px"><img 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="<?=$target;?>" enctype="multipart/form-data">
  385. <table width="500px" border="0" style="background-color: white;">
  386. <tr><td colspan=4 height="70px">&nbsp;</td></tr>
  387. <tr><td colspan=4 align="center">
  388. <table width="100%">
  389. <tr><td align="right" width="40%"><b><?=$Labels->GetLabel('__LOGIN_ID__');?>:</b></td><td><input type="text" name="login"></td></tr>
  390. <tr><td align="right"><b><?=$Labels->GetLabel('__PASSWORD__');?>:</b></td><td><input type="password" name="password"></td></tr>
  391. <tr><td colspan=2 align="center"><input type="submit" value="<?=$Labels->GetLabel('__LOGIN__');?>"></td></tr>
  392. </table></td></tr>
  393. <tr><td colspan=4 height="70px">&nbsp;</td></tr>
  394. <tr><td colspan=4 align="center"><p style=""><?=$Labels->GetLabel('__SSl_DOWNLOAD__');?></p></td></tr>
  395. <tr><td colspan=4 align="center"><a href="/style/assets/rootCA.crt"><img width="64px" src="/style/assets/ssl.png"></a></td></tr>
  396. <tr>
  397. <td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20iOS.pdf" target="_blank"><img width="64px" src="/style/assets/ios-1.png"></a></td>
  398. <td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Mac.pdf" target="_blank"><img width="64px" src="/style/assets/ios.png"></a></td>
  399. <td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Windows.pdf" target="_blank"><img width="64px" src="/style/assets/win.png"></a></td>
  400. <td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Android.pdf" target="_blank"><img width="64px" src="/style/assets/and.png"></a></td></tr></tr>
  401. <tr><td colspan=4 height="70px">&nbsp;</td></tr>
  402. </table>
  403. </form>
  404. </td>
  405. </tr>
  406. </table>
  407. <?php
  408. };
  409. function UI_INSTALL_DBCRED_Form( $A='', $B='', $C='', $D='', $E='' ){
  410. ?>
  411. <table width="100%" border="0" style="background: #202020;">
  412. <tr><td align="center">
  413. <table width="100%"><tr>
  414. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  415. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  416. </tr></table>
  417. </td></tr>
  418. <tr><td align="center">
  419. <form method="Post" action="/setup/index.php?stp=1" enctype="multipart/form-data">
  420. <table width="500px" border="0" style="background-color: white;">
  421. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  422. <?php
  423. if( $E!='' ){
  424. ?>
  425. <tr><td align="center" colspan=2 style="background-color: red; color: yelow;" ><b><?=$E;?></b></td></tr>
  426. <?php
  427. };
  428. ?>
  429. <tr><td align="right" width="40%"><b>Database Host:</b></td><td><input type="text" name="dbh" value="<?=$A;?>"></td></tr>
  430. <tr><td align="right"><b>Database Name:</b></td><td><input type="text" name="dbn" value="<?=$B;?>"></td></tr>
  431. <tr><td align="right"><b>Database User:</b></td><td><input type="text" name="dbu" value="<?=$C;?>"></td></tr>
  432. <tr><td align="right"><b>Database Password:</b></td><td><input type="password" name="dbp" value="<?=$D;?>"></td></tr>
  433. <tr><td colspan=2 align="center"><input type="submit" value="SETUP"></td></tr>
  434. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  435. </table>
  436. </form>
  437. </td>
  438. </tr>
  439. </table>
  440. <?php
  441. };
  442. function UI_INSTALL_ADMIN_SITE_Form( $A='', $B='', $C='', $D='', $E='', $F='', $G='', $H='', $I='' ){
  443. ?>
  444. <table width="100%" border="0" style="background: #202020;">
  445. <tr><td align="center">
  446. <table width="100%"><tr>
  447. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  448. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  449. </tr></table>
  450. </td></tr>
  451. <tr><td align="center">
  452. <form method="Post" action="/setup/index.php?stp=2" enctype="multipart/form-data">
  453. <table width="500px" border="0" style="background-color: white;">
  454. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  455. <?php
  456. if( $I!='' ){
  457. ?>
  458. <tr><td align="center" colspan=2 style="background-color: red; color: yelow;" ><b><?=$I;?></b></td></tr>
  459. <?php
  460. };
  461. ?>
  462. <tr><td align="right"><b>Admin User Login:</b></td><td><input type="text" name="adu" value="<?=$E;?>"></td></tr>
  463. <tr><td align="right"><b>Admin Password:</b></td><td><input type="password" name="adp" value="<?=$F;?>"></td></tr>
  464. <tr><td align="right"><b>Repeat Password:</b></td><td><input type="password" name="adp2" value="<?=$G;?>"></td></tr>
  465. <tr><td align="right"><b>Site Name:</b></td><td><input type="text" name="sina" value="<?=$H;?>"></td></tr>
  466. <tr><td align="right"><b>Database Host:</b></td><td><input readonly type="text" name="dbh" value="<?=$A;?>"></td></tr>
  467. <tr><td align="right"><b>Database Name:</b></td><td><input readonly type="text" name="dbn" value="<?=$B;?>"></td></tr>
  468. <tr><td align="right"><b>Database User:</b></td><td><input readonly type="text" name="dbu" value="<?=$C;?>"></td></tr>
  469. <tr><td align="right"><b>Database Password:</b></td><td><input readonly type="password" name="dbp" value="<?=$D;?>"></td></tr>
  470. <tr><td colspan=2 align="center"><input type="submit" value="SET"></td></tr>
  471. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  472. </table>
  473. </form>
  474. </td>
  475. </tr>
  476. </table>
  477. <?php
  478. };
  479. function UI_INSTALL_WELCOME_Form(){
  480. ?>
  481. <table width="100%" border="0" style="background: #202020;">
  482. <tr><td align="center">
  483. <table width="100%"><tr>
  484. <td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td>
  485. <td align="center"><img style="position: relative; left: -50px;" height="64px" src="/style/assets/argus_logo_text.png"></td>
  486. </tr></table>
  487. </td></tr>
  488. <tr><td align="center">
  489. <form method="Post" action="/index.php" enctype="multipart/form-data">
  490. <table width="500px" border="0" style="background-color: white;">
  491. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  492. <tr><td align="center" colspan=2 style="background-color: blue; color: yelow;" ><b>All Done</b></td></tr>
  493. <tr><td colspan=2 align="center"><input type="submit" value="ENTER"></td></tr>
  494. <tr><td colspan=2 height="50px">&nbsp;</td></tr>
  495. </table>
  496. </form>
  497. </td>
  498. </tr>
  499. </table>
  500. <?php
  501. };
  502. function UI_SideMenu( $ActiveItem = 0 ){
  503. global $Labels, $CUser;
  504. if( $CUser->Data['id'] > 1 ){
  505. switch( $CUser->Data['access'] ){
  506. case 10:
  507. $mnu = array(
  508. '__PROFILE__'=>'/login.php?login=guest',
  509. '__DASHBOARD__'=>'/',
  510. '__SENSORS__'=>'/devices.php',
  511. '__VIDEOS__'=>'/login.php?login=guest',
  512. '__REPORTS__'=>'/login.php?login=guest',
  513. '__SYSCTRL__'=>'/login.php?login=guest',
  514. '__LOGOUT__'=>'/login.php?login=guest'
  515. );
  516. break;
  517. case 0:
  518. default:
  519. $mnu = array(
  520. '__PROFILE__'=>'/login.php?login=guest',
  521. '__DASHBOARD__'=>'/',
  522. '__LOGOUT__'=>'/login.php?login=guest'
  523. );
  524. break;
  525. };
  526. echo '<table width="100%" class="sideMenuBarTable">';
  527. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell">' . $CUser->Data['login'] . '(' . $CUser->Data['access'] .')' . '</a></td></tr>';
  528. $index = 1;
  529. foreach( $mnu as $Key=>$Value ){
  530. if( $index == $ActiveItem ){
  531. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
  532. } else {
  533. echo '<tr class="sideMenuBarRow"><td class="sideMenuBarCell"><a href="' . $Value . '">' . $Labels->GetLabel($Key) . '</a></td></tr>';
  534. };
  535. $index++;
  536. };
  537. echo "</table>";
  538. } else {
  539. ?><table width="100%" class="sideMenuBarTable">
  540. <tr class="sideMenuBarRow"><td class="sideMenuBarCell"></td></tr>
  541. </table><?php
  542. };
  543. };
  544. function UI_MainDashBoard(){
  545. global $Labels, $CUser;
  546. //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">';
  547. ?>
  548. <div id="mainDashBoard">
  549. </div>
  550. <!--object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
  551. codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"
  552. id="vlc"
  553. width = "640px"
  554. height = "480px"
  555. target = "/test_mp4.php"
  556. >
  557. <embed
  558. type="application/x-vlc-plugin"
  559. pluginspage="http://www.videolan.org"
  560. name="vlc"
  561. width = "640px"
  562. height = "480px"
  563. target = "/test_mp4.php"
  564. />
  565. </object-->
  566. <video width="640px" height="480px" controls>
  567. <source src="/test_mp4.php" type='video/webm;codecs="vp8, vorbis"'/>
  568. </video>
  569. <?php
  570. };
  571. function UI_Begin2Section( $Width = '' ){
  572. if( $Width != '' ){
  573. ?><table width="100%" border=0 class="contentTable">
  574. <tr><td width="<?=$Width;?>"><?php
  575. } else {
  576. ?><table width="100%" border=0 class="contentTable">
  577. <tr><td ><?php
  578. };
  579. };
  580. function UI_SectionDelimiter( $Width='' ){
  581. if( $Width != '' ){
  582. ?></td><td width="<?=$Width;?>"><?php
  583. } else {
  584. ?></td><td><?php
  585. };
  586. };
  587. function UI_End2Section(){
  588. ?></td></tr>
  589. </table><?php
  590. };
  591. function UI_SSLDialog(){
  592. global $Labels, $_SERVER, $UPLOAD, $VALID, $ERR;
  593. ?>
  594. <table width="100%" border="0" style="background: #202020;">
  595. <tr><td align="center">
  596. <table width="100%"><tr>
  597. <!--td align="left" width="64px"><img height="64px" src="/style/img/logo-s.png"></td-->
  598. <td align="center" height="200px"><img height="64px" src="/style/assets/argus_logo_text.png"></td>
  599. </tr></table>
  600. </td></tr>
  601. <tr><td align="center">
  602. <form method="Post" action="<?=$target;?>" enctype="multipart/form-data">
  603. <table width="500px" border="0" style="background-color: white;">
  604. <tr><td colspan=3 height="70px">&nbsp;</td></tr>
  605. <?php
  606. if( $UPLOAD ){
  607. if( $VALID ){
  608. ?><tr><td align="center" colspan=4 style="color: red;"><b><?=$Labels->GetLabel('_SSL_CERT_VALID_INSTA');?></b></td></tr><?php
  609. } else {
  610. ?><tr><td align="center" colspan=4 style="color: red;"><b><?=$ERR;?></b></td></tr><tr><td align="center" colspan=3 style="color: red;"><b><?=str_ireplace('%%IP%%', $_SERVER['HTTP_HOST'], $Labels->GetLabel('__SSl_NO_CERT__'));?></b></td></tr>
  611. <tr><td align="right"><?=str_ireplace('%%IP%%', $_SERVER['HTTP_HOST'], $Labels->GetLabel('_SSL_PROVIDE_CERT_'));?></td>
  612. <td><input type="file" name="fcert" accept=".crt,.pem"></td>
  613. <td><input type="submit" value="<?=$Labels->GetLabel('__UPLOAD__');?>"></td></tr><?php
  614. };
  615. } else {
  616. ?><tr><td align="center" colspan=4 style="color: red;"><b><?=$ERR;?></b></td></tr>
  617. <tr><td align="right"><?=str_ireplace('%%IP%%', $_SERVER['HTTP_HOST'], $Labels->GetLabel('_SSL_PROVIDE_CERT_'));?></td>
  618. <td><input type="file" name="fcert" accept=".crt,.pem"></td>
  619. <td><input type="submit" value="<?=$Labels->GetLabel('__UPLOAD__');?>"></td></tr><?php
  620. };
  621. ?>
  622. <tr><td align="center" colspan=4><b><?=$Labels->GetLabel('__SSl_WELCOME__');?></b></td></tr>
  623. <tr><td colspan=4 align="center"><p style=""><?=$Labels->GetLabel('__SSl_DOWNLOAD__');?></p></td></tr>
  624. <tr><td colspan=4 align="center"><a href="/style/assets/rootCA.crt"><img width="64px" src="/style/assets/ssl.png"></a></td></tr>
  625. <tr>
  626. <td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20iOS.pdf" target="_blank"><img width="64px" src="/style/assets/ios-1.png"></a></td>
  627. <td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Mac.pdf" target="_blank"><img width="64px" src="/style/assets/ios.png"></a></td>
  628. <td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Windows.pdf" target="_blank"><img width="64px" src="/style/assets/win.png"></a></td>
  629. <td align="center" ><a href="/style/assets/Install%20Root%20Certificate%20on%20Android.pdf" target="_blank"><img width="64px" src="/style/assets/and.png"></a></td></tr>
  630. <tr><td colspan=4 height="70px">&nbsp;</td></tr>
  631. </table>
  632. </form>
  633. </td>
  634. </tr>
  635. </table>
  636. <?php
  637. };
  638. ?>