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.3 KiB

<?php
include "header.php";
?>
<div class="container">
<?php
include "contract-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="contracttype">合約類型(必填)</label>
<Select name="contracttype" id="contracttype" required>
<option selected="selected" disabled="disabled" style="display: none" value=""></option>
<Option Value="A">定期保養</Option>
<Option Value="B">單次保養</Option>
<Option Value="C">單次維修</Option>
</Select>
</div>
<div>
<label for="contractno">合約號(必填)</label>
<input type="text" name="contractno" id="contractno" required>
</div>
<div>
<label for="company">公司名稱</label>
<input type="text" name="company" id="company" >
</div>
<div>
<label for="taxid">統一編號</label>
<input type="text" name="taxid" id="taxid" >
</div>
<div>
<label for="address">地址</label>
<input type="text" name="address" id="address" >
</div>
<div>
<label for="tel">電話</label>
<input type="text" name="tel" id="tel" >
</div>
<div>
<label for="promiser">立約人</label>
<input type="text" name="promiser" id="promiser">
</div>
<div>
<label for="customerid">客戶維護帳號(必填)</label>
<input type="text" name="customerid" id="customerid" required>
</div>
<div>
<label for="contractperson">業務聯繫人</label>
<input type="text" name="contractperson" id="contractperson" >
</div>
<div>
<label for="contractaddress">業務聯繫人地址</label>
<input type="text" name="contractaddress" id="contractaddress" >
</div>
<div>
<label for="contracttel">業務聯繫人電話(必填)</label>
<input type="text" name="contracttel" id="contracttel" required>
</div>
<div>
<label for="contractemail">業務聯繫人郵件地址</label>
<input type="text" name="contractemail" id="contractemail" >
</div>
<div>
<label for="contract_employee">契約人員工號</label>
<input type="text" name="contract_employee" id="contract_employee" >
</div>
<div>
<label for="start_date">合約起始年月日(必填)</label><br>
<input type="text" data-date-format="yyyy-mm-dd" name="start_date" id="start_date" value="<?php echo date('Y-m-d'); ?>" required>
</div>
<div>
<label for="end_date">合約終止年月日(必填)</label><br>
<input type="text" data-date-format="yyyy-mm-dd" name="end_date" id="end_date" value="<?php echo date('Y-m-d',strtotime('+364 day')); ?>" required>
</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>
<br>
<button type="submit" name="submit">確定</button>
</div>
<input type="hidden" name="token" value="<?php echo $token; ?>">
</form>
</div>
<?php include "footer.php"; ?>