스크랩 기능에 겸손한 JS 작업 중
This commit is contained in:
@ -120,7 +120,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<? if ($scrap_href || $good_href || $nogood_href) { ?>
|
||||
<div id="bo_v_act">
|
||||
<? if ($scrap_href) { ?><a href="javascript:;" class="btn02" onclick="win_scrap('<?=$scrap_href?>');">스크랩</a><? } ?>
|
||||
<? if ($scrap_href) { ?><a href="<? echo $scrap_href; ?>" onclick="win_scrap(this.href); return false;" target="_blank" class="btn02">스크랩</a><? } ?>
|
||||
<? if ($good_href) {?><a href="<?=$good_href?>" class="btn02" target="hiddenframe">추천 <strong><?=number_format($view['wr_good'])?></strong></a><? } ?>
|
||||
<? if ($nogood_href) {?><a href="<?=$nogood_href?>" class="btn02" target="hiddenframe">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a><? } ?>
|
||||
</div>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="scrap" class="new_win">
|
||||
@ -19,11 +19,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<tbody>
|
||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<td class="td_num"><?=$list[$i][num]?></td>
|
||||
<td class="td_board"><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href]?>';"><?=$list[$i][bo_subject]?></a></td>
|
||||
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href_wr_id]?>';"><?=$list[$i][subject]?></a></td>
|
||||
<td class="td_datetime"><?=$list[$i][ms_datetime]?></td>
|
||||
<td class="td_mng"><a href="javascript:del('<?=$list[$i][del_href]?>');">삭제</a></td>
|
||||
<td class="td_num"><?=$list[$i]['num']?></td>
|
||||
<td class="td_board"><a href="<?=$list[$i]['opener_href']?>" target="_blank" onclick="opener.document.location.href='<?=$list[$i]['opener_href']?>'; return false;"><?=$list[$i]['bo_subject']?></a></td>
|
||||
<td><a href="<?=$list[$i]['opener_href_wr_id']?>" target="_blank" onclick="opener.document.location.href='<?=$list[$i]['opener_href_wr_id']?>'; return false;"><?=$list[$i]['subject']?></a></td>
|
||||
<td class="td_datetime"><?=$list[$i]['ms_datetime']?></td>
|
||||
<td class="td_mng"><a href="<? echo $list[$i]['del_href']; ?>" onclick="del(this.href); return false;">삭제</a></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
@ -32,10 +32,18 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
</table>
|
||||
|
||||
<div class="pg">
|
||||
<?=get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&page=");?>
|
||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&page=");?>
|
||||
</div>
|
||||
|
||||
<div class="btn_win">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn_win"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("div.btn_win").html("<a>창닫기</a>");
|
||||
|
||||
$("div.btn_win a").click(function() {
|
||||
window.close();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@ -1,5 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<div id="scrap_do" class="new_win">
|
||||
@ -14,7 +14,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">제목</th>
|
||||
<td><?=get_text(cut_str($write[wr_subject], 255))?></td>
|
||||
<td><?=get_text(cut_str($write['wr_subject'], 255))?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_content">댓글</label></th>
|
||||
@ -23,8 +23,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<p>
|
||||
스크랩을 하시면서 감사 혹은 격려의 댓글을 남기실 수 있습니다.
|
||||
</p>
|
||||
@ -32,4 +30,5 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="스크랩">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user