Source for file search.php

Documentation is available at search.php

  1. <?php
  2. /**
  3.  * R.E. Login 2.0 - Felhasználó kereső - search.php
  4.  *
  5.  * Felhasználók keresése név szerint. Sablonfájl. <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/search.php';
  28. ?>
  29. <form action="<?php print $usearch_action ?>" method="post">
  30. <div align="center">
  31.     Nick név: <input type="text" name="usearch[username]" />
  32.     <input type="submit" value="keresés" />
  33. </div>
  34. </form>
  35.  
  36. <?php if (count($users)) {  ?>
  37. <div align="center">
  38.     Találatok
  39. </div>
  40.  
  41. <div align="center">
  42.     <?php print $pageLinks?>
  43. </div>
  44. <table align="center" class="relogin-users">
  45.     <tr>
  46.         <th class="users-nick">Nick</th>
  47.         <th class="users-rank">Rang</th>
  48.         <th class="users-mail">E-mail</th>
  49.         <th class="users-profile">Adatlap</th>
  50.     </tr>
  51. <?php foreach ($users as $user?>
  52.     <tr>
  53.         <td class="users-nick"><?php print $user->username ?></td>
  54.         <td class="users-rank"><?php print $user->rankName(?></td>
  55.         <td class="users-mail"><?php print ($user->public_mail and !empty($user->T_users_useremail) )
  56.                 ? $user->T_users_useremail  "Rejtett"?></td>
  57.         <td class="users-profile"><a href="<?php print str_replace('%7Bid%7D',$user->T_users_userid,$profile_tpl_url?>">Adatlap</a></td>
  58.     </tr>
  59. <?php ?>
  60. </table>
  61. <div align="center">
  62.     <?php print $pageLinks?>
  63. </div>
  64. <?php else if (isset($_GET['searchid'])) ?>
  65. <div align="center">
  66.     Nincs találat!
  67. </div>
  68. <?php ?>

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