$event['mon'] = isset($_POST['repeat_days_1']) ? true : false; $event['tue'] = isset($_POST['repeat_days_2']) ? true : false; $event['wed'] = isset($_POST['repeat_days_3']) ? true : false; $event['thu'] = isset($_POST['repeat_days_4']) ? true : false; $event['fri'] = isset($_POST['repeat_days_5']) ? true : false; $event['sat'] = isset($_POST['repeat_days_6']) ? true : false; $event['reminder'] = isset($_POST['reminder']) ? $_POST['reminder'] : '0'; $event['background'] = isset($_POST['background']) ? $_POST['background'] : 'FFFFCC'; $event['location'] = isset($_POST['location']) ? smartstrip($_POST['location']) : ''; $event['permissions'] = isset($_POST['permissions']) ? $_POST['permissions'] : 'everybody_read'; } $datepicker = new date_picker(); $GO_HEADER['head'] = $datepicker->get_header(); require $GO_THEME->theme_path . 'header.inc'; if ($ab_module) { $ab->enable_contact_selector(); } echo '<form name="event_form" method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="calendar_id" value="' . $calendar_id . '" />'; echo '<input type="hidden" name="event_id" value="' . $event_id . '" />'; echo '<input type="hidden" name="task" value="" />'; echo '<input type="hidden" name="close" value="false" />'; echo '<input type="hidden" name="emptyform" value="false" />'; echo '<input type="hidden" name="return_to" value="' . $return_to . '" />'; echo '<input type="hidden" name="link_back" value="' . $link_back . '" />'; //address_string used by the addressbok selector echo '<input type="hidden" name="address_string" value="" />'; $tabtable = new tabtable('event_table', $title, '600', '400', '120', '', true, 'left', 'top', 'event_form'); if ($event_id > 0) { if ($cal->get_participants($event_id)) { $tabtable->add_tab('properties', $strProperties);