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.

649 lines
26 KiB

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