users.php
changeset 60 6ffacb626294
parent 47 ae140472d97c
child 66 9e9876afefcc
equal deleted inserted replaced
59:11804f18dfc7 60:6ffacb626294
    72 
    72 
    73       <table>
    73       <table>
    74        <tr>
    74        <tr>
    75         <th>&nbsp;</th>
    75         <th>&nbsp;</th>
    76         <th><? echo _('Name'); ?></th>
    76         <th><? echo _('Name'); ?></th>
    77         <th><? echo _('Zones'); ?></th>
    77         <th><? echo _('Zones'); ?> (<? echo _('access'); ?>)</th>
       
    78         <th><? echo _('Zones'); ?> (<? echo _('owner'); ?>)</th>
    78         <th><? echo _('Zone list'); ?></th>
    79         <th><? echo _('Zone list'); ?></th>
    79         <th><? echo _('Level'); ?></th>
    80         <th><? echo _('Level'); ?></th>
    80         <th><? echo _('Status'); ?></th>
    81         <th><? echo _('Status'); ?></th>
    81        </tr>
    82        </tr>
    82 <?
    83 <?
    83 $users = show_users('',ROWSTART,ROWAMOUNT);
    84 $users = show_users('',ROWSTART,ROWAMOUNT);
    84 foreach ($users as $c)
    85 foreach ($users as $c)
    85 {
    86 {
       
    87         $domains = get_domains_from_userid($c["id"]);
       
    88 	$num_zones_access = count($domains);
    86 ?>
    89 ?>
    87        <tr>
    90        <tr>
    88         <td class="n"><a href="delete_user.php?id=<? echo $c["id"] ?>"><img src="images/delete.gif" alt="[ <? echo _('Delete user'); ?> ]"></a></td>
    91         <td class="n"><a href="delete_user.php?id=<? echo $c["id"] ?>"><img src="images/delete.gif" alt="[ <? echo _('Delete user'); ?> ]"></a></td>
    89         <td class="n"><a href="edit_user.php?id=<? echo $c["id"] ?>"><? echo $c["fullname"] ?></A> (<? echo $c["username"] ?>)</td>
    92         <td class="n"><a href="edit_user.php?id=<? echo $c["id"] ?>"><? echo $c["fullname"] ?></A> (<? echo $c["username"] ?>)</td>
       
    93         <td class="n"><? echo $num_zones_access ?></td>
    90         <td class="n"><? echo $c["numdomains"] ?></td>
    94         <td class="n"><? echo $c["numdomains"] ?></td>
    91         <td class="n">
    95         <td class="n">
    92         <?
    96         <?
    93         $domains = get_domains_from_userid($c["id"]);
       
    94         foreach ($domains as $d)
    97         foreach ($domains as $d)
    95         {
    98         {
    96                 ?><a href="delete_domain.php?id=<? echo $d["id"] ?>"><img src="images/delete.gif" alt="[ <? echo _('Delete domain'); ?> ]"></a>&nbsp;<a href="edit.php?id=<? echo $d["id"] ?>"><? echo $d["name"] ?></a><br><?
    99                 ?><a href="delete_domain.php?id=<? echo $d["id"] ?>"><img src="images/delete.gif" alt="[ <? echo _('Delete domain'); ?> ]"></a>&nbsp;<a href="edit.php?id=<? echo $d["id"] ?>"><? echo $d["name"] ?><? if ($d["partial"] == "1") { echo " *"; } ; ?></a><br><?
    97         }
   100         }
    98         ?></td>
   101         ?></td>
    99 	<td class="n"><? echo $c["level"] ?></td>
   102 	<td class="n"><? echo $c["level"] ?></td>
   100 	<td class="n"><? echo get_status($c["active"]) ?></td>
   103 	<td class="n"><? echo get_status($c["active"]) ?></td>
   101        </tr><?
   104        </tr><?
   102         print "\n";
   105         print "\n";
   103 }
   106 }
   104 ?>
   107 ?>
       
   108        
   105       </table>
   109       </table>
       
   110       <p><? echo _('Users may only change some of the records of zones marked with an (*).'); ?></p>
   106       <p><? echo _('Number of users') ;?>: <? echo count($users); ?>.</p>
   111       <p><? echo _('Number of users') ;?>: <? echo count($users); ?>.</p>
   107       <div class="showmax">
   112       <div class="showmax">
   108 <?
   113 <?
   109 show_pages(count($users),ROWAMOUNT);
   114 show_pages(count($users),ROWAMOUNT);
   110 ?>
   115 ?>