diff --git a/mkt/pricereview-create.php b/mkt/pricereview-create.php
index 244613c6..0b0df200 100644
--- a/mkt/pricereview-create.php
+++ b/mkt/pricereview-create.php
@@ -1,549 +1,571 @@
-
-
-
-Please fill up the required field!";
- } else {
- echo "
Record has added successfully
";
- }
-}
-*/
-?>
-
-
-
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/wms/mkt/pricereview-create.php b/wms/mkt/pricereview-create.php
index 6680345a..0e962cb3 100644
--- a/wms/mkt/pricereview-create.php
+++ b/wms/mkt/pricereview-create.php
@@ -12,7 +12,7 @@ if ($row = mysqli_fetch_row($res)) {
} else {
echo "";
exit;
}
@@ -24,7 +24,7 @@ $row = mysqli_fetch_row($res);
if ($row[0] > 0) {
echo "";
exit;
}
@@ -39,7 +39,7 @@ if ($row = mysqli_fetch_assoc($res)) {
mysqli_free_result($res);
if (count($last_pr_arr) > 0) {
$last_pr_arr["qty_total"] = $last_pr_arr["pay_all_scale"] = $last_pr_arr["pay_all_amount"] = 0;
- $sql = "select * from pricereview_item where mid = '".$last_pr_arr["id"]."'";
+ $sql = "select * from pricereview_item where mid = '" . $last_pr_arr["id"] . "'";
$res = mysqli_query($link, $sql);
while ($row = mysqli_fetch_assoc($res)) {
$last_pritem_arr[$row["item_group"]][$row["item_no"]] = $row;
@@ -49,7 +49,7 @@ if (count($last_pr_arr) > 0) {
}
mysqli_free_result($res);
- $sql ="select * from pricereview_pay where mid = '".$last_pr_arr["id"]."' order by pay_kind";
+ $sql = "select * from pricereview_pay where mid = '" . $last_pr_arr["id"] . "' order by pay_kind";
$res = mysqli_query($link, $sql);
while ($row = mysqli_fetch_assoc($res)) {
$last_prpay_arr[$row["pay_kind"]] = $row;
@@ -101,7 +101,7 @@ while ($row = mysqli_fetch_row($res)) {
$hope_elev_spec_arr[$row[0]]["spec_num"] = $row[6];
$hope_elev_spec_arr[$row[0]]["spec_price"] = $row[7];
$hope_elev_spec_arr[$row[0]]["op"] = $op_arr[$row[8]];
- $hope_elev_spec_amt += $row[6]*$row[7];
+ $hope_elev_spec_amt += $row[6] * $row[7];
$hope_elev_spec_num += $row[6];
}
mysqli_free_result($res);
@@ -127,7 +127,7 @@ if ($last_pr_arr) {
$price_total = $last_pr_arr["price_total"];
$qty_total = $last_pr_arr["qty_total"];
} else {
- $price_total = $hope_elev_spec_amt;// + $hope_elev_opt_amt;
+ $price_total = $hope_elev_spec_amt; // + $hope_elev_opt_amt;
$qty_total = $hope_elev_spec_num;
}
@@ -161,16 +161,16 @@ foreach ($opt_data_arr as $k => $v) {
if ($v3["optional"] == "1") $optional = "標";
elseif ($v3["optional"] == "2") $optional = "選";
$option_str .= "";
- $option_str .= "".$k2." | ";
- $option_str .= "".$v3["spec"]." | ";
- $option_str .= "".$v3["memo"]." | ";
- $option_str .= "".$optional." | ";
- $option_str .= "".$v3["unit"]." | ";
- $option_str .= "".number_format($v3["price"])." | ";
+ $option_str .= "" . $k2 . " | ";
+ $option_str .= "" . $v3["spec"] . " | ";
+ $option_str .= "" . $v3["memo"] . " | ";
+ $option_str .= "" . $optional . " | ";
+ $option_str .= "" . $v3["unit"] . " | ";
+ $option_str .= "" . number_format($v3["price"]) . " | ";
$option_str .= "
";
}
}
- /*
+ /*
$group_nums = count($v2);
$i = 1;
foreach ($v2 as $k3 => $v3) {
@@ -195,199 +195,231 @@ foreach ($opt_data_arr as $k => $v) {
$option_str .= "";
?>
@@ -1000,59 +1145,59 @@ $(function(){
-
+
-
-
-
-Please fill up the required field!";
@@ -1061,8 +1206,8 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
}
}
*/
-?>
-
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+ |
+ |
+ |
+ |
+ |
+ 電梯
+ X
+ |
+
+
+
+ 小計 |
+ |
+
+
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- " readonly>
-
-
-
-
-
-
-
- ">
-
-
-
- 0) {
- echo number_format(($last_pr_arr["price_total"]-$last_pr_arr["price_lowest"])/$last_pr_arr["qty_total"]);
- } ?>" readonly>
-
-
-
- " required>
-
-
-
- " required>
-
-
-
-
- ">
-
-
-
- ">
-
-
-
- ">
-
-
-
- ">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ " readonly>
+
+
+
+
+
+
+
+ ">
+
+
+
+ 0) {
+ echo number_format(($last_pr_arr["price_total"] - $last_pr_arr["price_lowest"]) / $last_pr_arr["qty_total"]);
+ } ?>" readonly>
+
+
+
+ " required>
+
+
+
+ " required>
+
+
+
+
+ ">
+
+
+
+ ">
+
+
+
+ ">
+
+
+
+ ">
+
-
+
-
-
-
-
- |
-
-
-
-
- |
-
-
-
-
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
-
- - 營業權限>=85%以上;<88-80%呈至區處長審核;<80%以下呈至總經理審核。
-
-
-
-
X
-
-
-
X
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ - 營業權限>=85%以上;<88-80%呈至區處長審核;<80%以下呈至總經理審核。< /li>
+
+
+
+
X
+
+
+
X
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+