39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
<form action="upload.php" method="post" enctype="multipart/form-data">
|
|
<fieldset>
|
|
<legend>Upload file</legend>
|
|
<p>
|
|
You can upload as many files as you want. They will retain their original
|
|
names (with spaces and other special characters replaced with underscores)
|
|
and be listed on the front page. Right now, this site only displays
|
|
'.doc' files (Word files).
|
|
</p>
|
|
<p class='field'>
|
|
File
|
|
<input type="file" name="doc_file" value="" id="doc_file"/>
|
|
</p>
|
|
<p class='field'>
|
|
|
|
<input type="submit" value="Upload file →">
|
|
</p>
|
|
</fieldset>
|
|
</form>
|
|
<div class='admin_summary_box' id='news_summary'>
|
|
<h3>Current Uploaded Files</h3>
|
|
<p>
|
|
Current files that you have uploaded.
|
|
</p>
|
|
<?php if(count($this->data['files']) > 0): ?>
|
|
<table class='summary_table'>
|
|
<?php foreach($this->data['files'] as $file): ?>
|
|
<tr>
|
|
<td class='summary_data'><?php echo $file ?></td>
|
|
<td class='summary_actions'>
|
|
<a href='/alaska/upload.php?do=delete&id=<?php echo $file ?>'>Delete</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php else: ?>
|
|
<p>There are currently no files uploaded.</p>
|
|
<?php endif; ?>
|
|
</div>
|