user['uid'] == "2000") $user_list = $admin->get_list(1); else{ $user_list = $admin->get_list(0); $user_list[] = $mem->user; } $class = ($class== 'lst1' ? 'lst2' : 'lst1'); print ""; $ql = $quota->qlist(); reset($ql); print ""; $sequence = array(); foreach ($ql as $key => $name) { print ""; $sequence[] = $key; } print ""; $u = array(); foreach ($user_list as $user) { $u[$user['uid']] = $user['login']; } asort($u); foreach ($u as $uid => $login) { $class = ($class== 'lst1' ? 'lst2' : 'lst1'); print ""; $mem->su($uid); if (!($quots = $quota->getquota())) { $error = $err->errstr(); } foreach($sequence as $key) { $q = $quots[$key]; if ($q['u'] > $q['t']) { $style = ' style="color: red"'; } else { $style = ''; } $quota_utilise[$key] += $q['u']; $tot[$key]+= $q['t']; print "'; } print ""; $mem->unsu(); } echo ""; echo ""; foreach($sequence as $key) { echo ""; } echo ""; print "
"._("User")."$name
"; print $login.'('.$uid.")".str_replace(" ", " ", m_quota::display_val($key, $q['u']).'/'.m_quota::display_val($key, $q['t'])).'
"._("Total").""; echo $quota_utilise[$key]."/".$tot[$key]; echo "
"; ?>