{* $Id: tiki-map_upload.tpl 49297 2014-01-02 15:07:29Z chibaguy $ *}

<a class="pagetitle" href="tiki-map_upload.php">Layer Management</a><br><br>
<a class="link" href="tiki-map_upload.php?dir={$dir}">
<h3>{tr}{$dir}{/tr}</h3></a>
<div class="table-responsive">
<table class="table normal">
<tr>
<th colspan="2">{tr}Directories{/tr}</th>
</tr>
{if $dir ne '/data'}
<tr>
<td class="odd">
<a class="link" href="tiki-map_upload.php?dir={$basedir}">{tr}back to{/tr} {$basedir}</a>
</td><td class="odd">&nbsp;</td>
</tr>
{/if}
{section name=user loop=$dirs}
{if $smarty.section.user.index % 2}
<tr>
<td class="odd">
<a class="link" href="tiki-map_upload.php?dir={$dir}/{$dirs[user]}">{$dirs[user]}</a>
</td>
<td class="odd">
{if $tiki_p_map_delete eq 'y'}
<a class="link" href="tiki-map_upload.php?dir={$dir}&directory={$dirs[user]}&action=deldir">
<img src='img/icons/cross.png' alt="{tr}Delete{/tr}" title="{tr}Delete{/tr}" width='16' height='16'>
</a>
{/if}
</td>
</tr>
{else}
<tr>
<td class="even">
<a class="link" href="tiki-map_upload.php?dir={$dir}/{$dirs[user]}">
{$dirs[user]}
</a>
</td>
<td class="even">
{if $tiki_p_map_delete eq 'y'}
<a class="link" href="tiki-map_upload.php?dir={$dir}&directory={$dirs[user]}&action=deldir">
<img src='img/icons/cross.png' alt="{tr}Delete{/tr}" title="{tr}Delete{/tr}" width='16' height='16'>
</a>
{/if}
</td>
</tr>
{/if}
{/section}
<th colspan="2">{tr}Files{/tr}</th>

{section name=user loop=$files}
<tr>
<td class="{cycle advance=false}">
{$files[user]}
</td>
<td class="{cycle advance=true}">
{if $tiki_p_map_delete eq 'y'}
<a class="link" href="tiki-map_upload.php?dir={$dir}&file={$files[user]}&action=delete">
<img src='img/icons/cross.png' alt="{tr}Delete{/tr}" title="{tr}Delete{/tr}" width='16' height='16'>
</a>
{/if}
</td>
</tr>
{/section}
</table>
</div>
<br>
{if $tiki_p_map_create eq 'y'}
<form enctype="multipart/form-data" action="tiki-map_upload.php" method="post">
<input type="hidden" name="dir" value="{$dir}">
<input type="hidden" name="upload" value="true">
{tr}Upload From Disk:{/tr}<br>
<input name="userfile1" type="file">
<input name="userfile2" type="file">
<br>
<input name="userfile3" type="file">
<input name="userfile4" type="file">
<br>
<input name="userfile5" type="file">
<input name="userfile6" type="file">
<br>
<input type="submit" class="btn btn-default btn-sm" value="{tr}Upload Files{/tr}"> ({$max_file_size}{tr}Bytes maximum{/tr})
</form>
<br>
<form action="tiki-map_upload.php" method="get">
<input type="hidden" name="dir" value="{$dir}">
<input type="hidden" name="action" value="createdir">
{tr}Create Directory:{/tr} <input name="directory" type="text">
<input type="submit" class="btn btn-default btn-sm" value="{tr}Create{/tr}">
</form>
<br>
<form action="tiki-map_upload.php" method="get">
<input type="hidden" name="dir" value="{$dir}">
<input type="hidden" name="action" value="createindex">
{tr}index file (.shp):{/tr} <input name="indexfile" type="text">
{tr}files to index (regexp):{/tr} <input name="filestoindex" type="text">
<input type="submit" class="btn btn-default btn-sm" value="{tr}Create{/tr}">
</form>
{/if}