skin.general.php 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <!doctype html>
  2. <html lang="<?=$system->config['language']?>">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title><?rcms_show_element('title')?></title>
  6. <?rcms_show_element('meta')?>
  7. <link rel="stylesheet" href="<?= CUR_SKIN_PATH ?>css/layout.css" type="text/css" media="screen" />
  8. <link rel="stylesheet" href="<?= CUR_SKIN_PATH ?>css/ubilling.css" type="text/css" media="screen" />
  9. <link rel="stylesheet" href="<?= CUR_SKIN_PATH ?>css/ubim.css" type="text/css" media="screen" />
  10. <!--[if lt IE 9]>
  11. <link rel="stylesheet" href="css/ie.css" type="text/css" media="screen" />
  12. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  13. <![endif]-->
  14. <script src="modules/jsc/jquery.cookie.js" type="text/javascript"></script>
  15. <script src="modules/jsc/glmenuCollapser.js" type='text/javascript'></script>
  16. <script src="modules/jsc/hideshow.js" type="text/javascript"></script>
  17. <script src="modules/jsc/winman.js" type="text/javascript"></script>
  18. <meta name="theme-color" content="#1b1b1b">
  19. <meta name="msapplication-navbutton-color" content="#1b1b1b">
  20. <meta name="apple-mobile-web-app-status-bar-style" content="#1b1b1b">
  21. <script src="modules/jsc/transition-pages-fakeloader/dist/fakeloader.min.js"></script>
  22. <link rel="stylesheet" href="modules/jsc/transition-pages-fakeloader/dist/fakeloader.css">
  23. </head>
  24. <body>
  25. <script>
  26. $(document).ready(
  27. function () {
  28. window.FakeLoader.init({auto_hide: true});
  29. }
  30. );
  31. </script>
  32. <div id="fakeloader-overlay" class="visible incoming"><div class="loader-wrapper-outer"><div class="loader-wrapper-inner"><div class="loader"></div></div></div></div>
  33. <header id="header">
  34. <hgroup>
  35. <h1 class="site_title">
  36. <a href="http://ubilling.net.ua">
  37. <img src="<?= CUR_SKIN_PATH ?>/images/logo.png" height="32" border="0">
  38. </a>
  39. <span class="ubproductname">Ubilling</span>
  40. <sup class="ubverinfo"><?= web_ReleaseInfo(); ?></sup>
  41. </h1>
  42. <div class="notificationArea">
  43. <?php
  44. if (LOGGED_IN) {
  45. //display notification area
  46. $notifyArea = new DarkVoid();
  47. print($notifyArea->render());
  48. } else {
  49. ?>
  50. <div>
  51. <form style="float:left;" name="lang_select" method="post" action=""><img src="skins/menuicons/icn_settings.png"><?= user_lang_select('lang_form', $system->language, 'font-size: 90%; width: 100px;', 'onchange="document.forms[\'lang_select\'].submit()" title="' . __('Lang') . '"') ?></form>
  52. <form style="float:left;" name="skin_select" method="post" action=""><?= user_skin_select(SKIN_PATH, 'user_selected_skin', $system->skin, 'font-size: 90%; width: 100px;', 'onchange="document.forms[\'skin_select\'].submit()" title="' . __('Skin') . '"') ?></form>
  53. </div>
  54. <?php
  55. }
  56. ?>
  57. </div>
  58. <div class="btn_view_help"><?= web_HelpIconShow(); ?> <? if (XHPROF) { print($xhprof_link); } ?> <?= zb_IdleAutologoutRun(); ?></div>
  59. </hgroup>
  60. </header> <!-- end of header bar -->
  61. <? if (LOGGED_IN) { ?>
  62. <section id="secondary_bar">
  63. <div class="user">
  64. <p>
  65. <a href="?forceLogout=true" title="<?= __('Log out'); ?>" class="logout_user"><img src="skins/ubng/images/poweroff.png"></a>
  66. <?= whoami(); ?>
  67. <?php
  68. if (@$_COOKIE['ghost_user']) {
  69. print(' <img src="skins/ghost.png" width="10" title="' . __('in ghost mode') . '">');
  70. }
  71. ?>
  72. </p>
  73. <a class="menu_toggle" href="javascript:showhideGlobalMenu();" title="<?= __('Toggle menu'); ?>"><?= __('Toggle menu'); ?></a>
  74. </div>
  75. <div class="breadcrumbs_container">
  76. <article class="breadcrumbs">
  77. <?php
  78. $globalMenu = new GlobalMenu();
  79. //rebuild fast access menu cache on language switch
  80. if (wf_CheckPost(array('lang_form'))) {
  81. $globalMenu->rebuildFastAccessMenuData();
  82. }
  83. print($globalMenu->renderFastAccessMenu());
  84. ?>
  85. </article>
  86. </div>
  87. </section><!-- end of secondary bar -->
  88. <aside id="sidebar" class="column">
  89. <form class="quick_search" method="POST" action="?module=usersearch">
  90. <?php
  91. if (cfr('USERSEARCH')) {
  92. $globalSearch = new GlobalSearch();
  93. print($globalSearch->renderSearchInput());
  94. }
  95. ?>
  96. </form>
  97. <hr/>
  98. <?php
  99. //display global menu widget
  100. print($globalMenu->render());
  101. ?>
  102. <h3><?= __('Administrator'); ?></h3>
  103. <ul class="toggle">
  104. <li>
  105. <form action="" method="POST">
  106. <input name="logout_form" value="1" type="hidden">
  107. <img src="skins/menuicons/icn_jump_back.png"><input value="<?= __('Log out') . ' ' . whoami(); ?>" type="submit">
  108. </form>
  109. </li>
  110. <li>
  111. <form name="lang_select" method="post" action=""><img src="skins/menuicons/icn_settings.png"><?= user_lang_select('lang_form', $system->language, 'font-size: 90%; width: 100px;', 'onchange="document.forms[\'lang_select\'].submit()" title="' . __('Lang') . '"') ?></form>
  112. <form name="skin_select" method="post" action=""><img src="skins/menuicons/icn_settings.png"><?= user_skin_select(SKIN_PATH, 'user_selected_skin', $system->skin, 'font-size: 90%; width: 100px;', 'onchange="document.forms[\'skin_select\'].submit()" title="' . __('Skin') . '"') ?></form>
  113. </li>
  114. <?php if (cfr('GLMENUCONF')) { ?> <li><img src="skins/menuicons/icn_settings.png"><a href="?module=glmenuconf"><?= __('Personalize menu'); ?></a></li> <?php } ?>
  115. </ul>
  116. <footer>
  117. <?php
  118. if ((LOGGED_IN) AND ( !file_exists('I_HATE_NEW_YEAR'))) {
  119. $dateny = time();
  120. $monthny = date('m');
  121. $date_startny = null;
  122. $date_stopny = null;
  123. switch ($monthny) {
  124. case '12':
  125. $date_startny = strtotime(date('Y') . '-12-25');
  126. $date_stopny = strtotime((date('Y') + 1) . '-1-05');
  127. break;
  128. case '1':
  129. $date_startny = strtotime((date('Y') - 1) . '-12-25');
  130. $date_stopny = strtotime(date('Y') . '-1-05');
  131. break;
  132. }
  133. if ($dateny >= $date_startny && $dateny < $date_stopny) {
  134. print(file_get_contents('skins/ubny.txt'));
  135. }
  136. }
  137. ?>
  138. <hr />
  139. <p><strong><?rcms_show_element('copyright')?> </strong></p>
  140. <p>
  141. <?php
  142. // Page gentime end
  143. $mtime = explode(' ', microtime());
  144. $totaltime = $mtime[0] + $mtime[1] - $starttime;
  145. print('GT:' . round($totaltime, 3));
  146. print(' QC: ' . $query_counter);
  147. ?></p>
  148. </footer>
  149. </aside><!-- end of sidebar -->
  150. <section id="main" class="column">
  151. <article class="module width_full">
  152. <?rcms_show_element('menu_point', 'up_center@window')?>
  153. <?rcms_show_element('main_point', $module . '@window')?>
  154. </article>
  155. <div class="spacer"></div>
  156. </section>
  157. <? } else {
  158. $ubLoginForm=new LoginForm();
  159. print($ubLoginForm->render());
  160. }
  161. ?>
  162. <script src="modules/jsc/darkmode/lib/darkmode-js.min.js"></script>
  163. <script>
  164. var options = {
  165. time: '0.3s',
  166. mixColor: '#fff',
  167. backgroundColor: '#fff',
  168. buttonColorDark: '#232323',
  169. buttonColorLight: '#fff',
  170. saveInCookies: true,
  171. label: '🌓',
  172. autoMatchOsTheme: true
  173. }
  174. const darkmode = new Darkmode(options);
  175. darkmode.showWidget();
  176. </script>
  177. <!-- <link rel="stylesheet" href="modules/jsc/jquery-ui-themes/themes/dark-hive/jquery-ui.min.css" type="text/css"/> -->
  178. <link rel="stylesheet" href="modules/jsc/jquery-ui-themes/themes/dark-hive/theme.css" type="text/css"/>
  179. <link rel="stylesheet" href="modules/jsc/dt3/css/jquery.dataTables.ub_dm.css" type="text/css"/>
  180. </body>
  181. </html>