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.
 
 
 
 
 
 

100 lines
3.1 KiB

<?php
include "header.php";
?>
<div class="container">
<?php
include "equipment-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="category">類別</label>
<input type="text" name="category" id="category">
</div>
<div>
<label for="equipment_id">部品號</label>
<input type="text" name="equipment_id" id="equipment_id">
</div>
<div>
<label for="equipment_name">部品名稱</label>
<input type="text" name="equipment_name" id="equipment_name">
</div>
<div>
<label for="brand">廠牌</label>
<input type="text" name="brand" id="brand">
</div>
<div>
<label for="spec">規格</label>
<input type="text" name="spec" id="spec" >
</div>
<div>
<label for="count_type">計量單位</label>
<input type="text" name="count_type" id="count_type" >
</div>
<div>
<label for="inventory">庫存數</label>
<input type="text" name="inventory" id="inventory" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" required>
</div>
<div>
<label for="list_price">牌價</label>
<input type="text" name="list_price" id="list_price">
</div>
<div>
<label for="discount">折扣</label>
<input type="text" name="discount" id="discount" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" required>
</div>
<div>
<label for="final_price">最後售價</label>
<input type="text" name="final_price" id="final_price" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" required>
</div>
<div>
<label for="creater">建檔人</label>
<input type="text" name="creater" id="creater" value="<?php echo $user_id; ?>" readonly>
</div>
<div>
<!-- <label for="create_at">create_at</label> -->
<input type="hidden" name="create_at" id="create_at">
</div>
<div class="bottom-margin">
<label for="fileToUpload">上傳圖片</label>
<div>
<input type="file" name="fileToUpload" id="fileToUpload">
</div>
</div>
<p>
<div>
<button type="submit" name="submit">確定</button>
</div>
<input type="hidden" name="token" value="<?php echo $token; ?>">
</form>
</div>
<?php include "footer.php"; ?>