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.
 
 
 
 
 
 

125 lines
4.1 KiB

<?php
include "../header.php";
$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Record ID not found.');
require_once "database.php";
$data = array();
// sql語法存在變數中
$db_query = "SELECT * FROM account WHERE id=$id";
// 用mysqli_query方法執行(sql語法)將結果存在變數中
$data = mysqli_query($link, $db_query);
/*
include "inc/record_update.php";
try {
// 設置一個空陣列來放資料
$data = array();
// sql語法存在變數中
$db_query = "SELECT * FROM expert WHERE id=$id";
// 用mysqli_query方法執行(sql語法)將結果存在變數中
$data = mysqli_query($link,$db_query);
}catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
*/
foreach ($data as $data) :
?>
<div class="container">
<form class="form-inline" method="post" action="account-record-update.php" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<div>
<label for="accounttype">帳號類別</label>
<input type="text" name="accounttype" id="accounttype" value="<?php echo $data['accounttype']; ?>" readonly>
</div>
<div>
<label for="accountid">帳號</label>
<input type="text" name="accountid" id="accountid" value="<?php echo $data['accountid']; ?>" readonly>
</div>
<div>
<label for="pwd">密碼</label>
<input type="text" name="pwd" id="pwd" value="<?php echo $data['pwd']; ?>">
</div>
<div>
<label for="name">姓名</label>
<input type="text" name="name" id="name" value="<?php echo $data['name']; ?>">
</div>
<div>
<label for="tel">電話</label>
<input type="text" name="tel" id="tel" value="<?php echo $data['tel']; ?>">
</div>
<div>
<label for="address">地址</label>
<input type="text" name="address" id="address" value="<?php echo $data['address']; ?>">
</div>
<div>
<label for="email">電子郵箱</label>
<input type="text" name="email" id="email" value="<?php echo $data['email']; ?>">
</div>
<div>
<label for="lineid">Line ID</label>
<input type="text" name="lineid" id="lineid" value="<?php echo $data['lineid']; ?>">
</div>
<div>
<label for="wechatid">微信ID</label>
<input type="text" name="wechatid" id="wechatid" value="<?php echo $data['wechatid']; ?>">
</div>
<div>
<label for="phone_call_help">聯絡手機號</label>
<input type="text" name="phone_call_help" id="phone_call_help" value="<?php echo $data['phone_call_help']; ?>">
</div>
<div>
<label for="chat_for_help">線上文字客服</label>
<input type="text" name="chat_for_help" id="chat_for_help" value="<?php echo $data['chat_for_help']; ?>">
</div>
<div>
<label for="remote_help">遠端視頻帳號</label>
<input type="text" name="remote_help" id="remote_help" value="<?php echo $data['remote_help']; ?>">
</div>
<div>
<label for="repairerid">服務與支持人員工號</label>
<input type="text" name="repairerid" id="repairerid" value="<?php echo $data['repairerid']; ?>">
</div>
<div>
<label for="manager">直屬主管</label>
<input type="text" name="manager" id="manager" value="<?php echo $data['manager']; ?>">
</div>
<div>
<label for="creater">建檔人</label>
<input type="text" name="creater" id="creater" value="<?php echo $data['creater']; ?>">
</div>
<div>
<button type="submit" name="update">確定</button>
</div>
</form>
</div>
<?php
endforeach;
include "../footer.php";
?>