2022-10-14 16:08:54 +08:00
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-12">
|
|
|
|
<a href="javascript:void(0);" class="btn btn-success waves-effect waves-themed mb-3" id="addUser-btn" onclick="AddUser()"><span class="fal fa-plus mr-1"></span>新增</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<!-- datatable start -->
|
|
|
|
<table id="user_table" class="table table-bordered table-hover m-0 text-center">
|
|
|
|
<thead class="thead-themed">
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>姓名</th>
|
|
|
|
<th>帳號</th>
|
|
|
|
<th>角色</th>
|
|
|
|
<th>email</th>
|
|
|
|
<th>手機號碼</th>
|
|
|
|
<th>建立時間</th>
|
|
|
|
<th>功能</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Modal 人員基本資料 -->
|
|
|
|
<div class="modal fade" id="user-modal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
|
|
|
|
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h4 class="modal-title">
|
|
|
|
人員基本資料 - 新增
|
|
|
|
</h4>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true"><i class="fal fa-times"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="user-form" id="user-form">
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="form-label" for="user_name_modal"><span class="text-danger">*</span>姓名</label>
|
|
|
|
<input type="text" id="user_name_modal" name="user_name_modal" class="form-control">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="form-label" for="user_email_modal"><span class="text-danger">*</span>email</label>
|
|
|
|
<input type="text" id="user_email_modal" name="user_email_modal" class="form-control">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<div style="margin-bottom: 0.3rem">
|
|
|
|
<label class="form-label" for="user_account_modal"><span class="text-danger">*</span>帳號</label>
|
|
|
|
<input type="text" id="user_account_modal" name="user_account_modal" class="form-control">
|
|
|
|
</div>
|
|
|
|
<div class="custom-control custom-checkbox user_account_same_email_div">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="user_account_same_email" />
|
|
|
|
<label class="custom-control-label" for="user_account_same_email">與email相同</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-lg-6 user-password-div">
|
|
|
|
<label class="form-label" for="user_password_modal">密碼</label>
|
2024-08-14 17:11:10 +08:00
|
|
|
<input type="password" id="user_password_modal" name="user_password_modal" class="form-control">
|
2022-10-14 16:08:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="form-label" for="user_role_modal">角色權限</label>
|
|
|
|
<select class="form-control" id="user_role_modal">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="form-label" for="user_phone_modal">手機號碼</label>
|
|
|
|
<input type="text" id="user_phone_modal" class="form-control" maxlength="10" onkeyup="if(event.keyCode !=37 && event.keyCode != 39)value=value.replace(/\D/g,'')" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
|
|
|
<button type="button" class="btn btn-primary" id="save-user-btn" onclick="SaveUser()">確定</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.Modal 人員基本資料 -->
|