17 require_once dirname(__FILE__).
'/../../calendar_event/calendar_event_edit_fns.inc';
57 if ($asset->writeAccess(
'attributes')) {
59 <script type=
"text/javascript" src=
"<?php echo sq_web_path('data').'/asset_types/calendar_event/js/date_chooser.js'?>"></script>
61 $ts = iso8601_ts($asset->attr(
'start_date'));
62 if ($ts == -1) $ts = 0;
64 hidden_field($prefix.
'_start_end_chooser_printed', 1);
66 <br /><?php translate(
'cal_event_cancel_must_be_date'); ?>
69 echo $asset->getFriendlyDatesAndTimes();
104 $modified_event_asset = NULL;
106 $recurring_event_ids = array_keys($GLOBALS[
'SQ_SYSTEM']->am->getParents($asset->id,
'calendar_event_recurring', FALSE));
107 if (!empty($recurring_event_ids)) {
108 $modified_event_asset =& $GLOBALS[
'SQ_SYSTEM']->am->getAsset($recurring_event_ids[0]);
111 if (!is_null($modified_event_asset)) {
112 echo get_asset_tag_line($modified_event_asset->id);
114 echo translate(
'cal_event_cancel_no_event_selected');