File: edit.inc

package info (click to toggle)
horde3 3.1.3-4etch7
  • links: PTS
  • area: main
  • in suites: etch
  • size: 22,876 kB
  • ctags: 18,071
  • sloc: php: 75,151; xml: 2,979; sql: 1,069; makefile: 79; sh: 64
file content (59 lines) | stat: -rw-r--r-- 1,927 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<form name="edit_group" method="post" action="groups.php">
<input type="hidden" name="actionID" value="editform" />
<input type="hidden" name="cid" value="<?php echo $group->getId() ?>" />
<?php Util::pformInput() ?>

<h1 class="header">
 <?php echo Horde::img('user.png') . ' ' . htmlspecialchars($group->getShortName()) ?>
</h1>

<label for="email"><?php echo _("Email Address") ?></label>
<input type="text" name="email" id="email" size="50" value="<?php echo htmlspecialchars($group->get('email')) ?>" />
<br />
<br />

<h1 class="header">
 <?php echo Horde::img('group.png') . ' ' . _("Members") ?>
</h1>

<table class="linedRow nowrap" cellspacing="0" width="100%">
 <tr class="control">
  <th width="10%" class="leftAlign"><?php echo _("User") ?></th>
  <th width="90%" class="leftAlign"><?php echo _("Remove") ?></th>
 </tr>
<?php foreach ($users as $user): ?>
 <tr>
  <td><?php echo htmlspecialchars($user) ?></td>
  <td><input type="checkbox" name="remove[<?php echo htmlspecialchars($user) ?>]" /></td>
 </tr>
<?php endforeach; ?>
</table>
<br />

<?php if (count($inherited_users)): ?>
<h1 class="header">
 <?php echo Horde::img('group.png') . ' ' . _("Inherited Members") ?>
</h1>
<ul>
<?php foreach ($inherited_users as $user): ?>
 <li><?php echo htmlspecialchars($user) ?></li>
<?php endforeach; ?>
</ul>
<br />
<?php endif; ?>

<h1 class="header">
 <?php echo Horde::img('user.png') . ' ' . _("Add Members") ?>
</h1>
<?php if ($auth->hasCapability('list')): ?>
<select name="new_user[]" multiple="multiple">
<?php foreach ($user_list as $user) { if (!in_array($user, $all_users)) { ?>
 <option value="<?php echo $user ?>"><?php echo $user ?></option>
<?php } } ?>
</select>
<?php else: ?>
<input type="text" name="new_user" />
<?php endif; ?>
<input type="submit" class="button" value="<?php printf(htmlspecialchars(_("Save \"%s\""), ENT_COMPAT, NLS::getCharset()), $group->getShortName()) ?>" />
<br />
<br />