| 1 | {if $canedit} |
| 2 | <form method="post" action="{$post}" enctype="multipart/form-data"> |
| 3 | <input type="hidden" name="dir" value="{$smarty.request.dir}" /> |
| 4 | <input type="hidden" name="MAX_FILE_SIZE" value="{$maxsize}" /> |
| 5 | <table class="light" style="width: 90%; margin-bottom: 15px;"> |
| 6 | <tr> |
| 7 | <td><input type="radio" name="action" value="file_upload" {if !$smarty.request.action || ($smarty.request.action == "file_upload")}checked="checked" {/if}/> {$msg_import}</td> |
| 8 | <td><input type="file" name="userfile" /></td> |
| 9 | <td rowspan="3"><input type="submit" value="{$msg_btn_fileop}" /></td> |
| 10 | </tr> |
| 11 | <tr> |
| 12 | <td> |
| 13 | <input type="radio" name="action" value="fileop" {if $smarty.request.action == "fileop"}checked="checked" {/if}/> |
| 14 | {$msg_copy_or_move} |
| 15 | </td> |
| 16 | <td> |
| 17 | {html_options name='file_action' options=$fileops selected=$smarty.request.file_action} |
| 18 | <select name="fileop_sfile"> |
| 19 | {foreach from=$childfiles item=entry} |
| 20 | <option value="{$entry.file}" {if $entry.file == $smarty.request.fileop_sfile}selected="selected" {/if}>{$entry.file}</option> |
| 21 | {/foreach} |
| 22 | </select> |
| 23 | {$msg_fileop_to} |
| 24 | {html_options name='fileop_ddir' options=$fileop_ddirs selected=$smarty.request.fileop_ddir} |
| 25 | </td> |
| 26 | </tr> |
| 27 | <tr> |
| 28 | <td><input type="radio" name="action" value="file_create" {if $smarty.request.action == "file_create"}checked="checked" {/if}/> {$msg_create}</td> |
| 29 | <td><input type="text" name="createfile" value="{$smarty.request.createfile}" /></td> |
| 30 | </tr> |
| 31 | </table> |
| 32 | </form> |
| 33 | {/if} |
| 34 | |
| 35 | {include file='page-browser.tpl'} |
| 36 | |