2011-09-15 00:26:01 +04:00
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t("Title");?>:</th>
|
|
|
|
<td>
|
2011-09-22 19:05:56 +04:00
|
|
|
<input type="text" style="width:350px;" size="100" placeholder="<?php echo $l->t("Title of the Event");?>" value="<?php echo isset($_['title']) ? $_['title'] : '' ?>" maxlength="100" name="title"/>
|
2011-09-15 00:26:01 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t("Category");?>:</th>
|
|
|
|
<td>
|
2011-09-23 00:22:52 +04:00
|
|
|
<select id="category" name="categories[]" multiple="multiple" title="<?php echo $l->t("Select category") ?>">
|
2011-09-15 01:29:35 +04:00
|
|
|
<?php
|
2011-09-23 00:22:52 +04:00
|
|
|
foreach($_['category_options'] as $category){
|
2011-09-22 19:05:56 +04:00
|
|
|
if (!isset($_['categories'])) {$_['categories'] = array();}
|
2011-09-23 00:22:52 +04:00
|
|
|
echo '<option value="' . $category . '"' . (in_array($category, $_['categories']) ? ' selected="selected"' : '') . '>' . $category . '</option>';
|
2011-09-15 01:29:35 +04:00
|
|
|
}
|
|
|
|
?>
|
2011-09-15 00:26:01 +04:00
|
|
|
</select></td>
|
|
|
|
<th width="75px"> <?php echo $l->t("Calendar");?>:</th>
|
|
|
|
<td>
|
2011-09-15 23:20:42 +04:00
|
|
|
<select style="width:140px;" name="calendar">
|
2011-09-15 00:26:01 +04:00
|
|
|
<?php
|
2011-09-23 00:22:52 +04:00
|
|
|
foreach($_['calendar_options'] as $calendar){
|
2011-09-22 19:05:56 +04:00
|
|
|
if (!isset($_['calendar'])) {$_['calendar'] = false;}
|
2011-09-15 23:20:42 +04:00
|
|
|
echo '<option value="' . $calendar['id'] . '"' . ($_['calendar'] == $calendar['id'] ? ' selected="selected"' : '') . '>' . $calendar['displayname'] . '</option>';
|
2011-09-15 00:26:01 +04:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td>
|
2011-09-16 16:02:21 +04:00
|
|
|
<input onclick="Calendar.UI.lockTime();" type="checkbox"<?php if($_['allday']){echo 'checked="checked"';} ?> id="allday_checkbox" name="allday">
|
2011-09-15 23:20:42 +04:00
|
|
|
<label for="allday_checkbox"><?php echo $l->t("All Day Event");?></label></td>
|
2011-09-15 00:26:01 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<th width="75px"><?php echo $l->t("From");?>:</th>
|
|
|
|
<td>
|
2011-09-15 23:20:42 +04:00
|
|
|
<input type="text" value="<?php echo $_['startdate'];?>" name="from" id="from">
|
2011-09-15 00:26:01 +04:00
|
|
|
|
2011-09-15 23:20:42 +04:00
|
|
|
<input type="time" value="<?php echo $_['starttime'];?>" name="fromtime" id="fromtime">
|
2011-09-15 00:26:01 +04:00
|
|
|
</td><!--use jquery-->
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t("To");?>:</th>
|
|
|
|
<td>
|
2011-09-15 23:20:42 +04:00
|
|
|
<input type="text" value="<?php echo $_['enddate'];?>" name="to" id="to">
|
2011-09-15 00:26:01 +04:00
|
|
|
|
2011-09-15 23:20:42 +04:00
|
|
|
<input type="time" value="<?php echo $_['endtime'];?>" name="totime" id="totime">
|
2011-09-15 00:26:01 +04:00
|
|
|
</td><!--use jquery-->
|
2011-09-27 23:56:16 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<input type="button" class="submit" value="<?php echo $l->t("Advanced options"); ?>" onclick="Calendar.UI.showadvancedoptions();" id="advanced_options_button">
|
|
|
|
<div id="advanced_options" style="display: none;">
|
|
|
|
<!--
|
|
|
|
<table>
|
2011-09-15 00:26:01 +04:00
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t("Repeat");?>:</th>
|
|
|
|
<td>
|
2011-09-15 23:20:42 +04:00
|
|
|
<select name="repeat" style="width:350px;">
|
2011-09-15 01:29:35 +04:00
|
|
|
<?php
|
2011-09-22 19:05:56 +04:00
|
|
|
if (isset($_['repeat_options'])) {
|
|
|
|
foreach($_['repeat_options'] as $id => $label){
|
|
|
|
echo '<option value="' . $id . '"' . ($_['repeat'] == $id ? ' selected="selected"' : '') . '>' . $label . '</option>';
|
|
|
|
}
|
2011-09-15 01:29:35 +04:00
|
|
|
}
|
|
|
|
?>
|
2011-09-15 00:26:01 +04:00
|
|
|
</select></td>
|
|
|
|
</tr>-->
|
|
|
|
</table>
|
|
|
|
<hr>
|
|
|
|
<table><!--
|
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t("Attendees");?>:</th>
|
|
|
|
<td style="height: 50px;"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<hr>-->
|
|
|
|
<table>
|
|
|
|
<tr>
|
2011-09-27 23:56:16 +04:00
|
|
|
<th width="85px"><?php echo $l->t("Location");?>:</th>
|
|
|
|
<td>
|
|
|
|
<input type="text" style="width:350px;" size="100" placeholder="<?php echo $l->t("Location of the Event");?>" value="<?php echo isset($_['location']) ? $_['location'] : '' ?>" maxlength="100" name="location" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th width="85px" style="vertical-align: top;"><?php echo $l->t("Description");?>:</th>
|
2011-09-22 19:05:56 +04:00
|
|
|
<td><textarea style="width:350px;height: 150px;" placeholder="<?php echo $l->t("Description of the Event");?>" name="description"><?php echo isset($_['description']) ? $_['description'] : '' ?></textarea></td>
|
2011-09-15 00:26:01 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
2011-09-27 23:56:16 +04:00
|
|
|
</div>
|