📄 tpl_public_upload.php
字号:
<!-- tpl_public_upload.php -->
<form method="post" action="<?=MOD_REWRITE?'pupload/':'public.php'?>" enctype="multipart/form-data" id="upload_form" onsubmit="if(!fileSelected){alert('You did not select any file.');return false;}getObj('upload_button').disabled=true;return true;" >
<input type="hidden" name="action" value="upload" />
<div class="rounded green">
<table cellspacing="1" cellpadding="3" style="line-height:1.5em;">
<tr>
<td style="width:100px;">Currently hosting:</td>
<td><?=number_format($files_count)?> files. <a href="<?=$browse_url?>" class="special">See all uploaded images</a></td>
</tr>
<tr>
<td>Select files:</td>
<td><span id="fileSelect"></span> <input type="submit" id="upload_button" value="Upload" /></td>
</tr>
<tr>
<td>Your name:</td>
<td><input type="text" name="upload[name]" size="40" maxlength="64" /> (Optional)</td>
</tr>
<tr>
<td>Comments:</td>
<td><input type="text" name="upload[comments]" size="100" maxlength="255" /> (Optional)</td>
</tr>
<tr>
<td>File restrictions:</td>
<td><?=get_size($settings['max_file_size'],'KB',0)?> - <?=$settings['images_only']?'Images only':($settings['allowed_filetypes']=='ANY'?'All file types allowed.':str_replace(',', ', ',$settings['allowed_filetypes']))?></td>
</tr>
<?php if ( $settings['allow_thumbnails'] ) : ?>
<tr>
<td>Thumbnail size:</td>
<td>
<input type="radio" name="upload[thumbnail_size]" value="no_thumbnail" class="radio" id="thumbnail_size_none" />
<label for="thumbnail_size_none">No thumbnails</label>
<input type="radio" name="upload[thumbnail_size]" value="small" class="radio" id="thumbnail_size_small" checked="checked" />
<label for="thumbnail_size_small">Small (<?=$settings['thumb_small']?>)</label>
<input type="radio" name="upload[thumbnail_size]" value="large" class="radio" id="thumbnail_size_large" />
<label for="thumbnail_size_large">Large (<?=$settings['thumb_large']?>)</label>
</td>
</tr>
<?php endif; ?>
<tr>
<td>Batch uploads:</td>
<td>
If you are uploading many files, consider using the Batch Upload feature. Simply upload a Zip file
containing all your files. The Zip file must be named "upload.zip" or "batch.zip".
<a href="help.php?topic=batch_upload" class="special">Click here</a> to learn more.
</td>
</tr>
</table>
</div>
<ul id="selectedFiles"><!-- do not edit in here unless you know what you're doing --></ul>
<p id="fileSelectedStatus" style="margin-top:5px;background-color:#f0f0f0;padding:5px 5px 5px 8px;-moz-border-radius:5px;">
No files selected. Click on Browse to add files. You can add more than one file.
</p>
<input type="submit" id="submit_button" style="display:none;" />
</form>
<script type="text/javascript" src="templates/default2/advupload.js"></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -