Source for file invite_admin.php

Documentation is available at invite_admin.php

  1. <?php
  2. /**
  3.  * R.E. Login 2.0 - Admin - Meghívók - admin/invite_admin.php
  4.  *
  5.  * Meghívók kiosztásához űrlap generálása.<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/admin/invite_admin.php';
  28. ?>
  29. <div align="center"><?php print $msg?></div>
  30. <form action="" method="post">
  31.     <table align="center">
  32.         <tr>
  33.             <td><?php print $titles['allusers'?></td>
  34.             <td><input id="relogin_inv_all" type="checkbox" name="admin[allusers]" onclick="document.getElementById('relogin_inv_un').readOnly = this.checked;" <?php
  35.             if ($data['allusers']print ' checked="checked" ';
  36.             ?> />
  37.             </td>
  38.         </tr>
  39.         <tr>
  40.             <td><?php print $titles['username'?></td>
  41.             <td>
  42.                 <input id="relogin_inv_un" type="text" name="admin[username]" value="<?php print $data['username'?>" />
  43.                 <script type="text/javascript">
  44.                     document.getElementById('relogin_inv_un').readOnly = document.getElementById('relogin_inv_all').checked;
  45.                 </script>
  46.             </td>
  47.         </tr>
  48.         <tr>
  49.             <td><?php print $titles['invitations']?><sup>(1)</sup></td>
  50.             <td>
  51.                 <select name="admin[invitations]">
  52.                     <?php for ($i=0$i <= Admin::maxInvitation()$i++{
  53.                         $selected $data['invitations']==$i 'selected="selected"' '';
  54.                     ?>
  55.  
  56.                     <option value="<?php print $i ?><?php print $selected ?> ><?php print $i ?> db</option>
  57.                     <?php ?>
  58.                 </select>
  59.                 <select name="admin[mode]">
  60.                     <option value="<?php print Admin::INVITE_SET ?><?php
  61.                     if ($data['mode'== Admin::INVITE_SETprint ' selected="selected" ';
  62.                     ?> >Beállít</option>
  63.                     <option value="<?php print Admin::INVITE_ADD ?><?php
  64.                     if ($data['mode'== Admin::INVITE_ADDprint ' selected="selected" ';
  65.                     ?> >Hozzáad</option>
  66.                     <option value="<?php print Admin::INVITE_SUB ?><?php
  67.                     if ($data['mode'== Admin::INVITE_SUBprint ' selected="selected" ';
  68.                     ?> >Elvesz</option>
  69.                 </select>
  70.             </td>
  71.         </tr>
  72.     </table>
  73.     <div align="center"><input type="submit" value="Elküld" /></div>
  74. </form>
  75. <div align="center">
  76.     <sup>(1)</sup> Egy felhasználó maximum    <?php print Admin::maxInvitation(?> meghívóval rendelkezhet!
  77. </div>

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