0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
tikiwiki
/
1.9.7-31
/
htdocs
/
templates
/
[
Home
]
File: tiki-upload_file.tpl
<h1><a href="tiki-upload_file.php?galleryId={$galleryId}" class="pagetitle">{if $editFileId}{tr}Edit File:{/tr} {$fileInfo.filename}{else}{tr}Upload File{/tr}{/if}</a></h1> {if count($galleries) > 0} <a href="tiki-list_file_gallery.php?galleryId={$galleryId}" class="linkbut">{tr}Browse gallery{/tr}</a><br /><br /> <div align="center"> <form enctype="multipart/form-data" action="tiki-upload_file.php" method="post"> <table class="normal"> <tr><td class="formcolor">{tr}File Title{/tr}:</td><td class="formcolor"><input type="text" name="name" {if $fileInfo.name}value="{$fileInfo.name}"{/if}/></td></tr> <tr><td class="formcolor">{tr}File Description{/tr}:</td><td class="formcolor"><textarea rows="5" cols="40" name="description">{if $fileInfo.description}{$fileInfo.description}{/if}</textarea></td></tr> {if $editFileId}<input type="hidden" name="galleryId" value="{$galleryId}"/> <input type="hidden" name="fileId" value="{$editFileId}"/>{else} <tr><td class="formcolor">{tr}File Gallery{/tr}:</td><td class="formcolor"> <select name="galleryId"> {section name=idx loop=$galleries} {if ($galleries[idx].individual eq 'n') or ($galleries[idx].individual_tiki_p_upload_files eq 'y')} <option value="{$galleries[idx].id|escape}" {if $galleries[idx].id eq $galleryId}selected="selected"{/if}>{$galleries[idx].name}</option> {/if} {/section} </select>{/if}</td></tr> <!--<tr><td colspan="2"><b>{tr}Now enter the file URL{/tr}{tr} or upload a local file from your disk{/tr} <tr><td class="formcolor">URL:</td><td><input size="50" type="text" name="url" /></td></tr>--> <tr><td class="formcolor"> {tr}Upload from disk:{/tr}</td> <td class="formcolor"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000000" /> <input name="userfile1" type="file" /> {if !$editFileId}<input name="userfile2" type="file" /> <br /> <input name="userfile3" type="file" /> <input name="userfile4" type="file" /> <br /> <input name="userfile5" type="file" /> <input name="userfile6" type="file" />{/if} </td></tr> {if !$editFileId}<tr><td class="formcolor">{tr}Batch upload{/tr}</td><td class="formcolor"> <input type="checkbox" name="isbatch" /></td></tr>{/if} <tr><td class="formcolor"> </td><td class="formcolor"><input type="submit" name="upload" value="{if $editFileId}{tr}edit{/tr}{else}{tr}upload{/tr}{/if}" /></td></tr> </table> </form> </div> <br /> <hr/> {if count($errors) > 0} <h3>{tr}Errors detected{/tr}</h3> {section name=ix loop=$errors} {$errors[ix]}<br /> {/section} {/if} {if count($uploads) > 0} <h3>{tr}The following file was successfully uploaded{/tr}:</h3><br /> {section name=ix loop=$uploads} <div align="center"> {$uploads[ix].name} ({$uploads[ix].size|kbsize})<br /> <div class="wikitext"> {tr}You can download this file using{/tr}: <a class="link" href="{$url_browse}?fileId={$uploads[ix].fileId}">{$url_browse}?fileId={$uploads[ix].fileId}</a><br /><br /> {tr}You can include the file in an HTML/Tiki page using{/tr}: <textarea cols="60" rows="2"><a href="{$url_browse}?fileId={$uploads[ix].fileId}">{$uploads[ix].name} ({$uploads[ix].size|kbsize})</a></textarea> </div> </div> {/section} {elseif $fileChangedMessage} <div align="center"> <div class="wikitext"> {$fileChangedMessage} </div> </div> {/if} {else} <a class="linkbut" href="tiki-file_galleries.php">{tr}You have to create a gallery first!{/tr}</a> {/if}