버튼위치 도움좀 부탁드려봅니다
본문
아무리 제가 하려고 해도 안되서요
바로 질문들어가겠습니다
쪼 위에 선택삭제버튼을
창닫기 위로 그러니까
게시물 아래쪽으로 움직이고 싶은데
아래로 내려버리면
선택삭제가 실행되지가 않습니다
http://rhdtkd77.dothome.co.kr/
아이디/비번모두 : test
<div class="tbl_head01 tbl_wrap">
<form name="fboardlist" id="fboardlist" action="<?=G5_BBS_URL?>/scrap_delete_all.php" onsubmit="return faqlist_submit(this);" method="post">
<table>
<caption>스크랩 목록</caption>
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkall" onclick="if(this.checked) all_checked(true); else all_checked(false);"></th>
<th scope="col">번호</th>
<th scope="col">게시판</th>
<th scope="col">제목</th>
<th scope="col">보관일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tr>
</tr>
<tbody>
<?php for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td class="td_num"><input type="checkbox" name="chk_a_id[]" value="<?=$list[$i]['ms_id']?>" id="chk_a_id_<?=$i?>"></td>
<td class="td_num"><?php echo $list[$i]['num'] ?></td>
<td class="td_board"><a href="<?php echo $list[$i]['opener_href'] ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href'] ?>'; return false;"><?php echo $list[$i]['bo_subject'] ?></a></td>
<td><a href="<?php echo $list[$i]['opener_href_wr_id'] ?>" target="_blank" onclick="opener.document.location.href='<?php echo $list[$i]['opener_href_wr_id'] ?>'; return false;"><?php echo $list[$i]['subject'] ?></a></td>
<td class="td_datetime"><?php echo $list[$i]['ms_datetime'] ?></td>
<td class="td_mng"><a href="<?php echo $list[$i]['del_href']; ?>" onclick="del(this.href); return false;">삭제</a></td>
</tr>
<?php } ?>
<?php if ($i == 0) echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
<button type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value">선택삭제</button>
</tbody>
</table>
</form>
</div>
</tbody> 위에 선택삭제가 코드가 있는 상태입니다
어떻게 해야 아래로 내리고 구현이 될지
<button type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value">선택삭제</button>
</tbody>
</table>
</form>
이 순서가 그대로 되야 되는것 같은데요
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&page="); ?>
이 코드 아래에 넣어도 안되는 상태입니다
방법이 따로 있는것 같아서요
내리기만 하면 되거든요
어떻게 해야 될까요? 도움좀 부탁드립니다
!-->답변 1
일단은 </table> 안에 넣지 마시고요
</table> 아래로 넣으시고요
<button type=
"submit"
name=
"btn_submit"
value=
"선택삭제"
onclick=
"document.pressed=this.value"
>선택삭제</button>을
내용은 form 태그 안에 있어야 합니다
현재 위의 내용밑에 </form>닫는 태그가 있는데 이부분으도 같이 움직이셔야 합니다.
</table>
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&page="); ?>
<button type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value">선택삭제</button>
</form>
닫는 </form> 태그가 선택삭제 밑에 있으시면 됩니다.