2007-11-26 09:49:33 +01:00
{*
* Directory page template.
*
* @author Jan Dittberner < jan @ dittberner . info >
* @version $Id$
* @license GPL
* @package DAVAdmin
*
2008-11-16 19:54:41 +01:00
* Copyright (c) 2007, 2008 Jan Dittberner
2007-11-26 09:49:33 +01:00
*
* This file is part of DAVAdmin.
*
2008-11-16 19:54:41 +01:00
* DAVAdmin 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 3 of the License, or
* (at your option) any later version.
2007-11-26 09:49:33 +01:00
*
2008-11-16 19:54:41 +01:00
* DAVAdmin is distributed in the hope that it will be useful, but
2007-11-26 09:49:33 +01:00
* 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
2008-11-16 19:54:41 +01:00
* along with DAVAdmin; if not, see < http: / / www . gnu . org / licenses / > .
2007-11-26 09:49:33 +01:00
*}
2007-12-02 22:13:47 +01:00
{include file="header.html" title="Directory 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/directories.js" > < / script > < div id = "content" >
2007-12-02 22:13:47 +01:00
< h1 > WebDAV administration< / h1 >
< h2 > Directory management< / h2 >
2007-08-28 10:18:04 +02:00
< table id = "dirtable" >
< thead >
2007-12-02 22:13:47 +01:00
< tr > < th id = "hcol-directory" > Directory< / th > < th id = "hcol-groups" > Groups< / th > < th id = "hcol-files" > included files (count and size)< / th > < th / > < / tr >
2007-08-28 10:18:04 +02:00
< / thead >
< tbody >
{foreach item=dir from=$directories}
< tr id = "dir{$dir.name}" >
< td > {$dir.name}< / td >
< td > {foreach item=group from=$dir.groups name=dirloop}{$group}{if !$smarty.foreach.dirloop.last}, {/if}{/foreach}< / td >
< td > {$dir.filecount}, {$dir.filesize}< / td >
2007-12-02 22:13:47 +01:00
< td > < a id = "edit{$dir.name}" class = "editlink" href = "#" title = "Edit this directory's group assignments." > < img class = "actionicon" src = "images/groups.png" width = "16" height = "16" alt = "Groups" / > < / a > {if $dir.maydelete}< a id = "delete{$dir.name}" class = "deletelink" href = "#" title = "Delete this directory" > < 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 >
{foreachelse}
2007-12-02 22:13:47 +01:00
< tr > < td colspan = "4" > there are no directories< / td > < / tr >
2007-08-28 10:18:04 +02:00
{/foreach}
< / tbody >
< tfoot >
2007-12-02 22:13:47 +01:00
< tr > < td colspan = "4" > < a id = "newdir" class = "newlink" href = "#" title = "Create new directory" > < img class = "actionicon" src = "images/newdirectory.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/groups.png" width = "16" height = "16" alt = "groups" / > < / dt >
< dd > Edit this directory's group assignments.< / dd >
< dt > < img src = "images/delete.png" width = "16" height = "16" alt = "delete" / > < / dt >
< dd > Delete this directory< / dd >
< dt > < img src = "images/newdirectory.png" width = "16" height = "16" alt = "new" / > < / dt >
< dd > Create new directory< / 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 = "direditor" > < / div >
{include file="footer.html"}