steffen: server/kolab-horde-fbview/kolab-horde-fbview/fbview/templates/admin/groups addchild.inc, NONE, 1.1 delete.inc, NONE, 1.1 edit.inc, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Mon Oct 31 12:43:35 CET 2005


Author: steffen

Update of /kolabrepository/server/kolab-horde-fbview/kolab-horde-fbview/fbview/templates/admin/groups
In directory doto:/tmp/cvs-serv18388/kolab-horde-fbview/kolab-horde-fbview/fbview/templates/admin/groups

Added Files:
	addchild.inc delete.inc edit.inc 
Log Message:
Fbview in separate package

--- NEW FILE: addchild.inc ---
<form name="add_child" method="post" action="groups.php">
<input type="hidden" name="actionID" value="addchildform" />
<input type="hidden" name="cid" value="<?php echo (int)Util::getFormData('cid') ?>" />
<?php Util::pformInput() ?>

<table border="0" width="100%" cellpadding="1" cellspacing="1">
<tr>
  <td class="header" align="left" width="100%"><span class="smallheader">
    <?php echo Horde::img('group.gif') ?> <b><?php echo sprintf(_("Add a child group to '%s'"), $gname) ?></b>
  </span></td>
</tr>
<tr>
  <td><input type="text" name="child" /></td>
</tr>
<tr>
  <td><input type="submit" class="button" value="<?php echo _("Add") ?>" /></td>
</tr>

</table>
</form>
<br />

--- NEW FILE: delete.inc ---
<form name="delete" method="post" action="groups.php">
<input type="hidden" name="actionID" value="deleteform" />
<input type="hidden" name="cid" value="<?php echo $group->getId() ?>" />
<?php Util::pformInput() ?>

<table border="0" width="100%" cellpadding="1" cellspacing="1">
<tr>
  <td class="header" align="left" width="100%" colspan="7">
    <span class="smallheader"><?php echo Horde::img('group.gif') ?> <b><?php echo sprintf(_("Are you sure you wish to delete '%s' and any sub-groups?"), $group->getShortName()) ?></b></span>
  </td>
</tr>
<tr>
  <td><input type="submit" class="button" name="confirm" value="<?php echo _("Delete") ?>" />
      <input type="submit" class="button" name="confirm" value="<?php echo _("Cancel") ?>" /></td>
</tr>

</table>
</form>
<br />

--- NEW FILE: edit.inc ---
<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() ?>
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr valign="middle">
  <td class="header" width="100%" colspan="3">
    <b><?php echo $group->getShortName() ?></b>
  </td>
</tr>
<tr>
  <td class="light" nowrap="nowrap"><?php echo _("Email Address") ?></td>
  <td colspan="2"><input type="text" name="email" size="50" value="<?php echo htmlspecialchars($group->get('email')) ?>" /></td>
</tr>
<tr><td> </td></tr>

<tr valign="middle">
  <td class="header" width="1%">
    <?php echo Horde::img('group.gif') . ' ' . _("Members") ?>
  </td>
  <td class="header" align="center" nowrap="nowrap" width="1%"><?php echo _("Remove") ?></td>
  <td class="header" width="100%"></td>
</tr>
<?php
$users = $group->listUsers();
foreach ($users as $user):
?>
<tr>
  <td nowrap="nowrap" class="light"><?php echo htmlspecialchars($user) ?></td>
  <td class="light" align="center"><input type="checkbox" name="remove[<?php echo htmlspecialchars($user) ?>]" /></td>
</tr>
<?php endforeach; ?>

<tr><td> </td></tr>

<!-- New user form -->
<tr valign="middle">
  <td class="header" colspan="3">
    <?php echo Horde::img('user.gif') . ' ' . _("Add new members") ?>
  </td>
</tr>
<tr>
<?php if ($auth->hasCapability('list')): ?>
  <td class="light">
    <select name="new_user[]" multiple="multiple">
    <?php foreach ($auth->listUsers() as $user) { if (!in_array($user, $users)) { ?>
      <option value="<?php echo $user ?>"><?php echo $user ?></option>
    <?php } } ?>
    </select>
<?php else: ?>
  <td class="light"><input type="text" name="new_user" />
<?php endif; ?>
    <input type="submit" class="button" value="<?php printf(_("Save '%s'"), $group->getShortName()) ?>" />
  </td>
</tr>
<tr>
  <td>
</tr>
</table>
<br />





More information about the commits mailing list