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.
21 lines
649 B
21 lines
649 B
<?php
|
|
error_reporting(E_ALL);
|
|
ini_set("display_errors", "On");
|
|
require_once './wf_common.php';
|
|
|
|
require_once './model/HopeContractCustomerModel.php';
|
|
|
|
$request = $_SERVER['REQUEST_METHOD'] == "GET" ? $_GET : $_POST;
|
|
|
|
$hecm = new HopeContractCustomerModel();
|
|
$cols = $hecm->fillable;
|
|
foreach ($cols as $col) {
|
|
if (!in_array($col, array_keys($request))) {
|
|
continue;
|
|
}
|
|
$data[$col] = empty($request[$col]) ? NULL : $request[$col];
|
|
}
|
|
$hecm->update([['vol_no', $request['vol_no']]], $data);
|
|
|
|
echo"<script>alert('已保存');</script>";
|
|
header("Location:"."https://www.masada.com.tw/wms/crm/crmm02-index.php?token=".$request['token']);
|
|
|