prepare($sql_str); $stmt->bindParam(':id', $id); $stmt->execute(); $contract= $stmt->fetch(PDO::FETCH_ASSOC); // echo '
'; // print_r($contract); // echo ''; // $files_id = $contract['files_id']; // $sql_str = "SELECT * FROM contract_back_files WHERE files_id = :files_id "; // $stmt = $conn->prepare($sql_str); // $stmt->bindParam(':files_id', $files_id); // $stmt->execute(); // $files= $stmt->fetchAll(PDO::FETCH_ASSOC); // $files = json_encode($files); $accounttype = "M"; $sql_str = "SELECT accountid, name FROM account WHERE accounttype = :accounttype"; $stmt = $conn->prepare($sql_str); $stmt->bindParam(":accounttype", $accounttype); $stmt -> execute(); $persons = $stmt->fetchAll(PDO::FETCH_ASSOC); $persons = array_map(function($person){ return [ 'view'=>$person['accountid'] .'-'. $person['name'], 'value'=>$person['accountid'], 'name'=>$person['name'] ]; }, $persons); ?>
合約管理(修理) |
|||||||
檢視合約 |
|||||||
立約人 |
未填寫 |
維保人員 |
未填寫 |
電梯編號 |
未填寫 |
報價單編號 |
未填寫 |
工程類別 |
未填寫 |
簽訂時間 |
未填寫 |
發票抬頭 |
未填寫 |
統一編號 |
未填寫 |
工程地址 |
未填寫 |