first commit
This commit is contained in:
77
application/views/web/cs/notice_view.php
Executable file
77
application/views/web/cs/notice_view.php
Executable file
@@ -0,0 +1,77 @@
|
||||
<?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 ("notice_header_inc.php");?>
|
||||
<div>
|
||||
<div class="alarm"><a href="/web/cs/notice_view/<?=$row['idx']?>"><?=$row['title']?></a></div>
|
||||
<div class="srch_box">
|
||||
<span><a href="/web/cs/notice?search_keyword=<?=$search_keyword?>" class="btn btn-default br15">목록</a></span>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<div class="panel_header">
|
||||
<span class="panel_title"><span class="panel_no"><?=number_format($data_num)?></span><?=$result['title']?></span>
|
||||
<span class="no mypage_tbl_box10 fr"></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/notice?search_keyword=<?=$search_keyword?>" class="btn btn-default br15">목록</a></span>
|
||||
</div>
|
||||
<table class="table board">
|
||||
<tbody>
|
||||
<? foreach ($next_list as $val) {
|
||||
$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/notice_view/<?=$val['idx']?>?search_keyword=<?=$search_keyword?>&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" style="height:100px">
|
||||
<!-- <a href="#"><img src="/img/web/navi_up.gif"></br></a>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function copy_qna_url(){
|
||||
$('#copy_qna_url').select();
|
||||
try {
|
||||
document.execCommand('copy');
|
||||
alert("주소가 복사되었습니다.")
|
||||
} catch (err) {
|
||||
alert('이 브라우저는 지원하지 않습니다.')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user