steffen: server/kolab-horde-fbview/kolab-horde-fbview/fbview/templates/admin/user add.inc, NONE, 1.1 approve.inc, NONE, 1.1 list.inc, NONE, 1.1 noadd.inc, NONE, 1.1 nolist.inc, NONE, 1.1 remove.inc, NONE, 1.1 removequeued.inc, NONE, 1.1 update.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/user
In directory doto:/tmp/cvs-serv18388/kolab-horde-fbview/kolab-horde-fbview/fbview/templates/admin/user

Added Files:
	add.inc approve.inc list.inc noadd.inc nolist.inc remove.inc 
	removequeued.inc update.inc 
Log Message:
Fbview in separate package

--- NEW FILE: add.inc ---
<?php
$renderer = &new Horde_Form_Renderer();
$addForm->renderActive($renderer, $vars, Horde::selfURL(), 'post');
?>
<br />

--- NEW FILE: approve.inc ---
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tr>
  <td align="left" class="header">
    <b><?php echo _("Pending Signups:") ?></b>
  </td>
</tr>
<tr><td class="control"><table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr class="item0">
  <td></td>
  <td></td>
  <td><?php echo _("Username") ?></td>
  <td><?php echo _("Date Received") ?></td>
</tr>
<?php
    $allQueued = $signup->getQueuedSignups();
    if (count($allQueued) == 0) {
?>
<tr>
  <td colspan="4" align="left"><?php echo _("No pending signups.") ?></td>
</tr>
<?php
    } else {
        $i = 1;
        foreach ($allQueued as $signup) {
            if ($signup->getName() != -1) {
                $data = $signup->getData()
?>
<tr class="item<?php echo ($i++ % 2) ?>">
  <td>
     <form method="post" action="<?php echo Horde::selfURL() ?>">
       <input type="hidden" name="user_name" value="<?php echo $signup->getName() ?>" />
       <input type="hidden" name="form" value="approve_f" />
       <input type="submit" class="button" value="<?php echo _("Approve") ?>" />
     </form>
  </td>
  <td>
     <form method="post" action="<?php echo Horde::selfURL() ?>">
       <input type="hidden" name="user_name" value="<?php echo $signup->getName() ?>" />
       <input type="hidden" name="form" value="removequeued_f" />
       <input type="submit" class="button" value="<?php echo _("Remove") ?>" />
     </form>
  </td>
  <td><?php echo $signup->getName() ?></a> </td>
  <td width="100%"><?php echo date('Y-M-d H:i:s', $data['dateReceived']) ?></td>
</tr>
<?php
            }
        }
    }
?>
</table></td></tr>
</table>
<br />

--- NEW FILE: list.inc ---
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tr>
  <td align="left" class="header">
    <b><?php echo _("Users in the system:") ?></b>
<?php if ($numitem): ?>
    <span class="smallheader">[<?php echo sprintf(_("%s to %s of %s"), $start, $end, $numitem) ?>]</span>
<?php endif; ?>
  </td>
</tr>
<tr>
  <td class="item">
    <form method="post" name="search" action="<?php echo Horde::selfURL() ?>">
    <?php Util::pformInput() ?>
    <input type="hidden" name="page" value="0">
    <b><?php echo _("Search") ?>:</b> 
    <input name="search_pattern" type="text" value="" size="50" maxlength="100" /> 
    <input type="submit" class="button" value="<?php echo _("Search") ?>" />
    </form>
  </td>
</tr>
<tr><td> </td></tr>
<tr><td class="control"><table border="0" width="100%" cellpadding="1" cellspacing="0">
<?php
$_i = 0;
$remove = $auth->hasCapability('remove');
$total = 0;
foreach ($users as $user):
    if ($total++ < $min || $total > $max) {
        continue;
    }
?>
<tr class="item<?php echo $_i++%2 ?>">
<?php if ($remove): ?>
  <td width="1%"><?php echo Horde::link(Horde::applicationUrl('admin/user.php?form=remove_f&user_name=' . $user), _("Delete")) . Horde::img('delete.gif', _("Delete")) ?></a></td>
<?php endif; ?>
  <td width="1%"><?php echo Horde::link(Horde::applicationUrl('admin/user.php?form=update_f&user_name=' . $user . '&do_update=1'), _("Update")) .  Horde::img('edit.gif', _("Update")) ?></a></td>
  <td align="left"><?php echo $user ?></td>
</tr>
<?php
endforeach;
if ($numitem) {
    $pager = &new Horde_UI_Pager('page', $vars, array('num' => $total, 'url' => $viewurl, 'page_count' => 10, 'perpage' => $perpage));        
    echo $pager->render($page, $total, $viewurl);
}
?>
</table></td></tr>
</table>

--- NEW FILE: noadd.inc ---
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
  <td align="left" class="header">
    <b><?php echo _("Adding users is disabled.") ?></b>
  </td>
</tr>
<tr>
  <td align="left" class="control">
    <?php echo _("Your authentication backend does not support adding users, or the feature has been disabled for some other reason.") ?>
  </td>
</tr>
</table>
<br />

--- NEW FILE: nolist.inc ---
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
  <td align="left" class="header">
    <b><?php echo _("Listing users is disabled.") ?></b>
  </td>
</tr>
<tr>
  <td align="left" class="control">
    <?php echo _("Your authentication backend does not support listing users, or the feature has been disabled for some other reason.") ?>
  </td>
</tr>
</table>

--- NEW FILE: remove.inc ---
<form name="removeuser" method="post">
<input type="hidden" name="form" value="remove">

<table border="0" cellspacing="0" cellpadding="2">
<tr>
    <td align="left" class="header">
        <b><?php printf(_("Remove user: %s"), $f_user_name) ?></b>
    </td>
</tr>
<tr>
<td class="item">
<b><?php printf(_("Really delete %s? This operation cannot be undone."), $f_user_name) ?></b>
</td>
<tr>
  <td class="smallheader" align="right">
    <input type="submit" class="button" name="submit" value="<?php echo _("Remove user") ?>" />
    <input type="submit" class="button" name="submit" value="<?php echo _("Cancel") ?>" />
  </td>
</table>
</form>

<br />

--- NEW FILE: removequeued.inc ---
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tr>
  <td align="left" class="header">
    <b><?php echo _("Pending Signups:") ?></b>
  </td>
</tr>
<tr>
  <td align="left" class="control">
    <?php printf(_("Are you sure you want to remove the signup request for %s ?"), $f_user_name) ?>

    <form method="post" action="<?php echo Horde::selfURL() ?>">
      <input type="hidden" name="form" value="removequeued" />
      <input type="hidden" name="user_name" value="<?php echo $f_user_name ?>" />

      <input class="button" type="submit" value="<?php echo _("Remove") ?>" />
    </form>
  </td>
</tr>
</table>
<br />

--- NEW FILE: update.inc ---
<script language="JavaScript" type="text/javascript">
<!--

function validate_update()
{
    if (document.updateuser.user_name.value == "") {
        document.updateuser.user_name.focus();
        alert('<?php echo _("You must specify the username to add.") ?>');
        return false;
    } else if (document.updateuser.user_pass_1.value != document.updateuser.user_pass_2.value) {
        document.updateuser.user_pass_1.value = "";
        document.updateuser.user_pass_2.value = "";
        document.updateuser.user_pass_1.focus();
        alert('<?php echo _("Passwords must match.") ?>');
        return false;
    }

    return true;
}

//-->
</script>

<form name="updateuser" method="post">
<input type="hidden" name="form" value="update">
<input type="hidden" name="user_name" value="<?php echo htmlspecialchars($f_user_name) ?>" />
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
  <td align="left" class="header" colspan="2">
    <b><?php printf(_("Update %s"), $f_user_name) ?></b>
  </td>
</tr>
<?php if ($auth->hasCapability('update')): ?>
<tr><td width="1%" nowrap="nowrap" align="right" class="light"><?php echo _("New Username (optional)") ?></td><td class="item0"><input type="text" name="user_name2" value="<?php echo htmlspecialchars($f_user_name) ?>" /></td></tr>
<tr><td nowrap="nowrap" align="right" class="light"><?php echo _("Password") ?></td><td class="item1"><input type="password" name="user_pass_1" /></td></tr>
<tr><td nowrap="nowrap" align="right" class="light"><?php echo _("Confirm Password") ?></td><td class="item0"><input type="password" name="user_pass_2" /></td></tr>
<?php endif; ?>
<tr><td nowrap="nowrap" align="right" class="light"><?php echo _("Full Name") ?></td><td class="item1"><input type="text" name="user_fullname" value="<?php echo htmlspecialchars($identity->getValue('fullname')) ?>" /></td></tr>
<tr><td nowrap="nowrap" align="right" class="light"><?php echo _("Email Address") ?></td><td class="item0"><input type="text" name="user_email"  value="<?php echo htmlspecialchars($identity->getValue('from_addr')) ?>" /></td></tr>
<tr>
  <td class="smallheader" align="left" colspan="2">
    <input type="submit" class="button" name="submit" onclick="return validate_update();" value="<?php echo _("Update user") ?>" />
    <input type="reset" class="button" name="reset" value="<?php echo _("Reset") ?>" />
  </td>
</table>
</form>
<br />





More information about the commits mailing list