$tour->tourUserAddValue3 = $_POST['tourUserAddValue3']; } if ($_POST['tourUserAddValue4']) { $tour->tourUserAddName4 = $_POST['tourUserAddName4']; $tour->tourUserAddValue4 = $_POST['tourUserAddValue4']; } if ($_POST['tourUserAddValue5']) { $tour->tourUserAddName5 = $_POST['tourUserAddName5']; $tour->tourUserAddValue5 = $_POST['tourUserAddValue5']; } if ($_POST['tourUserCommentsUser']) { $tour->tourUserCommentsUser = $_POST['tourUserCommentsUser']; } $user->loadLinkedFromDB(); $user->Tours[$tour->getID()] = $tour; apply_discount($user->getID(), $tour->getID()); $user->storeLinkedInDB(); $tour = new Tours($_reg_tourID); $tour->loadLinkedFromDB(); $tour->updateDB(); email_apply($origuser, $tour); $user = $origuser; header("Location: /usertours.php?tourID=" . $tour->getID() . "&message=" . urlencode($message) . "#tour" . $tour->getID()); exit; } } } } } $smarty->assign('message', $message); $smarty->display('apply.html');
$err = bill_select(); if ($err) { error_display($err); } break; case 'bill_select_all': $_SESSION['select_all'] = 1; $err = bill_select(); if ($err) { error_display($err); } break; case 'bill_discount': if (isset($_REQUEST['discount_type'])) { $discount_type = $_REQUEST['discount_type']; $err = apply_discount($discount_type); } else { $err = 1; } status_report('DISCOUNT', $err); $err = bill_select(); if ($err) { error_display($err); } break; case 'bill_quantity': $_SESSION['select_all'] = 0; if (isset($_REQUEST['orderid'])) { $orderid = $_REQUEST['orderid']; } else { $orderid = 0;