|
|
|
15년 전
|
조회 2,005
|
|
|
|
15년 전
|
조회 2,442
|
|
|
|
15년 전
|
조회 2,574
|
|
|
|
15년 전
|
조회 2,500
|
|
|
|
15년 전
|
조회 2,507
|
|
|
|
15년 전
|
조회 1,986
|
|
|
|
15년 전
|
조회 2,041
|
|
|
|
15년 전
|
조회 1,813
|
|
|
관리자
|
15년 전
|
조회 2,631
|
|
|
|
15년 전
|
조회 1,732
|
|
|
|
15년 전
|
조회 2,157
|
|
|
|
15년 전
|
조회 2,062
|
|
|
|
15년 전
|
조회 1,968
|
|
|
|
15년 전
|
조회 1,731
|
|
|
|
15년 전
|
조회 2,026
|
|
|
|
15년 전
|
조회 1,817
|
|
|
|
15년 전
|
조회 1,992
|
|
|
|
15년 전
|
조회 5,790
|
|
|
|
15년 전
|
조회 1,683
|
|
|
|
15년 전
|
조회 2,006
|
|
|
|
15년 전
|
조회 2,001
|
|
|
|
15년 전
|
조회 2,003
|
|
|
|
15년 전
|
조회 2,056
|
|
|
|
15년 전
|
조회 2,251
|
|
|
|
15년 전
|
조회 1,833
|
|
|
|
15년 전
|
조회 1,779
|
|
|
|
15년 전
|
조회 2,055
|
|
|
|
15년 전
|
조회 2,815
|
|
|
|
15년 전
|
조회 1,885
|
|
|
|
15년 전
|
조회 2,420
|
댓글 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);
?>
탑님이 먼저 수를 두셨는데 곤란하게 되버렸네요
유아원님이 먼저 답을 주셨으니 보내드릴께요 받으실 주소 날려주세요
유선은 탑스쿨님에게
무선은 유아원님에게.....
자를수도 없고 ..... ㅜㅜ