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.
 
 
 
 
 
 

106 lines
3.5 KiB

<?php
include "header.php";
?>
<div class="container">
<?php
include "receivable-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">
</div>
<div>
<label for="facilityno">作番號</label>
<input type="text" name="facilityno" id="facilityno">
</div>
<div>
<label for="receivable_date">應繳款日</label>
<input type="text" data-date-format="yyyy-mm-dd" name="receivable_date" id="receivable_date" value="<?php echo date('Y/m/d H:i:s'); ?>">
</div>
<div>
<label for="actual_date">實繳款日</label>
<input type="text" data-date-format="yyyy-mm-dd" name="actual_date" id="actual_date" value="<?php echo date('Y/m/d H:i:s'); ?>">
</div>
<div>
<label for="receivable">應繳款金額</label>
<input type="text" name="receivable" id="receivable" onkeyup="if(value<0)value=0;value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" required>
</div>
<div>
<label for="actual">實繳款金額</label>
<input type="text" name="actual" id="actual" onkeyup="if(value<0)value=0;value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" required>
</div>
<div>
<label for="currency">幣別</label>
<input type="text" name="currency" id="currency">
</div>
<div>
<label for="owner">款項負責人工號</label>
<input type="text" name="owner" id="owner">
</div>
<div>
<label for="status">收款狀態</label>
<Select name="status" id="status" required>
<option selected="selected" disabled="disabled" style="display: none" value=""></option>
<Option Value="P">待結案</Option>
<Option Value="E">已結案</Option>
</Select>
<!-- <input type="text" name="status" id="status"> -->
</div>
<div>
<label for="note">備註</label>
<input type="text" name="note" id="note">
</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 echo 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"; ?>