
    <div class="contents">
		<div class="mypage_right" style="margin-left:0; width:96%;">
            <? include_once ("notice_header_inc.php");?>
            <div>
                <div class="alarm"><a href="/web/cs/notice_view/<?=$row['idx']?>?search_keyword=<?=$search_keyword?>&data_num=<?=$data_num?>"><?=$row['title']?></a></div>
                <table class="table board">
                    <thead>
                        <tr>
                            <th class="mypage_tbl_box10">번호</th>
                            <th class="mypage_tbl_box60" style="text-align:center">제목</th>
                            <th class="mypage_tbl_box10">글쓴이 </th>
                            <th class="mypage_tbl_box20">날짜 </th>
                        </tr>
                    </thead>
                    <tbody>
                 <?
                    if($total_count==0) {
                        echo '<tr><td colspan="5" align="center">등록된 공지사항이 없습니다.</td></tr>';

                    } else {
                        foreach ($list as $val) {
                            $title          = $val['title'];
                            $write_name     = $val['write_name'];
                            $reg_date       = $val['reg_date'];
                            $reg_date_txt   = str_replace('-', '.', $reg_date);
                            $reg_date_txt   = substr($reg_date_txt, 0, 10);

                ?>
                        <tr>
                            <td class="no"><?=number_format($data_num)?></td>
                            <td><a href="/web/cs/notice_view/<?=$val['idx']?>?search_keyword=<?=$search_keyword?>&data_num=<?=$data_num?>"><?=$title?></a></td>
                            <td class="no"><?=$write_name?></td>
                            <td class="date"><?=$reg_date_txt?></td>
                        </tr>

                <?          $data_num--;
                        }
                    }
                ?>

                    </tbody>
                </table>
            </div>
            <div class="pagenumber2" style="position:unset"><?=$pagination?></div>

		</div>
	</div>
