49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
require_once("include/globals.php");
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
|
|
$PageTitle = getLanguageText('TEXT-UPLOAD-EVENTS');
|
|
$ButtonText = getLanguageText('BUTTON-UPLOAD');
|
|
|
|
?>
|
|
<br>
|
|
<form method='post' enctype='multipart/form-data' action='/'>
|
|
<?php
|
|
$message_width = $default_form_width;
|
|
include "form.messages.php";
|
|
?>
|
|
<table width='<?php echo($default_form_width) ?>' class='content-table'>
|
|
<tr>
|
|
<td colspan='2' align='center' class='heading'><?php echo($PageTitle) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2' align='center'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2' align='center'>
|
|
<p><?php displayLanguageText('TEXT-FORMAT-MUST-BE-CSV'); ?></p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width='30%' align='right' valign='top'><?php displayLanguageText('TEXT-FILE'); ?>: </td>
|
|
<td width='70%' align='left' valign='top'><input type='file' name='filename' id='filename' size='40'></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2' align='center'>
|
|
<br>
|
|
<input type='submit' class='btn btn--primary' value="<?php echo($ButtonText) ?>">
|
|
<input type='hidden' name='action' value='events-admin'>
|
|
<input type='hidden' name='naction' value='upload'>
|
|
<br>
|
|
<br>
|
|
<p><a href='calendar.xls'><?php displayLanguageText('TEXT-SAMPLE'); ?></a></p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|