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.
136 lines
5.9 KiB
136 lines
5.9 KiB
<?php
|
|
include "../header.php";
|
|
$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Record ID not found.');
|
|
if(!empty($id)){
|
|
//查詢合同信息
|
|
$contract_infosql = "select * from fault_notification_job_handling where id='$id'";
|
|
$contract_infodata = mysqli_query($link,$contract_infosql);
|
|
$data= mysqli_fetch_array($contract_infodata, MYSQLI_ASSOC);
|
|
$account=$_GET['account'];
|
|
$permissionsql = "select * from account_permission where permissiontype='B' and accountid='$account'";
|
|
$permissiondata = mysqli_query($link,$permissionsql);
|
|
$row = mysqli_fetch_array($permissiondata, MYSQLI_ASSOC);
|
|
$permission = $row['permission'];
|
|
}
|
|
?>
|
|
<div class="container" >
|
|
<div class="text-center"> <h2>電梯故障通知及作業處理</h2> </div>
|
|
<div class="text-right"> <h5>日期:<?php echo $data['create_at']; ?></h5> </div>
|
|
<table class="table table-striped" style="width:100%">
|
|
<tbody>
|
|
<tr>
|
|
<td style="font-weight: bolder">設備編號</td>
|
|
<td><?php echo $data['facilityno']; ?></td>
|
|
<td style="font-weight: bolder" >名稱</td>
|
|
<td><?php echo $data['sitename']; ?></td>
|
|
<td style="font-weight: bolder" colspan="2">來電者</td>
|
|
<td><?php echo $data['caller']; ?></td>
|
|
<td style="font-weight: bolder;background-color: #eee" rowspan="2"> </td>
|
|
<td style="font-weight: bolder;text-align: center!important;" rowspan="4">客戶確認欄</td>
|
|
<td rowspan="4" style="vertical-align: middle!important;"><?php echo $data['contracttype']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bolder" colspan="4">地址</td>
|
|
<td><?php echo $data['address']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bolder" >棟別</td>
|
|
<td><?php echo $data['buildingnumber']; ?></td>
|
|
<td style="font-weight: bolder">號機</td>
|
|
<td><?php echo $data['positionnumber']; ?></td>
|
|
<td style="font-weight: bolder">保養別</td>
|
|
<td><?php echo $data['maintenanceoperationcategory']; ?></td>
|
|
<td style="font-weight: bolder">廠牌機型</td>
|
|
<td><?php echo $data['brandmodel']; ?></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="10" style="border: 0"></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bolder" >故障狀態</td>
|
|
<td colspan="9"><?php echo $data['faultstate']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bolder" >調查過程</td>
|
|
<td colspan="9"><?php echo $data['investigationprocess']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bolder" >原因分析</td>
|
|
<td colspan="9"><?php echo $data['causeanalysis']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bolder" >處理過程</td>
|
|
<td colspan="9"><?php echo $data['processingprocess']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bolder" >來電時間</td>
|
|
<td ><?php echo $data['calltime']; ?></td>
|
|
<td style="font-weight: bolder" >到達時間</td>
|
|
<td ><?php echo $data['arrivaltime']; ?></td>
|
|
<td colspan="2"></td>
|
|
<td style="font-weight: bolder" >完成時間</td>
|
|
<td ><?php echo $data['completiontime']; ?></td>
|
|
<td style="font-weight: bolder" >返回時間</td>
|
|
<td ><?php echo $data['returntime']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bolder" >處理人員</td>
|
|
<td ><?php echo $data['handlestaff']; ?></td>
|
|
<td style="font-weight: bolder" >支持人員</td>
|
|
<td ><?php echo $data['supportstaff']; ?></td>
|
|
<td colspan="2"></td>
|
|
<td style="font-weight: bolder" >支援時間</td>
|
|
<td ><?php echo $data['supporttime']; ?></td>
|
|
<td style="font-weight: bolder" >故障代碼</td>
|
|
<td ><?php echo $data['faultcode']; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-weight: bolder" >作業人員</td>
|
|
<td ><?php echo $data['operationstaff']; ?></td>
|
|
<td style="font-weight: bolder" >存檔人員</td>
|
|
<td ><?php echo $data['filingstaff']; ?></td>
|
|
<td style="font-weight: bolder" >主管</td>
|
|
<td ><?php echo $data['supervisor'].$data['contentdescription']; ?></td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td style="font-weight: bolder" >備註欄</td>
|
|
<td colspan="9"><?php echo $data['remarks']; ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<?php if($permission==0) {?>
|
|
|
|
<form class="form-horizontal" method="post" action="fault-detail-submit.php" enctype="multipart/form-data">
|
|
|
|
|
|
<div class="text-left"> <h4>內容說明</h4> </div>
|
|
<table>
|
|
<div class="col-md-12">
|
|
<textarea rows="5" cols="5" name="Contentdescription"></textarea>
|
|
</div>
|
|
</table>
|
|
<?php if ($user_auth&2) { ?>
|
|
<table>
|
|
<div class="col-md-12 text-center">
|
|
<button type="submit" name="submit" id="submit" class="btn btn-primary btn-lg" style="margin-top: 20px;">信息確認</button>
|
|
</div>
|
|
<input type="hidden" name="id" value="<?=$_GET['id'];?>">
|
|
<input type="hidden" name="account" value="<?=$_GET['account'];?>">
|
|
</table>
|
|
<?php } ?>
|
|
</form>
|
|
<?php }?>
|
|
</div>
|
|
<?php
|
|
#代表結束連線
|
|
mysqli_close($link);
|
|
|
|
include "../footer.php";
|
|
?>
|
|
|
|
|
|
|