Source for file msgoutbox.php

Documentation is available at msgoutbox.php

  1. <?php
  2. /**
  3.  * R.E. Login 2.0 - Kimenő üzenetek - msgoutbox.php
  4.  *
  5.  * Kimenő üzenetek 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/msgoutbox.php';
  28.  
  29. /**
  30.  * @ignore
  31.  */
  32. require_once System::getIncLoginDir().'includes/msgmenu.php';
  33.  
  34.  
  35. $pagelinks $outbox->pageLinks(10);
  36. if ($outbox->count()) ?>
  37. <div align="center">
  38. <?php print $pagelinks ?>
  39. </div>
  40. <script type="text/javascript" src="<?php print System::getLogindir(?>js/checkall.js"></script>
  41. <form action="" method="post" id="relogin-msglst-outbox">
  42. <table align="center" class="relogin-msglst">
  43.     <tr>
  44.         <th class="msglst-icon"></th>
  45.         <th class="msglst-usr">Címzett</th>
  46.         <th class="msglst-subject">Tárgy</th>
  47.         <th class="msglst-time">Idő</th>
  48.         <th class="msglst-delbox"><input type="checkbox" onclick="checkAll(this, 'relogin-msglst-outbox')" /></th>
  49.     </tr>
  50. <?php foreach ($outbox as $message{
  51.     $to !$message->toid
  52.             ? '<b>Hír</b>'
  53.             : (empty($message->T_to_username)
  54.                 ? 'Törölt user'
  55.                 : '<a href="'.User::profileUrl($message->toid).'">'.htmlspecialchars($message->T_to_username).'</a>');
  56.             
  57.     ?>
  58.     <tr>
  59.         <td class="msglst-icon"><img src="<?php print $message->icon()?>" alt="icon" /></td>
  60.         <td class="msglst-usr"><?php print $to ?></td>
  61.         <td class="msglst-subject"><a href="<?php print $message->msgUrl()?>"><?php print htmlspecialchars($message->subject(true))?></a></td>
  62.         <td class="msglst-time"><?php print $message->sendtime ?></td>
  63.         <td class="msglst-delbox"><input type="checkbox" name="msglist[]" value="<?php print $message->messageid ?>" /></td>
  64.     </tr>
  65. <?php ?>
  66. </table>
  67.     <div align="center"><input type="submit" value="Kijelöltek törlése" /></div>
  68. </form>
  69. <div align="center">
  70. <?php print $pagelinks ?>
  71. </div>
  72. <?php else ?>
  73. <div align="center" >
  74. Nincs egy üzeneted sem.
  75. </div>
  76. <?php ?>

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