|
|
|
15년 전
|
조회 2,004
|
|
|
|
15년 전
|
조회 2,439
|
|
|
|
15년 전
|
조회 2,571
|
|
|
|
15년 전
|
조회 2,498
|
|
|
|
15년 전
|
조회 2,504
|
|
|
|
15년 전
|
조회 1,983
|
|
|
|
15년 전
|
조회 2,040
|
|
|
|
15년 전
|
조회 1,808
|
|
|
관리자
|
15년 전
|
조회 2,628
|
|
|
|
15년 전
|
조회 1,729
|
|
|
|
15년 전
|
조회 2,153
|
|
|
|
15년 전
|
조회 2,053
|
|
|
|
15년 전
|
조회 1,965
|
|
|
|
15년 전
|
조회 1,729
|
|
|
|
15년 전
|
조회 2,021
|
|
|
|
15년 전
|
조회 1,815
|
|
|
|
15년 전
|
조회 1,991
|
|
|
|
15년 전
|
조회 5,788
|
|
|
|
15년 전
|
조회 1,681
|
|
|
|
15년 전
|
조회 2,004
|
|
|
|
15년 전
|
조회 1,999
|
|
|
|
15년 전
|
조회 2,000
|
|
|
|
15년 전
|
조회 2,050
|
|
|
|
15년 전
|
조회 2,248
|
|
|
|
15년 전
|
조회 1,829
|
|
|
|
15년 전
|
조회 1,777
|
|
|
|
15년 전
|
조회 2,051
|
|
|
|
15년 전
|
조회 2,810
|
|
|
|
15년 전
|
조회 1,881
|
|
|
|
15년 전
|
조회 2,419
|
댓글 8개
중요한 것은 체크한 네임폼이 값이 없으면 틀어진다는 것 입니다.
그누보드 버그 중 하나에요.
list.skin.php
for~
<input type="text" name="wr_name[]" value="<?=$list[$i]['wr_name']?>" />
~
<a href="javascript:select_name();">선택 수정</a>
하단에 버튼과 함께 스크립트 추가
// 선택한 게시물 수정
function select_name() {
var f = document.fboardlist;
str = "수정";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?"))
return;
f.action = "./name_update_all.php";
f.submit();
}
/bbs/name_update_all.php 파일 추가
<?
include_once("./_common.php");
if (!$is_admin) {
alert("관리자만 접근 가능합니다.");
}
$tmp_array = array();
// 건별
if ($wr_id) {
$tmp_array[0] = $wr_id;
} else {
// 일괄
$tmp_array = $_POST['chk_wr_id'];
}
// 배열에 따라 늘어나야 한다.
for ($i=0; $i<count($tmp_array); $i++) {
if ($tmp_array[$i] && $wr_name[$i]) {
$sql = " update $write_table set wr_name = '".$wr_name[$i]."' where wr_id = '".$tmp_array[$i]."' ";
sql_query($sql);
}
}
goto_url("./board.php?bo_table=$bo_table&page=$page" . $qstr);
?>
탑님이 먼저 수를 두셨는데 곤란하게 되버렸네요
유아원님이 먼저 답을 주셨으니 보내드릴께요 받으실 주소 날려주세요
유선은 탑스쿨님에게
무선은 유아원님에게.....
자를수도 없고 ..... ㅜㅜ