Location: PHPKode > projects > @1 File Store > templates/folder.tpl
{include file=header.tpl}
<h1>{$folder.folder_name}</h1>
{if $err == '1'}
<p class="err">{$lang.there_is_an_error}: {$errmsg}</p>
{/if}
<p>{$folder.folder_desc}</p>
<p><b>{$lang.you_are_here}: {$breadcrumbs}</b></p>
{if $sub_folders && count($sub_folders)}

<table border="1" cellpadding="2" style="border-collapse: collapse" bordercolor="#E8E8E8">
{foreach item="sfolder" from=$sub_folders}
<tr>
<td>
{if $sfolder.grp_id > '0'}
<img src="css/folder.gif" width=16 height=16>
{/if}
{if $sfolder.grp_id == '0'}
<img src="css/folder_noaccess.gif" width=16 height=16>
{/if}

{if $sfolder.grp_id == '-1'}
<img src="css/folder_admin.gif" width=16 height=16>
{/if}

{if $sfolder.grp_id == '-2'}
<img src="css/folder_noaccess_admin.gif" width=16 height=16>
{/if}

<a href="folder.php?id={$sfolder.id}">{$sfolder.folder_name}</a></td>
<td>{$sfolder.folder_desc}</td>
<td>{$sfolder.fldc} <img src="css/c_folder.gif" alt="subfolders"> {$sfolder.flc} <img src="css/c_file.gif" alt="files"></td>
</tr>
{/foreach}
</table>
<br>
{/if}
{if $IsOnlyAdmin==1}

<table><tr><td>
<fieldset style="border: 1px solid #E6E6E6; padding-left: 10px; padding-right: 10px">
<legend>[ {$lang.bulk_delete_files} ]</legend>
<form name="frmBulkDelete" action="{$frmAction}" method="get" onsubmit="return confirm('{$lang.bulk_delete_in_this_folder}?');">
	<table border="0" cellpadding="0" cellspacing="2">
	<tr>
		<td align="top">
			<div align="center">
			<select name="bd_year">
				{foreach item="year" from=$years}
				<option value="{$year}" {if $sel_year==$year}selected="selected"{/if}>{$year}</option>
				{/foreach}
			</select>
			<select name="bd_month">
				{foreach item="month" from=$months}
				<option value="{$month}" {if $sel_month==$month}selected="selected"{/if}>{$month}</option>
				{/foreach}
			</select>
			<select name="bd_date">
				{foreach item="date" from=$dates}
				<option value="{$date}" {if $sel_date==$date}selected="selected"{/if}>{$date}</option>
				{/foreach}				
			</select>
			</div>
			<div>
				<label><input type="radio" name="bdel" value="1" {if $sel_bdel==1}checked="checked"{/if}/>{$lang.before_this_date}</label><br />
				<label><input type="radio" name="bdel" value="2" {if $sel_bdel==2}checked="checked"{/if}/>{$lang.after_this_date}</label><br />
				<label><input type="radio" name="bdel" value="3" {if $sel_bdel==3}checked="checked"{/if}/>{$lang.on_this_date}</label><br />
			</div>
			<br />
			<div align="center"><input type="submit" name="submit" value="{$lang.delete}"/></div>
	</tr>
	</table>
<input type="hidden" name="id" value="{$thisfolderid}" />
</form>

</fieldset>
</td></tr></table>


{/if}
{if $PAGES && count($PAGES.pages)>0}
<p>{$lang.pages}:{include file="pages.tpl" pages="`$PAGES`"}</p>
{/if}

<table class="data">
<tr>
<td><b>{$lang.date_added}</b></td>
<td><b>{$lang.file_description}</b></td>
<td><b>{$lang.file_size}</b></td>
<td><b>{$lang.uploaded_by}</b></td>
<td><b>{$lang.file_type}</b></td>
{if $IsAdmin}
<td><b>{$lang.confirm}</b></td>
{/if}<td colspan="5"><b>{$lang.action}</b></td>

</tr>
{foreach item="file" from=$filelist}
<tr>
<td>{$file.dateadd|date_format:"%Y-%m-%d"}</td>
<td><a href="download.php?id={$file.id}" title="Download Now">{$file.descript}</a></td>
{if $file.filesize < 1024}
<td>{$file.filesize|string_format:"%d"} {$lang.bytes}</td>
{/if}
{if $file.filesize > 1023 & $file.filesize < 1048576}
<td>{$file.filesize/1024|string_format:"%.2f"} {$lang.kb}</td>
{/if}
{if $file.filesize > 1048575}
<td>{$file.filesize/1048576|string_format:"%.2f"} {$lang.mb}</td>
{/if}
<td>{$file.real_name} <font color=gray>[{$file.login}]</font></td>
<td>{$file.file_type}</td>
{if $IsAdmin}
<td>
{if $file.confirm=='Y'}
Y
{else}
<a href="confirm.php?id={$file.id}&folder={$folder.id}">{$lang.confirm}</a>
{/if}
</td>
<td><a href="control/files/edit.php?id={$file.id}&folder={$folder.id}" title="{$lang.edit_file}"><img src="css/b_edit.gif" border=0></a></td>
{/if}
{if  $IsAdmin or $userdelete=='1'}
<td><a href="control/files/delete.php?id={$file.id}&folder={$folder.id}&frm=folder" title="{$lang.delete_file}"><img src="css/b_delete.gif" border=0></a></td>
{/if}
{if $IsAdmin}
<td>
<a href="movef.php?id={$file.id}&folder={$folder.id}" title="{$lang.move_file}"><img src="css/b_move.gif" border=0></a>
</td>
{/if}
{if $IsAdmin}
<td>
<a href="copyf.php?id={$file.id}&folder={$folder.id}&frm=folder" title="{$lang.copy_file}"><img src="css/b_copy.gif" border=0></a>
</td>
{/if}
{if $zipshow == "1"}
<td class="zipicon">
<a class="zipicona" href="zipf.php?id={$file.id}" title="{$lang.zip}"><img src="css/zip.gif" border=0></a>
</td>
{/if}
</tr>
{/foreach}
</table>
<p>
<a href="upload.php?folder={$folder.id}"><img src="css/upload.gif" border=0> {$lang.upload_new_file}</a>
</p>
{include file=footer.tpl}
Return current item: @1 File Store