버튼위치 도움좀 부탁드려봅니다

버튼위치 도움좀 부탁드려봅니다

QA

버튼위치 도움좀 부탁드려봅니다

본문

아무리 제가 하려고 해도 안되서요 

바로 질문들어가겠습니다 


9c6295d9a0f0bf665ecc8be6d93294c0_1506844793_9588.png 

쪼 위에 선택삭제버튼을 

창닫기 위로 그러니까 

게시물 아래쪽으로 움직이고 싶은데 

아래로 내려버리면

선택삭제가 실행되지가 않습니다 


 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> 태그가 선택삭제 밑에 있으시면 됩니다. 






답변을 작성하시기 전에 로그인 해주세요.
전체 125,873 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT