2007-11-26 09:49:33 +01:00
{*
* 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.
*}
2007-12-02 22:13:47 +01:00
{include file="header.html" title="User management"}
2007-11-22 00:00:58 +01:00
< 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 >
2007-08-28 10:18:04 +02:00
< div id = "content" >
2007-12-02 22:13:47 +01:00
< h1 > WebDAV administration< / h1 >
< h2 > User management< / h2 >
2007-08-28 10:18:04 +02:00
< table id = "usertable" >
< thead >
2007-12-02 22:13:47 +01:00
< tr > < th id = "hcol-username" > User name< / th > < th id = "hcol-name" > First name, last name< / th > < th / > < / tr >
2007-08-28 10:18:04 +02:00
< / thead >
< tbody >
{foreach item=user from=$users}
< tr id = "uid{$user.uid}" >
< td > {$user.username}< / td >
< td > {$user.lastname}, {$user.firstname}< / td >
2007-12-02 22:13:47 +01:00
< td > < a id = "edit{$user.uid}" class = "editlink" href = "#" title = "Edit this user's data." > < img class = "actionicon" src = "images/edit.png" width = "16" height = "16" alt = "edit" / > < / a > {if !$user.loggedin}< a id = "delete{$user.uid}" class = "deletelink" href = "#" title = "Delete this user's data." > < img class = "actionicon" src = "images/delete.png" width = "16" height = "16" alt = "delete" / > < / a > {/if}< / td >
2007-08-28 10:18:04 +02:00
< / tr >
{/foreach}
< / tbody >
< tfoot >
2007-12-02 22:13:47 +01:00
< tr > < td colspan = "3" > < a id = "newuser" class = "newlink" href = "#" title = "Create new user" > < img class = "actionicon" src = "images/newuser.png" width = "16" height = "16" alt = "new" / > < / a > < / td > < / tr >
2007-08-28 10:18:04 +02:00
< / tfoot >
< / table >
2007-12-02 22:13:47 +01:00
< h3 > Icon description< / h3 >
2007-08-28 10:18:04 +02:00
< dl >
2007-12-02 22:13:47 +01:00
< dt > < img src = "images/edit.png" width = "16" height = "16" alt = "edit" / > < / dt >
< dd > Edit this user's data.< / dd >
< dt > < img src = "images/delete.png" width = "16" height = "16" alt = "delete" / > < / dt >
< dd > Delete this user's data.< / dd >
< dt > < img src = "images/newuser.png" width = "16" height = "16" alt = "new" / > < / dt >
< dd > Create new user< / dd >
2007-08-28 10:18:04 +02:00
< / dl >
2007-12-02 22:13:47 +01:00
< div id = "footer" > < a href = "index.php" > Back< / a > < / div >
2007-08-28 10:18:04 +02:00
< / div >
< div id = "usereditor" > < / div >
{include file="footer.html"}