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.

657 lines
26 KiB

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