Exemplo n.º 1
0
$ms2->AddIconField('details', 'index.php?mod=usrmgr&action=details&userid=', t('Details'));
$ms2->AddIconField('send_mail', 'index.php?mod=mail&action=newmail&step=2&userID=', t('Mail senden'));
$ms2->AddIconField('change_pw', 'index.php?mod=usrmgr&action=newpwd&step=2&userid=', t('Passwort ändern'), 'IfLowerOrEqualUserlevel');
if ($auth['type'] >= 2) {
    $ms2->AddIconField('assign', 'index.php?mod=auth&action=switch_to&userid=', t('Benutzer wechseln'), 'IfLowerUserlevel');
}
if ($auth['type'] >= 3 and $func->isModActive('foodcenter')) {
    $ms2->AddIconField('paid', 'index.php?mod=foodcenter&action=account&act=payment&step=2&userid=', t('Geld auf Konto buchen'));
    #  $ms2->AddIconField('paid', 'index.php?mod=foodcenter&action=account&act=himbalance&step=2&userid=', t('Kontostand zeigen'));
}
$ms2->AddIconField('locked', 'index.php?mod=usrmgr&step=11&userid=', t('Account freigeben'), 'IfLocked');
$ms2->AddIconField('unlocked', 'index.php?mod=usrmgr&step=10&userid=', t('Account sperren'), 'IfUnlocked');
// Add icons depending on other modules
include_once "inc/classes/class_plugin.php";
$plugin = new plugin('usrmgr_search');
while (list($caption, $inc) = $plugin->fetch()) {
    include_once $inc;
}
if ($auth['type'] >= 2) {
    $ms2->AddIconField('edit', 'index.php?mod=usrmgr&action=change&step=1&userid=', t('Editieren'));
}
if ($auth['type'] >= 3) {
    $ms2->AddIconField('delete', 'index.php?mod=usrmgr&action=delete&step=2&userid=', t('Löschen'));
}
if ($auth['type'] >= 2) {
    $res = $db->qry("SELECT * FROM %prefix%party_usergroups");
    $ms2->AddMultiSelectAction("Gruppenzuordung aufheben", "index.php?mod=usrmgr&action=group&step=30&group_id=0", 0, 'delete_group');
    while ($row = $db->fetch_array($res)) {
        $ms2->AddMultiSelectAction("Der Gruppe '{$row['group_name']}' zuordnen", "index.php?mod=usrmgr&action=group&step=30&group_id={$row['group_id']}", 0, 'assign_group');
    }
    $db->free_result($res);