68 lines
2.5 KiB
PHP
Executable File
68 lines
2.5 KiB
PHP
Executable File
<?php
|
|
#################################################################################
|
|
# #
|
|
# written by benjamin ramey #
|
|
# bsr@rameydesign.net #
|
|
# #
|
|
# This file contains: #
|
|
# File that govern how to display the schedule edit form #
|
|
# #
|
|
#################################################################################
|
|
|
|
include 'html/html_header.php';
|
|
include 'functions/flow_errors.php';
|
|
include 'functions/flow_messages.php';
|
|
|
|
# get the data on the requested event
|
|
$event = events_get($_POST['edit_id']);
|
|
|
|
?>
|
|
<div class='page_subtitle'>Edit Event</div>
|
|
<div class='page_content'>
|
|
<form action='/pae.php/en/user/editevent' method='post' enctype="multipart/form-data">
|
|
<input type='hidden' name='doediting' value='1' />
|
|
<input type='hidden' name='edit_id' value='<?php echo $event['id'] ?>' />
|
|
<table cellpadding='4' cellspacing='0' border='0'>
|
|
<tr>
|
|
<td align='right'>Event Name:</td>
|
|
<td><input type='text' size='30' name='title' value='<?php echo $event['title'] ?>' /></td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'>Event <?php echo $_WORDS['location'] ?>:</td>
|
|
<td><textarea rows='3' cols='40' name='location'><?php echo $event['location'] ?></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right'>Event <?php echo $_WORDS['date'] ?>:</td>
|
|
<td>
|
|
<input type='text' size='10' name='date' value='<?php echo $event['date'] ?>' />
|
|
<?php echo $_WORDS['from'] ?>: <input type='text' size='10' name='starttime' value='<?php echo $event['starttime'] ?>' />
|
|
<?php echo $_WORDS['until'] ?>: <input type='text' size='10' name='endtime' value='<?php echo $event['endtime'] ?>' />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'>Event <?php echo $_WORDS['description'] ?>:</td>
|
|
<td><textarea rows='6' cols='40' name='description'><?php echo $event['description'] ?></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'>Event Photo:</td>
|
|
<td>
|
|
<input type='file' size='40' name='picture' />
|
|
<br />
|
|
Current image (enter nothing above to keep this image):
|
|
<br />
|
|
<img src='/pae.co.at/data/events_photos/<?php echo $event['picture'] ?>' width='200' />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right'> </td>
|
|
<td><input type='submit' value='<?php echo $_WORDS['edit'] ?>' /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<?php
|
|
|
|
include 'html/html_footer.php';
|
|
|
|
?>
|