~ubuntu-branches/ubuntu/saucy/horde3/saucy

« back to all changes in this revision

Viewing changes to templates/admin/groups/edit.inc

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2005-05-04 23:08:08 UTC
  • Revision ID: james.westby@ubuntu.com-20050504230808-p4hf3hk28o3v7wir
Tags: upstream-3.0.4
ImportĀ upstreamĀ versionĀ 3.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<form name="edit_group" method="post" action="groups.php">
 
2
<input type="hidden" name="actionID" value="editform" />
 
3
<input type="hidden" name="cid" value="<?php echo $group->getId() ?>" />
 
4
<?php Util::pformInput() ?>
 
5
<table border="0" width="100%" cellpadding="1" cellspacing="0">
 
6
<tr valign="middle">
 
7
  <td class="header" width="100%" colspan="3">
 
8
    <b><?php echo $group->getShortName() ?></b>
 
9
  </td>
 
10
</tr>
 
11
<tr>
 
12
  <td class="light" nowrap="nowrap"><?php echo _("Email Address") ?></td>
 
13
  <td colspan="2"><input type="text" name="email" size="50" value="<?php echo htmlspecialchars($group->get('email')) ?>" /></td>
 
14
</tr>
 
15
<tr><td>&nbsp;</td></tr>
 
16
 
 
17
<tr valign="middle">
 
18
  <td class="header" width="1%">
 
19
    <?php echo Horde::img('group.png') . '&nbsp;' . _("Members") ?>
 
20
  </td>
 
21
  <td class="header" align="center" nowrap="nowrap" width="1%"><?php echo _("Remove") ?></td>
 
22
  <td class="header" width="100%"></td>
 
23
</tr>
 
24
<?php foreach ($users as $user): ?>
 
25
<tr>
 
26
  <td nowrap="nowrap" class="light"><?php echo htmlspecialchars($user) ?></td>
 
27
  <td class="light" align="center"><input type="checkbox" name="remove[<?php echo htmlspecialchars($user) ?>]" /></td>
 
28
</tr>
 
29
<?php endforeach; ?>
 
30
 
 
31
<tr><td>&nbsp;</td></tr>
 
32
 
 
33
<tr valign="middle">
 
34
  <td class="header" colspan="3">
 
35
    <?php echo Horde::img('user.png') . '&nbsp;' . _("Add new members") ?>
 
36
  </td>
 
37
</tr>
 
38
<tr>
 
39
<?php if ($auth->hasCapability('list')): ?>
 
40
  <td class="light">
 
41
    <select name="new_user[]" multiple="multiple">
 
42
    <?php foreach ($user_list as $user) { if (!in_array($user, $users)) { ?>
 
43
      <option value="<?php echo $user ?>"><?php echo $user ?></option>
 
44
    <?php } } ?>
 
45
    </select>
 
46
<?php else: ?>
 
47
  <td class="light"><input type="text" name="new_user" />
 
48
<?php endif; ?>
 
49
    <input type="submit" class="button" value="<?php printf(_("Save '%s'"), $group->getShortName()) ?>" />
 
50
  </td>
 
51
</tr>
 
52
<tr>
 
53
  <td>
 
54
</tr>
 
55
</table>
 
56
<br />