skin.general.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $system->config['language'] ?>" lang="<?= $system->config['language'] ?>">
  3. <head>
  4. <title><? rcms_show_element('title') ?></title>
  5. <? rcms_show_element('meta') ?>
  6. <link href="<?= CUR_SKIN_PATH ?>style.css" rel="stylesheet" type="text/css" media="screen" />
  7. <link href="<?= CUR_SKIN_PATH ?>ubim.css" rel="stylesheet" type="text/css" media="screen" />
  8. </head>
  9. <body>
  10. <div id="header">
  11. <div id="logo">
  12. <h1><a href="http://ubilling.net.ua"><img src="skins/logo.png" height="32" border="0"></a> Ubilling</h1>
  13. <p><?= web_ReleaseInfo(); ?></p>
  14. <form name="lang_select" method="post" action=""><?= user_lang_select('lang_form', $system->language, 'font-size: 90%; width: 100px;', 'onchange="document.forms[\'lang_select\'].submit()" title="' . __('Lang') . '"') ?></form>
  15. <form 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') . '"') ?>
  16. </form>
  17. <?= web_HelpIconShow(); ?> <? if (XHPROF) {
  18. print($xhprof_link);
  19. } ?> <?= zb_IdleAutologoutRun(); ?>
  20. <div class="notificationArea">
  21. <?php
  22. if (LOGGED_IN) {
  23. $notifyArea = new DarkVoid();
  24. print($notifyArea->render());
  25. }
  26. ?>
  27. </div>
  28. </div> <? if (LOGGED_IN) { ?>
  29. <form action="" method="POST">
  30. <input name="logout_form" value="1" type="hidden">
  31. <input value="<?= __('Log out') . ' ' . whoami(); ?>" type="submit">
  32. </form>
  33. <div id="menu">
  34. <ul>
  35. <? rcms_show_element('navigation', '<li><a href="{link}" target="{target}" id="{id}">{title}</a></li>') ?>
  36. </ul>
  37. </div>
  38. <center>
  39. <table style="text-align: left; width: 90%;" border="0" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
  40. <tbody>
  41. <tr>
  42. <td class="post">
  43. <? rcms_show_element('menu_point', 'up_center@window') ?>
  44. <? rcms_show_element('main_point', $module . '@window') ?>
  45. </td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </center>
  50. <div style="clear: both;">&nbsp;</div>
  51. <?php
  52. if ((LOGGED_IN) and (!file_exists('I_HATE_NEW_YEAR'))) {
  53. $dateny = time();
  54. $monthny = date('m');
  55. $date_startny = null;
  56. $date_stopny = null;
  57. switch ($monthny) {
  58. case '12':
  59. $date_startny = strtotime(date('Y') . '-12-25');
  60. $date_stopny = strtotime((date('Y') + 1) . '-1-05');
  61. break;
  62. case '1':
  63. $date_startny = strtotime((date('Y') - 1) . '-12-25');
  64. $date_stopny = strtotime(date('Y') . '-1-05');
  65. break;
  66. }
  67. if ($dateny >= $date_startny && $dateny < $date_stopny) {
  68. print(file_get_contents('skins/ubny.txt'));
  69. }
  70. }
  71. ?>
  72. <div id="footer">
  73. <p><? rcms_show_element('copyright') ?>
  74. <?php
  75. // Page gentime end
  76. $mtime = explode(' ', microtime());
  77. $totaltime = $mtime[0] + $mtime[1] - $starttime;
  78. print(__('GT:') . round($totaltime, 2));
  79. print(' QC: ' . $query_counter);
  80. ?></p>
  81. <? } else {
  82. $ubLoginForm = new LoginForm();
  83. print($ubLoginForm->render());
  84. } ?>
  85. </div>
  86. </body>
  87. </html>