diff --git a/bureau/admin/adm_list.php b/bureau/admin/adm_list.php index 7d7557b0..68b1442e 100644 --- a/bureau/admin/adm_list.php +++ b/bureau/admin/adm_list.php @@ -47,7 +47,7 @@ getFields($fields); if ($short!=-1) { $mem->adminpref($short); $mem->user["admlist"]=$short; - } +} $subadmin=variable_get("subadmin_restriction", 0); @@ -60,38 +60,34 @@ if ($show=="all" && !$subadmin==1 && $cuid != 2000) { } if ($pattern && $pattern_type) { - $r=$admin->get_list($show == 'all' ? 1 : 0, $creator, $pattern, $pattern_type); + $r=$admin->get_list($show == 'all' ? 1 : 0, $creator, $pattern, $pattern_type); +} else { + $r = FALSE; } -else - $r = FALSE; ?> +



-

+

-

- - />  - /> - - " /> + + />  + /> + " />
-

' , $error, '

'; } -if (!$r) { - __("Enter a pattern for login list"); - exit (0); -} + ?> +

()

@@ -113,20 +109,19 @@ if($show != 'all') { } echo "

"; } -} else { +} else { // if show != all echo '

' . _('List only my accounts') . '

'; -} +} }// END ($subadmin==1 || $cuid==2000) -if (!is_array($r)) { - echo '

' , _("No account defined for now"), '

'; -} else { +if (!is_array($r) || empty($r) ) { + echo '

'._("No account defined for now").'

'; + include('foot'); +} ?> -
user["admlist"]==0) { // Normal (large) mode @@ -154,28 +149,27 @@ if ($mem->user["admlist"]==0) { // Normal (large) mode reset($r); $col=1; -while (list($key,$val)=each($r)) - { +while (list($key,$val)=each($r)) { $col=3-$col; ?> - ">  + ">  - " value="" /> - - > - ">  - - - - - - -
renew_get_expiry($val['uid']) ?>
- + " value="" /> + + > + ">  + + + + + + +
renew_get_expiry($val['uid']) ?>
+ @@ -200,7 +194,7 @@ while (list($key,$val)=each($r)) user["admlist"]==1) { // SHORT MODE @@ -213,9 +207,10 @@ if ($mem->user["admlist"]==1) { // SHORT MODE

  50) { ?> -" /> - + " /> + 50 ?>

+ @@ -225,81 +220,33 @@ if ($mem->user["admlist"]==1) { // SHORT MODE - - - - - - - - - - - - - - - - - -'; - -$val=null; -if (isset($r[$z+2*$rz])) { - $val=$r[$z+2*$rz]; -} - -if (is_array($val)) { -?> - - - - - - - - - -'; -} // for loop -} // Short Mode - +$count_r = 0; +foreach ($r as $val) { + if ( ($count_r % 3) == 0 ) { echo ''; } + if ($val["su"]) { + echo ''; + } else { + echo ''; + } // if $val["su"] ?> + + + '; } + ++$count_r; +} // foreach $r ?>
 " id="id_c_" /> - " title="">[  ] - " title="">[  ] -checkcreator($val['uid'])) { ?> - " title="">[  ] - - - "> " id="id_c_" /> - " title="">[  ] - " title="">[  ] -checkcreator($val['uid'])) { ?> - " title="">[  ] - - ">"> " id="id_c_" /> - " title="">[  ] - " title="">[  ] -checkcreator($val['uid'])) { ?> - " title="">[  ] - - ">
  + " title="">[  ] + " title="">[  ] + checkcreator($val['uid'])) { ?> + " title="">[  ]checkcreator + $creator_name = ( ($val['creator'] == '0')?_("himself"):$list_creators[$val['creator']]['login']) ?> + ">

" />

-