skin.general.php 3.8 KB

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