Source for file news.php

Documentation is available at news.php

  1. <?php
  2. /**
  3.  * R.E. Login 2.0 - Hírek - news.php
  4.  *
  5.  * Hírlista sablonja. <br />
  6.  * <br />
  7.  * <b>Dátum:</b> 2010.04.02.
  8.  *
  9.  * <b>Szerző weboldala:</b> {@link http://rimelek.hu/}<br />
  10.  * <b>Login weblapja:</b> {@link http://rimelek.hu/meghivos-loginrendszer-r-e-login-v2-0 R.E. Login v2.0}
  11.  *
  12.  * @author Takács Ákos (Rimelek), programmer [at] rimelek [dot] hu
  13.  * @copyright Copyright (C) 2010, Takács Ákos
  14.  * @license http://www.gnu.org/licenses/gpl.html
  15.  * @package RELogin
  16.  * @version 2.0
  17.  */
  18.  
  19. if(!class_exists('System'))
  20. {
  21.     exit('Ez a fajl nem erheto el kozvetlenul. Reszletek a readme.txt-ben.');
  22. }
  23.  
  24. /**
  25.  * @ignore
  26.  */
  27. require_once System::getIncLoginDir().'includes/news.php';
  28.  
  29. /**
  30.  * @ignore
  31.  */
  32. require_once System::getIncLoginDir().'includes/msgmenu.php';
  33.  
  34. $pagelinks $inbox->pageLinks(10);
  35. if ($inbox->count()) ?>
  36. <div align="center">
  37. <?php print $pagelinks ?>
  38. </div>
  39. <script type="text/javascript" src="<?php print System::getLogindir(?>js/checkall.js"></script>
  40. <form action="" method="post" id="relogin-msglst-news">
  41. <table align="center" class="relogin-msglst">
  42.     <tr>
  43.         <th class="msglst-usr">Írta</th>
  44.         <th class="msglst-subject">Tárgy</th>
  45.         <th class="msglst-time">Idő</th>
  46.         <?php if (System::$user->rank('admin')) ?>
  47.         <th class="msglst-delbox"><input type="checkbox" onclick="checkAll(this, 'relogin-msglst-news')" /></th>
  48.         <?php ?>
  49.     </tr>
  50. <?php foreach ($inbox as $message{
  51.     
  52.     ?>
  53.     <tr>
  54.         <td class="msglst-usr"><a href="<?php print User::profileUrl($message->fromid?>"><?php print htmlspecialchars($message->T_from_username)?></a></td>
  55.         <td class="msglst-subject"><a href="<?php print $message->msgUrl()?>"><?php print htmlspecialchars($message->subject(true))?></a></td>
  56.         <td class="msglst-time"><?php print $message->sendtime ?></td>
  57.         <?php if (System::$user->rank('admin')) ?>
  58.         <td class="msglst-delbox"><input type="checkbox" name="msglist[]" value="<?php print $message->messageid ?>" /></td>
  59.         <?php ?>
  60.     </tr>
  61. <?php ?>
  62. </table>
  63.     <?php if (System::$user->rank('admin')) ?>
  64.     <div align="center"><input type="submit" value="Kijelöltek törlése" /></div>
  65.     <?php ?>
  66. </form>
  67. <div align="center">
  68. <?php print $pagelinks ?>
  69. </div>
  70. <?php else ?>
  71. <div align="center" >
  72. Nincs egy hír sem.
  73. </div>
  74. <?php ?>

Documentation generated on Sun, 04 Apr 2010 22:43:47 +0200 by phpDocumentor 1.4.1