게시판 list 항목 추가 알려주세요~! (재질문) 채택완료
게시판 스킨 수정중 궁금해서 여쭤봅니다.
write.skin.php 입력값 업체명 wr_5_3_ 품목 wr_5_33_ 항목 2개를 추가했습니다.
list.skin.php 리스트에 위 두개 반영하려면 코드를 어떻게 넣어야해요?
답변 받은 질문인데요.. 수정했는데 안됩니다.ㅠㅠ 그래서 소스 전체를 올려볼께요.
wr_5_3_ 품목 wr_5_33_ 추가 후 write.skin.php , view.skin.php 는 모두 정상으로 보여집니다. list.skin.php 에서만 안보여요
Copy
write.skin.php
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
if ($board['bo_use_category']) {
$ca_name = "";
if (isset($write['ca_name']))
$ca_name = $write['ca_name'];
$category_option = get_category_option_radio($bo_table, $ca_name);
$is_category = true;
}
$tmp5 = isset($write['wr_5']) ? explode("|", $write['wr_5']) : [];
foreach($tmp5 as $key=>$value){
list($key, $value2)= explode('=',$value);
$$key= $value2;
}
?>
<script type="text/javascript" src="<?php echo $board_skin_url ?>/jquery.tablednd.js"></script>
<div class="body_tit_box body_tit_box_v font-naver-EB">
<ul class="body_tit">
<?php echo $board['bo_subject']; ?>
<?php if (isset($write['wr_subject']) && $write['wr_subject']) { ?>
<?php } ?>
</ul>
<div class="cb"></div>
</div>
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="wr_subject" value="<?php echo isset($write['wr_subject']) ? $write['wr_subject'] : '환급신청서'; ?>">
<?php if ($is_name) { ?>
<input type="hidden" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input half_input required" placeholder="이름">
<?php } ?>
<?php if ($is_email) { ?>
<input type="hidden" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input half_input email " placeholder="이메일">
<?php } ?>
<?php
$option = '';
$option_hidden = '';
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = '';
if ($is_notice) {
$option .= PHP_EOL.'<li class="chk_box"><input type="checkbox" id="notice" name="notice" class="selec_chk" value="1" '.$notice_checked.'>'.PHP_EOL.'<label for="notice"><span></span>공지</label></li>';
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= '<input type="hidden" value="html1" name="html">';
} else {
$option .= PHP_EOL.'<li class="chk_box"><input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" class="selec_chk" value="'.$html_value.'" '.$html_checked.'>'.PHP_EOL.'<label for="html"><span></span>html</label></li>';
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= PHP_EOL.'<li class="chk_box"><input type="checkbox" id="secret" name="secret" class="selec_chk" value="secret" '.$secret_checked.'>'.PHP_EOL.'<label for="secret"><span></span>비밀글</label></li>';
} else {
$option_hidden .= '<input type="hidden" name="secret" value="secret">';
}
}
if ($is_mail) {
$option .= PHP_EOL.'<li class="chk_box"><input type="checkbox" id="mail" name="mail" class="selec_chk" value="mail" '.$recv_email_checked.'>'.PHP_EOL.'<label for="mail"><span></span>답변메일받기</label></li>';
}
}
echo $option_hidden;
?>
<div class="view_wraps view_wraps_bbs respons data_tables">
<div class="resized">
<div>
<table cellspacing="0" cellpadding="0" class="append3 drag3" id="appends3">
<colgroup>
<col width="150px">
<col width="">
<col width="200px">
<col width="">
<col width="">
<col width="">
</colgroup>
<?php
if(isset($wr_5_1) && $wr_5_1) {
$inpcnt3 = $wr_5_1;
} else {
$inpcnt3 = 1;
}
?>
<input type="hidden" name="wr_5_1" value="<?php echo isset($inpcnt3) ? $inpcnt3 : ''; ?>">
<thead>
<tr>
<th colspan="8" class="po_rel">
내역
<div class="ab_chk">
<?php echo $category_option ?>
</div>
</th>
</tr>
<tr>
<td class="text-center bg_tr">일자</td>
<td class="text-center bg_tr">주문번호</td>
<td class="text-center bg_tr">업체명</td>
<td class="text-center bg_tr">품목</td>
<td class="text-center bg_tr">판매금액</td>
<td class="text-center bg_tr">매입금액</td>
<td class="text-center bg_tr">이동</td>
<td class="text-center bg_tr">삭제</td>
</tr>
</thead>
<tbody>
<?php for($i=1;$i<=$inpcnt3;$i++){ ?>
<tr id="append3_<?php echo $i ?>">
<td class="tb_inps"><input type="text" class="tb_inps_inp datepicker" name="wr_5_2_<?php echo $i ?>" id="" value="<?php echo isset(${'wr_5_2_'.$i}) ? ${'wr_5_2_'.$i} : ''; ?>"></td>
<td class="tb_inps"><input type="text" class="tb_inps_inp" name="wr_5_5_<?php echo $i ?>" id="" value="<?php echo isset(${'wr_5_5_'.$i}) ? ${'wr_5_5_'.$i} : ''; ?>"></td>
<td class="tb_inps"><input type="text" class="tb_inps_inp" name="wr_5_3_<?php echo $i ?>" id="" value="<?php echo isset(${'wr_5_3_'.$i}) ? ${'wr_5_3_'.$i} : ''; ?>"></td>
<td class="tb_inps"><input type="text" class="tb_inps_inp" name="wr_5_33_<?php echo $i ?>" id="" value="<?php echo isset(${'wr_5_33_'.$i}) ? ${'wr_5_33_'.$i} : ''; ?>"></td>
<td class="tb_inps"><input type="number" class="tb_inps_inp" name="wr_5_4_<?php echo $i ?>" id="" value="<?php echo isset(${'wr_5_4_'.$i}) ? ${'wr_5_4_'.$i} : ''; ?>"></td>
<td class="tb_inps"><input type="number" class="tb_inps_inp" name="wr_5_44_<?php echo $i ?>" id="" value="<?php echo isset(${'wr_5_44_'.$i}) ? ${'wr_5_44_'.$i} : ''; ?>"></td>
<td class="tb_inps move_td text-center"></td>
<td class="tb_inps del_td text-center" nowrap><button type="button" class="tables_btn3" onclick="javascript:del_lines3('<?php echo $i ?>')">삭제</button></td>
</tr>
<?php } ?>
</tbody>
</table>
<script>
var maxField3 = 99; //최대 개수
var wrapper3 = $('.append3');
var extcnt3 = <?php echo $inpcnt3 ?>;
function lines_add3() {
if(extcnt3 < maxField3){
extcnt3++; // 숫자 증가
var fieldHTML3 = ''
+ '<tr id="append3_'+extcnt3+'">'
+ '<td class="tb_inps"><input type="text" class="tb_inps_inp datepicker" name="wr_5_2_'+extcnt3+'" id="" value=""></td>'
+ '<td class="tb_inps"><input type="text" class="tb_inps_inp" name="wr_5_5_'+extcnt3+'" id="" value=""></td>'
+ '<td class="tb_inps"><input type="text" class="tb_inps_inp" name="wr_5_3_'+extcnt3+'" id="" value=""></td>'
+ '<td class="tb_inps"><input type="text" class="tb_inps_inp" name="wr_5_33_'+extcnt3+'" id="" value=""></td>'
+ '<td class="tb_inps"><input type="number" class="tb_inps_inp" name="wr_5_4_'+extcnt3+'" id="" value=""></td>'
+ '<td class="tb_inps"><input type="number" class="tb_inps_inp" name="wr_5_44_'+extcnt3+'" id="" value=""></td>'
+ '<td class="tb_inps move_td text-center"></td>'
+ '<td class="tb_inps del_td text-center" nowrap><button type="button" class="tables_btn3" onclick="javascript:del_lines3('+extcnt3+')">삭제</button></td>'
+ '</tr>';
$('.append3').append(fieldHTML3); // Add field
$('input[name="wr_5_1"]').val(extcnt3);
drag3();
$(".datepicker").datepicker();
}
}
function del_lines3(no) {
if (extcnt3 > 1) {
extcnt3--; // 숫자 감소
$('#append3_'+no).remove();
$('input[name="wr_5_1"]').val(extcnt3);
drag3();
} else {
alert('데이터는 한개이상 있어야 합니다.');
}
}
function lines_del3() {
if (extcnt3 > 1) {
extcnt3--; // 숫자 감소
var cnts3 = extcnt3 + 1;
$('#append3_'+cnts3).remove();
$('input[name="wr_5_1"]').val(extcnt3);
drag3();
} else {
alert('데이터는 한개이상 있어야 합니다.');
}
}
drag3();
function drag3() {
$(".drag3").tableDnD({
onDrop : function(table, row){
const rows = table.tBodies[0].rows;
const tds = table.tBodies[0].rows;
const arrId = new Array();
for(let i = 0; i < rows.length; i++) {
//td갯수를 구한다.
var tdcnt = $("#" + rows[i].id + " td").length;
for(let k = 0; k <= tdcnt; k++) {
$("#" + rows[i].id + " td:nth-child("+k+") input" ).attr("name", "wr_5_"+ (k + 1) + "_" + (i + 1));
$("#" + rows[i].id + " td:nth-child("+k+") select" ).attr("name", "wr_5_"+ (k + 1) + "_" + (i + 1));
//$("#" + rows[i].id + " td").html("ex11_"+ (i + 1) + (aa));
}
}
}
});
}
</script>
</div>
<div class="table_btm_btn_wrap">
<button type="button" class="tables_btn1 add_btn" onclick="javascript:lines_add3()">추가</button>
<button type="button" class="tables_btn1 can_btn" onclick="javascript:lines_del3()">삭제</button>
</div>
</div>
<br><br>
<div class="h300 resized_not">
<table cellspacing="0" cellpadding="0">
<tr>
<th>기본정보</th>
</tr>
<tr>
<td class="tb_inps area_wrap">
<div class="wr_content <?php echo $is_dhtml_editor ? $config['cf_editor'] : ''; ?>">
<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>
</div>
</td>
</tr>
</table>
</div>
<br><br>
<div class="resized">
<table cellspacing="0" cellpadding="0">
<colgroup>
<col width="15%">
<col width="85%">
</colgroup>
<tr>
<th colspan="2">첨부파일</th>
</tr>
<?php for ($i=0; $is_file && $i<$board['bo_upload_count']; $i++) { ?>
<tr class="width_th_10">
<td class="text-center bg_tr" nowrap>파일 <?php echo $i+1 ?></td>
<td class="text-center tb_inps" colspan="3">
<div class="filebox">
<input type="file" name="bf_file[<?php echo $i ?>]" id="bf_file_<?php echo $i ?>" class="">
<label for="bf_file_<?php echo $i ?>" class="bf_file_label"></label>
<input type="text" class="tb_inps_inp text-left new_w_frm_left" id="bf_file_inp<?php echo $i ?>" value="<?php echo isset($file[$i]['source']) ? $file[$i]['source'] : ''; ?>" placeholder="파일선택">
<script>
$("#bf_file_<?php echo $i ?>").on('change',function(){
var fileName = $("#bf_file_<?php echo $i ?>").val();
$("#bf_file_inp<?php echo $i ?>").val(fileName);
});
</script>
</div>
<?php if($w == 'u' && $file[$i]['file']) { ?>
<div class="files_label files_label_chk">
<span class="file_del_span">
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1" class="magic-checkbox"> <label for="bf_file_del<?php echo $i ?>" class="font-naver-B"><?php echo isset($f_names) ? $f_names : ''; ?> 파일삭제 (<?php echo $file[$i]['source'].' / '.$file[$i]['size']; ?>)</label>
</span>
<div class="cb"></div>
</div>
<?php } ?>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
<div class="view_btm_btns popup_view_btm_btns">
<ul class="op_right">
<button type="button" class="top_opt_btn" onclick="location.href='<?php echo get_pretty_url($bo_table); ?>';">취소</button>
<button type="submit" accesskey="s" class="top_opt_btn on">저장</button>
</ul>
<div class="cb"></div>
</div>
</form>
<div class="cb"></div>
<script>
$(document).ready(function() {
$('.select2').select2();
});
<?php if($write_min || $write_max) { ?>
// 글자수 제한
var char_min = parseInt(<?php echo $write_min; ?>); // 최소
var char_max = parseInt(<?php echo $write_max; ?>); // 최대
check_byte("wr_content", "char_count");
$(function() {
$("#wr_content").on("keyup", function() {
check_byte("wr_content", "char_count");
});
});
<?php } ?>
function html_auto_br(obj)
{
if (obj.checked) {
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_submit(f)
{
var subject = "";
var content = "";
$.ajax({
url: g5_bbs_url+"/ajax.filter.php",
type: "POST",
data: {
"subject": f.wr_subject.value,
"content": f.wr_content.value
},
dataType: "json",
async: false,
cache: false,
success: function(data, textStatus) {
subject = data.subject;
content = data.content;
}
});
if (subject) {
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
f.wr_subject.focus();
return false;
}
if (content) {
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
if (typeof(ed_wr_content) != "undefined")
ed_wr_content.returnFalse();
else
f.wr_content.focus();
return false;
}
if (document.getElementById("char_count")) {
if (char_min > 0 || char_max > 0) {
var cnt = parseInt(check_byte("wr_content", "char_count"));
if (char_min > 0 && char_min > cnt) {
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return false;
}
else if (char_max > 0 && char_max < cnt) {
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return false;
}
}
}
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
document.getElementById("btn_submit").disabled = "disabled";
return true;
}
</script>
</section>
<!-- } 게시물 작성/수정 끝 -->
Copy
list.skin.php
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
//여분필드를 검색 해야되는 경우 추가하기 쉽도록 옵션을 추가함 by.false9
function get_board_sfl_select_options2($sfl){
global $is_admin;
$str = '';
$str .= '<option value="wr_subject" '.get_selected($sfl, 'wr_subject', true).'>제목</option>';
$str .= '<option value="wr_name" '.get_selected($sfl, 'wr_name', true).'>작성자</option>';
return run_replace('get_board_sfl_select_options2', $str, $sfl);
}
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
?>
<div class="body_tit_box font-naver-EB">
<ul class="body_tit"><?php echo $board['bo_subject'] ?></ul>
<ul class="body_sub">
<span class="font-naver-B">전체 <?php echo number_format($total_count) ?>건 / <?php echo $page ?> 페이지</span>
<button type="button" class="top_all_list_btn font-naver-B" onclick="location.href='<?php echo $list_href ?>';">전체목록 보기</button>
<div class="cb"></div>
</ul>
<div class="cb"></div>
</div>
<!---- 게시판 헤더 끝 ------>
<!----- 상단 고정 ----->
<div class="option_box">
<?php if ($is_category) { ?>
<ul class="cates ul_opt_top_cates">
<select name="is_category" id="is_category" class="select w100">
<option value=''>구분</option>
<?php echo get_category_option_intranet($bo_table, $sca); // SELECT OPTION 태그로 넘겨받음 ?>
</select>
<script>
$("#is_category").change(function() {
location.href = "?bo_table=<?php echo $bo_table ?>&sca=" + encodeURIComponent($(this).val());
})
$("#is_category").val("<?php echo $sca ?>").prop("selected", true);
</script>
</ul>
<?php } ?>
<form name="fsearch" method="get">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sop" value="and">
<ul class="op_ul1">
<select name="sfl" id="sfl" class="select w120px">
<?php echo get_board_sfl_select_options2($sfl); ?>
</select>
<input name="stx" type="text" class="inp w150px" value="<?php echo stripslashes($stx) ?>" id="stx" placeholder="검색" required autocomplete="off">
</ul>
<ul class="op_ul2">
<button type="submit" class="top_sch_btn sg_btn">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</button>
</ul>
</form>
<div class="cb mobile"></div>
<form name="fboardlist" id="fboardlist" action="<?php echo G5_BBS_URL; ?>/board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
<ul class="op_right pc">
<?php if ($is_checkbox) { ?><button type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value" class="top_opt_btn">선택삭제</button><?php } ?>
<?php if($write_href) { ?><button type="button" class="top_opt_btn on" onclick="location.href='<?php echo $write_href ?>';">등록</button><?php } ?>
</ul>
<div class="cb"></div>
</div>
<!----- 상단 고정 ----->
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="sw" value="">
<div class="talbes_wrap" id="bo_list">
<div class="tables_div">
<div class="resized">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<?php if ($is_checkbox) { ?>
<th nowrap class="tb_chkbox">
<input type="checkbox" class="magic-checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
<label for="chkall"></label>
</th>
<?php } else { ?>
<th nowrap class="tb_num">번호</th>
<?php } ?>
<th nowrap>작성일자</th>
<th nowrap>업체명</th>
<th nowrap>품목</th>
<th nowrap>작성자</th>
<th nowrap>결재</th>
<th nowrap class="tb_btn1">관리</th>
</tr>
</thead>
<tbody>
<?php
for ($i=0; $i<count($list); $i++) {
?>
<tr>
<?php if ($is_checkbox) { ?>
<td nowrap>
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>" class="magic-checkbox">
<label for="chk_wr_id_<?php echo $i ?>"></label>
</td>
<?php } else { ?>
<td nowrap><?php echo $list[$i]['num']; ?></td>
<?php } ?>
<td nowrap><?php echo $list[$i]['datetime'] ?></td>
<td nowrap><?php echo $list[$i]['wr_5_3']; ?></td>
<td nowrap><?php echo $list[$i]['wr_5_33']; ?></td>
<td nowrap><?php echo $list[$i]['name'] ?></td>
</td>
<td nowrap>
<?php echo get_confirm_list($bo_table, $wr_id, $list[$i]['wr_confirm']) ?>
</td>
<td nowrap>
<button type="button" class="tables_btn1" onclick="location.href='<?php echo $list[$i]['href'] ?>';">보기</button>
<button type="button" class="tables_btn2" onclick="location.href='<?php echo G5_BBS_URL ?>/write.php?w=u&bo_table=<?php echo $bo_table; ?>&wr_id=<?php echo $list[$i]['wr_id'] ?>';">수정</button>
</td>
</tr>
<?php } ?>
</tbody>
<?php
if (count($list) == 0) {
echo '<tfoot><tr><td colspan="5">데이터가 없습니다.</tr></tfoot>';
}
?>
</table>
</div>
</div>
<div class="tables_div_tail">
<ul class="op_left paging_mobile_mb">
<?php echo $write_pages; ?>
</ul>
<ul class="op_right">
<?php if ($list_href || $is_checkbox || $write_href) { ?>
<?php if ($list_href || $write_href) { ?>
<button type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value" class="top_opt_btn">선택삭제</button>
<?php if ($write_href) { ?><button type="button" class="top_opt_btn on" onclick="location.href='<?php echo $write_href ?>';">등록</button><?php } ?>
<?php } ?>
<?php } ?>
</ul>
<div class="cb"></div>
</div>
</div>
</form>
<?php if($is_checkbox) { ?>
<noscript>
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
</noscript>
<?php } ?>
<?php if ($is_checkbox) { ?>
<script>
$("a.view_image").click(function() {
window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
return false;
});
$('.btn_trs_open').click(function(){
$(this).hide();
$(this).next('.btn_trs_close').show();
$(this).parent().parent().next().show();
});
$('.btn_trs_close').click(function(){
$(this).hide();
$(this).prev('.btn_trs_open').show();
$(this).parent().parent().next().hide();
});
function all_checked(sw) {
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function fboardlist_submit(f) {
var chk_count = 0;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}
if (!chk_count) {
alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
return false;
}
if(document.pressed == "선택복사") {
select_copy("copy");
return;
}
if(document.pressed == "선택이동") {
select_copy("move");
return;
}
if(document.pressed == "선택삭제") {
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다\n\n답변글이 있는 게시글을 선택하신 경우\n답변글도 선택하셔야 게시글이 삭제됩니다."))
return false;
f.removeAttribute("target");
f.action = g5_bbs_url+"/board_list_update.php";
}
return true;
}
// 선택한 게시물 복사 및 이동
function select_copy(sw) {
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = g5_bbs_url+"/move.php";
f.submit();
}
// 게시판 리스트 관리자 옵션
jQuery(function($){
$(".btn_more_opt.is_list_btn").on("click", function(e) {
e.stopPropagation();
$(".more_opt.is_list_btn").toggle();
});
$(document).on("click", function (e) {
if(!$(e.target).closest('.is_list_btn').length) {
$(".more_opt.is_list_btn").hide();
}
});
});
</script>
<?php } ?>
<!-- } 게시판 목록 끝 -->
답변 3개
채택된 답변
+20 포인트
1년 전
이전 답변에 방법을 알려드렸는데 왜 다시 올리신건가요??
그리고 본문 코드는 왜 쓰기 부분을....
로그인 후 평가할 수 있습니다
답변에 대한 댓글 3개
12개월 전
12개월 전
안되는게 아니라 못하시는거에요..
제안해드린 방법은 php 중에서도 초급에 속하는데 수정이 어려우시면
의뢰로 가시는게 속편하실수도 있어요...
제안해드린 방법은 php 중에서도 초급에 속하는데 수정이 어려우시면
의뢰로 가시는게 속편하실수도 있어요...
12개월 전
네네.. 못하는 거 맞아요. 암꺼두 몰라요.
업무에 필요한 건 의뢰 해서 작업중이예요.
시놀로지에 php 설치해서 오픈 소스 설치하고 테스트 해 보는게 재밌어서 시간 날 때마다 해보는 거예요.
업무에 필요한 건 의뢰 해서 작업중이예요.
시놀로지에 php 설치해서 오픈 소스 설치하고 테스트 해 보는게 재밌어서 시간 날 때마다 해보는 거예요.
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
알려주셔서 그렇게 했는데 안되더라고요. 다른 요소로 안된다고 생각해서 또 물어보려고요 ㅠㅠ