示例#1
0
$P3_PAY2_DATE = '';
$P3_PAY2_DATE_DB = '';
$P3_PAY2_DATE_SELECT = '';
$P3_PAY2_CHECK = '';
$P3_PAY3_PROCESS = '';
$P3_PAY3_DATE = '';
$P3_PAY3_DATE_DB = '';
$P3_PAY3_DATE_SELECT = '';
$P3_PAY3_CHECK = '';
$PAYMENT_DATE_1 = '';
$PAYMENT_DATE_2 = '';
$PAYMENT_DATE_3 = '';
initialize_payment_dates($SEASON);
$smarty->assign('daysToFirstPayment', get_payment_date_difference(1));
$smarty->assign('daysToSecondPayment', get_payment_date_difference(2));
$smarty->assign('daysToThirdPayment', get_payment_date_difference(3));
if (isset($_POST['action']) && $_POST['action'] == "Edit Payments") {
    // If form does not validate, we need to return with errors.
    if ($errors = validate_payments_form()) {
        handle_errors($errors);
        handle_reposts();
    } else {
        // If errors occur while trying to create user, we need to return with errors.
        if ($errors = process_payments_form()) {
            handle_errors($errors);
            handle_reposts();
        } else {
            header("Location: editpaymentplan3.php?id={$P3_ID}&success=yes");
        }
    }
} else {
示例#2
0
$P4_PAY3_DATE_SELECT = '';
$P4_PAY3_CHECK = '';
$P4_PAY4_PROCESS = '';
$P4_PAY4_DATE = '';
$P4_PAY4_DATE_DB = '';
$P4_PAY4_DATE_SELECT = '';
$P4_PAY4_CHECK = '';
$PAYMENT_DATE_1 = '';
$PAYMENT_DATE_2 = '';
$PAYMENT_DATE_3 = '';
$PAYMENT_DATE_4 = '';
initialize_payment_dates($SEASON);
$smarty->assign('daysToFirstPayment', get_payment_date_difference(1));
$smarty->assign('daysToSecondPayment', get_payment_date_difference(2));
$smarty->assign('daysToThirdPayment', get_payment_date_difference(3));
$smarty->assign('daysToFourthPayment', get_payment_date_difference(4));
if (isset($_POST['action']) && $_POST['action'] == "Edit Payments") {
    // If form does not validate, we need to return with errors.
    if ($errors = validate_payments_form()) {
        handle_errors($errors);
        handle_reposts();
    } else {
        // If errors occur while trying to create user, we need to return with errors.
        if ($errors = process_payments_form()) {
            handle_errors($errors);
            handle_reposts();
        } else {
            header("Location: editpaymentplan4.php?id={$P4_ID}&success=yes");
        }
    }
} else {
示例#3
0
        $id = $_POST['id'];
    } else {
        header("Location: paymentmanager.php");
    }
}
$P1_AUDIT = $_SESSION['userid'];
$P1_NAME = get_registrant_name($id);
$P1_ID = $id;
$P1_PAY1_PROCESS = '';
$P1_PAY1_DATE = '';
$P1_PAY1_DATE_DB = '';
$P1_PAY1_DATE_SELECT = '';
$P1_PAY1_CHECK = '';
$PAYMENT_DATE_1 = '';
initialize_payment_dates($SEASON);
$smarty->assign('daysToFirstPayment', get_payment_date_difference(1));
if (isset($_POST['action']) && $_POST['action'] == "Edit Payments") {
    // If form does not validate, we need to return with errors.
    if ($errors = validate_payments_form()) {
        handle_errors($errors);
        handle_reposts();
    } else {
        // If errors occur while trying to create user, we need to return with errors.
        if ($errors = process_payments_form()) {
            handle_errors($errors);
            handle_reposts();
        } else {
            header("Location: editpaymentplan1.php?id={$P1_ID}&success=yes");
        }
    }
} else {