first commit
This commit is contained in:
48
application/views/web/cs/faq.php
Executable file
48
application/views/web/cs/faq.php
Executable file
@@ -0,0 +1,48 @@
|
||||
|
||||
<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>
|
||||
47
application/views/web/cs/faq_header_inc.php
Executable file
47
application/views/web/cs/faq_header_inc.php
Executable file
@@ -0,0 +1,47 @@
|
||||
<form name="input_form" id="input_form" method="post">
|
||||
<div class="mypage_right_top">
|
||||
<span class="mypage_title"><a href="/web/cs/notice">공지사항</a> | <a href="/web/cs/faq"><span class="beachblue">FAQ</span></a></span>
|
||||
<span class="srch">
|
||||
<span><input type="text" name="search_keyword" id="search_keyword" value="<?=$search_keyword?>" placeholder="자주 찾는 질문을 검색해 보세요" ><a href="javascript:search_list();"><img src="/img/web/mypage_serch_icon.gif" alt="검색하기"></a></span>
|
||||
</span>
|
||||
<span style="margin-left:10px;">총 <span class="beachblue"><?=number_format($total_count)?></span>개</span>
|
||||
</div>
|
||||
<ul class="cate1">
|
||||
<? $i=1;
|
||||
foreach ($arr_category1 as $val) {?>
|
||||
<li <? if($search_category1==$val['category_code']) { echo 'class="current"';}?>><a href="/web/cs/faq?search_keyword=<?=$search_keyword?>&search_category1=<?=$val['category_code']?>"><?=$val['category_name']?></a></li>
|
||||
<?
|
||||
if($i==5) break;
|
||||
$i++;
|
||||
}?>
|
||||
</ul>
|
||||
<ul class="cate2">
|
||||
<li <? if($search_category2=='') { echo 'class="current"';}?>><a href="/web/cs/faq?search_keyword=<?=$search_keyword?>&search_category1=<?=$search_category1?>">전체</a></li>
|
||||
<? if(isset($arr_category2[$search_category1])==true) {?>
|
||||
<? $i=1;
|
||||
foreach ($arr_category2[$search_category1] as $val) {?>
|
||||
<li <? if($search_category2==$val['category_code']) { echo 'class="current"';}?>><a href="/web/cs/faq?search_keyword=<?=$search_keyword?>&search_category1=<?=$search_category1?>&search_category2=<?=$val['category_code']?>"><?=$val['category_name']?></a></li>
|
||||
<?
|
||||
if($i==7) break;
|
||||
$i++;
|
||||
}?>
|
||||
|
||||
<? }?>
|
||||
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
// 검색
|
||||
function search_list(){
|
||||
if($("#search_keyword").val()==''){
|
||||
alert("검색할 내용을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
$("#input_form").attr("action", "/web/cs/faq");
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
74
application/views/web/cs/faq_view.php
Executable file
74
application/views/web/cs/faq_view.php
Executable file
@@ -0,0 +1,74 @@
|
||||
<?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>
|
||||
48
application/views/web/cs/notice.php
Executable file
48
application/views/web/cs/notice.php
Executable file
@@ -0,0 +1,48 @@
|
||||
|
||||
<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>
|
||||
26
application/views/web/cs/notice_header_inc.php
Executable file
26
application/views/web/cs/notice_header_inc.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<form name="input_form" id="input_form" method="post">
|
||||
<div class="mypage_right_top">
|
||||
<span class="mypage_title"><a href="/web/cs/notice"><span class="beachblue">공지사항</span></a> | <a href="/web/cs/faq">FAQ</a></span>
|
||||
<span class="srch">
|
||||
<span><input type="text" name="search_keyword" id="search_keyword" value="<?=$search_keyword?>" placeholder="공지글을 검색해 보세요." ><a href="javascript:search_list();"><img src="/img/web/mypage_serch_icon.gif" alt="검색하기"></a></span>
|
||||
</span>
|
||||
<span style="margin-left:10px;">총 <span class="beachblue"><?=number_format($total_count)?></span>개</span>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
// 검색
|
||||
function search_list(){
|
||||
if($("#search_keyword").val()==''){
|
||||
alert("검색할 내용을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
$("#input_form").attr("action", "/web/cs/notice");
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
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