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.
20 lines
584 B
20 lines
584 B
<?php
|
|
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->create($data);
|
|
|
|
echo "<script>alert('已保存');</script>";
|
|
header("Location:" . "https://www.masada.com.tw/wms/crm/crmm02-index.php?token=" . $request['token']);
|
|
|