2012-04-08 06:40:20 +04:00
|
|
|
<script type="text/javascript">
|
|
|
|
<?php
|
|
|
|
echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid = "' . $_['eventid'] . '";';
|
|
|
|
?>
|
|
|
|
</script>
|
|
|
|
|
2012-01-31 14:57:09 +04:00
|
|
|
<ul>
|
2012-01-31 20:15:25 +04:00
|
|
|
<li><a href="#tabs-1"><?php echo $l->t('Eventinfo'); ?></a></li>
|
|
|
|
<li><a href="#tabs-2"><?php echo $l->t('Repeating'); ?></a></li>
|
2012-04-22 15:15:03 +04:00
|
|
|
<!--<li><a href="#tabs-3"><?php echo $l->t('Alarm'); ?></a></li>
|
|
|
|
<li><a href="#tabs-4"><?php echo $l->t('Attendees'); ?></a></li>-->
|
2012-05-13 14:28:28 +04:00
|
|
|
<?php if($_['access'] == 'owner' && $_['eventid'] != 'new') { ?>
|
2012-02-01 00:39:40 +04:00
|
|
|
<li><a href="#tabs-5"><?php echo $l->t('Share'); ?></a></li>
|
2012-04-14 00:20:19 +04:00
|
|
|
<?php } ?>
|
2012-01-31 14:57:09 +04:00
|
|
|
</ul>
|
|
|
|
<div id="tabs-1">
|
2011-09-15 00:26:01 +04:00
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t("Title");?>:</th>
|
|
|
|
<td>
|
2012-02-02 18:01:05 +04:00
|
|
|
<input type="text" style="width:350px;" size="100" placeholder="<?php echo $l->t("Title of the Event");?>" value="<?php echo isset($_['title']) ? htmlspecialchars($_['title']) : '' ?>" maxlength="100" name="title"/>
|
2011-09-15 00:26:01 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2011-12-26 02:19:49 +04:00
|
|
|
<table width="100%">
|
2011-09-15 00:26:01 +04:00
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t("Category");?>:</th>
|
|
|
|
<td>
|
2012-04-13 18:51:04 +04:00
|
|
|
<input id="category" name="categories" type="text" placeholder="<?php echo $l->t('Separate categories with commas'); ?>" value="<?php echo isset($_['categories']) ? htmlspecialchars($_['categories']) : '' ?>">
|
2012-05-07 01:00:36 +04:00
|
|
|
<a class="action edit" onclick="$(this).tipsy('hide');OCCategories.edit();" title="<?php echo $l->t('Edit categories'); ?>"><img alt="<?php echo $l->t('Edit categories'); ?>" src="<?php echo OCP\image_path('core','actions/rename.svg')?>" class="svg action" style="width: 16px; height: 16px;"></a>
|
2011-12-26 02:19:49 +04:00
|
|
|
</td>
|
2012-02-24 01:26:31 +04:00
|
|
|
<?php if(count($_['calendar_options']) > 1) { ?>
|
2011-09-15 00:26:01 +04:00
|
|
|
<th width="75px"> <?php echo $l->t("Calendar");?>:</th>
|
|
|
|
<td>
|
2011-12-26 02:19:49 +04:00
|
|
|
<select style="width:140px;" name="calendar">
|
|
|
|
<?php
|
|
|
|
if (!isset($_['calendar'])) {$_['calendar'] = false;}
|
2012-05-09 20:34:44 +04:00
|
|
|
echo OCP\html_select_options($_['calendar_options'], $_['calendar'], array('value'=>'id', 'label'=>'displayname'));
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</td>
|
2012-02-24 01:26:31 +04:00
|
|
|
<?php } else { ?>
|
|
|
|
<th width="75px"> </th>
|
|
|
|
<td>
|
2012-04-13 07:15:19 +04:00
|
|
|
<input type="hidden" name="calendar" value="<?php echo $_['calendar_options'][0]['id']; ?>">
|
2012-02-24 01:26:31 +04:00
|
|
|
</td>
|
|
|
|
<?php } ?>
|
2011-09-15 00:26:01 +04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<hr>
|
2011-12-26 02:19:49 +04:00
|
|
|
<table width="100%">
|
2011-09-15 00:26:01 +04:00
|
|
|
<tr>
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td>
|
2011-12-26 02:19:49 +04:00
|
|
|
<input onclick="Calendar.UI.lockTime();" type="checkbox"<?php if($_['allday']){echo 'checked="checked"';} ?> id="allday_checkbox" name="allday">
|
|
|
|
<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-12-26 02:19:49 +04:00
|
|
|
<input type="text" value="<?php echo $_['startdate'];?>" name="from" id="from">
|
|
|
|
|
|
|
|
<input type="time" value="<?php echo $_['starttime'];?>" name="fromtime" id="fromtime">
|
|
|
|
</td>
|
2011-09-15 00:26:01 +04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t("To");?>:</th>
|
|
|
|
<td>
|
2011-12-26 02:19:49 +04:00
|
|
|
<input type="text" value="<?php echo $_['enddate'];?>" name="to" id="to">
|
|
|
|
|
|
|
|
<input type="time" value="<?php echo $_['endtime'];?>" name="totime" id="totime">
|
|
|
|
</td>
|
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;">
|
2012-01-31 14:57:09 +04:00
|
|
|
<hr>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th width="85px"><?php echo $l->t("Location");?>:</th>
|
|
|
|
<td>
|
2012-02-02 20:48:29 +04:00
|
|
|
<input type="text" style="width:350px;" size="100" placeholder="<?php echo $l->t("Location of the Event");?>" value="<?php echo isset($_['location']) ? htmlspecialchars($_['location']) : '' ?>" maxlength="100" name="location" />
|
2012-01-31 14:57:09 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th width="85px" style="vertical-align: top;"><?php echo $l->t("Description");?>:</th>
|
|
|
|
<td>
|
2012-02-02 20:48:29 +04:00
|
|
|
<textarea style="width:350px;height: 150px;" placeholder="<?php echo $l->t("Description of the Event");?>" name="description"><?php echo isset($_['description']) ? htmlspecialchars($_['description']) : '' ?></textarea>
|
2012-01-31 14:57:09 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="tabs-2">
|
|
|
|
<table style="width:100%">
|
2011-12-26 02:19:49 +04:00
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t("Repeat");?>:</th>
|
|
|
|
<td>
|
|
|
|
<select id="repeat" name="repeat">
|
|
|
|
<?php
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_options'], $_['repeat']);
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select></td>
|
|
|
|
<td><input type="button" style="float:right;" class="submit" value="<?php echo $l->t("Advanced"); ?>" onclick="Calendar.UI.showadvancedoptionsforrepeating();" id="advanced_options_button"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div id="advanced_options_repeating" style="display:none;">
|
|
|
|
<table style="width:100%">
|
|
|
|
<tr id="advanced_month" style="display:none;">
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td>
|
|
|
|
<select id="advanced_month_select" name="advanced_month_select">
|
|
|
|
<?php
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_month_options'], $_['repeat_month']);
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table style="width:100%">
|
|
|
|
<tr id="advanced_year" style="display:none;">
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td>
|
|
|
|
<select id="advanced_year_select" name="advanced_year_select">
|
|
|
|
<?php
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_year_options'], $_['repeat_year']);
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table style="width:100%">
|
|
|
|
<tr id="advanced_weekofmonth" style="display:none;">
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td id="weekofmonthcheckbox">
|
|
|
|
<select id="weekofmonthoptions" name="weekofmonthoptions">
|
|
|
|
<?php
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_weekofmonth_options'], $_['repeat_weekofmonth']);
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table style="width:100%">
|
|
|
|
<tr id="advanced_weekday" style="display:none;">
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td id="weeklycheckbox">
|
2012-03-27 11:24:55 +04:00
|
|
|
<select id="weeklyoptions" name="weeklyoptions[]" multiple="multiple" style="width: 150px;" title="<?php echo $l->t("Select weekdays") ?>">
|
2011-12-26 02:19:49 +04:00
|
|
|
<?php
|
|
|
|
if (!isset($_['weekdays'])) {$_['weekdays'] = array();}
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_weekly_options'], $_['repeat_weekdays'], array('combine'=>true));
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table style="width:100%">
|
|
|
|
<tr id="advanced_byyearday" style="display:none;">
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td id="byyeardaycheckbox">
|
|
|
|
<select id="byyearday" name="byyearday[]" multiple="multiple" title="<?php echo $l->t("Select days") ?>">
|
|
|
|
<?php
|
|
|
|
if (!isset($_['repeat_byyearday'])) {$_['repeat_byyearday'] = array();}
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_byyearday_options'], $_['repeat_byyearday'], array('combine'=>true));
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select><?php echo $l->t('and the events day of year.'); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table style="width:100%">
|
|
|
|
<tr id="advanced_bymonthday" style="display:none;">
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td id="bymonthdaycheckbox">
|
|
|
|
<select id="bymonthday" name="bymonthday[]" multiple="multiple" title="<?php echo $l->t("Select days") ?>">
|
|
|
|
<?php
|
|
|
|
if (!isset($_['repeat_bymonthday'])) {$_['repeat_bymonthday'] = array();}
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_bymonthday_options'], $_['repeat_bymonthday'], array('combine'=>true));
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select><?php echo $l->t('and the events day of month.'); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table style="width:100%">
|
|
|
|
<tr id="advanced_bymonth" style="display:none;">
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td id="bymonthcheckbox">
|
|
|
|
<select id="bymonth" name="bymonth[]" multiple="multiple" title="<?php echo $l->t("Select months") ?>">
|
|
|
|
<?php
|
|
|
|
if (!isset($_['repeat_bymonth'])) {$_['repeat_bymonth'] = array();}
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_bymonth_options'], $_['repeat_bymonth'], array('combine'=>true));
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table style="width:100%">
|
|
|
|
<tr id="advanced_byweekno" style="display:none;">
|
|
|
|
<th width="75px"></th>
|
|
|
|
<td id="bymonthcheckbox">
|
|
|
|
<select id="byweekno" name="byweekno[]" multiple="multiple" title="<?php echo $l->t("Select weeks") ?>">
|
|
|
|
<?php
|
|
|
|
if (!isset($_['repeat_byweekno'])) {$_['repeat_byweekno'] = array();}
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_byweekno_options'], $_['repeat_byweekno'], array('combine'=>true));
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select><?php echo $l->t('and the events week of year.'); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table style="width:100%">
|
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t('Interval'); ?>:</th>
|
|
|
|
<td>
|
|
|
|
<input style="width:350px;" type="number" min="1" size="4" max="1000" value="<?php echo isset($_['repeat_interval']) ? $_['repeat_interval'] : '1'; ?>" name="interval">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th width="75px"><?php echo $l->t('End'); ?>:</th>
|
|
|
|
<td>
|
|
|
|
<select id="end" name="end">
|
|
|
|
<?php
|
2012-03-26 17:24:43 +04:00
|
|
|
if($_['repeat_end'] == '') $_['repeat_end'] = 'never';
|
2012-05-07 01:00:36 +04:00
|
|
|
echo OCP\html_select_options($_['repeat_end_options'], $_['repeat_end']);
|
2011-12-26 02:19:49 +04:00
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<td id="byoccurrences" style="display:none;">
|
|
|
|
<input type="number" min="1" max="99999" id="until_count" name="byoccurrences" value="<?php echo $_['repeat_count']; ?>"><?php echo $l->t('occurrences'); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<td id="bydate" style="display:none;">
|
|
|
|
<input type="text" name="bydate" value="<?php echo $_['repeat_date']; ?>">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2012-01-31 14:57:09 +04:00
|
|
|
</div>
|
2012-04-22 15:15:03 +04:00
|
|
|
<!--<div id="tabs-3">//Alarm</div>
|
|
|
|
<div id="tabs-4">//Attendees</div>-->
|
2012-04-14 00:20:19 +04:00
|
|
|
<?php if($_['access'] == 'owner') { ?>
|
2012-04-08 06:40:20 +04:00
|
|
|
<div id="tabs-5">
|
2012-05-13 14:28:28 +04:00
|
|
|
<?php if($_['eventid'] != 'new'){ echo $this->inc('share.dropdown'); } ?>
|
2012-04-08 06:40:20 +04:00
|
|
|
</div>
|
2012-04-14 00:40:10 +04:00
|
|
|
<?php } ?>
|