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.

606 lines
23 KiB

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