nextcloud/apps/calendar/templates/part.eventform.php

88 lines
2.9 KiB
PHP
Raw Normal View History

<table width="100%">
<tr>
<th width="75px"><?php echo $l->t("Title");?>:</th>
<td>
2011-09-15 23:20:42 +04:00
<input type="text" style="width:350px;" size="100" placeholder="<?php echo $l->t("Title of the Event");?>" value="<?php echo $_['title'] ?>" maxlength="100" name="title"/>
</td>
</tr>
<tr>
<th width="75px"><?php echo $l->t("Location");?>:</th>
<td>
2011-09-15 23:20:42 +04:00
<input type="text" style="width:350px;" size="100" placeholder="<?php echo $l->t("Location of the Event");?>" value="<?php echo $_['location'] ?>" maxlength="100" name="location" />
</td>
</tr>
</table>
<table>
<tr>
<th width="75px"><?php echo $l->t("Category");?>:</th>
<td>
2011-09-15 23:20:42 +04:00
<select style="width:140px;" name="category">
2011-09-15 01:29:35 +04:00
<?php
foreach($_['categories'] as $category){
2011-09-15 23:20:42 +04:00
echo '<option value="' . $category . '"' . ($_['category'] == $category ? ' selected="selected"' : '') . '>' . $category . '</option>';
2011-09-15 01:29:35 +04:00
}
?>
</select></td>
<th width="75px">&nbsp;&nbsp;&nbsp;<?php echo $l->t("Calendar");?>:</th>
<td>
2011-09-15 23:20:42 +04:00
<select style="width:140px;" name="calendar">
<?php
2011-09-15 01:29:35 +04:00
foreach($_['calendars'] as $calendar){
2011-09-15 23:20:42 +04:00
echo '<option value="' . $calendar['id'] . '"' . ($_['calendar'] == $calendar['id'] ? ' selected="selected"' : '') . '>' . $calendar['displayname'] . '</option>';
}
?>
</select></td>
</tr>
</table>
<hr>
<table>
<tr>
<th width="75px"></th>
<td>
<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>
</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">
&nbsp;&nbsp;
2011-09-15 23:20:42 +04:00
<input type="time" value="<?php echo $_['starttime'];?>" name="fromtime" id="fromtime">
</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">
&nbsp;&nbsp;
2011-09-15 23:20:42 +04:00
<input type="time" value="<?php echo $_['endtime'];?>" name="totime" id="totime">
</td><!--use jquery-->
</tr><!--
<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
foreach($_['repeat_options'] as $id => $label){
2011-09-15 23:20:42 +04:00
echo '<option value="' . $id . '"' . ($_['repeat'] == $id ? ' selected="selected"' : '') . '>' . $label . '</option>';
2011-09-15 01:29:35 +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>
<th width="75px" style="vertical-align: top;"><?php echo $l->t("Description");?>:</th>
2011-09-15 23:20:42 +04:00
<td><textarea style="width:350px;height: 150px;" placeholder="<?php echo $l->t("Description of the Event");?>" name="description"><?php echo $_['description'] ?></textarea></td>
</tr>
</table>