// $Id: entry.php,v 1.10 2010/06/27 04:12:30 nobu Exp $ include 'header.php'; include 'perm.php'; $eid = param('eid'); $exid = param('sub'); $uid = param('uid'); $data = fetch_event($eid, $exid, true); $data['past_register'] = eguide_form_options('enable_past_register', 0); $errs = array(); $now = time(); $member_only = $xoopsModuleConfig['member_only'] != ACCEPT_EMAIL && $uid > 0; if (isset($_POST['eid'])) { include 'reserv_func.php'; $myts =& MyTextSanitizer::getInstance(); $vals = get_opt_values($data['optfield'], $errs, false, false); check_prev_order($data, $vals, $errs, true); $value = serialize_text($vals); $url = EGUIDE_URL . '/receipt.php?eid=' . $eid; if ($exid) { $url .= '&sub=' . $exid; } if (!$errs) { $data['closetime'] = 0; // override close order time $accept = $data['autoaccept']; $strict = $data['strict']; $persons = $data['persons']; $num = 1; $nlab = eguide_form_options('label_persons'); if ($nlab && isset($vals[$nlab])) { $num = intval($vals[$nlab]);
echo "<div class='error'>" . _MD_SEND_ERR . "</div>\n"; // delete failer record. $xoopsDB->query('DELETE FROM ' . RVTBL . " WHERE rvid={$rvid}"); count_reserved($eid, $exid, $strict, $persons, -$num); } } if (empty($errs)) { break; } case 'confirm': $xoopsOption['template_main'] = EGPREFIX . '_confirm.html'; $data = fetch_event($eid, $exid); $opts = $data['optfield']; if ($op != 'order') { $vals = get_opt_values($opts, $errs); check_prev_order($data, $vals, $errs); } $emhide = ""; $num = 1; if (isset($_POST['email'])) { $email = $myts->makeTboxData4Edit($_POST['email']); $vals = array_merge(array(_MD_EMAIL => $email), $vals); $emhide = "<input type='hidden' name='email' value='{$email}'/>\n"; if (isset($_POST['email_conf'])) { $emhide .= "<input type='hidden' name='email_conf' value='" . $myts->makeTboxData4Edit($_POST['email_conf']) . "'/>\n"; } if (!empty($_POST['notify'])) { $emhide .= "<input type='hidden' name='notify' value='" . $myts->makeTboxData4Edit($_POST['notify']) . "'/>\n"; } } $xoopsTpl->assign('event', edit_eventdata($data));