bernd commited on 2010-04-13 20:46:42
Zeige 2 geänderte Dateien mit 6 Einfügungen und 2 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1725 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -35,12 +35,15 @@ $customerquota = get_customer_quota(); |
35 | 35 |
|
36 | 36 |
$maxquota = $customerquota['max'] - $customerquota['assigned'] + $account['quota']; |
37 | 37 |
|
38 |
+$customer = get_customer_info($_SESSION['userinfo']['customerno']); |
|
39 |
+if ($role & ROLE_CUSTOMER) |
|
40 |
+ $customer = $_SESSION['customerinfo']; |
|
38 | 41 |
|
39 | 42 |
$form = ' |
40 | 43 |
|
41 | 44 |
<h5>Name (E-Mail-Absender, ...)</h5> |
42 | 45 |
<div style="margin-left: 2em;"> |
43 |
- <p><input type="radio" name="defaultname" id="defaultname" value="1" '.$defaultname.'/> <label for="defaultname">Kundenname: <strong>'.$_SESSION['customerinfo']['name'].'</strong></label></p> |
|
46 |
+ <p><input type="radio" name="defaultname" id="defaultname" value="1" '.$defaultname.'/> <label for="defaultname">Kundenname: <strong>'.$customer['name'].'</strong></label></p> |
|
44 | 47 |
<p><input type="radio" name="defaultname" id="nondefaultname" value="0" '.$nondefaultname.'/> <label for="nondefaultname">Abweichend:</label> <input type="text" name="fullname" id="fullname" value="'.$account['name'].'" /></p> |
45 | 48 |
</div> |
46 | 49 |
'; |
... | ... |
@@ -25,7 +25,8 @@ foreach ($usedquota as $q) |
25 | 25 |
$quota[] = "<p>Server <strong>{$q['server']}</strong><br />{$percent}%: {$q['used']} MB von {$q['quota']} MB belegt.</p> |
26 | 26 |
<div style=\"margin: 0; padding: 0; width: 200px; border: 1px solid black;\"><div style=\"font-size: 1px; background-color: {$color}; height: 10px; width: {$width}px; margin: 0; padding: 0;\"> </div></div>"; |
27 | 27 |
} |
28 |
-$realname = $acc['name'] ? $acc['name'] : $_SESSION['customerinfo']['name']; |
|
28 |
+$customer = get_customer_info($_SESSION['userinfo']['customerno']); |
|
29 |
+$realname = $acc['name'] ? $acc['name'] : $customer['name']; |
|
29 | 30 |
$quotastring = implode('', $quota); |
30 | 31 |
output("<h5>Stammdaten</h5><div style=\"margin-left: 2em;\"><p>Benutzername: <strong>{$acc['username']}</strong></p><p>Name: {$realname}</p><p>Existiert seit {$acc['erstellungsdatum']}</p><p>Verwendete Shell: {$shell}</p>"); |
31 | 32 |
output("<p>".internal_link('edit', other_icon('user_edit.png', 'Bearbeiten').' Daten bearbeiten').'</p>'); |
32 | 33 |