예제 #1
0
 $address = '';
 if (($user_data['street'] != '' or $user_data['hnr']) and ($auth['type'] >= 2 or $auth['userid'] == $_GET['userid'] and $cfg['user_showownstreet'] == '1')) {
     $address .= $user_data['street'] . ' ' . $user_data['hnr'] . ', ';
 }
 if (($user_data['plz'] != '' or $user_data['city']) and ($cfg['user_showcity4all'] == '1' or $auth['type'] >= 2 or $auth['userid'] == $_GET['userid'])) {
     $address .= $user_data['plz'] . ' ' . $user_data['city'];
 }
 if ($address) {
     $dsp->AddDoubleRow(t('Adresse'), $address);
 }
 // Phone
 $phone = '';
 if ($user_data['telefon'] and (IsAuthorizedAdmin() or $auth['userid'] == $_GET['userid'])) {
     $phone .= $dsp->AddIcon('phone', '', 'Phone') . ' ' . $user_data['telefon'] . ' ';
 }
 if ($user_data['handy'] and (IsAuthorizedAdmin() or $auth['userid'] == $_GET['userid'])) {
     $phone .= $dsp->AddIcon('cellphone', '', 'Handy') . ' ' . $user_data['handy'] . ' ';
 }
 $dsp->AddDoubleRow(t('Telefon'), $phone);
 // Mail
 $mail = '<table width="100%" cellspacing="0" cellpadding="0"><tr><td>';
 if (!$cfg['sys_internet'] and $cfg['user_showmail4all'] or $auth['type'] >= 2 or $auth['userid'] == $_GET['userid']) {
     $mail .= '<a href="mailto:' . $user_data['email'] . '">' . $user_data['email'] . '</a> ';
 }
 $mail .= '[Newsletter-Abo:';
 $user_data['newsletter'] ? $mail .= $dsp->AddIcon('yes') : ($mail .= $dsp->AddIcon('no'));
 $mail .= ']';
 $mail .= '</td><td align="right">&nbsp;';
 if ($auth['login'] and $func->isModActive('mail')) {
     $mail .= $dsp->AddIcon('send_mail', 'index.php?mod=mail&action=newmail&step=2&userID=' . $_GET['userid'], t('LANSuite-Mail an den User senden')) . ' ';
 }
예제 #2
0
        $party_row .= ' [' . $user_party['price_text'] . ']';
    }
    // Platzpfand
    if ($party_seatcontrol['depot_price'] > 0) {
        $party_row .= ', ' . $party_seatcontrol['depot_desc'];
        $party_row .= $user_party['seatcontrol'] ? t(' gezahlt') : t(' NICHT gezahlt');
    }
    // CheckIn CheckOut
    $link = '';
    if (IsAuthorizedAdmin() and !$user_party['checkin']) {
        $link = 'index.php?mod=guestlist&step=20&userid=' . $_GET['userid'];
    }
    if ($user_party['checkin']) {
        $party_row .= ' ' . $dsp->AddIcon('in', $link, t('Eingecheckt')) . '[' . $func->unixstamp2date($user_party['checkin'], 'datetime') . ']';
    } else {
        $party_row .= ' ' . $dsp->AddIcon('not_in', $link, t('Nicht eingecheckt'));
    }
    $link = '';
    if (IsAuthorizedAdmin() and !$user_party['checkout'] and $user_party['checkin']) {
        $link = 'index.php?mod=guestlist&step=21&userid=' . $_GET['userid'];
    }
    if ($user_party['checkout']) {
        $party_row .= ' ' . $dsp->AddIcon('out', $link, t('Ausgecheckt')) . '[' . $func->unixstamp2date($user_party['checkout'], 'datetime') . ']';
    } else {
        $party_row .= ' ' . $dsp->AddIcon('not_out', $link, t('Nicht ausgecheckt'));
    }
    if (IsAuthorizedAdmin() and $user_party['checkin'] > 0 and $user_party['checkout'] > 0) {
        $party_row .= $dsp->AddIcon('delete', 'index.php?mod=guestlist&step=22&userid=' . $_GET['userid'], 'Reset Checkin');
    }
    $dsp->AddDoubleRow("Party '<i>" . $_SESSION['party_info']['name'] . "</i>'", $party_row);
}