tiki-userfiles.tpl 2.94 KB
Newer Older
1
{*Smarty template*}
2

3
{title help="User+Files"}{tr}User Files{/tr}{/title}
4

5
{include file='tiki-mytiki_bar.tpl'}
6 7

<div style="text-align:center;">
changi67's avatar
changi67 committed
8 9 10 11 12 13 14 15
	<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}
16 17
</div>
<form action="tiki-userfiles.php" method="post">
changi67's avatar
changi67 committed
18 19 20 21 22 23 24 25 26 27 28 29 30
	<table class="normal">
		<tr>
			<th style="text-align: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 style="text-align:right;">
				<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>
		{cycle values="odd,even" print=false}
		{section name=user loop=$channels}
31
			<tr class="{cycle}">
32
				<td class="checkbox">
changi67's avatar
changi67 committed
33 34
					<input type="checkbox" name="userfile[{$channels[user].fileId}]" />
				</td>
35
				<td class="text">{$channels[user].filename|iconify}
changi67's avatar
changi67 committed
36 37 38 39
					<a class="link" href="tiki-download_userfile.php?fileId={$channels[user].fileId}">
						{$channels[user].filename}
					</a>
				</td>
40 41
				<td class="text">{$channels[user].created|tiki_short_datetime}</td>
				<td class="integer">{$channels[user].filesize|kbsize}</td>
changi67's avatar
changi67 committed
42 43
			</tr>
		{sectionelse}
44
			{norecords _colspan=4}
changi67's avatar
changi67 committed
45 46 47 48 49
		{/section}
	</table>
	{if $channels|@count ge '1'}
		{tr}Perform action with checked:{/tr} <input type="submit" name="delete" value="{tr}Delete{/tr}" />
	{/if}
50
</form>
51 52 53

{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}

54 55
<h2>{tr}Upload file{/tr}</h2>
<form enctype="multipart/form-data" action="tiki-userfiles.php" method="post">
56
	<table class="formcolor">
changi67's avatar
changi67 committed
57
		<tr>
changi67's avatar
changi67 committed
58
			<td>{tr}Upload file:{/tr}</td>
59
			<td>
changi67's avatar
changi67 committed
60 61 62 63 64 65 66 67 68
				<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile1" type="file" /><br />
				<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile2" type="file" /><br />
				<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile3" type="file" /><br />
				<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile4" type="file" /><br />
				<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000" /><input size="60" name="userfile5" type="file" /><br />
				<input style="font-size:9px;" type="submit" name="upload" value="{tr}Upload{/tr}" />
			</td>
		</tr>
	</table>
69
</form>