수정 본
This commit is contained in:
@@ -4,6 +4,17 @@
|
||||
<style>
|
||||
th {
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 테이블 헤더 좌우 여백 조정 */
|
||||
#userList thead th {
|
||||
padding-left: 4px !important;
|
||||
padding-right: 4px !important;
|
||||
}
|
||||
|
||||
td {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#userList tbody tr {
|
||||
@@ -18,161 +29,198 @@
|
||||
background-color: #ff0000 !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
/* PC에서 가로 스크롤이 잘리는 대표 구간들 강제 해제 */
|
||||
.main-card,
|
||||
.card,
|
||||
.card-body {
|
||||
overflow-x: visible !important;
|
||||
}
|
||||
|
||||
/* 만약 레이아웃 wrapper가 숨기고 있으면 이것도 */
|
||||
.app-main__outer,
|
||||
.app-main__inner,
|
||||
.app-main {
|
||||
overflow-x: visible !important;
|
||||
}
|
||||
|
||||
/* flex 환경에서 필수 */
|
||||
.app-main,
|
||||
.app-main__outer,
|
||||
.app-main__inner,
|
||||
.card,
|
||||
.card-body {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* 검색 영역 행마다 구분선 추가 */
|
||||
#frm_srch_info .row.g-3 {
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid #e9ecef;
|
||||
}
|
||||
|
||||
#frm_srch_info .row.g-3:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h1>현장확인인원별배정현황</h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-body">
|
||||
<form class="row align-items-end" id="frm_srch_info" onsubmit="return false;">
|
||||
|
||||
<!-- 1줄 -->
|
||||
<div class="row mb-3">
|
||||
<!-- 관할조직 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">관할조직</label>
|
||||
<div class="row g-2">
|
||||
<div class="col-6">
|
||||
<select class="form-control" name="bonbu" id="bonbu">
|
||||
<option value="">선택</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<select class="form-control" name="dept_sq" id="dept_sq">
|
||||
<option value="">선택</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 유형 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">유형</label>
|
||||
<select class="form-control" name="schDateGb">
|
||||
<option value="1">예약일자</option>
|
||||
<option value="2">등록일자</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 기준일자 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1">기준일자</label>
|
||||
<div class="row g-2">
|
||||
<div class="col-5">
|
||||
<input type="date" class="form-control" id="sdate" name="sdate">
|
||||
</div>
|
||||
<div class="col-2 d-flex align-items-center justify-content-center">~</div>
|
||||
<div class="col-5">
|
||||
<input type="date" class="form-control" id="edate" name="edate">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 지역검색 -->
|
||||
<div class="col-md-4">
|
||||
<label class="form-label mb-1">지역검색</label>
|
||||
<div class="row g-2">
|
||||
<div class="col-4">
|
||||
<select class="form-control" name="srcSido" id="srcSido">
|
||||
<option value="">시/도</option>
|
||||
<?php foreach ($sido as $s): ?>
|
||||
<option value="<?= $s['region_cd'] ?>"><?= $s['region_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<select class="form-control" name="srcGugun" id="srcGugun">
|
||||
<option value="">시/군/구</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<select class="form-control" name="srcDong" id="srcDong">
|
||||
<option value="">읍/면/동</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 2줄 -->
|
||||
<div class="row mb-3">
|
||||
<!-- 검색유형 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1">검색유형</label>
|
||||
<select class="form-control" name="srchType">
|
||||
<option value="">선택</option>
|
||||
<option value="1">아이디</option>
|
||||
<option value="2">이름</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 검색어 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">검색어</label>
|
||||
<input type="text" class="form-control" name="srchTxt" placeholder="검색어 입력">
|
||||
</div>
|
||||
|
||||
<!-- 검색버튼 -->
|
||||
<div class="col-md-1 d-grid align-items-end">
|
||||
<button type="button" class="btn btn-primary" id="btnSearch">검색</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-header bg-white border-bottom shadow-sm">
|
||||
<div class="d-flex flex-wrap align-items-center gap-3 card-header-tab">
|
||||
<div>
|
||||
<h4 class="mb-0 fw-bold text-dark">현장확인인원별배정현황</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form id="frm_srch_info" onsubmit="return false;">
|
||||
|
||||
<!-- 1줄 -->
|
||||
<div class="row g-3 mb-3">
|
||||
<!-- 관할조직 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1 text-sm fw-semibold text-muted">관할조직</label>
|
||||
<div class="row g-2">
|
||||
<div class="col-6">
|
||||
<select class="form-control form-control-sm" name="bonbu" id="bonbu">
|
||||
<option value="">선택</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<select class="form-control form-control-sm" name="dept_sq" id="dept_sq">
|
||||
<option value="">선택</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 유형 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1 text-sm fw-semibold text-muted">유형</label>
|
||||
<select class="form-control form-control-sm" name="schDateGb">
|
||||
<option value="1">예약일자</option>
|
||||
<option value="2">등록일자</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 기준일자 -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label mb-1 text-sm fw-semibold text-muted">기준일자</label>
|
||||
<div class="row g-2">
|
||||
<div class="col-5">
|
||||
<input type="date" class="form-control form-control-sm" id="sdate" name="sdate">
|
||||
</div>
|
||||
<div class="col-2 d-flex align-items-center justify-content-center">~</div>
|
||||
<div class="col-5">
|
||||
<input type="date" class="form-control form-control-sm" id="edate" name="edate">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 지역검색 -->
|
||||
<div class="col-md-4">
|
||||
<label class="form-label mb-1 text-sm fw-semibold text-muted">지역검색</label>
|
||||
<div class="row g-2">
|
||||
<div class="col-4">
|
||||
<select class="form-control form-control-sm" name="srcSido" id="srcSido">
|
||||
<option value="">시/도</option>
|
||||
<?php foreach ($sido as $s): ?>
|
||||
<option value="<?= $s['region_cd'] ?>"><?= $s['region_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<select class="form-control form-control-sm" name="srcGugun" id="srcGugun">
|
||||
<option value="">시/군/구</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<select class="form-control form-control-sm" name="srcDong" id="srcDong">
|
||||
<option value="">읍/면/동</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 2줄 -->
|
||||
<div class="row g-3">
|
||||
<!-- 검색유형 -->
|
||||
<div class="col-md-1">
|
||||
<label class="form-label mb-1 text-sm fw-semibold text-muted">검색유형</label>
|
||||
<select class="form-control form-control-sm" name="srchType">
|
||||
<option value="">선택</option>
|
||||
<option value="1">아이디</option>
|
||||
<option value="2">이름</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- 검색어 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1 text-sm fw-semibold text-muted">검색어</label>
|
||||
<input type="text" class="form-control form-control-sm" name="srchTxt" placeholder="검색어 입력">
|
||||
</div>
|
||||
|
||||
<!-- 검색버튼 -->
|
||||
<div class="col-md-1 d-flex align-items-end">
|
||||
<button type="button" class="btn btn-primary btn-sm w-100" id="btnSearch">검색</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-header d-flex align-items-center">
|
||||
<h3 class="card-title mb-0">사용자 목록</h3>
|
||||
<div class="ms-auto d-flex align-items-center gap-3">
|
||||
<button class="mb-2 me-2 border-0 btn-transition btn btn-shadow btn-outline-success"
|
||||
id="excel-download">
|
||||
<i class="fa fa-fw" aria-hidden="true" title="file-excel-o"></i>엑셀다운로드
|
||||
<div class="col-md-12 col-xl-12">
|
||||
<div class="main-card mb-3 card">
|
||||
<div class="card-header bg-white border-bottom shadow-sm">
|
||||
<div class="d-flex flex-wrap align-items-center w-100 justify-content-between card-header-tab">
|
||||
<h4 class="mb-0 fw-bold text-dark">사용자 목록</h4>
|
||||
<div class="d-flex align-items-center gap-2 ms-auto">
|
||||
<button class="btn btn-sm btn-outline-success" id="excel-download">
|
||||
<i class="fa fa-fw" aria-hidden="true" title="file-excel-o"></i>
|
||||
엑셀다운로드
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="userList" class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowspan="2">순번</th>
|
||||
<th rowspan="2">아이디</th>
|
||||
<th rowspan="2">이름</th>
|
||||
<th colspan="5" style="text-align: center;">오전</th>
|
||||
<th colspan="8" style="text-align: center;">오후</th>
|
||||
<th rowspan="2">합계</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="50">무관</th>
|
||||
<th width="50">9</th>
|
||||
<th width="50">10</th>
|
||||
<th width="50">11</th>
|
||||
<th width="50">12</th>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="userList" class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowspan="2">순번</th>
|
||||
<th rowspan="2">아이디</th>
|
||||
<th rowspan="2">이름</th>
|
||||
<th colspan="5" style="text-align: center;">오전</th>
|
||||
<th colspan="8" style="text-align: center;">오후</th>
|
||||
<th rowspan="2">합계</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="50">무관</th>
|
||||
<th width="50">9</th>
|
||||
<th width="50">10</th>
|
||||
<th width="50">11</th>
|
||||
<th width="50">12</th>
|
||||
|
||||
<th width="50">무관</th>
|
||||
<th width="50">1</th>
|
||||
<th width="50">2</th>
|
||||
<th width="50">3</th>
|
||||
<th width="50">4</th>
|
||||
<th width="50">5</th>
|
||||
<th width="50">6</th>
|
||||
<th width="50">7</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<th width="50">무관</th>
|
||||
<th width="50">1</th>
|
||||
<th width="50">2</th>
|
||||
<th width="50">3</th>
|
||||
<th width="50">4</th>
|
||||
<th width="50">5</th>
|
||||
<th width="50">6</th>
|
||||
<th width="50">7</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -269,7 +317,8 @@
|
||||
let table = $('#userList').DataTable({
|
||||
language: lang_kor,
|
||||
processing: true,
|
||||
serverSide: false,
|
||||
serverSide: true,
|
||||
pageLength: 25,
|
||||
ajax: {
|
||||
url: '/results/assign/getUserList',
|
||||
type: 'GET',
|
||||
@@ -291,20 +340,17 @@
|
||||
|
||||
d.srchType = $("#frm_srch_info [name=srchType]").val()
|
||||
d.srchTxt = $("#frm_srch_info [name=srchTxt]").val()
|
||||
|
||||
d.start = d.start || 0
|
||||
d.length = d.length || 10
|
||||
}
|
||||
},
|
||||
"columnDefs": [
|
||||
{ 'targets': '_all', "defaultContent": "" },
|
||||
{ 'className': 'text-center', 'targets': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] },
|
||||
columnDefs: [
|
||||
{ targets: '_all', defaultContent: "" },
|
||||
{ className: 'text-center', targets: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] },
|
||||
],
|
||||
columns: [
|
||||
{
|
||||
"data": null,
|
||||
"width": "50px",
|
||||
"render": function (data, type, row, meta) {
|
||||
data: null,
|
||||
width: "50px",
|
||||
render: function (data, type, row, meta) {
|
||||
return meta.row + meta.settings._iDisplayStart + 1;
|
||||
}
|
||||
},
|
||||
@@ -325,11 +371,9 @@
|
||||
{ data: 'PM07' },
|
||||
{ data: 'TODAY' },
|
||||
],
|
||||
// 옵션들 예시
|
||||
paging: true,
|
||||
searching: false,
|
||||
ordering: false,
|
||||
serverSide: true,
|
||||
});
|
||||
|
||||
|
||||
@@ -531,4 +575,4 @@
|
||||
});
|
||||
|
||||
</script>
|
||||
<?= $this->endSection() ?>
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
Reference in New Issue
Block a user