skin.general.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. </head>
  22. <body>
  23. <header id="header">
  24. <hgroup>
  25. <h1 class="site_title">
  26. <a href="https://ubilling.net.ua">
  27. <img src="<?= CUR_SKIN_PATH ?>/images/logo.png" height="32" border="0">
  28. </a>
  29. <span class="ubproductname">Ubilling</span>
  30. <sup class="ubverinfo"><?= web_ReleaseInfo(); ?></sup>
  31. </h1>
  32. <div class="notificationArea">
  33. <?php
  34. if (LOGGED_IN) {
  35. //display notification area
  36. $notifyArea = new DarkVoid();
  37. print($notifyArea->render());
  38. } else {
  39. ?>
  40. <div>
  41. <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>
  42. <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>
  43. </div>
  44. <?php
  45. }
  46. ?>
  47. </div>
  48. <div class="btn_view_help"><?= web_HelpIconShow(); ?> <?= web_SqlDebugIconShow(); ?> <? if (XHPROF) {
  49. print($xhprof_link);
  50. } ?> <?= zb_IdleAutologoutRun(); ?></div>
  51. </hgroup>
  52. </header> <!-- end of header bar -->
  53. <? if (LOGGED_IN) { ?>
  54. <section id="secondary_bar">
  55. <div class="user">
  56. <p>
  57. <a href="?forceLogout=true" title="<?= __('Log out'); ?>" class="logout_user"><img src="skins/ubng/images/poweroff.png"></a>
  58. <?= whoami(); ?>
  59. <?php
  60. if (@$_COOKIE['ghost_user']) {
  61. print(' <img src="skins/ghost.png" width="10" title="' . __('in ghost mode') . '">');
  62. }
  63. ?>
  64. </p>
  65. <a class="menu_toggle" href="javascript:showhideGlobalMenu();" title="<?= __('Toggle menu'); ?>"><?= __('Toggle menu'); ?></a>
  66. </div>
  67. <div class="breadcrumbs_container">
  68. <article class="breadcrumbs">
  69. <?php
  70. $globalMenu = new GlobalMenu();
  71. //rebuild fast access menu cache on language switch
  72. if (wf_CheckPost(array('lang_form'))) {
  73. $globalMenu->rebuildFastAccessMenuData();
  74. }
  75. print($globalMenu->renderFastAccessMenu());
  76. ?>
  77. </article>
  78. </div>
  79. </section><!-- end of secondary bar -->
  80. <aside id="sidebar" class="column">
  81. <form class="quick_search" method="POST" action="?module=usersearch">
  82. <?php
  83. if (cfr('USERSEARCH')) {
  84. $globalSearch = new GlobalSearch();
  85. print($globalSearch->renderSearchInput());
  86. }
  87. ?>
  88. </form>
  89. <hr />
  90. <?php
  91. //display global menu widget
  92. print($globalMenu->render());
  93. ?>
  94. <h3><?= __('Administrator'); ?></h3>
  95. <ul class="toggle">
  96. <li>
  97. <form action="" method="POST">
  98. <input name="logout_form" value="1" type="hidden">
  99. <img src="skins/menuicons/icn_jump_back.png"><input value="<?= __('Log out') . ' ' . whoami(); ?>" type="submit">
  100. </form>
  101. </li>
  102. <li>
  103. <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>
  104. <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>
  105. </li>
  106. <?php if (cfr('GLMENUCONF')) { ?> <li><img src="skins/menuicons/icn_settings.png"><a href="?module=glmenuconf"><?= __('Personalize menu'); ?></a></li> <?php } ?>
  107. </ul>
  108. <footer>
  109. <?php
  110. if ((LOGGED_IN) and (!file_exists('I_HATE_NEW_YEAR'))) {
  111. $dateny = time();
  112. $monthny = date('m');
  113. $date_startny = null;
  114. $date_stopny = null;
  115. switch ($monthny) {
  116. case '12':
  117. $date_startny = strtotime(date('Y') . '-12-23');
  118. $date_stopny = strtotime((date('Y') + 1) . '-1-05');
  119. break;
  120. case '1':
  121. $date_startny = strtotime((date('Y') - 1) . '-12-23');
  122. $date_stopny = strtotime(date('Y') . '-1-05');
  123. break;
  124. }
  125. if ($dateny >= $date_startny && $dateny < $date_stopny) {
  126. print(file_get_contents('skins/ubny.txt'));
  127. }
  128. }
  129. ?>
  130. <hr />
  131. <p><strong><? rcms_show_element('copyright') ?> </strong></p>
  132. <p>
  133. <?php
  134. // Page gentime end
  135. $mtime = explode(' ', microtime());
  136. $totaltime = $mtime[0] + $mtime[1] - $starttime;
  137. print('GT:' . round($totaltime, 3));
  138. print(' QC: ' . $query_counter);
  139. ?>
  140. </p>
  141. <br />
  142. </footer>
  143. </aside><!-- end of sidebar -->
  144. <section id="main" class="column">
  145. <article class="module width_full">
  146. <? rcms_show_element('menu_point', 'up_center@window') ?>
  147. <? rcms_show_element('main_point', $module . '@window') ?>
  148. </article>
  149. <div class="spacer"></div>
  150. </section>
  151. <? } else {
  152. $ubLoginForm = new LoginForm();
  153. print($ubLoginForm->render());
  154. }
  155. ?>
  156. </body>
  157. </html>