You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
920 B
29 lines
920 B
<?php
|
|
ob_start();
|
|
include "header.php";
|
|
|
|
$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Record ID not found.');
|
|
/* 已進入簽核流程
|
|
$db_query = "select checker_1_result from bargin where id = '$id'";
|
|
$res = mysqli_query($link, $db_query);
|
|
$row = mysqli_fetch_array($res, MYSQLI_ASSOC);
|
|
if (!$row || $row["checker_1_result"]) {
|
|
mysqli_free_result($res);
|
|
mysqli_close($link);
|
|
echo "<script>";
|
|
//echo "alert('審核中,已無法刪除');";
|
|
echo "alert('資料無法刪除');";
|
|
echo "location.href='pricereview-index.php'";
|
|
echo "</script>";
|
|
exit;
|
|
}
|
|
*/
|
|
$db_query = "delete from bargain_supplier where bid = '$id'";
|
|
if ($rs = mysqli_query($link, $db_query)) {
|
|
$db_query = "delete from bargain where id = '$id'";
|
|
mysqli_query($link, $db_query);
|
|
}
|
|
|
|
header("Refresh:0; url=bargain-index.php?function_name=bargain&".$token_link);
|
|
ob_end_flush();
|
|
?>
|