Ignore:
Timestamp:
01/28/09 21:02:01 (4 years ago)
Author:
mlutfy
Message:

limit account/member listing to those created by a specific reseller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/bureau/admin/adm_list.php

    r2446 r2447  
    3838} 
    3939 
    40 $r=$admin->get_list($_REQUEST['show'] == 'all' ? 1 : 0); 
     40$creator_id = intval($_REQUEST['creator']); 
     41 
     42$r=$admin->get_list($_REQUEST['show'] == 'all' ? 1 : 0, $creator_id); 
    4143 
    4244include("head.php"); 
     
    5456<?php if($_REQUEST['show'] != 'all') { 
    5557  echo '<br /><a href="adm_list.php?show=all">' . _('List all the accounts') . '</a>'; 
     58 
     59  if ($cuid == 2000) { 
     60    $list_creators = $admin->get_creator_list(); 
     61    $infos_creators = array(); 
     62 
     63    foreach ($list_creators as $key => $val) { 
     64      $infos_creators[] = '<a href="adm_list.php?show_all&creator=' . $val['uid'] . '">' . $val['login'] . '</a>'; 
     65    } 
     66 
     67    if (count($infos_creators)) { 
     68      echo ' (' . implode(', ', $infos_creators) . ')'; 
     69    } 
     70  } 
    5671} else { 
    5772  echo '<br /><a href="adm_list.php">' . _('List only my accounts') . '</a>'; 
Note: See TracChangeset for help on using the changeset viewer.