You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

73 lines
3.7 KiB

{*Smarty template*}
{title help="User Files"}{tr}User Files{/tr}{/title}
{include file='tiki-mytiki_bar.tpl'}
<div style="text-align:center;">
<div style="height:20px; width:200px; border:1px solid black; background-color:#666666; text-align:left; margin:0 auto;">
<div style="background-color:red; height:100%; width:{$cellsize}px;"></div>
</div>
{if $user neq 'admin'}
<small>{tr}Used space:{/tr} {$percentage}% {tr}up to{/tr} {$limitmb} Mb</small>
{else}
<small>{tr}Used space:{/tr} {tr}no limit for admin{/tr}</small>
{/if}
</div>
<form action="tiki-userfiles.php" method="post">
<div class="table-responsive">
<table class="table">
<tr>
<th class="text-center">&nbsp;</th>
<th><a href="tiki-userfiles.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'filename_desc'}filename_asc{else}filename_desc{/if}">{tr}Name{/tr}</a></th>
<th><a href="tiki-userfiles.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'created_desc'}created_asc{else}created_desc{/if}">{tr}Created{/tr}</a></th>
<th class="text-end">
<a href="tiki-userfiles.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'filesize_desc'}filesize_asc{else}filesize_desc{/if}">
{tr}Size{/tr}
</a>
</th>
</tr>
{section name=user loop=$channels}
<tr>
<td class="checkbox-cell">
<div class="form-check">
<input type="checkbox" name="userfile[{$channels[user].fileId}]">
</div>
</td>
<td class="text">{$channels[user].filename|iconify}
<a class="link" href="tiki-download_userfile.php?fileId={$channels[user].fileId}">
{$channels[user].filename|escape}
</a>
</td>
<td class="text">{$channels[user].created|tiki_short_datetime}</td>
<td class="integer">{$channels[user].filesize|kbsize}</td>
</tr>
{sectionelse}
{norecords _colspan=4}
{/section}
</table>
</div>
{if $channels|@count ge '1'}
{tr}Perform action with checked:{/tr} <input type="submit" class="btn btn-primary btn-sm" name="delete" value="{tr}Delete{/tr}">
{/if}
</form>
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}
<h2>{tr}Upload file{/tr}</h2>
<form enctype="multipart/form-data" action="tiki-userfiles.php" method="post">
<div class="mb-3 row">
<div class="col-sm-4">
{tr}Upload file:{/tr}
</div>
<div class="col-sm-8">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile1" type="file" class="form-control mb-2">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile2" type="file" class="form-control mb-2">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile3" type="file" class="form-control mb-2">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile4" type="file" class="form-control mb-2">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile5" type="file" class="form-control mb-2">
<input type="submit" class="btn btn-primary btn-sm" name="upload" value="{tr}Upload{/tr}">
</div>
</div>
</form>