|
@ -5,11 +5,18 @@ require_once("./conn.php"); |
|
|
<link rel="stylesheet" href="./styles/style.css"> |
|
|
<link rel="stylesheet" href="./styles/style.css"> |
|
|
<link rel="stylesheet" href="semantic/dist/semantic.min.css"> |
|
|
<link rel="stylesheet" href="semantic/dist/semantic.min.css"> |
|
|
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> |
|
|
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> |
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/1.5.0/axios.min.js" integrity="sha512-aoTNnqZcT8B4AmeCFmiSnDlc4Nj/KPaZyB5G7JnOnUEkdNpCZs1LCankiYi01sLTyWy+m2P+W4XM+BuQ3Q4/Dg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
|
|
|
|
|
|
|
|
<div class="contract-input-component" x-data="{ |
|
|
<div class="contract-input-component" x-data="{ |
|
|
init(){ |
|
|
init(){ |
|
|
console.log(123456) |
|
|
$('select.dropdown') |
|
|
|
|
|
.dropdown(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
isLoading:false, |
|
|
|
|
|
save(){ |
|
|
|
|
|
this.isLoading = true |
|
|
|
|
|
console.log(12345678); |
|
|
|
|
|
} |
|
|
}"> |
|
|
}"> |
|
|
<form method="post" id="form" enctype="multipart/form-data"> |
|
|
<form method="post" id="form" enctype="multipart/form-data"> |
|
|
<input type="hidden" name='form_name' value="main_form" /> |
|
|
<input type="hidden" name='form_name' value="main_form" /> |
|
@ -198,16 +205,16 @@ require_once("./conn.php"); |
|
|
<td> |
|
|
<td> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
|
|
|
<td>合約開始時間</td> |
|
|
|
|
|
<td colspan="7"> |
|
|
|
|
|
<div style="max-height:250px;overflow-y:auto;"> |
|
|
|
|
|
<input class="form-control disabled_select" type="date" name="contracttel" value="" > |
|
|
|
|
|
</div> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</tbody> |
|
|
</tbody> |
|
|
</table> |
|
|
</table> |
|
|
|
|
|
<button @click="save()" :disabled="isLoading ? true : false" type="button" class="btn btn-primary btn-lg pull-right savebtn"> |
|
|
|
|
|
<template x-if="!isLoading"> |
|
|
|
|
|
<span>存檔</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template x-if="isLoading"> |
|
|
|
|
|
<div class="loader"></div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</form> |
|
|
</form> |
|
|
</div> |
|
|
</div> |
|
@ -216,8 +223,3 @@ require_once("./conn.php"); |
|
|
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" |
|
|
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" |
|
|
crossorigin="anonymous"></script> |
|
|
crossorigin="anonymous"></script> |
|
|
<script src="semantic/dist/semantic.min.js" ></script> |
|
|
<script src="semantic/dist/semantic.min.js" ></script> |
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
$('select.dropdown') |
|
|
|
|
|
.dropdown(); |
|
|
|
|
|
</script> |
|
|
|
|
|