17 require_once dirname(__FILE__).
'/../../calendar_event/calendar_event_edit_fns.inc';
59 if ($asset->writeAccess(
'attributes')) {
60 $start_date_attr =& $asset->getAttribute(
'start_date');
61 if (($ts = $start_date_attr->getTimestamp()) == -1) {
65 hidden_field($prefix.
'_start_end_chooser_printed', 1);
67 echo $asset->getFriendlyDatesAndTimes();
102 $modified_event_asset = NULL;
104 $recurring_event_ids = array_keys($GLOBALS[
'SQ_SYSTEM']->am->getParents($asset->id,
'calendar_event_recurring', FALSE));
105 if (!empty($recurring_event_ids)) {
106 $modified_event_asset =& $GLOBALS[
'SQ_SYSTEM']->am->getAsset($recurring_event_ids[0]);
109 if (!is_null($modified_event_asset)) {
110 echo get_asset_tag_line($modified_event_asset->id);
112 echo translate(
'cal_event_modify_no_event_selected');