구찬아 ~10 (게시글작성시 회원그룹선택하는) 정보
게시판 구찬아 ~10 (게시글작성시 회원그룹선택하는)첨부파일
본문
구찬지만 설명을 해야 ㅎㅎㅎ
1
게시판의 권한 설정 을 한다 왜 ?
회원 가입 안한 분이 게시판 을 보는 부분에서 문제가 발생요지가있기에
(사실은 구찬아다.. 스킨에 회원채크소스넣기가 구찬아서 ㅎㅎㅎ)
write.skin.php 에가서
<input type="checkbox" value='핑크1' name="wr_1" id="wr_1" <?if($write[wr_1]=='핑크1'){echo "checked";} ?> >핑크1
<input type="checkbox" value='핑크2' name="wr_2" id="wr_2" <?if($write[wr_1]=='핑크2'){echo "checked";} ?> >핑크2
<input type="checkbox" value='핑크3' name="wr_3" id="wr_3" <?if($write[wr_1]=='핑크3'){echo "checked";} ?> >핑크3
<input type="checkbox" value='핑크4' name="wr_4" id="wr_4" <?if($write[wr_1]=='핑크4'){echo "checked";} ?> >핑크4
<input type="checkbox" value='핑크5' name="wr_5" id="wr_5" <?if($write[wr_1]=='핑크5'){echo "checked";} ?> >핑크5
를 편하게 수정한다
예를 들자면 추가하고싶으면
<input type="checkbox" value='a핑크1' name="wr_1" id="wr_1" <?if($write[wr_1]=='핑크1'){echo "checked";} ?> >a핑크1
<input type="checkbox" value='b핑크2' name="wr_2" id="wr_2" <?if($write[wr_2]=='핑크2'){echo "checked";} ?> >b핑크2
<input type="checkbox" value='x핑크3' name="wr_3" id="wr_3" <?if($write[wr_3]=='핑크3'){echo "checked";} ?> >x핑크3
<input type="checkbox" value='d핑크4' name="wr_4" id="wr_4" <?if($write[wr_4]=='핑크4'){echo "checked";} ?> >d핑크4
<input type="checkbox" value='g핑크5' name="wr_5" id="wr_5" <?if($write[wr_5]=='핑크5'){echo "checked";} ?> >g핑크5
<input type="checkbox" value='hh핑크6' name="wr_6" id="wr_6" <?if($write[wr_6]=='핑크6'){echo "checked";} ?> >hh핑크6
이런식으로 수정한다 필자는 아주 귀찬아서 다 이러게 해놓아지만 $write[wr_1] 은 중복되면 안되는 부분이다
참고로 여기에 $write[wr_1] 는 $write[wr_10] 까지만 된다
왜? 기본 게시판 생성이되면 $write[wr_1] ~ $write[wr_10]기본생성이 되기때문이다
더늘리고 싶으면 흠,, 여러가지 생각할게 많아서 많이귀찬음
또한 여기를 고치면 view.skin.php
$g_mm=get_member($ss_mb_id, $fields='mb_1');
if($v_wr==''){if($view[wr_1]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_2]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_3]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_4]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_5]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
$g_name=$view[wr_1]." ".$view[wr_2]." ".$view[wr_3]." ".$view[wr_4]." ".$view[wr_5];
if($v_wr==''){
alert($g_name.'그룹 게시물 입니다.',$list_href);
}
부분도 고처야한다 왜 ? 구찬아서 걍 이러게 만듬
예를 들면
$g_mm=get_member($ss_mb_id, $fields='mb_1');
if($v_wr==''){if($view[wr_1]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_2]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_3]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_4]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_5]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_6]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
$g_name=$view[wr_1]." ".$view[wr_2]." ".$view[wr_3]." ".$view[wr_4]." ".$view[wr_5]." ".$view[wr_6];
if($v_wr==''){
alert($g_name.'그룹 게시물 입니다.',$list_href);
}
여기서 $g_mm=get_member($ss_mb_id, $fields='mb_1'); 의 get_member부분은 lib 안에 찾아보면 있다
말하자면 회원관리의 여분 필드 1번을 가져오기위한 소스이다
그리고 $view[wr_1]..$view[wr_2] 등등은 볼수는 없지만 게시판의 table 부분에 있는 여분필드 의 내용을 가져와서
회원관리 여분필드1과 같은 게 있는 지확인 하는 부분 이다
배열이나 여러가지를 잠시 생각 하다가 구찬다 라는 부분 이있어서 걍 저러게 만듬
2 회원정보수정에 가서 여분필드 1에 write.skin.php에
<input type="checkbox" value='핑크1' name="wr_1" id="wr_1" <?if($write[wr_1]=='핑크1'){echo "checked";} ?> >핑크1
<input type="checkbox" value='핑크2' name="wr_2" id="wr_2" <?if($write[wr_1]=='핑크2'){echo "checked";} ?> >핑크2
<input type="checkbox" value='핑크3' name="wr_3" id="wr_3" <?if($write[wr_1]=='핑크3'){echo "checked";} ?> >핑크3
<input type="checkbox" value='핑크4' name="wr_4" id="wr_4" <?if($write[wr_1]=='핑크4'){echo "checked";} ?> >핑크4
<input type="checkbox" value='핑크5' name="wr_5" id="wr_5" <?if($write[wr_1]=='핑크5'){echo "checked";} ?> >핑크5
value 값중 에 원하는 그룹을 쓴다
list.skin.php
<div class="tbl_head01 tbl_wrap">
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<?php if ($is_checkbox) { ?>
<th scope="col">
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
</th>
<?php } ?>
<th scope="col">제목</th>
<th scope="col">그룹</th>
<th scope="col">글쓴이</th>
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?>날짜</a></th>
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?>조회</a></th>
<?php if ($is_good) { ?><th scope="col"><?php echo subject_sort_link('wr_good', $qstr2, 1) ?>추천</a></th><?php } ?>
<?php if ($is_nogood) { ?><th scope="col"><?php echo subject_sort_link('wr_nogood', $qstr2, 1) ?>비추천</a></th><?php } ?>
</tr>
</thead>
<tbody>
<?php
for ($i=0; $i<count($list); $i++) {
?>
<tr class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?>">
<td class="td_num">
<?php
if ($list[$i]['is_notice']) // 공지사항
echo '<strong>공지</strong>';
else if ($wr_id == $list[$i]['wr_id'])
echo "<span class=\"bo_current\">열람중</span>";
else
echo $list[$i]['num'];
?>
</td>
<?php if ($is_checkbox) { ?>
<td class="td_chk">
<label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject'] ?></label>
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">
</td>
<?php } ?>
<td class="td_subject">
<?php
echo $list[$i]['icon_reply'];
if ($is_category && $list[$i]['ca_name']) {
?>
<a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>
<?php } ?>
<a href="<?php echo $list[$i]['href'] ?>">
<?php echo $list[$i]['subject'] ?>
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
</a>
<?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
?>
</td>
<td class="td_name sv_use">
<?php echo $list[$i]['wr_1'] ?>
<?php echo $list[$i]['wr_2'] ?>
<?php echo $list[$i]['wr_3'] ?>
<?php echo $list[$i]['wr_4'] ?>
<?php echo $list[$i]['wr_5'] ?>
</td>
<td class="td_name sv_use"><?php echo $list[$i]['name'] ?></td>
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
<td class="td_num"><?php echo $list[$i]['wr_hit'] ?></td>
<?php if ($is_good) { ?><td class="td_num"><?php echo $list[$i]['wr_good'] ?></td><?php } ?>
<?php if ($is_nogood) { ?><td class="td_num"><?php echo $list[$i]['wr_nogood'] ?></td><?php } ?>
</tr>
<?php } ?>
<?php if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
</tbody>
</table>
</div>
<?php if ($list_href || $is_checkbox || $write_href) { ?>
<div class="bo_fx">
<?php if ($is_checkbox) { ?>
<ul class="btn_bo_adm">
<li><input type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value"></li>
</ul>
<?php } ?>
<?php if ($list_href || $write_href) { ?>
<ul class="btn_bo_user">
<?php if ($list_href) { ?><li><a href="<?php echo $list_href ?>" class="btn_b01">목록</a></li><?php } ?>
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?>
</form>
</div>
============================================================================================================
write.skin.php
<?php if ($is_category) { ?>
<tr>
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
<td>
<select name="ca_name" id="ca_name" required class="required" >
<option value="">선택하세요</option>
<?php echo $category_option ?>
</select>
</td>
</tr>
<?php } ?>
<tr>
<th scope="row"><label for="wr_1">그룹</label></th>
<td>
<input type="checkbox" value='핑크1' name="wr_1" id="wr_1" <?if($write[wr_1]=='핑크1'){echo "checked";} ?> >핑크1
<input type="checkbox" value='핑크2' name="wr_2" id="wr_2" <?if($write[wr_1]=='핑크2'){echo "checked";} ?> >핑크2
<input type="checkbox" value='핑크3' name="wr_3" id="wr_3" <?if($write[wr_1]=='핑크3'){echo "checked";} ?> >핑크3
<input type="checkbox" value='핑크4' name="wr_4" id="wr_4" <?if($write[wr_1]=='핑크4'){echo "checked";} ?> >핑크4
<input type="checkbox" value='핑크5' name="wr_5" id="wr_5" <?if($write[wr_1]=='핑크5'){echo "checked";} ?> >핑크5
</td>
</tr>
<tr>
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
<td>
<div id="autosave_wrapper">
<input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required" size="50" maxlength="255">
<?php if ($is_member) { // 임시 저장된 글 기능 ?>
<script src="<?php echo G5_JS_URL; ?>/autosave.js"></script>
<button type="button" id="btn_autosave" class="btn_frmline">임시 저장된 글 (<span id="autosave_count"><?php echo $autosave_count; ?></span>)</button>
<div id="autosave_pop">
<strong>임시 저장된 글 목록</strong>
<div><button type="button" class="autosave_close"><img src="<?php echo $board_skin_url; ?>/img/btn_close.gif" alt="닫기"></button></div>
<ul></ul>
<div><button type="button" class="autosave_close"><img src="<?php echo $board_skin_url; ?>/img/btn_close.gif" alt="닫기"></button></div>
</div>
<?php } ?>
</div>
</td>
</tr>
============================================================================================================
view.skin.php
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
$g_mm=get_member($ss_mb_id, $fields='mb_1');
if($v_wr==''){if($view[wr_1]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_2]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_3]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_4]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_5]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
$g_name=$view[wr_1]." ".$view[wr_2]." ".$view[wr_3]." ".$view[wr_4]." ".$view[wr_5];
if($v_wr==''){
alert($g_name.'그룹 게시물 입니다.',$list_href);
}
?>
1
게시판의 권한 설정 을 한다 왜 ?
회원 가입 안한 분이 게시판 을 보는 부분에서 문제가 발생요지가있기에
(사실은 구찬아다.. 스킨에 회원채크소스넣기가 구찬아서 ㅎㅎㅎ)
write.skin.php 에가서
<input type="checkbox" value='핑크1' name="wr_1" id="wr_1" <?if($write[wr_1]=='핑크1'){echo "checked";} ?> >핑크1
<input type="checkbox" value='핑크2' name="wr_2" id="wr_2" <?if($write[wr_1]=='핑크2'){echo "checked";} ?> >핑크2
<input type="checkbox" value='핑크3' name="wr_3" id="wr_3" <?if($write[wr_1]=='핑크3'){echo "checked";} ?> >핑크3
<input type="checkbox" value='핑크4' name="wr_4" id="wr_4" <?if($write[wr_1]=='핑크4'){echo "checked";} ?> >핑크4
<input type="checkbox" value='핑크5' name="wr_5" id="wr_5" <?if($write[wr_1]=='핑크5'){echo "checked";} ?> >핑크5
를 편하게 수정한다
예를 들자면 추가하고싶으면
<input type="checkbox" value='a핑크1' name="wr_1" id="wr_1" <?if($write[wr_1]=='핑크1'){echo "checked";} ?> >a핑크1
<input type="checkbox" value='b핑크2' name="wr_2" id="wr_2" <?if($write[wr_2]=='핑크2'){echo "checked";} ?> >b핑크2
<input type="checkbox" value='x핑크3' name="wr_3" id="wr_3" <?if($write[wr_3]=='핑크3'){echo "checked";} ?> >x핑크3
<input type="checkbox" value='d핑크4' name="wr_4" id="wr_4" <?if($write[wr_4]=='핑크4'){echo "checked";} ?> >d핑크4
<input type="checkbox" value='g핑크5' name="wr_5" id="wr_5" <?if($write[wr_5]=='핑크5'){echo "checked";} ?> >g핑크5
<input type="checkbox" value='hh핑크6' name="wr_6" id="wr_6" <?if($write[wr_6]=='핑크6'){echo "checked";} ?> >hh핑크6
이런식으로 수정한다 필자는 아주 귀찬아서 다 이러게 해놓아지만 $write[wr_1] 은 중복되면 안되는 부분이다
참고로 여기에 $write[wr_1] 는 $write[wr_10] 까지만 된다
왜? 기본 게시판 생성이되면 $write[wr_1] ~ $write[wr_10]기본생성이 되기때문이다
더늘리고 싶으면 흠,, 여러가지 생각할게 많아서 많이귀찬음
또한 여기를 고치면 view.skin.php
$g_mm=get_member($ss_mb_id, $fields='mb_1');
if($v_wr==''){if($view[wr_1]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_2]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_3]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_4]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_5]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
$g_name=$view[wr_1]." ".$view[wr_2]." ".$view[wr_3]." ".$view[wr_4]." ".$view[wr_5];
if($v_wr==''){
alert($g_name.'그룹 게시물 입니다.',$list_href);
}
부분도 고처야한다 왜 ? 구찬아서 걍 이러게 만듬
예를 들면
$g_mm=get_member($ss_mb_id, $fields='mb_1');
if($v_wr==''){if($view[wr_1]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_2]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_3]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_4]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_5]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_6]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
$g_name=$view[wr_1]." ".$view[wr_2]." ".$view[wr_3]." ".$view[wr_4]." ".$view[wr_5]." ".$view[wr_6];
if($v_wr==''){
alert($g_name.'그룹 게시물 입니다.',$list_href);
}
여기서 $g_mm=get_member($ss_mb_id, $fields='mb_1'); 의 get_member부분은 lib 안에 찾아보면 있다
말하자면 회원관리의 여분 필드 1번을 가져오기위한 소스이다
그리고 $view[wr_1]..$view[wr_2] 등등은 볼수는 없지만 게시판의 table 부분에 있는 여분필드 의 내용을 가져와서
회원관리 여분필드1과 같은 게 있는 지확인 하는 부분 이다
배열이나 여러가지를 잠시 생각 하다가 구찬다 라는 부분 이있어서 걍 저러게 만듬
2 회원정보수정에 가서 여분필드 1에 write.skin.php에
<input type="checkbox" value='핑크1' name="wr_1" id="wr_1" <?if($write[wr_1]=='핑크1'){echo "checked";} ?> >핑크1
<input type="checkbox" value='핑크2' name="wr_2" id="wr_2" <?if($write[wr_1]=='핑크2'){echo "checked";} ?> >핑크2
<input type="checkbox" value='핑크3' name="wr_3" id="wr_3" <?if($write[wr_1]=='핑크3'){echo "checked";} ?> >핑크3
<input type="checkbox" value='핑크4' name="wr_4" id="wr_4" <?if($write[wr_1]=='핑크4'){echo "checked";} ?> >핑크4
<input type="checkbox" value='핑크5' name="wr_5" id="wr_5" <?if($write[wr_1]=='핑크5'){echo "checked";} ?> >핑크5
value 값중 에 원하는 그룹을 쓴다
list.skin.php
<div class="tbl_head01 tbl_wrap">
<table>
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<?php if ($is_checkbox) { ?>
<th scope="col">
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
</th>
<?php } ?>
<th scope="col">제목</th>
<th scope="col">그룹</th>
<th scope="col">글쓴이</th>
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?>날짜</a></th>
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?>조회</a></th>
<?php if ($is_good) { ?><th scope="col"><?php echo subject_sort_link('wr_good', $qstr2, 1) ?>추천</a></th><?php } ?>
<?php if ($is_nogood) { ?><th scope="col"><?php echo subject_sort_link('wr_nogood', $qstr2, 1) ?>비추천</a></th><?php } ?>
</tr>
</thead>
<tbody>
<?php
for ($i=0; $i<count($list); $i++) {
?>
<tr class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?>">
<td class="td_num">
<?php
if ($list[$i]['is_notice']) // 공지사항
echo '<strong>공지</strong>';
else if ($wr_id == $list[$i]['wr_id'])
echo "<span class=\"bo_current\">열람중</span>";
else
echo $list[$i]['num'];
?>
</td>
<?php if ($is_checkbox) { ?>
<td class="td_chk">
<label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject'] ?></label>
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">
</td>
<?php } ?>
<td class="td_subject">
<?php
echo $list[$i]['icon_reply'];
if ($is_category && $list[$i]['ca_name']) {
?>
<a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>
<?php } ?>
<a href="<?php echo $list[$i]['href'] ?>">
<?php echo $list[$i]['subject'] ?>
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
</a>
<?php
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
?>
</td>
<td class="td_name sv_use">
<?php echo $list[$i]['wr_1'] ?>
<?php echo $list[$i]['wr_2'] ?>
<?php echo $list[$i]['wr_3'] ?>
<?php echo $list[$i]['wr_4'] ?>
<?php echo $list[$i]['wr_5'] ?>
</td>
<td class="td_name sv_use"><?php echo $list[$i]['name'] ?></td>
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
<td class="td_num"><?php echo $list[$i]['wr_hit'] ?></td>
<?php if ($is_good) { ?><td class="td_num"><?php echo $list[$i]['wr_good'] ?></td><?php } ?>
<?php if ($is_nogood) { ?><td class="td_num"><?php echo $list[$i]['wr_nogood'] ?></td><?php } ?>
</tr>
<?php } ?>
<?php if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
</tbody>
</table>
</div>
<?php if ($list_href || $is_checkbox || $write_href) { ?>
<div class="bo_fx">
<?php if ($is_checkbox) { ?>
<ul class="btn_bo_adm">
<li><input type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value"></li>
</ul>
<?php } ?>
<?php if ($list_href || $write_href) { ?>
<ul class="btn_bo_user">
<?php if ($list_href) { ?><li><a href="<?php echo $list_href ?>" class="btn_b01">목록</a></li><?php } ?>
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?>
</form>
</div>
============================================================================================================
write.skin.php
<?php if ($is_category) { ?>
<tr>
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
<td>
<select name="ca_name" id="ca_name" required class="required" >
<option value="">선택하세요</option>
<?php echo $category_option ?>
</select>
</td>
</tr>
<?php } ?>
<tr>
<th scope="row"><label for="wr_1">그룹</label></th>
<td>
<input type="checkbox" value='핑크1' name="wr_1" id="wr_1" <?if($write[wr_1]=='핑크1'){echo "checked";} ?> >핑크1
<input type="checkbox" value='핑크2' name="wr_2" id="wr_2" <?if($write[wr_1]=='핑크2'){echo "checked";} ?> >핑크2
<input type="checkbox" value='핑크3' name="wr_3" id="wr_3" <?if($write[wr_1]=='핑크3'){echo "checked";} ?> >핑크3
<input type="checkbox" value='핑크4' name="wr_4" id="wr_4" <?if($write[wr_1]=='핑크4'){echo "checked";} ?> >핑크4
<input type="checkbox" value='핑크5' name="wr_5" id="wr_5" <?if($write[wr_1]=='핑크5'){echo "checked";} ?> >핑크5
</td>
</tr>
<tr>
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
<td>
<div id="autosave_wrapper">
<input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required" size="50" maxlength="255">
<?php if ($is_member) { // 임시 저장된 글 기능 ?>
<script src="<?php echo G5_JS_URL; ?>/autosave.js"></script>
<button type="button" id="btn_autosave" class="btn_frmline">임시 저장된 글 (<span id="autosave_count"><?php echo $autosave_count; ?></span>)</button>
<div id="autosave_pop">
<strong>임시 저장된 글 목록</strong>
<div><button type="button" class="autosave_close"><img src="<?php echo $board_skin_url; ?>/img/btn_close.gif" alt="닫기"></button></div>
<ul></ul>
<div><button type="button" class="autosave_close"><img src="<?php echo $board_skin_url; ?>/img/btn_close.gif" alt="닫기"></button></div>
</div>
<?php } ?>
</div>
</td>
</tr>
============================================================================================================
view.skin.php
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
$g_mm=get_member($ss_mb_id, $fields='mb_1');
if($v_wr==''){if($view[wr_1]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_2]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_3]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_4]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
if($v_wr==''){if($view[wr_5]==$g_mm[mb_1]){$v_wr=1;}else{$v_wr='';}}
$g_name=$view[wr_1]." ".$view[wr_2]." ".$view[wr_3]." ".$view[wr_4]." ".$view[wr_5];
if($v_wr==''){
alert($g_name.'그룹 게시물 입니다.',$list_href);
}
?>
추천
4
4
댓글 전체
어머나 세상에 이거 그냥 고맙습니다 감사합니다 이렇게 말만하고 받아도 되는지 모르겠어요. 구찮아~~ 라고 하시면서 꼼꼼히 작업해서 설명까지 해주시고 너무 감사합니다 :D
감사합니다 혹시 나중에 추천좀 ㅎㅎㅎ