select수정
This commit is contained in:
@@ -140,7 +140,7 @@
|
||||
<tr>
|
||||
<th style="text-align:center">관할본부</th>
|
||||
<td style="text-align:center">
|
||||
<select class="form-control" name="bonbu" id="bonbu">
|
||||
<select class="form-select" name="bonbu" id="bonbu">
|
||||
<option value="">선택</option>
|
||||
<?php foreach (($bonbu ?? []) as $d): ?>
|
||||
<option value="<?= esc($d['dept_sq']) ?>" <?= (string) ($apt['bonbu'] ?? '') === (string) $d['dept_sq'] ? 'selected' : '' ?>>
|
||||
@@ -152,7 +152,7 @@
|
||||
|
||||
<th style="text-align:center">담당팀</th>
|
||||
<td style="text-align:center">
|
||||
<select class="form-control" name="team" id="team">
|
||||
<select class="form-select" name="team" id="team">
|
||||
<option value="">선택</option>
|
||||
<?php foreach (($team ?? []) as $d): ?>
|
||||
<?php if ((string) ($apt['bonbu'] ?? '') === (string) ($d['pdept_sq'] ?? '')): ?>
|
||||
@@ -166,7 +166,7 @@
|
||||
|
||||
<th style="text-align:center">담당자</th>
|
||||
<td style="text-align:center">
|
||||
<select class="form-control" name="user" id="user">
|
||||
<select class="form-select" name="user" id="user">
|
||||
<option value="">선택</option>
|
||||
<?php foreach (($user ?? []) as $d): ?>
|
||||
<?php if ((string) ($apt['dept_sq'] ?? '') === (string) ($d['dept_sq'] ?? '')): ?>
|
||||
|
||||
@@ -73,19 +73,6 @@
|
||||
</div>
|
||||
|
||||
<div class="row g-3 align-items-end">
|
||||
<!-- 단지코드 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">단지코드</label>
|
||||
<input type="text" class="form-control" name="hscp_no" id="hscp_no"
|
||||
onkeypress="hscp_no_enter(event)">
|
||||
</div>
|
||||
|
||||
<!-- 사진코드 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">사진코드</label>
|
||||
<input type="text" class="form-control" name="pho_no" id="pho_no" value="" />
|
||||
</div>
|
||||
|
||||
<!-- 지역구분 -->
|
||||
<div class="col-md-4">
|
||||
<label class="form-label mb-1">지역구분</label>
|
||||
@@ -111,10 +98,24 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 단지코드 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">단지코드</label>
|
||||
<input type="text" class="form-select" name="hscp_no" id="hscp_no"
|
||||
onkeypress="hscp_no_enter(event)">
|
||||
</div>
|
||||
|
||||
<!-- 사진코드 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">사진코드</label>
|
||||
<input type="text" class="form-select" name="pho_no" id="pho_no" value="" />
|
||||
</div>
|
||||
|
||||
<!-- 단지명 -->
|
||||
<div class="col-md-2">
|
||||
<label class="form-label mb-1">단지명</label>
|
||||
<input type="text" class="form-control" name="rcpt_hscp_nm" id="rcpt_hscp_nm"
|
||||
<input type="text" class="form-select" name="rcpt_hscp_nm" id="rcpt_hscp_nm"
|
||||
placeholder="단지명">
|
||||
</div>
|
||||
</div>
|
||||
@@ -160,7 +161,7 @@
|
||||
<label class="form-label mb-1">방문담당</label>
|
||||
<div class="row g-2">
|
||||
<div class="col-md-4">
|
||||
<select class="form-control" name="bonbu" id="bonbu">
|
||||
<select class="form-select" name="bonbu" id="bonbu">
|
||||
<option value="">-본부-</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
@@ -168,12 +169,12 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<select class="form-control" name="team" id="team">
|
||||
<select class="form-select" name="team" id="team">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<select class="form-control" name="damdang" id="damdang">
|
||||
<select class="form-select" name="damdang" id="damdang">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
</div>
|
||||
@@ -286,18 +287,18 @@
|
||||
<div class="card-header d-flex align-items-center">
|
||||
<div class="d-flex align-items-center flex-wrap" style="gap:8px; flex:1;">
|
||||
|
||||
<select class="form-control form-control-sm" id="bonbu2" style="width:140px;">
|
||||
<select class="form-select form-select-sm" id="bonbu2" style="width:140px;">
|
||||
<option value="">-본부-</option>
|
||||
<?php foreach ($bonbu as $d): ?>
|
||||
<option value="<?= $d['dept_sq'] ?>"><?= $d['dept_nm'] ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
|
||||
<select class="form-control form-control-sm" id="team2" style="width:160px;">
|
||||
<select class="form-select form-select-sm" id="team2" style="width:160px;">
|
||||
<option value="">-팀-</option>
|
||||
</select>
|
||||
|
||||
<select class="form-control form-control-sm" id="damdang2" style="width:160px;">
|
||||
<select class="form-select form-select-sm" id="damdang2" style="width:160px;">
|
||||
<option value="">-담당자-</option>
|
||||
</select>
|
||||
|
||||
@@ -309,7 +310,7 @@
|
||||
|
||||
<span class="font-weight-bold small mb-0">영상대상</span>
|
||||
|
||||
<select class="form-control form-control-sm" id="all_target" style="width:160px;">
|
||||
<select class="form-select form-select-sm" id="all_target" style="width:160px;">
|
||||
<option value="">선택</option>
|
||||
<?php foreach ($codes as $code): ?>
|
||||
<?php if ($code['category'] == "VIDEO_TARGET"): ?>
|
||||
@@ -637,7 +638,7 @@
|
||||
// { 'className': 'text-center', 'targets': [0, 2, 3, 4] },
|
||||
],
|
||||
columns: [
|
||||
{ data: null, render: fn_chk_render, width: "50px" },
|
||||
{ data: null, render: fn_chk_render, width: "50px", className: "dt-no-rowclick" },
|
||||
|
||||
{ data: 'apt_step', render: fn_stat_render, width: "80px" },
|
||||
{ data: 'hscp_no', width: "50px" },
|
||||
@@ -651,9 +652,9 @@
|
||||
{ data: 'usr_nm', width: "50px" },
|
||||
{ data: 'write_complete_yn', width: "50px" },
|
||||
{ data: 'vdo_up_ynx', render: fn_vdo_ynx_render, width: "50px" },
|
||||
{ data: null, render: fn_select_render, width: "80px" },
|
||||
{ data: null, render: fn_memo_render, width: "80px" },
|
||||
{ data: null, render: fn_btn_render, width: "80px" },
|
||||
{ data: null, render: fn_select_render, width: "80px", className: "dt-no-rowclick" },
|
||||
{ data: null, render: fn_memo_render, width: "80px", className: "dt-no-rowclick" },
|
||||
{ data: null, render: fn_btn_render, width: "80px", className: "dt-no-rowclick" },
|
||||
],
|
||||
// 옵션들 예시
|
||||
paging: true,
|
||||
@@ -662,7 +663,9 @@
|
||||
serverSide: true,
|
||||
});
|
||||
|
||||
$('#resultList tbody').on('click', 'tr', function () {
|
||||
$('#resultList tbody').on('click', 'tr', function (e) {
|
||||
if ($(e.target).closest('td.dt-no-rowclick').length) return;
|
||||
|
||||
const rowData = table.row(this).data();
|
||||
if (!rowData) return;
|
||||
|
||||
@@ -1002,7 +1005,7 @@
|
||||
const video = extractCode('VIDEO_TARGET');
|
||||
const rowIndex = meta.row;
|
||||
|
||||
var str = `<select class="form-control" id="video_target_${rowIndex}">`;
|
||||
var str = `<select class="form-select" id="video_target_${rowIndex}">`;
|
||||
str += `<option value="">-선택-</option>`;
|
||||
for (var i = 0; i < video.length; i++) {
|
||||
if (video[i].cd == row.video_target) {
|
||||
|
||||
@@ -676,7 +676,6 @@
|
||||
if (!rowData) return;
|
||||
|
||||
|
||||
|
||||
const rcpt_no = rowData.rcpt_no;
|
||||
const hscp_no = rowData.hscp_no;
|
||||
location.href = "<?= site_url('article/apt/ground/detail') ?>/" + rcpt_no + "/" + hscp_no;
|
||||
|
||||
Reference in New Issue
Block a user