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.
71 lines
2.9 KiB
71 lines
2.9 KiB
<?php
|
|
require_once "database.php";
|
|
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|
|
|
foreach ($_POST as $k => $v) {
|
|
$$k = htmlspecialchars(stripslashes(trim($v)));
|
|
}
|
|
$account=$_POST['account'];
|
|
$facilityno=$_POST['facilityno'];
|
|
$sitename=$_POST['sitename'];
|
|
$caller=$_POST['caller'];
|
|
$customerconfirmationbar='';
|
|
$address=$_POST['address'];
|
|
$buildingnumber=$_POST['buildingnumber'];
|
|
$positionnumber=$_POST['positionnumber'];
|
|
$maintenanceoperationcategory=$_POST['maintenanceoperationcategory'];
|
|
$brandmodel=$_POST['brandmodel'];
|
|
$faultstate=$_POST['faultstate'];
|
|
$investigationprocess=$_POST['investigationprocess'];
|
|
$causeanalysis=$_POST['causeanalysis'];
|
|
$processingprocess=$_POST['processingprocess'];
|
|
$calltime=$_POST['calltime'];
|
|
$arrivaltime=$_POST['arrivaltime'];
|
|
$completiontime=$_POST['completiontime'];
|
|
$returntime=$_POST['returntime'];
|
|
$handlestaff=$_POST['handlestaff'];
|
|
$supportstaff=$_POST['supportstaff'];
|
|
$supporttime=$_POST['supporttime'];
|
|
$faultcode=$_POST['faultcode'];
|
|
$remarks=$_POST['remarks'];
|
|
|
|
$operationstaff=$account;
|
|
$filingstaff=$_POST['filingstaff'];
|
|
$supervisor= $_POST['supervisor'];
|
|
$creater = $_POST['creater'];
|
|
$create_at = date('Y/m/d H:i:s');
|
|
$updatee_at=date('Y/m/d H:i:s');
|
|
$id= $_POST['id'];
|
|
|
|
$db_query = "update fault_notification_job_handling set facilityno = '$facilityno',";
|
|
$db_query .= "sitename = '$sitename', caller = '$caller', customerconfirmationbar = '$customerconfirmationbar', address = '$address',";
|
|
$db_query .= "buildingnumber = '$buildingnumber', positionnumber = '$positionnumber', maintenanceoperationcategory = '$maintenanceoperationcategory',";
|
|
$db_query .= "brandmodel = '$brandmodel', faultstate = '$faultstate', investigationprocess = '$investigationprocess',causeanalysis = '$causeanalysis',";
|
|
$db_query .= "processingprocess = '$processingprocess', calltime = '$calltime', arrivaltime = '$arrivaltime',completiontime = '$completiontime',";
|
|
$db_query .= "returntime = '$returntime', handlestaff = '$handlestaff', supportstaff = '$supportstaff',supporttime = '$supporttime',";
|
|
|
|
$db_query .= "faultcode = '$faultcode', remarks = '$remarks', operationstaff = '$operationstaff',filingstaff = '$filingstaff',";
|
|
$db_query .= "supervisor = '$supervisor', creater = '$creater',";
|
|
$db_query .= "updatee_at ='$updatee_at' ";
|
|
$db_query .= "where id = '$id'";
|
|
|
|
if ($rs = mysqli_query($link, $db_query)) {
|
|
|
|
header("Location: faultreview-index.php?account=".$account);
|
|
|
|
if (mysqli_affected_rows($link) > 0) {
|
|
echo "<script type ='text/JavaScript'>";
|
|
echo "alert('更新成功')";
|
|
echo "</script>";
|
|
|
|
} else {
|
|
echo "<script type ='text/JavaScript'>";
|
|
echo "alert('更新失敗,請重新操作[I]')";
|
|
echo "</script>";
|
|
}
|
|
|
|
}
|
|
mysqli_close($link);
|
|
|
|
}
|
|
?>
|