bernd commited on 2008-12-03 07:28:32
Zeige 1 geänderte Dateien mit 28 Einfügungen und 0 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1183 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -0,0 +1,28 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+require_once('inc/base.php'); |
|
4 |
+require_once('inc/debug.php'); |
|
5 |
+ |
|
6 |
+require_once('session/start.php'); |
|
7 |
+require_once('su.php'); |
|
8 |
+ |
|
9 |
+require_once('class/customer.php'); |
|
10 |
+ |
|
11 |
+require_role(ROLE_SYSADMIN); |
|
12 |
+ |
|
13 |
+$ajax_formtoken = generate_form_token('su_su_ajax'); |
|
14 |
+ |
|
15 |
+$result = array_unique(find_customers($_GET['q'])); |
|
16 |
+sort($result); |
|
17 |
+foreach ($result as $val) { |
|
18 |
+ $c = new Customer((int) $val); |
|
19 |
+ echo '<div style="margin-bottom: 0.5em;">'.internal_link('su.php', 'Kunde '.$c->id.': <strong>'.$c->fullname.'</strong>', 'type=customer&id='.$c->id.'&formtoken='.$ajax_formtoken); |
|
20 |
+ $users = find_users_for_customer($c->id); |
|
21 |
+ foreach ($users as $uid => $username) { |
|
22 |
+ echo '<p style="padding:0; margin:0;margin-left: 2em;">'.internal_link('', 'User »'.$username.'« (UID '.$uid.')', 'type=systemuser&uid='.$uid.'&formtoken='.$ajax_formtoken).'</p>'; |
|
23 |
+ } |
|
24 |
+ echo '</div>'; |
|
25 |
+} |
|
26 |
+die(); |
|
27 |
+ |
|
28 |
+ |
|
0 | 29 |