include_once 'view_web_list_payment_cart.php';
}
if (isset($_POST['order_sp_trash'])) {
    $id = trim($_POST['order_sp_trash']);
    if ($id == '' || !is_numeric($id)) {
        return false;
    }
    $this->order_sp_trash($id);
    include_once 'view_web_list_payment_cart.php';
}
if (isset($_POST['insert_order_sp'])) {
    $email = check_email($_POST['insert_order_sp']);
    $name = checks_text($_POST['name'], 2);
    $phone = checks_phone($_POST['phone']);
    $tinh_thanh = checks_number($_POST['tinh_thanh']);
    $quan_huyen = checks_number($_POST['quan_huyen']);
    $diachi = checks_text($_POST['diachi'], 2);
    $other = $_POST['other'];
    $tongtien = $_SESSION['order_sp_tongtien'];
    $tongsoluong = $_SESSION['order_sp_tongsoluong'];
    $phigiaohang = $_SESSION['order_sp_phigiao'];
    $giamgia = 0;
    $thanhtien = $_SESSION['order_sp_thanhtien'];
    if ($email == false) {
        return false;
    }
    if ($name == false) {
        return false;
    }
    if ($phone == false) {
        return false;
    include_once 'view_web_list_payment_cart.php';
}
if (isset($_POST['order_sp_trash'])) {
    $id = trim($_POST['order_sp_trash']);
    if ($id == '' || !is_numeric($id)) {
        return false;
    }
    $this->order_sp_trash($id);
    include_once 'view_web_list_payment_cart.php';
}
if (isset($_POST['insert_order_sp'])) {
    $email = check_email($_POST['insert_order_sp']);
    $name = checks_text($_POST['name'], 2);
    $phone = checks_phone($_POST['phone']);
    $city_id = checks_number($_POST['city_id']);
    $districts_id = checks_number($_POST['districts_id']);
    $address = checks_text($_POST['address'], 2);
    $other = $_POST['other'];
    $total_current = $_SESSION['order_total_current'];
    $total_number = $_SESSION['order_sp_total_number'];
    $deliverycosts = $_SESSION['order_deliverycosts'];
    $discounts = 0;
    $total = $_SESSION['order_total'];
    if ($email == false) {
        return false;
    }
    if ($name == false) {
        return false;
    }
    if ($phone == false) {
        return false;