Location: PHPKode > projects > PHP Web FileManager - Similiar to Yahoo! > _extras/smarty_template/filemanager.tpl
{$FileMangerVer}

{if $menuOption == 4 || $menuOption == 8}
    <form action="{$PHP_SELF}" method="POST" ENCTYPE="multipart/form-data">
{else}
    <form action="{$PHP_SELF}" method="POST">
{/if}  

{* -- Filelist -- *}
{if $menuOption==0} 
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<span class="title">
				{$FileMangerTitle}
			</span>
		</td>
	</tr>
	{if $errormsg !="" }
		<tr>
			<td><font color="red">{$errormsg}</font></td>
		</tr>
	{else}
		<tr>
			<td>&nbsp;</td>
		</tr>
	{/if}
	</table>

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td class="titlebar">
			{$member}:{$getSiteName}
		</td>
		</tr>
	</table>

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr class="buttonbar">
		<td width="90%"> &nbsp;
			<input class="button" type="submit" name="copy" value="{$copy}">
			<input class="button" type="submit" name="rename" value="{$rename}">
			<input class="button" type="submit" name="delete" value="{$delete}">
			<input class="button" type="submit" name="refresh" value="{$refresh}">
		</td>
		<td width="10%" align="right">
			<input class="button" type="submit" name="upload" value="{$upload}">
		</td>
	</tr>
	</table>

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr class="headingbar">
		<td colspan="3"><b><a href="{$PHP_SELF}?{$sort1}">{$col1}</a></b></td>
		<td width="215"><b><a href="{$PHP_SELF}?{$sort2}">{$col2}</a></b></td>
		<td width="94"><div align="right"><b><a href="{$PHP_SELF}?{$sort3}">{$col3}</a></b></div></td>
	  </tr>
	{if $getIsSubDir_isUpload_isChanged >0}
		{if $LengetSubDir>0}
			<tr>
				<td colspan="3">
				<a href="{$PHP_SELF}"><img src="{$LIB}filemanager/images/upfolder.gif" width="15" height="13" border="0">&nbsp;<b>Legfelsõ szint</b></a>
				</td>
				<td width="215">&nbsp;</td>
				<td width="94">&nbsp;</td>
			</tr>
			<tr>
				<td width="29">&nbsp;</td>
				<td colspan="2">&nbsp;
					<a href="{$lastFolder}"><img src="{$LIB}filemanager/images/foldero.gif" width="16" height="13" border="0">&nbsp;<b>{$getSubDir}</b></a>
				</td>
				<td width="215">&nbsp;</td>
				<td width="94">&nbsp;</td>
			</tr>
		{/if}
	{/if}

	{assign var="totalSize" value="0"}
	{$getFileCount}
	{section name=i loop=$theList}   
	  <tr bgcolor="{if ($i % 2 == 0)}#FFE53B{else}#F2BE0B{/if}">
		{* Kiválasztási checkbox*}
		<td width="29"> <input type="checkbox" name="checkbox{$i}" value="1"></td>
		{* A file és könyvtárlista *}
		<td width="16">&nbsp;</td><td width="216">
		{if $theList[i.index].isDir}
			{if strlen($subDir) > 0}
				<a href="{$PHP_SELF}?f={$subDir}/{$theList[i.index].name}"><img src="lib/filemanager/images/folder.gif" width="15" height="13" border="0">&nbsp;{$theList[i.index].name}</a>
			{else}
				<a href="{$PHP_SELF}?f={$theList[i.index].name}"><img src="lib/filemanager/images/folder.gif" width="15" height="13" border="0">&nbsp;{$theList[i.index].name}</a>
			{/if}
		{else}
			{if strlen($subDir) > 0}
				<a href="{$BeginURL}{$theList[i.index].name}" class="text10plain">{$theList[i.index].name }</a>
			{else}
				<a href="{$BeginURL}{$theList[i.index].name}" class="text10plain">{$theList[i.index].name }</a>	
			{/if}
		{/if}
		</td>
		<td width="215">{$theList[i.index].lastmod}</td>
		{* Itt jelezzük ki a fileméreteket*}
		<td width="94"><div align="right">
			{if $theList[i.index].isDir > 0}
				&nbsp; 	
			{else}
				{$theList[i.index].size|string_format:"%.2f"}
			{/if}
			{assign var="totalSize" value= "$totalSize + $theList[i.index].size"} 
			</div>
		</td>
	  </tr>
	{/section}

	  <tr class="totalbar">
		<td width="29">&nbsp;</td>
		<td width="16">&nbsp;</td>
		<td width="216">&nbsp;</td>
		<td width="215"><div align="right"><b>{$TOTALSPACE}:</b></div></td>
		<td width="94"><div align="right">{$getTotalSizeUsed}</div></td>
	  </tr>
	</table>

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr class="buttonbar">
			<td width="611" height="34"> &nbsp;
				<input class="button" type="submit" name="copy" value="{$copy}">
				<input class="button" type="submit" name="rename" value="{$rename}">
				<input class="button" type="submit" name="delete" value="{$delete}">
				<input class="button" type="submit" name="refresh" value="{$refresh}">
				<input type="hidden" name="f" value="{$getSubDir}">
				<input type="hidden" name="sortprev" value="{$actionSort}">
			</td>
			<td height="34" colspan="2"><div align="right"><input class="button" type="submit" name="newdir" value="{$newfolder}"></div></td>
			<td width="95" height="34" align="right"><input class="button" type="submit" name="upload" value="{$upload}"></td>
		</tr>
	</table>

	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr class="buttonbar">
			<td>
				<select name="advanceoption">
				<option value="0">{$advance_option}</option>
				<option value="0">-----------------------</option>
				<option value="1">{$find}</option>
				{if $set_export_on}
					<option value="2">{$export}</option>
				{/if}
				{if $set_import_on}
					<option value="3">{$import}</option>
				{/if}
				</select>
				<input class="button" type="submit" name="advance" value="{$GO}">
			</td>
		</tr>
	</table>
{/if}

{* -- Copy -- *}
{if $menuOption==1}
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td colspan="2" ><span class="heading">{$COPY_HDR}</span></td>
		</tr>
		<tr>
			<td colspan="2" >{$COPY_INFO}</td>
		</tr>
		<tr>
			<td colspan="2" >&nbsp;</td>
		</tr>
		<tr>
			<td width="139" ><span class="heading">{$CURRENT_FILENAME}</span></td>
			<td width="431" ><span class="heading">{$NEW_FILENAME}</span></td>
		</tr>
	{section name=i loop=$modList}   
	  {if $modList[$i]}
		<tr>
			<td ><div align="left">{$theList[$i].name}</div></td>
			<td ><input type="text" name="newname{$i}"></td>
		</tr>
		<tr>
			<td colspan="2" >&nbsp;</td>
		</tr>
	  {/if}
	{/section}
		<tr>
			<td colspan="2" >
				&nbsp;
				<input class="button" type="submit" name="copy" value=" {$BUT_COPY}">
				<input type="hidden" name="confirm" value="Confirm">
				<input type="hidden" name="f" value="{$getSubDir}>">
				<input class="button" type="submit" name="cancel" value="{$BUT_CANCEL}">
			</td>
		</tr>
	</table>
{/if}

{* -- Rename/Move -- *}
{if $menuOption==2 }
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td colspan="2" ><span class="heading">  {$RENAME_HDR}</span></td>
	</tr>
	<tr>
		<td colspan="2" >{$RENAME_INFO}</td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>
	<tr>
		<td width="139" ><span class="heading">{$CURRENT_FILENAME}</span></td>
		<td width="431" ><span class="heading">{$NEW_FILENAME}</span></td>
	</tr>

 {section name=i loop=$modList}
	{if $modList[$i]}

	<tr>
		<td ><div align="left">{$theList[$i].name}</div></td>
		<td ><input type="text" name="newname{$i}"></td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>
	{/if}
  {/section}
	<tr>
		<td colspan="2" > &nbsp;
			<input class="button" type="submit" name="rename" value="" {$BUT_RENAME}">
			<input type="hidden" name="confirm" value="Confirm">
			<input type="hidden" name="f" value="{$getSubDir}">
			<input class="button" type="submit" name="cancel" value="{$BUT_CANCEL}">
		</td>
		</tr>
	</table>
{/if}

{* -- Delete -- *}
{if $menuOption==3 }
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td colspan="2" ><span class="heading">{$delete_hdr}</span></td>
		</tr>
		<tr>
			<td colspan="2" >{$delete_info}</td>
		</tr>
		<tr>
			<td colspan="2" >&nbsp;</td>
		</tr>
		<tr>
			<td width="139" ><span class="heading">{$lbl_filename}</span></td>
			<td width="431" ><span class="heading">{$check_confim}</span></td>
		</tr>
		{section name=i loop=$modList}   
			{if $modList[$i]}
			<tr>
				<td><div align="left">{$theList[$i].name}</div></td>
				<td ><input type="checkbox" name="newname{$i}" value="1" checked></td>
			</tr>
			<tr>
				<td colspan="2" >&nbsp;</td>
			</tr>
			{/if}
		{/section}
		<tr>
			<td colspan="2" > &nbsp;
				<input class="button" type="submit" name="delete" value="{$BUT_DELETE}">
				<input type="hidden" name="confirm" value="Confirm">
				<input type="hidden" name="f" value="{$getSubDir}">
				<input class="button" type="submit" name="cancel" value="{$BUT_CANCEL}">
			</td>
		</tr>
	</table>
{/if}

{* -- New Folder -- *}
{if $menuOption==5 }
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td colspan="2" ><span class="heading">{$NEWFOLDER_HDR}</span></td>
	</tr>
	<tr>
		<td colspan="2" >{$NEWFOLDER_INFO}</td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>
	<tr>
		<td width="146" ><span class="heading">{$NEWFOLDER_NAME}</span></td>
		<td width="424" >&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" ><input type="text" name="newdirname"><i>{$newfolder_only_char}</i></td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" > &nbsp;
			<input class="button" type="submit" name="newdir" value="{$but_newfolder}">
			<input type="hidden" name="f" value="{$getSubDir}">
			<input type="hidden" name="confirm" value="Confirm">
			<input class="button" type="submit" name="cancel" value=" {$BUT_CANCEL}">
		</td>
	</tr>
	</table>
{/if}

{* -- Uploadr -- *}
{if $menuOption==4 }
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td colspan="2" ><span class="heading">{$upload_hdr}</span></td>
	</tr>
	<tr>
		<td colspan="2">{$upload_info}</td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>
	<tr>
		<td width="48" ><div align="right">{$upload_file}&nbsp;1:</div></td>
		<td width="522" ><input class="button" type="file" name="userfile[]"></td>
	</tr>
	<tr>
		<td width="48" ><div align="right">{$lbl_file}&nbsp;2:</div></td>
		<td width="522" ><input class="button" type="file" name="userfile[]"></td>
	</tr>
	<tr>
		<td width="48" ><div align="right">{$lbl_file}&nbsp;3:</div></td>
		<td width="522" ><input class="button" type="file" name="userfile[]"></td>
	</tr>
	<tr>
		<td width="48" ><div align="right">{$lbl_file}&nbsp;4:</div></td>
		<td width="522" ><input class="button" type="file" name="userfile[]"></td>
	</tr>
	<tr>
		<td width="48" ><div align="right">{$lbl_file}&nbsp;5:</div></td>
		<td width="522" ><input class="button" type="file" name="userfile[]"></td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" > &nbsp;<input class="button" type="submit" name="upload" value=" {$but_upload}">
			<input type="hidden" name="confirm" value="Confirm">
			<input type="hidden" name="f" value="{$getSubDir}}">
			<input class="button" type="submit" name="cancel" value="{$BUT_CANCEL}">
		</td>
	</tr>
</table>
{/if}

{* -- Find -- *}
{if $menuOption==6 }
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td colspan="2" ><span class="heading">{$FIND_HDR}</span></td>
	</tr>
	<tr>
		<td colspan="2">{$FIND_INFO}</td>
	</tr>
	<tr>
	<td colspan="2">&nbsp;</td>
	</tr>
	{if !empty($errormsg)}
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr><td colspan="2"><span class="text10find">{$errormsg}</span></td></tr>
		<tr><td colspan="2">&nbsp;</td></tr>
	{/if}

	<tr>
		<td width="166">{$FILE_FOLDER}</td>
		<td width="604">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2"><input type="text" name="findtext" maxlength="255" size="28"><i>{$FIND_MAX255}</i></td>
	</tr>
	<tr>
		<td colspan="2"><input type="checkbox" name="findmatchcase" value="1">{$MATCH_CASE}
			<input type="checkbox" name="findexact" value="1">{$FIND_WHOLE_WORD_ONLY}
		</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">
			<input class="button" type="submit" name="find" value="{$BUT_FIND}">
			<input type="hidden" name="confirm" value="Confirm">
			<input type="hidden" name="advance" value="1">
			<input type="hidden" name="advanceoption" value="1">
			<input type="hidden" name="f" value="{$getSubDir}">
			<input class="button" type="submit" name="cancel" value="{$BUT_CANCEL}">
		</td>
	</tr>
	</table>
{/if}

{* -- Export -- *}
{if $menuOption==7 }
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td colspan="2" ><span class="heading">{$EXPORT_HDR}</span></td>
	</tr>
	<tr>
		<td colspan="2" >{$EXPORT_INFO}</td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>

	{if !empty($errormsg)}
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr>
		  <td colspan="2"><span class="text10find">{$errormsg}</span></td>
		</tr>
		<tr><td colspan="2">&nbsp;</td></tr>
	{/if}

	<tr>
		<td width="145" ><div align="left">{$export_filename}</div></td>
		<td width="625" ><input type="text" name="exportfilename"></td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" >
			&nbsp;	
			<input class="button" type="submit" name="export" value="{$BUT_EXPORT}">
			<input type="hidden" name="confirm" value="Confirm">
			<input type="hidden" name="advance" value="1">
			<input type="hidden" name="advanceoption" value="1">
			<input type="hidden" name="f" value="{$getSubDir}">
			<input class="button" type="submit" name="cancel" value="{$BUT_CANCEL}">
		</td>
	</tr>
	</table>
{/if}

{* -- Import -- *}
{if $menuOption==8} 
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td colspan="2" ><span class="heading">
		{$import_header}
	</span></td>
	</tr>
	<tr>
		<td colspan="2" >{$import_info}</td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>

	{if !empty($errormsg)}
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2"><span class="text10find">{$errormsg}</span></td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td></tr>
	{/if}
	
	<tr>
		<td width="144" ><div align="left">{$IMPORT_FILENAME}</div></td>
		<td width="626" ><input class="button" type="file" name="userfile"></td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" >&nbsp;
			<input class="button" type="submit" name="import" value="{$import}">
			<input type="hidden" name="confirm" value="Confirm">
			<input type="hidden" name="advance" value="1">
			<input type="hidden" name="advanceoption" value="1">
			<input type="hidden" name="f" value="{$getSubDir}">
			<input class="button" type="submit" name="cancel" value="{$cancel}">
		</td>
	</tr>
	</table>
{/if}
</form>
Return current item: PHP Web FileManager - Similiar to Yahoo!