스크랩내용을, view페이지에서 호출할수 있을까요?
본문
스크랩이 기존에 쓰고있는중이고, 특정게시판 전용 스크랩2를 따로 만들었어요.
특정게시판전용의 스크랩한 내용을, 특정게시판의 view 페이지에서 보여주고 싶어요.
스크랩을 하게된다면 보통 아래와 같이 창이 뜨면서 내용이 나오거든요.
이 내용을 view페이지 안에 넣고 싶은데요
위와같이 본문글 아래 부분에 넣고 싶어요.
내용폼은 scrap.skin.php에 있는데, 아래와 같이 테이블로 짜여져있거든요.
<table class="div-table table">
<tbody>
<tr class="bg-black">
<th class="text-center" scope="col">번호</th>
<th class="text-center" scope="col">게시판</th>
<th class="text-center" scope="col">제목</th>
<th class="text-center" scope="col">보관일시</th>
<th class="text-center" scope="col">삭제</th>
</tr>
<?php for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td class="text-center"><?php echo $list[$i]['num'] ?></td>
<td class="text-center"><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="text-center"><?php echo $list[$i]['ms_datetime'] ?></td>
<td class="text-center"><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="text-center text-muted" height=150>자료가 없습니다.</td></tr>'; ?>
</tbody>
</table>
iframe은 안쓰고, 위 내용부분만 호출하고 싶은데요.
어떻게 호출을 해야할지...아이디어도 없고 초보이기도 하고...막막해서..질문을 남겨봅니다. ㅠ.ㅠ
질문이 미흡했어요.
ps. include로 페이지를 호출하려다가....
내용부분을 좀 꾸며서 게시판 view에 들어갈걸 따로 하고싶어서 그래요...
그래서 원래 스크랩페이지는 있고.
그래서..내용부분만 들여오고 싶은게 제가 궁금한 핵심이에요..ㅠ.ㅠ
!-->
답변을 작성하시기 전에 로그인 해주세요.