Exemplo n.º 1
0
    if ($process != false) {
        header("Location:../lienhe.php?send=success");
    } else {
        header("Location:../lienhe.php?send=failed");
    }
}
if (isset($_POST["btnNangVip"]) && isset($_GET['iddv'])) {
    include_once "../../BUS/DichVuVIPBUS.php";
    $iddv = $_GET['iddv'];
    $txtNoiDung = $_POST["txtNoiDung"];
    $cbbMonth = (int) $_POST["cbbMonth"] * 30;
    $time_send = date('Y-m-d');
    $time_update = date('Y-m-d');
    $status = 0;
    echo "<br>ngayupdate=" . $time_update;
    $process = DichVuVIPBUS::Add($iddv, $txtNoiDung, $time_send, $time_update, $cbbMonth, $status);
    if ($process != false) {
        header("Location:../nangcaptinvip.php?iddv=" . $iddv . "&send=success");
    } else {
        header("Location:../nangcaptinvip.php?iddv=" . $iddv . "&send=failed");
    }
}
if (isset($_POST["btnChangeInfoUser"])) {
    include "../../BUS/UsersBUS.php";
    $id = $_GET["id"];
    $username = $_POST["txtUsername"];
    $address = $_POST["txtAddress"];
    $dt1 = $_POST["txtTelephoneNumber"];
    if (isset($_POST["txtMobileNumber"])) {
        $dt2 = $_POST["txtMobileNumber"];
    } else {