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.
126 lines
4.9 KiB
126 lines
4.9 KiB
<?php
|
|
include "header.php";
|
|
?>
|
|
|
|
<div class="container">
|
|
|
|
<?php
|
|
|
|
include "facility-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="customerid">客戶編號(必填)</label>
|
|
<input type="text" name="customerid" id="customerid" required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="weight">重量(必填)</label>
|
|
<input type="text" name="weight" id="weight" onkeyup="if(value<0)value=0;if(value.length>4)value=value.slice(0,4);value=value.replace(/^\D*(\d*(?:\.\d)?).*$/g, '$1')" required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="numberofstop">停數(必填)</label>
|
|
<input type="text" name="numberofstop" id="numberofstop" onkeyup="if(value<0)value=0;if(value.length>3)value=value.slice(0,3);value=value.replace(/^\D*(\d*(?:\.\d)?).*$/g, '$1')" required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="numberoffloor">樓層數(必填)</label>
|
|
<input type="text" name="numberoffloor" id="numberoffloor" onkeyup="if(value<0)value=0;if(value.length>3)value=value.slice(0,3);value=value.replace(/^\D*(\d*(?:\.\d)?).*$/g, '$1')" required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="opentype">開門方式(必填)</label>
|
|
<Select name="opentype" id="opentype" required>
|
|
<option selected="selected" disabled="disabled" style="display: none" value=""></option>
|
|
<Option Value="CO">CO</Option>
|
|
<Option Value="SO">SO</Option>
|
|
<Option Value="CO-SO">CO-SO</Option>
|
|
</Select>
|
|
<!-- <input type="text" name="opentype" id="opentype" > -->
|
|
</div>
|
|
|
|
<div>
|
|
<label for="speed">速度(必填)</label>
|
|
<input type="text" name="speed" id="speed" onkeyup="if(value<0)value=0;if(value.length>4)value=value.slice(0,4);value=value.replace(/^\D*(\d*(?:\.\d{0,1})?).*$/g, '$1')" required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="repairtype">維修型態(必填)</label>
|
|
<Select name="repairtype" id="repairtype" required>
|
|
<option selected="selected" disabled="disabled" style="display: none" value=""></option>
|
|
<Option Value="A">定期保養</Option>
|
|
<Option Value="B">單次保養</Option>
|
|
<Option Value="C">單次維修</Option>
|
|
</Select>
|
|
<!-- <input type="text" name="repairtype" id="repairtype" > -->
|
|
</div>
|
|
|
|
<div>
|
|
<label for="longitude">經度(必填)</label>
|
|
<input type="text" name="longitude" id="longitude" onkeyup="if(value<0)value=0;if(value.length>11)value=value.slice(0,11);value=value.replace(/^\D*(\d*(?:\.\d{0,7})?).*$/g, '$1')" required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="latitude">緯度(必填)</label>
|
|
<input type="latitude" name="latitude" id="latitude" onkeyup="if(value<0)value=0;if(value.length>11)value=value.slice(0,11);value=value.replace(/^\D*(\d*(?:\.\d{0,7})?).*$/g, '$1')" required>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="address">地址</label>
|
|
<input type="text" name="address" id="address" >
|
|
</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="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">
|
|
<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"; ?>
|
|
|