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.

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