Exemple #1
0
        $concheck[] = "game_id=" . $gid;
        print_r($concheck);
        exit;
        $deviceid = $gamehandset->field("device_id", $concheck);
        if (empty($deviceid)) {
            $imported = $gamehandset->save($vals);
        } else {
            flash("Quá trình thêm thiết bị thất bại");
        }
        if ($imported) {
            flash("Quá trình thêm thiết bị thành công!");
        }
    }
    if ($do == "edit") {
        if (!empty($id)) {
            $item = $gamehandset->read("*", $id);
        }
    }
}
if (isset($_POST["del"])) {
    $deleted = false;
    if (is_array($_POST['id'])) {
        $deleted = $gamehandset->del($_POST['id']);
        //echo "Tét" . $deleted;
        if ($deleted) {
            flash("Quá trình xóa lựa chọn thành công");
        } else {
            flash("Quá trình xóa lựa chọn thất bại");
        }
    }
}