<?php
if (!defined('_GNUBOARD_')) {
    exit;
} // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . G5_THEME_CSS_URL . '/skin/asktheme.member.css">', 0);
include G5_THEME_PATH . "/head.php";
?>

<div class='page-wrap scrap-page'>
    <div class='page-title'>
        <h1><?php echo $g5['title'] ?></h1>
    </div>

    <div class='responsetable'>
        <div class='caption'>스크랩 목록</div>
        <div class='tb-header'>
            <div class='tb-row'>
                <div class='tb-cell'>번호</div>
                <div class='tb-cell'>게시판</div>
                <div class='tb-cell'>제목</div>
                <div class='tb-cell'>보관일시</div>
                <div class='tb-cell'>삭제</div>
            </div>
        </div>
        <div class='tb-body'>
            <?php for ($i = 0; $i < count($list); $i++) { ?>
                <div class='tb-row'>
                    <div class='tb-cell'><?php echo $list[$i]['num'] ?></div>
                    <div class='tb-cell'>
                        <a href="<?php echo $list[$i]['opener_href'] ?>"><?php echo $list[$i]['bo_subject'] ?></a></div>
                    <div class='tb-cell left'>
                        <a href="<?php echo $list[$i]['opener_href_wr_id'] ?>"><?php echo $list[$i]['subject'] ?></a>
                    </div>
                    <div class='tb-cell'>
                        <?php echo $list[$i]['ms_datetime'] ?>
                    </div>
                    <div class='tb-cell'>
                        <a href="<?php echo $list[$i]['del_href']; ?>" onclick="del(this.href);return false;" class="button danger"><i class="fa fa-trash"></i></a>
                    </div>
                </div>
            <?php } ?>
        </div>
    </div>
    <?php
    if ($i == 0) {
        echo "<div class='responsetable'><div class='tb-body'><div class='tb-row'><div class='tb-cell'>자료가 없습니다.<br/><br/></div></div></div></div>";
    }
    ?>
    <div class='paging-wrap'>
        <?php echo get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&amp;page="); ?>
    </div>

</div>

<?php
include G5_THEME_PATH . "/tail.php";
