index.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php
  2. /** @var string $act */
  3. /** @var string $pass */
  4. $time_start = microtime(1);
  5. require 'api/yiiInit.php';
  6. require_once "doctrine/bootstrap.php";
  7. require_once 'ocs.php';
  8. require_once 'CheckPoint.php';
  9. require_once 'CheckPointType.php';
  10. header("Expires: 0");
  11. header("Content-Type: text/html; charset=utf-8");
  12. session_start();
  13. error_reporting(0);
  14. foreach (array_keys($_REQUEST) as $var) {
  15. ${$var} = $_REQUEST[$var];
  16. }
  17. require 'functions.php';
  18. $link = \app\models\Doctrine::getLink();
  19. //Глобальные переменные на всякий случай
  20. list($db_hostname, $db_name, $db_username, $db_password) = \app\models\Doctrine::getDevConfig();
  21. /** @var int $cmdlevel */
  22. /** @var string $nameMain */
  23. /** @var string $login */
  24. require 'included/auth.php';
  25. /** @var string $mycompany */
  26. /** @var string $companyname */
  27. include 'included/company.php';
  28. ?>
  29. <!DOCTYPE html>
  30. <html lang="ru">
  31. <head>
  32. <!-- Basic Page Needs
  33. –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  34. <meta charset="utf-8">
  35. <title>ProSys Management</title>
  36. <meta name="description" content="">
  37. <meta name="author" content="">
  38. <!-- Mobile Specific Metas
  39. –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  40. <meta name="viewport" content="width=device-width, initial-scale=1">
  41. <!-- FONT
  42. –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  43. <link rel="stylesheet" href="fonts/stylesheet.css">
  44. <!-- CSS
  45. –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  46. <link rel="stylesheet" href="ProSysNew/content.css">
  47. <link rel="stylesheet" href="ProSysNew/datepicker.css">
  48. <link rel="stylesheet" href="ProSysNew/tabs.css">
  49. <link rel="stylesheet" href="ProSysNew/jquery-ui.min.css">
  50. <link rel="stylesheet" href="ProSysNew/datetimepicker.css">
  51. <link rel="stylesheet" href="ProSysNew/stylesheet.css">
  52. <!-- LTE -->
  53. <link rel="stylesheet" href="/lte/bower_components/bootstrap/dist/css/bootstrap.min.css">
  54. <!-- Font Awesome -->
  55. <link rel="stylesheet" href="/lte/bower_components/font-awesome/css/font-awesome.min.css">
  56. <!-- Ionicons -->
  57. <link rel="stylesheet" href="/lte/bower_components/Ionicons/css/ionicons.min.css">
  58. <!-- Theme style -->
  59. <link rel="stylesheet" href="/lte/dist/css/AdminLTE2.css">
  60. <!-- AdminLTE Skins. Choose a skin from the css/skins
  61. folder instead of downloading all of them to reduce the load. -->
  62. <link rel="stylesheet" href="/lte/dist/css/skins/_all-skins.min.css">
  63. <!-- Morris chart -->
  64. <link rel="stylesheet" href="/lte/bower_components/morris.js/morris.css">
  65. <!-- jvectormap -->
  66. <link rel="stylesheet" href="/lte/bower_components/jvectormap/jquery-jvectormap.css">
  67. <!-- Date Picker -->
  68. <link rel="stylesheet" href="/lte/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  69. <!-- Daterange picker -->
  70. <link rel="stylesheet" href="/lte/bower_components/bootstrap-daterangepicker/daterangepicker.css">
  71. <!-- bootstrap wysihtml5 - text editor -->
  72. <link rel="stylesheet" href="/lte/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
  73. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
  74. <link rel="stylesheet" href="/lte/bower_components/select2/dist/css/select2.min.css">
  75. <!-- LTE -->
  76. <link rel="stylesheet" href="css/normalize.css">
  77. <link rel="stylesheet" href="css/skeleton.css">
  78. <link rel="stylesheet" href="css/layout.css">
  79. <script src="/lte/bower_components/jquery/dist/jquery.min.js"></script>
  80. <script src="ProSysNew/datepicker.js"></script>
  81. <script src="ProSysNew/tabs.js"></script>
  82. <script src="ProSysNew/jquery-ui.min.js"></script>
  83. <script src="ProSysNew/datetimepicker.js"></script>
  84. <script src="ProSysNew/script.js"></script>
  85. <script>var page = '';</script>
  86. <script src="ProSysNew/bootstrap.js" type="text/javascript"></script>
  87. <script src="layout/popUpMenu.js"></script>
  88. <!-- Favicon -->
  89. <link rel="icon" type="image/png" href="images/favicon.png">
  90. <script src="js/accordion.js"></script>
  91. </head>
  92. <body onload="accon(<?echo $accnum;?>)">
  93. <div class="wrapper">
  94. <div class="left">
  95. <?php require 'views/leftBar.php' ?>
  96. </div>
  97. <div class="top">
  98. <div class="loco-logo">
  99. <img src="/images/svg/lokoteh.svg">
  100. </div>
  101. <div class="top-nav">
  102. <div class="top_links">
  103. <?
  104. if ($cmdlevel==1 || $cmdlevel == 10) {
  105. GetHrefActive('companies','Компании', false);
  106. GetHrefActive('accounts','Аккаунты', false);
  107. }
  108. ?>
  109. </div>
  110. <div class="account">
  111. <span class="account_name">
  112. <strong><?= ($nameMain ?? $name) . ' [' . $login . ']</strong>mp_using<br><i>from</i> '
  113. . $mycompany[1] . ' <i>editing</i> ' . $companyname ?>
  114. </span>
  115. <a href="?act=exit" class="logout"></a>
  116. </div>
  117. <ul class="nav navbar-nav" style="float: right;">
  118. <li class="dropdown messages-menu" >
  119. <a id="new_massage_dropdown" href="#" data-toggle="control-sidebar" data-toggle="control-sidebar">
  120. <i class="fa fa-bell-o fa-2x" style="font-weight: normal; font-family: FontAwesome"></i>
  121. <span id="new_massage_count" class="label label-default">0</span>
  122. </a>
  123. </li>
  124. </ul>
  125. </div>
  126. </div>
  127. <div class="content">
  128. <?php
  129. try {
  130. if ($incl != '') {
  131. include($incl);
  132. }
  133. } catch (\Throwable $e) {
  134. echo $e->getMessage();
  135. }
  136. ?>
  137. </div>
  138. </div>
  139. <?php include 'views/chat.php' ?>
  140. <!-- End Document
  141. –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  142. <script src="/checkpoints.js" type="text/javascript"></script>
  143. <script src="/locations.js" type="text/javascript"></script>
  144. <script src="/algo.js" type="text/javascript"></script>
  145. <script src="/staff.js" type="text/javascript"></script>
  146. <script src="/mail.js" type="text/javascript" encoding="utf-8"></script>
  147. <script src="/loco.js" type="text/javascript"></script>
  148. <script src="/operate.js" type="text/javascript"></script>
  149. <?php include 'views/lte-scripts.php' ?>
  150. </body>
  151. </html>
  152. <?php
  153. $time_end = microtime(1);
  154. $time = $time_end - $time_start;
  155. $time = round($time,5);
  156. ?>
  157. <div class='generate' style='position:absolute;top:5px;right:30px'>Страница сгенерирована за <?= $time ?> сек.</div>