74 lines
3.2 KiB
PHP
Executable File
74 lines
3.2 KiB
PHP
Executable File
<?php
|
|
$reg_date = $result['reg_date'];
|
|
$reg_date_txt = str_replace('-', '.', $reg_date);
|
|
$reg_date_txt = substr($reg_date_txt, 0, 16);
|
|
|
|
|
|
?>
|
|
<div class="contents">
|
|
<div class="mypage_right" style="margin-left:0; width:96%;">
|
|
<? include_once ('faq_header_inc.php'); ?>
|
|
<div class="panel">
|
|
<div class="panel_header">
|
|
<span class="panel_title"><span class="panel_no"><?=number_format($data_num)?></span><a href=""><?=$result['title']?></a></span>
|
|
|
|
<span class="no mypage_tbl_box10 fr"><?=$result['write_name']?></span>
|
|
</div>
|
|
<div class="panel_body" style="padding: 30px 30px 10px;">
|
|
<ul style="min-height:100px">
|
|
<li class="mypage_tbl_box70"><?=$result['content']?></li>
|
|
<li class="no mypage_tbl_box20"><?=$reg_date_txt?></li>
|
|
<li class="mypage_tbl_box10" style="text-align:right">
|
|
<input type="text" name="copy_qna_url" id="copy_qna_url" style="position:absolute;top:-9999em;" value="<?=CROSSMAP_URL?>">
|
|
<span class="btn btn-default br15" style="font-size:12px; background-color:#fff"><a href="<?=CROSSMAP_URL?>" onclick="copy_qna_url()">주소복사</a></span>
|
|
</li>
|
|
</ul>
|
|
<!-- <p class="fr"><img src="/img/web/f_icon5.png"></p>-->
|
|
</div>
|
|
</div>
|
|
<div class="srch_box">
|
|
<span><a href="/web/cs/faq?search_keyword=<?=$search_keyword?>&search_category1=<?=$search_category1?>&search_category2=<?=$search_category2?>" class="btn btn-default br15">목록</a></span>
|
|
</div>
|
|
<table class="table board">
|
|
<table class="table board">
|
|
<tbody>
|
|
|
|
<? foreach ($next_list as $val) {
|
|
$idx = $val['idx'];
|
|
$reg_date = $val['reg_date'];
|
|
$reg_date_txt = str_replace('-', '.', $reg_date);
|
|
$reg_date_txt = substr($reg_date_txt, 0, 10);
|
|
|
|
$data_num--;
|
|
?>
|
|
<tr>
|
|
<td class="no mypage_tbl_box10"><?=number_format($data_num)?></td>
|
|
<td class="mypage_tbl_box60"><a href="/web/cs/faq_view/<?=$idx?>?search_keyword=<?=$search_keyword?>&search_category1=<?=$search_category1?>&search_category2=<?=$search_category2?>&data_num=<?=$data_num?>"><?=$val['title']?></a></td>
|
|
<td class="no mypage_tbl_box20"><?=$val['write_name']?></td>
|
|
<td class="date mypage_tbl_box10"><?=$reg_date_txt?></td>
|
|
</tr>
|
|
<? }?>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="navi fr">
|
|
<!-- <a href=""><img src="/img/web/navi_up.gif"></a>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
function copy_qna_url(){
|
|
$('#copy_qna_url').select();
|
|
try {
|
|
document.execCommand('copy');
|
|
alert("주소가 복사되었습니다.")
|
|
} catch (err) {
|
|
alert('이 브라우저는 지원하지 않습니다.')
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|