public static function delBuy() { $navId = $_GET['navId']; $snavId = $_GET['snavId']; $id = $_GET['buyId']; mod_buy::delBuy($id); render_template("buy.php", array("navId" => $navId, "snavId" => $snavId)); }
public static function saveJoinus() { $params['bus_name'] = $_POST['bus_name']; $params['address'] = $_POST['address']; $params['phone'] = $_POST['phone']; $params['email'] = $_POST['email']; $params['others'] = $_POST['others']; mod_buy::saveJoinus($params); echo json_encode(array("error" => 0)); }