addChoice('invoice_electronic', array('1' => __('Yes'), '0' => __('No'))); addChoice('service_alco', array('1' => __('Yes'), '0' => __('No'))); addChoice('num_person_count', array('1' => __('Yes'), '0' => __('No'))); /* ### GETTING DATA FROM ENTRY OR DEFAULTS ### */ $entry_add = TRUE; $copy_entry = false; if ($entry_id != 0 || isset($_GET['copy_entry_id'])) { if ($entry_id != 0) { $entry_add = FALSE; } else { $entry_id = $_GET['copy_entry_id']; $copy_entry = true; } $entry = getEntry($entry_id); if (!count($entry)) { $entry = getEntryDeleted($entry_id); if (!count($entry)) { echo __('Can\'t find entry'); exit; } else { $copy_entry = true; $deleted = true; } } else { $deleted = false; } // Add the values to $entry_fields addValue('entry_id', $entry['entry_id']); addValue('entry_title', $entry['entry_title']); addValue('entry_type_id', $entry['entry_type_id']); addValue('time_start', $entry['time_start']);
} } if (count($error)) { emailSendAdmin('Problems in entry_delete', 'The two entry tables "entry" and "entry_delete" are not the same.' . chr(10) . 'Following differences where found:' . chr(10) . chr(10) . ' - ' . implode(chr(10) . ' - ', $error) . chr(10)); echo 'Et problem oppsto. Utvikleren av systemet har glemt å fikse en ting. Si fra til systemansvarlig for bookingsystemet.<br /><br />'; echo 'Sletting vil ikke være tilgjengelig før dette er fikset.'; exit; } // Checking what we are doing $action_delete = !(isset($_GET['undelete']) && $_GET['undelete'] == '1'); if (!isset($_GET['entry_id'])) { $entry = array(); } elseif ($action_delete) { $entry = getEntry($_GET['entry_id']); } else { $entry = getEntryDeleted($_GET['entry_id']); } if (!count($entry)) { if ($action_delete) { echo 'Finner ikke bookingen du vil slette. Muligens den allerede er slettet.<br /><br />'; echo '- <a href="entry.php?entry_id=' . (int) $_GET['entry_id'] . '">Tilbake</a>'; exit; } else { echo 'Finner ikke bookingen du vil gjenopplive.<br /><br />'; echo '- <a href="entry.php?entry_id=' . (int) $_GET['entry_id'] . '">Tilbake</a>'; exit; } } // Please confirm if (!isset($_GET['confirmed']) || $_GET['confirmed'] != 1) { print_header($day, $month, $year, $area);