{*
 * User page template.
 *
 * @author Jan Dittberner <jan@dittberner.info>
 * @version $Id$
 * @license GPL
 * @package DAVAdmin
 *
 * Copyright (c) 2007 Jan Dittberner
 *
 * This file is part of DAVAdmin.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 *}
{include file="header.html" title="Nutzerverwaltung"}
<script type="text/javascript" src="scripts/helper.js"></script>
<script type="text/javascript" src="scripts/autocomplete.js"></script>
<script type="text/javascript" src="scripts/users.js"></script>
<div id="content">
<h1>WebDAV-Verwaltung</h1>
<h2>Nutzerverwaltung</h2>
<table id="usertable">
  <thead>
    <tr><th id="hcol-username">Nutzername</th><th id="hcol-name">Name, Vorname</th><th /></tr>
  </thead>
  <tbody>
{foreach item=user from=$users}
    <tr id="uid{$user.uid}">
      <td>{$user.username}</td>
      <td>{$user.lastname}, {$user.firstname}</td>
      <td><a id="edit{$user.uid}" class="editlink" href="#" title="Die Daten dieses Nutzers bearbeiten"><img class="actionicon" src="images/edit.png" width="16" height="16" alt="bearbeiten"/></a>{if !$user.loggedin}<a id="delete{$user.uid}" class="deletelink" href="#" title="Die Daten dieses Nutzers löschen"><img class="actionicon" src="images/delete.png" width="16" height="16" alt="löschen" /></a>{/if}</td>
    </tr>
{/foreach}
  </tbody>
  <tfoot>
    <tr><td colspan="3"><a id="newuser" class="newlink" href="#" title="Neuen Nutzer anlegen"><img class="actionicon" src="images/newuser.png" width="16" height="16" alt="neu" /></a></td></tr>
  </tfoot>
</table>
<h3>Symbolerklärung</h3>
<dl>
  <dt><img src="images/edit.png" width="16" height="16" alt="bearbeiten" /></dt>
  <dd>Die Daten dieses Nutzers bearbeiten</dd>
  <dt><img src="images/delete.png" width="16" height="16" alt="löschen" /></dt>
  <dd>Die Daten dieses Nutzers löschen</dd>
  <dt><img src="images/newuser.png" width="16" height="16" alt="neu" /></dt>
  <dd>Neuen Nutzer anlegen</dd>
</dl>
<div id="footer"><a href="index.php">Zurück</a></div>
</div>
<div id="usereditor"></div>
{include file="footer.html"}