
    <div class="contents">
		<div class="mypage_right" style="margin-left:0; width:96%;">
            <? include_once ('faq_header_inc.php'); ?>
            <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" style="text-align:left">글쓴이 </th>
                            <th class="mypage_tbl_box20">날짜 </th>
                        </tr>
                    </thead>
                    <tbody>
                    <?
                        if($total_count==0) {
                            echo '<tr><td colspan="5" align="center">등록된 FAQ가 없습니다.</td></tr>';

                        } else {
                            foreach ($list as $val) {
                                $idx            = $val['idx'];
                                $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)?></th>
                            <td><a href="/web/cs/faq_view/<?=$idx?>?search_keyword=<?=$search_keyword?>&search_category1=<?=$search_category1?>&search_category2=<?=$search_category2?>&data_num=<?=$data_num?>"><?=$title?></a> </td>
                            <td class="writer"><?=$write_name?></td>
                            <td class="date"><?=$reg_date_txt?></td>
                        </tr>
                    <?          $data_num--;
                            }
                        }
                    ?>

                    </tbody>
                </table>
            </div>
            <div class="pagenumber2">
                <?=$pagination?>
            </div>
		</div>
	</div>
