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
4.4 KiB

<?php
include "header.php";
?>
<div class="container">
<?php
include "schedule-record-submit.php";
/*
if($_SERVER["REQUEST_METHOD"] == "POST"){
if(empty($_POST["id"]) && empty($_POST["expert_id"]) && empty($_POST["personal_id"])){
echo "<p class='error'>Please fill up the required field!</p>";
} else {
echo "<p class='success'>Record has added successfully</p>";
}
}
*/
?>
<form class="form-inline" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" enctype="multipart/form-data">
<div>
<label for="contractno">合約號(必填)</label>
<input type="text" name="contractno" id="contractno" required>
</div>
<div>
<label for="facilityno">作番號(必填)</label>
<input type="text" name="facilityno" id="facilityno" required>
</div>
<div>
<label for="combono">保養套餐編號(必填)</label>
<input type="text" name="combono" id="combono" required>
</div>
<div>
<label for="repairerid">保養人員工號(必填)</label>
<input type="text" name="repairerid" id="repairerid" required>
</div>
<div>
<label for="repairername">保養人員姓名(必填)</label>
<input type="text" name="repairername" id="repairername" required>
</div>
<div>
<label for="duedate">應保養日期(必填)</label>
<input type="text" name="duedate" id="duedate" data-date-format="yyyy-mm-dd" value="<?php echo date('Y/m/d H:i:s'); ?>" required>
</div>
<!--
<div>
<label for="actualdate">實際保養日期</label>
<input type="text" name="actualdate" id="actualdate" data-date-format="yyyy-mm-dd" value="">
</div>
<div>
<label for="item">保養項目編號</label>
<input type="text" name="item" id="item" >
</div>
<div>
<label for="item_detail">保養項目內容</label>
<input type="text" name="item_detail" id="item_detail" >
</div>
<div>
<label for="result">保養結果</label>
<input type="text" name="result" id="result" >
</div>
-->
<!--
<div>
<label for="evidences">上傳照片</label>
<input type="text" name="evidences" id="evidences" >
</div>
-->
<!--
<div>
<label for="descriptons">說明</label>
<input type="text" name="descriptons" id="descriptons" >
</div>
<div>
<label for="customer_login_id">客戶評價登入帳號</label>
<input type="text" name="customer_login_id" id="customer_login_id" >
</div>
<div>
<label for="customer_login_name">客戶姓名</label>
<input type="text" name="customer_login_name" id="customer_login_name" >
</div>
<div>
<label for="stars">評價等級(1-5星)</label>
<input type="text" name="stars" id="stars" onkeyup="if(value<0)value=0;if(value>5)value=5;value=value.replace(/^\D*(\d*(?:\.\d)?).*$/g, '$1')">
</div>
<div>
<label for="details">內容</label>
<input type="text" name="details" id="details" >
</div>
<div>
<label for="customer_signature">簽名檔</label>
<input type="text" name="customer_signature" id="customer_signature" >
</div>
-->
<div>
<label for="creater">建檔人</label>
<input type="text" name="creater" id="creater" value="<?php echo $user_id; ?>" readonly>
<p class="error"><?php echo $creater_error; ?></p>
</div>
<div>
<!-- <label for="create_at">create_at</label> -->
<input type="hidden" name="create_at" id="create_at" value="<?php date('Y/m/d H:i:s'); ?>">
<p class="error"><?php echo $create_at_error; ?></p>
</div>
<div>
<button type="submit" name="submit">確認</button>
</div>
<input type="hidden" name="token" value="<?php echo $token; ?>">
</form>
</div>
<?php include "footer.php"; ?>