v1.2.21
- [IMAGE] 업로드시 드라이버에 작성자 기본으로 설정, 안내문구 추가, 입력창 너비 수정
This commit is contained in:
parent
f8152ad391
commit
b77e9bb12a
|
|
@ -43,7 +43,11 @@ while($rstDriver = fetch_array($sqDriver)){
|
||||||
<div class="title-row">
|
<div class="title-row">
|
||||||
<span>UPLOAD IMAGE</span>
|
<span>UPLOAD IMAGE</span>
|
||||||
</div>
|
</div>
|
||||||
|
<p style="font-size:12px; color:#666; margin-top:4px;">
|
||||||
|
※ Maximum 6 images can be uploaded <br>
|
||||||
|
※ Info Type image will stay the same <br>
|
||||||
|
※ Other Type images will be replaced with newly uploaded images<br>
|
||||||
|
</p>
|
||||||
<form method="POST" action="/lib/user_process.php" enctype="multipart/form-data">
|
<form method="POST" action="/lib/user_process.php" enctype="multipart/form-data">
|
||||||
|
|
||||||
<input type="hidden" name="actionStr" value="ADDIMAGE">
|
<input type="hidden" name="actionStr" value="ADDIMAGE">
|
||||||
|
|
@ -56,15 +60,17 @@ while($rstDriver = fetch_array($sqDriver)){
|
||||||
|
|
||||||
<label>Created By</label>
|
<label>Created By</label>
|
||||||
<select name="i_createdby" id="driver" class="custom-select-map-orderby" required>
|
<select name="i_createdby" id="driver" class="custom-select-map-orderby" required>
|
||||||
<option value="<?=$_SESSION['ss_UID']?>">Select</option>
|
<option value="">Select</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($drivers as $driver) {
|
foreach($drivers as $driver) {
|
||||||
echo '<option value="'.$driver['id'].'">'.$driver['name'].'</option>';
|
// 양쪽 값의 공백을 제거하고 문자열로 강제 변환하여 비교
|
||||||
|
$is_selected = (trim((string)$driver['id']) === trim((string)$_SESSION['ss_UID']));
|
||||||
|
$selected = $is_selected ? "selected" : "";
|
||||||
|
echo '<option value="'.$driver['id'].'" '.$selected.'>'.$driver['name'].'</option>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<label>Type</label>
|
<label>Type</label>
|
||||||
<select name="i_type" id="i_type" required>
|
<select name="i_type" id="i_type" required>
|
||||||
<option value="info">Info</option>
|
<option value="info">Info</option>
|
||||||
|
|
@ -76,7 +82,7 @@ while($rstDriver = fetch_array($sqDriver)){
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<label>Image</label>
|
<label>Image</label>
|
||||||
<p style="font-size:12px; color:#666; margin-top:4px;">※ Will replace the same type images</p>
|
|
||||||
<input type="file" id="uploadFileInput" name="upload_file[]" accept="image/*" multiple required>
|
<input type="file" id="uploadFileInput" name="upload_file[]" accept="image/*" multiple required>
|
||||||
|
|
||||||
<div id="previewList" style="display:flex; gap:8px; flex-wrap:wrap; margin-top:12px;"></div>
|
<div id="previewList" style="display:flex; gap:8px; flex-wrap:wrap; margin-top:12px;"></div>
|
||||||
|
|
@ -184,11 +190,13 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||||
.tb-info input[type=file],
|
.tb-info input[type=file],
|
||||||
.tb-info textarea {
|
.tb-info textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-img {
|
.preview-img {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue