first commit
This commit is contained in:
132
application/views/m/board/faq.php
Executable file
132
application/views/m/board/faq.php
Executable file
@@ -0,0 +1,132 @@
|
||||
<div class="mypage_top">
|
||||
<a href="/m/mypage/qna_add" class="pens"><img src="/img/mobile/penicon.png"></a>
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title"><a href="/m/mypage/req_password">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="mypage_header">
|
||||
<li class="header_tit2"><span onclick="window.location='/m/board/notice'" style="cursor:pointer">공지사항</span> | <strong onclick="window.location='/m/board/faq'" style="cursor:pointer">FAQ</strong> | <span onclick="window.location='/m/mypage/qna'" style="cursor:pointer">1:1문의</span> </li>
|
||||
</ul>
|
||||
<div class="mi_search">
|
||||
<ul>
|
||||
<li class="searchs">
|
||||
<div><input type="text" name="search_keyword" id="search_keyword" value="<?=$search_keyword?>" placeholder="검색" ><a href="javascript:search_keyword();"><i class="xi-search"></i></a></div>
|
||||
</li>
|
||||
<li class="txtxs" style="text-align: right;">총<span><?=$total_count?></span>개</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="swiper-container swiper-a1" >
|
||||
<div class="swiper-wrapper" style="max-height:58px;">
|
||||
|
||||
|
||||
<?foreach($arr_category1 as $i=>$data):?>
|
||||
|
||||
<?if(@$data['category_code'] == @$_GET['search_category1'])$set_index = $i;?>
|
||||
<div class="swiper-slide"><a href="/m/board/faq?search_keyword=<?=$search_keyword?>&search_category1=<?=$data['category_code']?>"><?=$data['category_name']?></a></div>
|
||||
<?endforeach?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="mypage_cont">
|
||||
|
||||
<?foreach($arr_category2[$search_category1] as $data):?>
|
||||
|
||||
<?if(count($data['list']) > 0):?>
|
||||
<div class="list_close" root-idx="<?=$data['idx']?>" style="cursor:pointer" onclick="toggle_content(this)">
|
||||
|
||||
<div class="tbl_box80"><a style="cursor:pointer;"><?=$data['category_name']?></a> </div>
|
||||
<div class="tbl_box10 time "> </div>
|
||||
<div class="tbl_box10 txr"><img src="/img/mobile/arrow_down2.png" class="arrow"> </div>
|
||||
|
||||
</div>
|
||||
|
||||
<?foreach($data['list'] as $list_data):?>
|
||||
<div class="list_view2" data-idx="<?=$data['idx']?>" style="display:none;cursor:pointer">
|
||||
<a href="/m/board/faq_view/<?=$list_data['idx']?>?search_keyword=<?=$search_keyword?>&search_category1=<?=$search_category1?>&search_category2=<?=$search_category2?>&data_num=<?=$data_num?>"><?=$list_data['title']?></a>
|
||||
</div>
|
||||
<?endforeach;?>
|
||||
<?endif?>
|
||||
<?endforeach;?>
|
||||
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _고객센터_FAQ -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script src="/js/m/jquery-1.11.3.min.js"></script>
|
||||
<script src="/js/m/swipers.js"></script>
|
||||
<script src="/js/m/jquery.row-grid.js"></script>
|
||||
<script src="/js/m/vendor_plugins.js"></script>
|
||||
<script src="/js/m/sly.min.js"></script>
|
||||
<script>
|
||||
$(document).ready( function() {
|
||||
var jbOffset = $( '.mypage_header' ).offset();
|
||||
$( window ).scroll( function() {
|
||||
if ( $( document ).scrollTop() > $( '.mypage_header' ).offset().top ) {
|
||||
$( '.mi_search' ).addClass( 'fix' );
|
||||
$( '.mypage_cont' ).addClass( 'fix' );
|
||||
}
|
||||
else {
|
||||
$( '.mi_search' ).removeClass( 'fix' );
|
||||
$( '.mypage_cont' ).removeClass( 'fix' );
|
||||
}
|
||||
});
|
||||
|
||||
sw = new Swiper('.swiper-a1', {
|
||||
slidesPerView: 3,
|
||||
initialSlide : <?=@$set_index ? $set_index : 0?>,
|
||||
loop:true,
|
||||
speed: 400
|
||||
});
|
||||
|
||||
|
||||
} );
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function toggle_content(obj){
|
||||
content_main_div = $(obj);
|
||||
arrow = content_main_div.find("img.arrow");
|
||||
|
||||
a = content_main_div;
|
||||
|
||||
// 열린 상태
|
||||
if(content_main_div.hasClass('list_close')){
|
||||
content_main_div.removeClass('list_close');
|
||||
content_main_div.addClass('list_open');
|
||||
$("div[data-idx="+content_main_div.attr("root-idx")+"]").show();
|
||||
arrow.attr("src","/img/mobile/arrow_up2.png");
|
||||
|
||||
}
|
||||
// 닫힌 상태
|
||||
else{
|
||||
content_main_div.removeClass('list_open');
|
||||
content_main_div.addClass('list_close');
|
||||
$("div[data-idx="+content_main_div.attr("root-idx")+"]").hide();
|
||||
arrow.attr("src","/img/mobile/arrow_down2.png");
|
||||
}
|
||||
|
||||
}
|
||||
function search_keyword(){
|
||||
window.location.href = '/m/board/notice?search_keyword='+$("#search_keyword").val();
|
||||
}
|
||||
</script>
|
||||
|
||||
80
application/views/m/board/faq_view.php
Executable file
80
application/views/m/board/faq_view.php
Executable file
@@ -0,0 +1,80 @@
|
||||
<div class="mypage_top">
|
||||
<a href="/m/mypage/qna_add" class="pens"><img src="/img/mobile/penicon.png"></a>
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title"><a href="/m/mypage/req_password">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="mypage_header">
|
||||
<li class="header_tit2"><span onclick="window.location='/m/board/notice'" style="cursor:pointer">공지사항</span> | <strong onclick="window.location='/m/board/faq'" style="cursor:pointer">FAQ</strong> | <span onclick="window.location='/m/mypage/qna'" style="cursor:pointer">1:1문의</span> </li>
|
||||
</ul>
|
||||
<div class="mi_search">
|
||||
<ul>
|
||||
<li class="searchs">
|
||||
<div><input type="text" name="search_keyword" id="search_keyword" value="<?=$search_keyword?>" placeholder="검색" ><a href="javascript:search_keyword();"><i class="xi-search"></i></a></div>
|
||||
</li>
|
||||
<li class="txtxs" style="text-align: right;">총<span><?=$total_count?></span>개</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="mypage_cont">
|
||||
<div class="list_view2 bgt">
|
||||
<?=$result['title']?>
|
||||
</div>
|
||||
<div class="list_view3">
|
||||
<?=$result['content']?>
|
||||
|
||||
<div class="banner" style="margin-top:20px;">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace1.png"></a> -->
|
||||
<!-- m크맵 _고객센터_FAQ_뷰 -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="list_view3" style="padding:10px 20px">
|
||||
<a href="">다른 도움말</a>
|
||||
</div>
|
||||
|
||||
<?foreach($next_list as $data):?>
|
||||
<div class="list_view2">
|
||||
<a href="/m/board/faq_view/<?=$data['idx']?>?search_keyword=<?=$search_keyword?>&search_category1=<?=$search_category1?>&search_category2=<?=$search_category2?>&data_num=<?=$data_num?>"
|
||||
style="<?=@($_SESSION['read'][$data['idx']] == true) ? "opacity:0.3":""?>"
|
||||
><?=$data['title']?></a>
|
||||
</div>
|
||||
|
||||
<?endforeach;?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready( function() {
|
||||
var jbOffset = $( '.mypage_header' ).offset();
|
||||
$( window ).scroll( function() {
|
||||
if ( $( document ).scrollTop() > $( '.mypage_header' ).offset().top ) {
|
||||
$( '.mi_search' ).addClass( 'fix' );
|
||||
$( '.mypage_cont' ).addClass( 'fix' );
|
||||
}
|
||||
else {
|
||||
$( '.mi_search' ).removeClass( 'fix' );
|
||||
$( '.mypage_cont' ).removeClass( 'fix' );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
} );
|
||||
function search_keyword(){
|
||||
window.location.href = '/m/board/faq?search_keyword='+$("#search_keyword").val();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
128
application/views/m/board/notice.php
Executable file
128
application/views/m/board/notice.php
Executable file
@@ -0,0 +1,128 @@
|
||||
|
||||
<script>
|
||||
$(document).ready( function() {
|
||||
var jbOffset = $( '.mypage_header' ).offset();
|
||||
$( window ).scroll( function() {
|
||||
if ( $( document ).scrollTop() > $( '.mypage_header' ).offset().top ) {
|
||||
$( '.mi_search' ).addClass( 'fix' );
|
||||
$( '.mypage_cont' ).addClass( 'fix' );
|
||||
}
|
||||
else {
|
||||
$( '.mi_search' ).removeClass( 'fix' );
|
||||
$( '.mypage_cont' ).removeClass( 'fix' );
|
||||
}
|
||||
});
|
||||
|
||||
sw = new Swiper('.swiper-a1', {
|
||||
slidesPerView: 3,
|
||||
initialSlide : <?=@$set_index ? $set_index : 0?>,
|
||||
loop:true,
|
||||
speed: 400
|
||||
});
|
||||
|
||||
|
||||
} );
|
||||
</script>
|
||||
<script>
|
||||
|
||||
|
||||
function toggle_content(obj){
|
||||
content_main_div = $(obj);
|
||||
arrow = content_main_div.find("img.arrow");
|
||||
|
||||
// 열린 상태
|
||||
if(content_main_div.hasClass('list_close')){
|
||||
content_main_div.removeClass('list_close');
|
||||
content_main_div.addClass('list_open');
|
||||
content_main_div.next("div.list_view").show();
|
||||
|
||||
arrow.attr("src","/img/mobile/arrow_up2.png");
|
||||
}
|
||||
// 닫힌 상태
|
||||
else{
|
||||
content_main_div.removeClass('list_open');
|
||||
content_main_div.addClass('list_close');
|
||||
content_main_div.next("div.list_view").hide();
|
||||
arrow.attr("src","/img/mobile/arrow_down2.png");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function search_keyword(){
|
||||
window.location.href = '/m/board/notice?search_keyword='+$("#search_keyword").val();
|
||||
}
|
||||
</script>
|
||||
<div class="mypage_top">
|
||||
<a href="/m/mypage/qna_add" class="pens"><img src="/img/mobile/penicon.png"></a>
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title"><a href="/m/mypage/req_password">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="mypage_header">
|
||||
<li class="header_tit2"><strong onclick="window.location='/m/board/notice'" style="cursor:pointer">공지사항</strong> | <span onclick="window.location='/m/board/faq'" style="cursor:pointer">FAQ</span> | <span onclick="window.location='/m/mypage/qna'" style="cursor:pointer">1:1문의</span> </li>
|
||||
</ul>
|
||||
<div class="mi_search">
|
||||
<ul>
|
||||
<li class="searchs">
|
||||
<div><input type="text" name="search_keyword" id="search_keyword" value="<?=$search_keyword?>" placeholder="검색" ><a href="javascript:search_keyword();"><i class="xi-search"></i></a></div>
|
||||
</li>
|
||||
<li class="txtxs" style="text-align: right;">총<span><?=$total_count?></span>개</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="mypage_cont">
|
||||
|
||||
<?foreach($board_data as $data):?>
|
||||
|
||||
|
||||
<div class="list_close" style="cursor:pointer;" onclick="toggle_content(this);">
|
||||
<div class="tbl_box80" style="margin-top:-8px;"><a><?=$data['title']?></a> </div>
|
||||
<div class="tbl_box10 time" style="margin-top:-8px;"><?=date('m/d',strtotime($data['reg_date']))?></div>
|
||||
<div class="tbl_box10 txr" style="margin-top:-8px;"><img class="arrow" src="/img/mobile/arrow_down2.png"></a> </div>
|
||||
</div>
|
||||
<div class="list_view" style="display:none;">
|
||||
<?=$data['content']?>
|
||||
</div>
|
||||
<?endforeach;?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?
|
||||
$max_page = floor($board_count/$limit);
|
||||
$max_page = $max_page==0 ? 1 : $max_page;
|
||||
$add_link = (isset($_GET['search_keyword'])) ? '&search_keyword='.$_GET['search_keyword'] : "";
|
||||
|
||||
$prev_page = ($current_page == 1) ? 1 : ($current_page-1);
|
||||
$next_page = ($max_page == $current_page) ? $current_page : ($current_page+1);
|
||||
|
||||
?>
|
||||
<div class="pagenumber" >
|
||||
<a href="/m/board/notice?page=<?=$prev_page.$add_link?>" ><img src="/img/mobile/mypage_arrow_left.gif"></a>
|
||||
<?for($i=1;$i<=$max_page;$i++):?>
|
||||
<a href="/m/board/notice?page=<?=$i.$add_link?>" <?if($i == $current_page) echo 'class="current"'?>><?=$i?></a>
|
||||
<?endfor;?>
|
||||
|
||||
|
||||
<a href="/m/board/notice?page=<?=$next_page.$add_link?>" ><img src="/img/mobile/mypage_arrow_right.gif"></a>
|
||||
<span class="fr" style="padding-right:5%;"><a href=""><img src="/img/mobile/arrow_up.gif"></a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _고객센터_FAQ -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
87
application/views/m/cmtv/channel_recommend.php
Executable file
87
application/views/m/cmtv/channel_recommend.php
Executable file
@@ -0,0 +1,87 @@
|
||||
|
||||
|
||||
<?
|
||||
$page_title = $page_title_1;
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
<div class="channel_cont channel_cont_fixed">
|
||||
<div class="wrap">
|
||||
<div id="channel_list">
|
||||
<?
|
||||
foreach ($channel as $val1) {
|
||||
|
||||
$style = 'display:block;';
|
||||
$class = 'bgb3';
|
||||
$style .= 'margin-bottom: 0 !important;';
|
||||
$class = '';
|
||||
|
||||
$class .= ' channel_page' . 1;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="channel_boxs <?=$class?>" style="margin-top:10px;<?=$style?>">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<div class="channel_profile">
|
||||
<div onclick="location.href='/m/life/channel/<?= $val1['idx'] ?>'"
|
||||
style="cursor:pointer;border-radius: 50px;width:50px;height:50px;background:url('<?= $val1['channel_icon'] ?>') no-repeat center; background-size:cover;"></div>
|
||||
</div>
|
||||
<div style="padding-top:7px;"><a href="/m/life/channel/<?= $val1['idx'] ?>"><span
|
||||
class="chinfo"><?= $val1['channel_name'] ?></span></a>
|
||||
<p><span class="beachblue"><?=number_format($val1['channel_article_count'])?></span>
|
||||
stories</p></a></div>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:15px !important; margin-right:10px;">
|
||||
|
||||
<button type="button" class="btn btn-success br20"
|
||||
onclick="location.href='/m/life/channel/<?= $val1['idx'] ?>'">더보기 <img
|
||||
src="/img/web/img_down.png" style="padding-top:8px;"></button>
|
||||
</div>
|
||||
</div>
|
||||
<? if(count($val1['data'])<5) {
|
||||
$j =0;
|
||||
foreach ($val1['data'] as $val2) {
|
||||
if($j >2 )break;
|
||||
$head_title = '';
|
||||
if ($val2['head_title'] != '') $head_title = '<span class="beachblue">[' . $val2['head_title'] . ']</span> ';
|
||||
$title = $head_title . $val2['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '90', '..', 'utf-8');
|
||||
?>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/<?= $val2['idx'] ?>"><img src="<?= $val2['main_img'] ?>" class="art-img"></a>
|
||||
<p class="chtitle"><a href="/m/life/life_view/<?= $val2['idx'] ?>"><?= $title_txt ?></a>
|
||||
<a href="/m/life/editor/<?= $val2['partner_idx'] ?>"><?= $val2['editor_name'] ?></a></span></p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var channel_page = 2;
|
||||
|
||||
function channel_list_more() {
|
||||
$(".channel_page" + channel_page).show();
|
||||
}
|
||||
</script>
|
||||
1082
application/views/m/common/comment_inc.php
Executable file
1082
application/views/m/common/comment_inc.php
Executable file
File diff suppressed because it is too large
Load Diff
166
application/views/m/common/comment_list.php
Executable file
166
application/views/m/common/comment_list.php
Executable file
@@ -0,0 +1,166 @@
|
||||
<?
|
||||
$this->load->helper('cookie');
|
||||
$comment_sns_id = get_cookie('crossmap_comment_sns_id');
|
||||
$comment_sns_name = get_cookie('crossmap_comment_sns_name');
|
||||
$comment_sns_type = get_cookie('crossmap_comment_sns_type');
|
||||
|
||||
|
||||
$ci=& get_instance();
|
||||
$ci->load->model('web/m_member');
|
||||
|
||||
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($arr_comment) == 0) {
|
||||
echo '<div style="height:100px;text-align:center; line-height:100px;">등록된 댓글이 없습니다.</div>';
|
||||
|
||||
} else{
|
||||
if($comment_sns_id == '') {
|
||||
$reply_css2 = 'replay_text';
|
||||
} else {
|
||||
$reply_css2 = '';
|
||||
}
|
||||
|
||||
$i=1;
|
||||
foreach($arr_comment as $val) {
|
||||
$content_type = $val['content_type'];
|
||||
$comment_status = $val['comment_status'];
|
||||
$comment_del_date = $val['del_date'];
|
||||
$comment_reg_date = $val['reg_date'];
|
||||
$c_sns_name = $val['sns_name'];
|
||||
$comment = $val['comment'];
|
||||
$is_best = $val['is_best'];
|
||||
$write_id = $val['write_id'];
|
||||
$comment_reg_date = substr($comment_reg_date, 0, 10);
|
||||
|
||||
$comment_main_style = '';
|
||||
if($i == count($arr_comment) && $is_comment_all_list == 'Y') {
|
||||
$comment_main_style= 'style="border-bottom:0 !important"';
|
||||
}
|
||||
|
||||
$comment_txt = $comment;
|
||||
if($comment_status!='1') {
|
||||
$comment_txt = '<div style="color:#bcbcbc;"><img src="/img/web/icon_info.gif"> '.$comment.'</div><div class="r_date" style="margin-top:5px;color:#bcbcbc;">'.$comment_del_date.'</div>';
|
||||
}
|
||||
if($is_best=='Y') $comment_txt = '<label>BEST</label>'.$comment_txt;
|
||||
|
||||
$arr_member = $ci->m_member->member_where_member_id_select($write_id);
|
||||
$member_img = '/img/web/img_profile_l.png';
|
||||
if(isset($arr_member['member_img'])==true) $member_img = $arr_member['member_img'];
|
||||
|
||||
$name_header = '<img src="'.$member_img.'" width="16" height="16"> ';
|
||||
if($c_sns_name !='cm') {
|
||||
$name_header = '<img src="/img/web/img_'.$c_sns_name.'_on.gif"> ';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<div class="reply_comment" id="reply_comment_main<?=$val['idx']?>" <?=$comment_main_style?>>
|
||||
<div class="r_info">
|
||||
<span class="beachblue">
|
||||
<?=$name_header?>
|
||||
<?
|
||||
if($comment_sns_id == '') {
|
||||
echo $val['write_name'];
|
||||
} else {
|
||||
if($content_type == '1' || $content_type == '2') {
|
||||
?>
|
||||
<a href="javascript:user_comment('<?=$val['write_id']?>', '<?=$val['write_name']?>');"><?=$val['write_name']?></a>
|
||||
<?
|
||||
} else {
|
||||
if($comment_sns_id!=$val['write_id']) {
|
||||
echo $val['write_name'];
|
||||
} else {
|
||||
?>
|
||||
<a href="javascript:user_comment('<?=$val['write_id']?>', '<?=$val['write_name']?>');"><?=$val['write_name']?></a>
|
||||
<?
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</span>
|
||||
<span class="r_date"><?=$comment_reg_date?>
|
||||
<? if($comment_status==1) {?>
|
||||
<? if($comment_sns_id!=$val['write_id']){?><span style="color:#e1e2e2;padding-left:10px;"> |</span> <a href="javascript:comment_spam('<?=$val['idx']?>', '<?=$val['write_name']?>')">신고</a><? } ?>
|
||||
<? if($comment_sns_id==$val['write_id']){?><span style="color:#e1e2e2;padding-left:10px;"> |</span> <a href="javascript:comment_del('<?=$val['idx']?>')">삭제</a> <?}?>
|
||||
<? }?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="r_text"><?=$comment_txt?></div>
|
||||
<ul class="r_base">
|
||||
<li class="btn btn-default" onclick="comment_reply_open('<?=$val['idx']?>');" style="color:#000000;cursor: pointer">답글 <span id="comment_reply_count<?=$val['idx']?>"><?=number_format($val['reply_count'])?></span></li>
|
||||
<li class="icons">
|
||||
<span class="thumbup"><a href="javascript:comment_like_select(1, '<?=$val['idx']?>');"><img src="/img/web/img_thumbup.jpg"></a><span id="comment_like1_<?=$val['idx']?>"><?=number_format($val['like_count'])?></span></span>
|
||||
<span class="thumbdown"><a href="javascript:comment_like_select(2, '<?=$val['idx']?>');"><img src="/img/web/img_thumbdown.jpg"></a><span id="comment_like2_<?=$val['idx']?>"><?=number_format($val['bad_count'])?></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 대댓글 -->
|
||||
|
||||
<?php
|
||||
$comment_sns_img1 = '/img/web/img_cm_off.gif'; $comment_sns_class1 = 'fr'; $nameText1=""; $comment_sns_javascript1="change_toggle('login_layer');"; $comment_sns_cursor1 = 'pointer';
|
||||
$comment_sns_img2 = '/img/web/img_tweet_off.gif'; $comment_sns_class2 = 'fr'; $nameText2=""; $comment_sns_javascript2="twitter_join('comment')"; $comment_sns_cursor2 = 'pointer';
|
||||
$comment_sns_img3 = '/img/web/img_facebook_off.gif';$comment_sns_class3 = 'fr'; $nameText3=""; $comment_sns_javascript3="checkLoginState();"; $comment_sns_cursor3 = 'pointer';
|
||||
$comment_sns_img4 = '/img/web/img_kakao_off.gif'; $comment_sns_class4 = 'fr'; $nameText4=""; $comment_sns_javascript4="kakako_login()"; $comment_sns_cursor4 = 'pointer';
|
||||
$comment_sns_img5 = '/img/web/img_naver_off.gif'; $comment_sns_class5 = 'fr'; $nameText5=""; $comment_sns_javascript5="naver_login()"; $comment_sns_cursor5 = 'pointer';
|
||||
if($comment_sns_type != '') {
|
||||
$comment_sns_javascript1 = "logout_advice()"; $comment_sns_javascript2 = "logout_advice()"; $comment_sns_javascript3 = "logout_advice()"; $comment_sns_javascript4 = "logout_advice()"; $comment_sns_javascript5 = "logout_advice()";
|
||||
//$comment_sns_cursor1 = "default"; $comment_sns_cursor2 = "default"; $comment_sns_cursor3 = "default"; $comment_sns_cursor4 = "default"; $comment_sns_cursor5 = "default";
|
||||
switch ($comment_sns_type) {
|
||||
case 'cm': $comment_sns_img1 = '/img/web/img_cm_on.gif'; $comment_sns_class1 = ''; $nameText1="<span>".$comment_sns_name."</span>"; break;
|
||||
case 'twitter': $comment_sns_img2 = '/img/web/img_tweet.gif'; $comment_sns_class2 = ''; $nameText2="<span>".$comment_sns_name."</span>"; break;
|
||||
case 'facebook': $comment_sns_img3 = '/img/web/img_facebook_on.gif'; $comment_sns_class3 = ''; $nameText3="<span>".$comment_sns_name."</span>"; break;
|
||||
case 'kakao': $comment_sns_img4 = '/img/web/img_kakao_on.gif'; $comment_sns_class4 = ''; $nameText4="<span>".$comment_sns_name."</span>"; break;
|
||||
case 'naver': $comment_sns_img5 = '/img/web/img_naver_on.gif'; $comment_sns_class5 = ''; $nameText5="<span>".$comment_sns_name."</span>"; break;
|
||||
}
|
||||
} else {
|
||||
$comment_sns_class1 = '';$comment_sns_class2 = '';$comment_sns_class3 = '';$comment_sns_class4 = '';$comment_sns_class5 = '';
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="reply_box2" id="reply_comment<?=$val['idx']?>" style="display:none">
|
||||
<div id="reply_comment_list<?=$val['idx']?>"></div>
|
||||
<input type="hidden" name="comment_reply_page<?=$val['idx']?>" id="comment_reply_page<?=$val['idx']?>" value="1">
|
||||
<div class="reply_close" id="reply_more<?=$val['idx']?>" style="display:none;"><a href="javascript:comment_reply_more(<?=$val['idx']?>)">더보기</a> <img src="/img/web/img_replyopen.gif"></div>
|
||||
|
||||
<ul class="box_wrap2">
|
||||
<li class="r_img2"><img src="/img/web/img_reply1.gif"></li>
|
||||
<li>
|
||||
<div class="reply_box">전체 댓글 보기 >
|
||||
<div class="reply_social">
|
||||
<a href="javascript:<?=$comment_sns_javascript1?>" style="cursor:<?=$comment_sns_cursor1?>"><span class="<?=$comment_sns_class1?>"><img src="<?=$comment_sns_img1?>"></span></a> <?=$nameText1?>
|
||||
<a href="javascript:<?=$comment_sns_javascript2?>" style="cursor:<?=$comment_sns_cursor2?>"><span class="tweet <?=$comment_sns_class2?>"><img src="<?=$comment_sns_img2?>"></span></a> <?=$nameText2?>
|
||||
<a href="javascript:<?=$comment_sns_javascript3?>" style="cursor:<?=$comment_sns_cursor3?>"><span class="facebook <?=$comment_sns_class3?>"><img src="<?=$comment_sns_img3?>"></span></a> <?=$nameText3?>
|
||||
<a href="javascript:<?=$comment_sns_javascript4?>" style="cursor:<?=$comment_sns_cursor4?>"><span class="<?=$comment_sns_class4?>"><img src="<?=$comment_sns_img4?>"></span></a> <?=$nameText4?>
|
||||
<a href="javascript:<?=$comment_sns_javascript5?>" style="cursor:<?=$comment_sns_cursor5?>"><span class="<?=$comment_sns_class5?>"><img src="<?=$comment_sns_img5?>"></span></a> <?=$nameText5?>
|
||||
</div>
|
||||
<div class="reply_write">
|
||||
<textarea class="form-control <?=$reply_css2?> comment_text" name="comment<?=$val['idx']?>" id="comment<?=$val['idx']?>" strA="<?=$val['idx']?>" rows="3" placeholder="댓글 작성 시 상대방에 대한 배려와 사랑을 담아주세요." style=" width: 590px;"></textarea>
|
||||
</div>
|
||||
<div class="reply_regist">
|
||||
<span class="reply_no" id="reply_text_count<?=$val['idx']?>">0/300</span><span class="reply_btn"><a href="javascript:comment_reply_add_proc(<?=$val['idx']?>);"> 등록</a></span>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="reply_close"><a href="javascript:comment_reply_close('<?=$val['idx']?>')">댓글 접기</a> <img src="/img/web/img_replyclose.gif"></div>
|
||||
</div>
|
||||
<!--// 대댓글 -->
|
||||
|
||||
<?
|
||||
$i++;
|
||||
}?>
|
||||
<?
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||댓글가져오기를 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
94
application/views/m/common/comment_reply_list.php
Executable file
94
application/views/m/common/comment_reply_list.php
Executable file
@@ -0,0 +1,94 @@
|
||||
<?
|
||||
$this->load->helper('cookie');
|
||||
$comment_sns_id = get_cookie('crossmap_comment_sns_id');
|
||||
|
||||
$ci=& get_instance();
|
||||
$ci->load->model('web/m_member');
|
||||
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
$row_count = count($arr_comment);
|
||||
if($row_count > 0) {
|
||||
foreach($arr_comment as $val) {
|
||||
$content_type = $val['content_type'];
|
||||
$comment_reg_date = $val['reg_date'];
|
||||
$comment_reg_date = substr($comment_reg_date, 0, 10);
|
||||
$comment_status = $val['comment_status'];
|
||||
$comment = $val['comment'];
|
||||
$comment_del_date = $val['del_date'];
|
||||
$is_best = $val['is_best'];
|
||||
$c_sns_name = $val['sns_name'];
|
||||
$write_id = $val['write_id'];
|
||||
|
||||
$comment_txt = $comment;
|
||||
if($comment_status!='1') {
|
||||
$comment_txt = '<div style="color:#bcbcbc;"><img src="/img/web/icon_info.gif"> '.$comment.'</div><div class="r_date" style="margin-top:5px;color:#bcbcbc;">'.$comment_del_date.'</div>';
|
||||
}
|
||||
if($is_best=='Y') $comment_txt = '<label>BEST</label>'.$comment_txt;
|
||||
|
||||
$arr_member = $ci->m_member->member_where_member_id_select($write_id);
|
||||
$member_img = '/img/web/img_profile_l.png';
|
||||
if(isset($arr_member['member_img'])==true) $member_img = $arr_member['member_img'];
|
||||
|
||||
$name_header = '<img src="'.$member_img.'" width="16" height="16"> ';
|
||||
if($c_sns_name !='cm') {
|
||||
$name_header = '<img src="/img/web/img_'.$c_sns_name.'_on.gif"> ';
|
||||
}
|
||||
|
||||
?>
|
||||
<ul class="box_wrap">
|
||||
<li class="img_reply"><img src="/img/web/img_reply1.gif"></li>
|
||||
<li>
|
||||
<div class="r_info">
|
||||
<span class="beachblue">
|
||||
<?=$name_header?>
|
||||
<?
|
||||
if($comment_sns_id=='') {
|
||||
echo $val['write_name'];
|
||||
} else {
|
||||
if($content_type == '1' || $content_type == '2') {
|
||||
?>
|
||||
<a href="javascript:user_comment('<?=$val['write_id']?>', '<?=$val['write_name']?>');" style="color: #2bbec6 !important;"><?=$val['write_name']?></a>
|
||||
|
||||
<? } else {
|
||||
if($comment_sns_id!=$val['write_id']) {
|
||||
echo $val['write_name'];
|
||||
} else {
|
||||
?>
|
||||
<a href="javascript:user_comment('<?=$val['write_id']?>', '<?=$val['write_name']?>');" style="color: #2bbec6 !important;"><?=$val['write_name']?></a>
|
||||
<?
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
<span class="r_date"><?=$comment_reg_date?>
|
||||
<? if($comment_status==1) {?>
|
||||
<? if($comment_sns_id!=$val['write_id']){?><span style="color:#e1e2e2;padding-left:10px;"> |</span> <a href="javascript:comment_spam('<?=$val['idx']?>', '<?=$val['write_name']?>')">신고</a><?}?>
|
||||
<? if($comment_sns_id==$val['write_id']){?><span style="color:#e1e2e2;padding-left:10px;"> |</span> <a href="javascript:reply_comment_del('<?=$val['idx']?>','<?=$val['p_idx']?>');">삭제</a> <?}?>
|
||||
<? }?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="r_base">
|
||||
<span><?=$comment_txt?></span>
|
||||
</div>
|
||||
</li>
|
||||
<li class="icons2">
|
||||
<span class="thumbup2"><a href="javascript:comment_like_select(1, '<?=$val['idx']?>')"><img src="/img/web/img_thumbup.jpg"></a><span id="comment_like1_<?=$val['idx']?>"><?=number_format($val['like_count'])?></span></span>
|
||||
<span class="thumbdown2"><a href="javascript:comment_like_select(2, '<?=$val['idx']?>')"><img src="/img/web/img_thumbdown.jpg"></a><span id="comment_like2_<?=$val['idx']?>"><?=number_format($val['bad_count'])?></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<?
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||댓글가져오기를 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
120
application/views/m/common/comment_spam_layer_inc.php
Executable file
120
application/views/m/common/comment_spam_layer_inc.php
Executable file
@@ -0,0 +1,120 @@
|
||||
|
||||
<?php
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
?>
|
||||
|
||||
<!-- 댓글 신고 -->
|
||||
<div id="comment_spam_layer" style="display:none;">
|
||||
<input type="hidden" name="comment_spam_idx" id="comment_spam_idx">
|
||||
<div class="popup_wrap" style="top: 10%;">
|
||||
<div class="popupbox trc">
|
||||
<div class="popuptop">
|
||||
<h3 class="p_title">신고하기 </h3>
|
||||
<span class="btn-close"><a href="javascript:commonLayerClose('comment_spam_layer')"><img src="/img/mobile/btn-close.png"></a></span>
|
||||
</div>
|
||||
<div class="popupbody">
|
||||
<dl class="bgb notice pd30 ft16" style="margin:20px 0">
|
||||
<dt>신고대상</dt>
|
||||
<dd id="comment_write_name_txt"></dd>
|
||||
<dt style="padding-top:6px;">내용</dt>
|
||||
<dd class="info_forms">
|
||||
<div>
|
||||
<input type="id" class="form-control" type="text" name="spam_reason_content" id="spam_reason_content" class="form-control" placeholder="간략 내용이 들어갑니다. " style="width:97%;">
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="ft18 pd30 beachblue">신고를 원하시는 이유를 선택해 주세요.</div>
|
||||
<dl class="bgb notice_list ft16">
|
||||
<dt>부적절한 홍보 게시물</dt>
|
||||
<dd><input type="radio" name="spam_reason_type" id="spam_reason_type1" value="1" class="current" checked=""></dd>
|
||||
<dt>음란성 혹은 청소년에게 유해</dt>
|
||||
<dd><input type="radio" name="spam_reason_type" id="spam_reason_type2" value="2"></dd>
|
||||
<dt>명예훼손 혹은 저작권 침해</dt>
|
||||
<dd><input type="radio" name="spam_reason_type" id="spam_reason_type3" value="3"></dd>
|
||||
</dl>
|
||||
<div style="margin:30px 0; display:block; text-align:center">
|
||||
<button type="button" class="btn btn-default_bb br20" style="padding:10px 40px; font-size:16px; margin:5px 0 " onclick="commonLayerClose('comment_spam_layer')">취소</button>
|
||||
<button type="button" class="btn btn-success br20" style="padding:10px 40px; font-size:16px;margin:5px 0" onclick="comment_spam_proc();">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="mask"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
// 댓글 신고
|
||||
function comment_spam(idx, write_name){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
//$("html, body").scrollTop(0);
|
||||
|
||||
$("#comment_spam_layer").toggle();
|
||||
$("#comment_write_name_txt").html(write_name);
|
||||
$("#comment_spam_idx").val(idx);
|
||||
$("#spam_reason_content").val('');
|
||||
$('input:radio[name="spam_reason_type"][value="1"]').prop('checked', true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
function comment_spam_proc(){
|
||||
var idx = $("#comment_spam_idx").val();
|
||||
if(idx == '') {
|
||||
alert("신고하기에 실패되었습니다.");
|
||||
$("#comment_spam_layer").toggle();
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#spam_reason_content").val()== '') {
|
||||
alert("신고내용을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"comment_idx" : idx,
|
||||
"spam_reason_content" : $("#spam_reason_content").val(),
|
||||
"spam_reason_type" : $(":input:radio[name=spam_reason_type]:checked").val()
|
||||
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/comment_spam_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
alert("신고되었습니다.");
|
||||
$("#comment_spam_layer").toggle();
|
||||
return false;
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
169
application/views/m/common/footer.php
Executable file
169
application/views/m/common/footer.php
Executable file
@@ -0,0 +1,169 @@
|
||||
<div class="mypage_footer" style="margin-top:0">
|
||||
<div class="f_btns">
|
||||
<span><a href="" class="btn btn-default_bb br20">로그인</a></span>
|
||||
<span><a href="" class="btn btn-default_bb br20">PC버전</a></span>
|
||||
<span><a href="" class="btn btn-default_bb br20">고객센터</a></span>
|
||||
</div>
|
||||
<div class="f_policy">
|
||||
<span><a href="">이용약관</a></span>
|
||||
<span style="padding:0 2px"><img src="/img/mobile/bar.gif"></span>
|
||||
<span><a href="">개인정보취급방침</a></span>
|
||||
</div>
|
||||
<div class="f_social">
|
||||
<span><a href=""><img src="/img/mobile/f_icon1_l.png"></a></span>
|
||||
<span><a href=""><img src="/img/mobile/f_icon2_l.png"></a></span>
|
||||
<span><a href=""><img src="/img/mobile/f_icon3_l.png"></a></span>
|
||||
<span><a href=""><img src="/img/mobile/f_icon4_l.png"></a></span>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
© 2017 The CrossMap. All Rights Reserved.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
|
||||
<!--script src="js/jquery-1.11.3.min.js"></script-->
|
||||
<script>
|
||||
// 스크롤 고정 함수.
|
||||
function scroll_fix(news_nav) {
|
||||
|
||||
$( document ).ready( function() {
|
||||
|
||||
var jbOffset = $( '.'+news_nav ).offset(); // 고정하고자 하는 클래스의 offset.
|
||||
|
||||
$( window ).scroll( function() {
|
||||
/*스크롤탑(현재스크롤위치) > news_nav : 상단 아래로 내렸을때 상단 고정*/
|
||||
if ( $( document ).scrollTop() > jbOffset.top ) {
|
||||
$( '.'+news_nav ).addClass( 'jbFixed' );
|
||||
}
|
||||
/*스크롤탑(현재스크롤위치) <= news_nav : 원래*/
|
||||
else {
|
||||
$( '.'+news_nav ).removeClass( 'jbFixed' );
|
||||
}
|
||||
});
|
||||
|
||||
} );
|
||||
}
|
||||
//
|
||||
|
||||
scroll_fix('news_nav'); // 상단 고정하고 싶은 클래스 설정.
|
||||
</script>
|
||||
|
||||
<!-- 슬라이드 스크립트 -->
|
||||
<script src="js/swiper.min.js"></script>
|
||||
|
||||
<!--script>
|
||||
// 루프용 슬라이드
|
||||
var swiper1 = new Swiper('.mainswiper', {
|
||||
loop: true,
|
||||
autoHeight: true,
|
||||
});
|
||||
//console.log(swiper.activeIndex);
|
||||
|
||||
$(document).on("touchend mousemove", ".mainswiper", function(){
|
||||
console.log(swiper1.activeIndex);
|
||||
// 슬라이드 당겼을 때, 전 current 제거
|
||||
$(".news_nav .current").removeClass('current')
|
||||
// 슬라이드 당겼을 떄, 후 current 생성
|
||||
slide_index = swiper1.activeIndex-1;
|
||||
if(swiper1.activeIndex==5){
|
||||
slide_index = 0;
|
||||
}
|
||||
$(".news_nav span").eq(slide_index).addClass('current')
|
||||
});
|
||||
var swiper2 = new Swiper('.swiper-03', {
|
||||
slidesPerView: 3,
|
||||
spaceBetween: 10,
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
// 홈 만나 를 클릭했을때 슬라이드 이동
|
||||
$(".news_nav span").on('touchstart mousedown',function(e){
|
||||
//console.log('클릭이동');
|
||||
// 터치하거나, 마우스 다운을 눌렀을 때, 실행 금지
|
||||
e.preventDefault()
|
||||
// 은혜, 라이프,,, 클릭시, 전 current 제거
|
||||
$(".news_nav .current").removeClass('current')
|
||||
// 후 current 생성
|
||||
$(this).addClass('current')
|
||||
// 후 슬라이드로 이동
|
||||
swiper1.slideTo( $(this).index()+1 )
|
||||
})
|
||||
$(".news_nav span").click(function(e){
|
||||
// 홈 만나 클릭시 실행 금지.
|
||||
e.preventDefault()
|
||||
})
|
||||
</script>
|
||||
<!-- 슬라이드 스크립트 끝-->
|
||||
|
||||
<!--script>
|
||||
var mySwiper ;
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.news_menu').click(function(){
|
||||
$('.life_menu_l').addClass('active');
|
||||
$('.mainswiper').css('height','740px');
|
||||
});
|
||||
$('.life_close').click(function(){
|
||||
$('.life_menu_l').removeClass('active');
|
||||
$('.mainswiper').css('height','auto');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
function detectswipe(el,func) {
|
||||
swipe_det = new Object();
|
||||
swipe_det.sX = 0;
|
||||
swipe_det.sY = 0;
|
||||
swipe_det.eX = 0;
|
||||
swipe_det.eY = 0;
|
||||
var min_x = 20; //min x swipe for horizontal swipe
|
||||
var max_x = 40; //max x difference for vertical swipe
|
||||
var min_y = 40; //min y swipe for vertical swipe
|
||||
var max_y = 50; //max y difference for horizontal swipe
|
||||
var direc = "";
|
||||
ele = document.getElementById(el);
|
||||
ele.addEventListener('touchstart',function(e){
|
||||
var t = e.touches[0];
|
||||
swipe_det.sX = t.screenX;
|
||||
swipe_det.sY = t.screenY;
|
||||
},false);
|
||||
ele.addEventListener('touchmove',function(e){
|
||||
e.preventDefault();
|
||||
var t = e.touches[0];
|
||||
swipe_det.eX = t.screenX;
|
||||
swipe_det.eY = t.screenY;
|
||||
},false);
|
||||
ele.addEventListener('touchend',function(e){
|
||||
//horizontal detection
|
||||
if ((((swipe_det.eX - min_x > swipe_det.sX) || (swipe_det.eX + min_x < swipe_det.sX)) && ((swipe_det.eY < swipe_det.sY + max_y) && (swipe_det.sY > swipe_det.eY - max_y)))) {
|
||||
if(swipe_det.eX > swipe_det.sX) direc = "r";
|
||||
else direc = "l";
|
||||
}
|
||||
//vertical detection
|
||||
if ((((swipe_det.eY - min_y > swipe_det.sY) || (swipe_det.eY + min_y < swipe_det.sY)) && ((swipe_det.eX < swipe_det.sX + max_x) && (swipe_det.sX > swipe_det.eX - max_x)))) {
|
||||
if(swipe_det.eY > swipe_det.sY) direc = "d";
|
||||
else direc = "u";
|
||||
}
|
||||
|
||||
if (direc != "") {
|
||||
if(typeof func == 'function') func(el,direc);
|
||||
}
|
||||
direc = "";
|
||||
},false);
|
||||
}
|
||||
|
||||
function myfunction(el,d) {
|
||||
$('.life_menu_l').removeClass('active');
|
||||
$('.mainswiper').css('height','auto');
|
||||
}
|
||||
detectswipe('swipeme',myfunction);
|
||||
</script-->
|
||||
92
application/views/m/common/kmc_mobile_auth.php
Executable file
92
application/views/m/common/kmc_mobile_auth.php
Executable file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
header("Pragma: no-cache");
|
||||
header("Cache-Control: no-cache,must-revalidate");
|
||||
|
||||
$tr_url = WWW_CROSSMAP.'/m/common/kmc_mobile_callback'; // 본인인증 결과수신 POPUP URL
|
||||
$tr_add = 'N'; // IFrame사용여부
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="/js/web/common.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<form name="reqKMCISForm" method="post" action="#">
|
||||
<input type="hidden" name="tr_cert" id="tr_cert">
|
||||
<input type="hidden" name="tr_url" id="tr_url" value = "<?=$tr_url?>">
|
||||
<input type="hidden" name="tr_add" id="tr_add" value = "<?=$tr_add?>">
|
||||
</form>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
function kmc_window_open(mobile, type){
|
||||
var form_data = {
|
||||
"mobile" : mobile,
|
||||
"type" : type
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/common/kmc_encode_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if(rtnJson.code=='9999') {
|
||||
alert("본인인증에 실패했습니다.");
|
||||
return false;
|
||||
|
||||
} else {
|
||||
$("#tr_cert").val(rtnJson.data);
|
||||
openKMCISWindow();
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('본인인증에 실패했습니다.');
|
||||
return_state = false;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
kmc_window_open("<?=@$_GET['mobile']?>","<?=$_GET['type']?>");
|
||||
});
|
||||
|
||||
// kmc 본인인증
|
||||
window.name = "kmcis_web";
|
||||
var KMCIS_window;
|
||||
function openKMCISWindow(){
|
||||
var UserAgent = navigator.userAgent;
|
||||
/* 모바일 접근 체크*/
|
||||
// 모바일일 경우 (변동사항 있을경우 추가 필요)
|
||||
document.reqKMCISForm.target = '';
|
||||
|
||||
document.reqKMCISForm.action = 'https://www.kmcert.com/kmcis/web/kmcisReq.jsp';
|
||||
document.reqKMCISForm.submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
151
application/views/m/common/kmc_mobile_auth_fin.php
Executable file
151
application/views/m/common/kmc_mobile_auth_fin.php
Executable file
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
header("Pragma: no-cache");
|
||||
header("Cache-Control: no-cache,must-revalidate");
|
||||
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="/js/web/common.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
<? if($type=='find_password') {?>
|
||||
mobile_auth_password_find_fin('<?=$CI?>');
|
||||
<? } else if($type=='find_id') {?>
|
||||
mobile_auth_id_find_fin('<?=$CI?>');
|
||||
<? } else if($type=='email_check') {?>
|
||||
mobile_auth_email_check_fin();
|
||||
<? } else if($type=='member_edit') {?>
|
||||
mobile_auth_member_edit_fin('<?=$phone?>');
|
||||
alert("번호 수정 완료");
|
||||
<? } else {?>
|
||||
mobile_auth_fin('<?=$CI?>', '<?=$name?>');
|
||||
<? }?>
|
||||
self.close();
|
||||
});
|
||||
|
||||
function mobile_auth_fin(key, name){
|
||||
$("#is_mobile_auth", opener.document).val("Y");
|
||||
$("#mobile_CI", opener.document).val(key);
|
||||
$("#member_name", opener.document).val(name);
|
||||
$('.mobile_auth_btn', opener.document).hide();
|
||||
|
||||
}
|
||||
|
||||
function mobile_auth_password_find_fin(key){
|
||||
var form_data = {
|
||||
"key" : key,
|
||||
"type" : 'mobile'
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/find_password_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if(rtnJson.code=='9999') {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
|
||||
} else {
|
||||
$('#find_pwd_layer', opener.document).hide();
|
||||
$('#find_pwd_fin_layer', opener.document).show();
|
||||
$('#find_pwd_email_text', opener.document).html(rtnJson.data);
|
||||
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('비밀번호 찾기에 실패했습니다 실패했습니다.');
|
||||
return_state = false;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function mobile_auth_id_find_fin(key){
|
||||
var form_data = {
|
||||
"key" : key,
|
||||
"type" : 'mobile'
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/find_id_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if(rtnJson.code=='9999') {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
|
||||
} else {
|
||||
$('#find_id_layer', opener.document).hide();
|
||||
$('#find_id_fin_layer', opener.document).show();
|
||||
$('#find_id_text', opener.document).html(rtnJson.data);
|
||||
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('비밀번호 찾기에 실패했습니다 실패했습니다.');
|
||||
return_state = false;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function mobile_auth_email_check_fin(){
|
||||
$("#is_mobile_auth_email", opener.document).val("Y");
|
||||
$('#email_change_layer2', opener.document).show();
|
||||
$('#email_change_layer1', opener.document).hide();
|
||||
|
||||
}
|
||||
|
||||
function mobile_auth_member_edit_fin(phone){
|
||||
var form_data = {
|
||||
"mobile" : phone
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/member_mobile_change_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if(rtnJson.code=='9999') {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
} else {
|
||||
$("#member_edit_mobile", opener.document).val("");
|
||||
$('#mobile_edit_layer', opener.document).hide();
|
||||
$('#member_edit_text', opener.document).html('+82 '+rtnJson.data);
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('모바일폰 변경에 실패했습니다.');
|
||||
return_state = false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
19
application/views/m/common/kmc_mobile_callback.php
Executable file
19
application/views/m/common/kmc_mobile_callback.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<script src="/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="/js/web/common.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
|
||||
|
||||
if(opener.kmc_auth_callback !== undefined)opener.kmc_auth_callback("<?=$name?>","<?=$phone?>","<?=$CI?>");
|
||||
self.close();
|
||||
});
|
||||
</script>
|
||||
157
application/views/m/common/light_header.php
Executable file
157
application/views/m/common/light_header.php
Executable file
@@ -0,0 +1,157 @@
|
||||
<script>
|
||||
|
||||
|
||||
// 검색
|
||||
function onkeyup_search_keyword(val) {
|
||||
if (window.event.keyCode == 13) {
|
||||
search_keyword_proc(val);
|
||||
|
||||
} else {
|
||||
if (val == '') {
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_list").empty();
|
||||
$("#open_search").hide();
|
||||
$("#search_arrow").addClass('src_icon arrow_down_on');
|
||||
}
|
||||
else {
|
||||
var form_data = {
|
||||
"keyword": val
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/search/search_keyword',
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
var count = rtnJson.data.length;
|
||||
var content = '';
|
||||
for (var i = 0; i < count; i++) {
|
||||
var result = rtnJson.data[i];
|
||||
var result_keyword = result.keyword;
|
||||
keyword = result_keyword.replace(val, '<span class="on">' + val + '</span>');
|
||||
content += ' <div class="recents"><span><a href="javascript:search_keyword_proc(\'' + result_keyword + '\');">' + keyword + '</a></span><span class="close fr"><img src="/img/mobile/img_pointer.png"></span></div>';
|
||||
}
|
||||
$("#search_keyword_list").html(content);
|
||||
$("#search_arrow").removeClass();
|
||||
$("#open_search").show();
|
||||
|
||||
} else {
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_list").empty();
|
||||
// $("#open_search").hide();
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function search_keyword_proc(search_keyword) {
|
||||
if (search_keyword == '') {
|
||||
search_keyword = $("#search_keyword").val();
|
||||
}
|
||||
|
||||
$("#search_keyword").val(search_keyword);
|
||||
$("#search_form").submit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
function remove(i){
|
||||
|
||||
$k = JSON.parse($.cookie("pre_keyword"));
|
||||
$k.splice(i,1);
|
||||
$.cookie("pre_keyword",JSON.stringify($k),{ expires: 7, path: '/'});
|
||||
$("#keys"+i).remove();
|
||||
}
|
||||
|
||||
function removeAll(){
|
||||
|
||||
$.cookie("pre_keyword","[]",{ expires: 7, path: '/'});
|
||||
$(".keys").remove();
|
||||
}
|
||||
|
||||
function pre_keyword_toggle(){
|
||||
toggle = $.cookie('pre_keyword_show') || "Y";
|
||||
|
||||
if(toggle == 'Y'){
|
||||
$.cookie('pre_keyword_show',"N",{ expires: 7, path: '/'});
|
||||
$("#prev_keyword_list").hide();
|
||||
$("#pre_on_off").text("켜기");
|
||||
}
|
||||
else{
|
||||
$.cookie('pre_keyword_show',"Y",{ expires: 7, path: '/'});
|
||||
$("#prev_keyword_list").show();
|
||||
$("#pre_on_off").text("끄기");
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
keys = $.cookie("pre_keyword") || "[]";
|
||||
keys = JSON.parse(keys);
|
||||
$("#prev_keyword_list").html("");
|
||||
for(i=0;i<keys.length;i++){
|
||||
$("#prev_keyword_list").append("\n" +
|
||||
"\t\t<div class='keys' id='keys"+i+"'>\n" +
|
||||
"\t\t\t<span><a href=\"javascript:search_keyword_proc('"+keys[i].split("|")[0]+"')\"><span class=\"search_pointer\">"+keys[i].split("|")[0]+"</span></a></span>\n" +
|
||||
"\t\t\t<span class=\"close fr\" onclick='remove("+i+")'><img src=\"/img/mobile/img_x_grey.png\"></span>\n" +
|
||||
"<span class=\"date fr\">"+keys[i].split("|")[1]+"</span>"+
|
||||
"\t\t</div>");
|
||||
}
|
||||
|
||||
$("#search_keyword").focus(function(){
|
||||
$(".open_search").show();
|
||||
});
|
||||
|
||||
toggle = $.cookie('pre_keyword_show') || "Y";
|
||||
|
||||
if(toggle == 'Y'){
|
||||
$("#prev_keyword_list").show();
|
||||
$("#pre_on_off").text("끄기");
|
||||
}
|
||||
else{
|
||||
$("#prev_keyword_list").hide();
|
||||
$("#pre_on_off").text("켜기");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="mypage_top mypage_top_fixed bgb3">
|
||||
<div class="mypage_logo"><a href="/"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title">
|
||||
<a href="<?= $page_title_link ?>"><span class="header_tit"><?= $page_title ?></span></a>
|
||||
</div>
|
||||
<div class="mypage_search" style="width: 150px; text-align: right;">
|
||||
<form name="search_form" id="search_form" method="get" action="/m/search/">
|
||||
<span><input type="text" class="inputer" id="search_keyword" name="search_keyword" placeholder="검색"
|
||||
value=""
|
||||
onkeyup="onkeyup_search_keyword(this.value);"><a
|
||||
href="javascript:search_form.submit();"><img
|
||||
src="/img/mobile/mypage_serch_icon.gif" alt="검색하기"></a></span>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="open_search" id="open_search" style="display:none;top:53px">
|
||||
<div class="roll_box" id="prev_keyword_list">
|
||||
|
||||
|
||||
</div>
|
||||
<div class="roll_box" id="search_keyword_list">
|
||||
|
||||
|
||||
</div>
|
||||
<div class="roll_footer">
|
||||
<span><a href="javascript:pre_keyword_toggle()">최근 검색어 <span id="pre_on_off"></span></a></span> | <span><a href="javascript:removeAll()">전체삭제</a></span>
|
||||
<span class="fr"><a href='javascript:$("#open_search").hide();'>닫기</a></span>
|
||||
</div>
|
||||
</div>
|
||||
417
application/views/m/common/navigation.php
Executable file
417
application/views/m/common/navigation.php
Executable file
@@ -0,0 +1,417 @@
|
||||
<?
|
||||
|
||||
$data = $this->session->userdata;
|
||||
|
||||
$ci = &get_instance();
|
||||
$now_date = date("Y-m-d");
|
||||
$ci->load->model('web/m_today_word');
|
||||
$arr_today_word = $ci->m_today_word->today_word_where_display_date_select($now_date);
|
||||
$today_word = '하나님이 세상을 이처럼 사랑하사 </br>독생자를 주셨으니 이는 그를 믿는 자마다 </br>멸망하지 않고 영생을 얻게 하려 하심이라';
|
||||
$today_word_title = '요한복음 3장 16절';
|
||||
if(count($arr_today_word)>0) {
|
||||
$today_word = $arr_today_word['word'];
|
||||
$today_word_title = $arr_today_word['title'];
|
||||
}
|
||||
|
||||
$ci->load->helper('cookie');
|
||||
$comment_sns_id = get_cookie('crossmap_comment_sns_id');
|
||||
$comment_sns_name = get_cookie('crossmap_comment_sns_name');
|
||||
|
||||
$comment_sns_type = get_cookie('crossmap_comment_sns_type');
|
||||
|
||||
if (isset($data['C_Member_Id']) || isset($comment_sns_name)) {
|
||||
if($comment_sns_name) {
|
||||
$data['C_Member_Profile'] = '/img/mobile/life_profile.png';
|
||||
$data['C_Member_Nicname'] = $comment_sns_name;
|
||||
$data['C_Member_Group_Name'] = $comment_sns_type;
|
||||
if($comment_sns_type != 'cm') {
|
||||
$logout_link = "comment_logout();";
|
||||
} else {
|
||||
$logout_link = "window.location='/m/member/logout_proc'";
|
||||
}
|
||||
} else if($data['C_Member_Id']) {
|
||||
$logout_link = "window.location='/m/member/logout_proc'";
|
||||
} else {
|
||||
$logout_link = "";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="life_menu_l">
|
||||
<div class="life_menu_top">
|
||||
<h1 class="logo"><a href="javascript:change_slide(0);"><img src="/img/mobile/life_logo.png"></a></h1>
|
||||
<span class="life_close"><img src="/img/mobile/close.png" style="cursor:pointer"></span>
|
||||
|
||||
<? if (isset($data['C_Member_Id'])): ?>
|
||||
|
||||
<div class="profile"><a href="/m/mypage/req_password"><img src="<?= $data['C_Member_Profile'] ?>"
|
||||
onerror="this.src='/img/mobile/life_profile.png'"
|
||||
style="max-width:77px;max-height:77px;"></a></div>
|
||||
<div class="nickname"><a href="/m/mypage/req_password"><?= $data['C_Member_Nicname'] ?></a></div>
|
||||
<div class="member"><a href="/m/mypage/req_password"><?= $data['C_Member_Group_Name'] ?></a></div>
|
||||
<div class="life_menu_btn" style="background: #f6f6f6;">
|
||||
<button type="button" class="btn btn-default br20" style="width:100px;color:#a7a7a7"
|
||||
onclick="<?=$logout_link;?>">로그아웃
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
<? else: ?>
|
||||
|
||||
<div class="profile"><a><img src="/img/mobile/life_profile.png"></a></div>
|
||||
<div class="bible"><?=$today_word?><br><span class="chpter"><?=$today_word_title?></span>
|
||||
</div>
|
||||
<div class="life_menu_btn" style="background: #f6f6f6;">
|
||||
<button type="button" class="btn btn-default br20" style="width:100px;color:#a7a7a7" onclick="login()">
|
||||
로그인
|
||||
</button>
|
||||
</div>
|
||||
<? endif; ?>
|
||||
<div class="life_cate">
|
||||
<span style="width:30%;"><img src="/img/mobile/life_icon2.png"><a <?=(isset($data['C_Member_Id']))? 'href="/m/mypage/user_comment"' : 'href="javascript:alert(\'로그인 후 사용 가능합니다.\')" ' ?> >내댓글보기</a></span>
|
||||
<span><img src="/img/mobile/life_bar.gif"></span>
|
||||
<span style="width:28%;"><img src="/img/mobile/life_icon3.png"> <a <?=(isset($data['C_Member_Id']))? 'href="/m/mypage/bookmark"' : 'href="javascript:alert(\'로그인 후 사용 가능합니다.\')" ' ?>>북마크</a></span>
|
||||
<span><img src="/img/mobile/life_bar.gif"></span>
|
||||
<span style="width:28%;"><img src="/img/mobile/life_icon1.png"><a <?=(isset($data['C_Member_Id']))? 'href="/m/mypage/delivery"' : 'href="javascript:alert(\'로그인 후 사용 가능합니다.\')" ' ?>>배달함</a></span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<ul class="life_list_top">
|
||||
<li><a onclick="change_slide(0)" style="cursor:pointer;" class="current">은혜</a></li>
|
||||
<li><a onclick="change_slide(1);" style="cursor:pointer;">라이프</a></li>
|
||||
<li><a onclick="change_slide(2);" style="cursor:pointer;">뉴스</a></li>
|
||||
<li><a onclick="change_slide(3);" style="cursor:pointer;">바로가기</a></li>
|
||||
</ul>
|
||||
<div class="life_app">
|
||||
<h4 style="padding: 0 20px 10px 20px;">추천앱</h4>
|
||||
<?
|
||||
$ci = &get_instance();
|
||||
$ci->load->model('web/m_recommend_app');
|
||||
$result = $ci->m_recommend_app->recommend_app_list(array("offset" => 0, "limit" => 99));
|
||||
?>
|
||||
<div class="swiper-container swiper-04">
|
||||
|
||||
|
||||
<div class="swiper-wrapper">
|
||||
<? foreach ($result as $key => $app_data): ?>
|
||||
<div class="swiper-slide"><a href="<?= $app_data['market_url'] ?>" target="_blank"><img style="width:66px;height:66px;"
|
||||
src="<?= thumb($app_data['icon_img']) ?>"></a><a href="<?= $app_data['market_url'] ?>"
|
||||
target="_blank"
|
||||
class="app_txt"><?= $app_data['app_name'] ?></a>
|
||||
</div>
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Add Arrows -->
|
||||
<div class="swiper-button-next"></div>
|
||||
<div class="swiper-button-prev"></div>
|
||||
<div class="swiper-pagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="life_list_bottom">
|
||||
<li><a href="/m/board/notice">공지사항</a> <span class="new" style="display:none;">N</span></li>
|
||||
<li><a href="/m/board/faq">FAQ</a></li>
|
||||
<?if(isset($data['C_Member_Id'])):?>
|
||||
<li><a href="/m/mypage/qna">1:1 문의</a></li>
|
||||
<?endif?>
|
||||
</ul>
|
||||
<div class="life_menu_btn">
|
||||
<? if (isset($data['C_Member_Id'])): ?>
|
||||
<button type="button" class="btn btn-default br20" style="widh:100px;color:#a7a7a7"
|
||||
onclick="window.location='/m/member/logout_proc'">로그아웃
|
||||
</button>
|
||||
<? else: ?>
|
||||
<button type="button" class="btn btn-default br20" style="width:100px;color:#a7a7a7" onclick="login()">로그인
|
||||
</button>
|
||||
<? endif ?>
|
||||
</div>
|
||||
<div class="life_menu_btn" style="padding-bottom:80px;">
|
||||
<button type="button" class="btn btn-default_bb br20" style="width:100px;" onclick="window.location='/'">PC 버전
|
||||
</button>
|
||||
</div>
|
||||
<div class="dims" id='swipeme'></div>
|
||||
<div class="dims2"></div>
|
||||
</div>
|
||||
<div class="news_top">
|
||||
<span class="news_menu"><img src="/img/mobile/news_menu.png" style="cursor:pointer"></span>
|
||||
<span class="news_logo"><a href=""><img src="/img/mobile/news_logo.png"></a></span>
|
||||
<div>
|
||||
<span class="srch">
|
||||
<form name="search_form" id="search_form" method="get" action="/m/search/">
|
||||
<span><input type="text" class="window" id="search_keyword" name="search_keyword" autocomplete="off" placeholder="검색"
|
||||
value=""
|
||||
onkeyup="onkeyup_search_keyword(this.value);">
|
||||
|
||||
<a style="float:right;" href="javascript:search_form.submit();"><img src="/img/mobile/mypage_serch_icon.gif" alt="검색하기"></a>
|
||||
<a href="javascript:show_toggle()"><img id="show_toggle" src="/img/mobile//arrow_up2.png" alt="검색하기" style="float:right; margin-top:4px;"></a>
|
||||
</span>
|
||||
</form>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_nav"><!-- 여기를 아래로 내릴때 픽스시켜준다 -->
|
||||
<span class="current" style="width:20%;"><a href="/m#grace">은혜</a></span>
|
||||
<span style="width:30%;"><a href="/m#life">라이프</a></span>
|
||||
<span style="width:20%;"><a href="/m#newss">뉴스</a></span>
|
||||
<span style="width:30%;"><a href="/m#shortcut">바로가기</a></span>
|
||||
</div>
|
||||
|
||||
<div class="open_search" id="open_search" style="display:none;">
|
||||
<div class="roll_box" id="prev_keyword_list">
|
||||
|
||||
|
||||
</div>
|
||||
<div class="roll_box" id="search_keyword_list">
|
||||
|
||||
|
||||
</div>
|
||||
<div class="roll_footer">
|
||||
<span><a href="javascript:pre_keyword_toggle()">최근 검색어 <span id="pre_on_off"></span></a></span> | <span><a href="javascript:removeAll()">전체삭제</a></span>
|
||||
<span class="fr"><a href='javascript:$("#open_search").hide();'>닫기</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$.ajax({
|
||||
url: "/m/board/ajax_new_notice",
|
||||
success: function (data) {
|
||||
if (parseInt(data) > 0) $(".new").show();
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
function login() {
|
||||
window.location = "/m/member/login?redir=" + window.location.href;
|
||||
}
|
||||
|
||||
|
||||
// 검색
|
||||
function onkeyup_search_keyword(val) {
|
||||
if (window.event.keyCode == 13) {
|
||||
search_keyword_proc(val);
|
||||
|
||||
} else {
|
||||
if (val == '') {
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_list").empty();
|
||||
$("#open_search").hide();
|
||||
$("#search_arrow").addClass('src_icon arrow_down_on');
|
||||
} else {
|
||||
console.log(val);
|
||||
var form_data = {
|
||||
"keyword": val
|
||||
};
|
||||
|
||||
|
||||
$.ajax({
|
||||
url: '/m/search/search_keyword',
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
var count = rtnJson.data.length;
|
||||
var content = '';
|
||||
for (var i = 0; i < 8; i++) {
|
||||
var result = rtnJson.data[i];
|
||||
var result_keyword = result.keyword;
|
||||
keyword = result_keyword.replace(val, '<span class="on">' + val + '</span>');
|
||||
content += ' <div class="recents"><span><a href="javascript:search_keyword_proc(\'' + result_keyword + '\');">' + keyword + '</a></span><span class="close fr keywords_copy"><img src="/img/mobile/img_pointer.png"></span></div>';
|
||||
}
|
||||
/*
|
||||
* 키워드끼리 비교하여 정확도를 구하고 해당 정확도 순으로 정렬하는 작업이 필요합니다.
|
||||
* */
|
||||
|
||||
|
||||
|
||||
$("#search_keyword_list").html(content);
|
||||
$("#search_arrow").removeClass();
|
||||
$("#open_search").show();
|
||||
|
||||
$(".keywords_copy").each(function(i,v){
|
||||
|
||||
a = $(v).prev().text();
|
||||
|
||||
if(a.indexOf(val) < 0){
|
||||
$(v).parent().hide();
|
||||
}
|
||||
else{
|
||||
$(v).parent().show();
|
||||
window.aa = $(this);
|
||||
console.log($(this).html());
|
||||
if( a == val ){
|
||||
$(this).find("img").hide();
|
||||
}
|
||||
else{
|
||||
$(this).find("img").show();
|
||||
}
|
||||
}
|
||||
return;
|
||||
});
|
||||
|
||||
|
||||
} else {
|
||||
$("#search_arrow").removeClass();
|
||||
$("#search_keyword_list").empty();
|
||||
$("#open_search").hide();
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function search_keyword_proc(search_keyword) {
|
||||
if (search_keyword == '') {
|
||||
search_keyword = $("#search_keyword").val();
|
||||
}
|
||||
var result = true;
|
||||
if (search_keyword != '') result = search_keyword_reg(search_keyword);
|
||||
if (result == true) {
|
||||
$("#search_keyword").val(search_keyword);
|
||||
$("#search_form").submit();
|
||||
}
|
||||
|
||||
}
|
||||
// 스크롤 고정 함수.
|
||||
function scroll_fix(news_nav) {
|
||||
|
||||
$( document ).ready( function() {
|
||||
|
||||
var jbOffset = $( '.'+news_nav ).offset(); // 고정하고자 하는 클래스의 offset.
|
||||
|
||||
$( window ).scroll( function() {
|
||||
/*스크롤탑(현재스크롤위치) > news_nav : 상단 아래로 내렸을때 상단 고정*/
|
||||
if ( $( document ).scrollTop() > jbOffset.top ) {
|
||||
$( '.'+news_nav ).addClass( 'jbFixed' );
|
||||
$( '.mainswiper' ).addClass( 'Fixed' );
|
||||
}
|
||||
/*스크롤탑(현재스크롤위치) <= news_nav : 원래*/
|
||||
else {
|
||||
$( '.'+news_nav ).removeClass( 'jbFixed' );
|
||||
$( '.mainswiper' ).removeClass( 'Fixed' );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
} );
|
||||
}
|
||||
//
|
||||
|
||||
function remove(i){
|
||||
|
||||
$k = JSON.parse($.cookie("pre_keyword"));
|
||||
$k.splice(i,1);
|
||||
$.cookie("pre_keyword",JSON.stringify($k),{ expires: 7, path: '/'});
|
||||
$("#keys"+i).remove();
|
||||
}
|
||||
|
||||
function removeAll(){
|
||||
|
||||
$.cookie("pre_keyword","[]",{ expires: 7, path: '/'});
|
||||
$(".keys").remove();
|
||||
}
|
||||
|
||||
function pre_keyword_toggle(){
|
||||
toggle = $.cookie('pre_keyword_show') || "Y";
|
||||
|
||||
if(toggle == 'Y'){
|
||||
$.cookie('pre_keyword_show',"N",{ expires: 7, path: '/'});
|
||||
$("#prev_keyword_list").hide();
|
||||
$("#pre_on_off").text("켜기");
|
||||
}
|
||||
else{
|
||||
$.cookie('pre_keyword_show',"Y",{ expires: 7, path: '/'});
|
||||
$("#prev_keyword_list").show();
|
||||
$("#pre_on_off").text("끄기");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function show_toggle(){
|
||||
toggle = $.cookie('pre_keyword_show') || "Y";
|
||||
$(".open_search").toggle();
|
||||
if($(".open_search").css("display") == "block"){
|
||||
$("#show_toggle").attr("src","/img/mobile/arrow_up2.png");
|
||||
}
|
||||
else{
|
||||
$("#show_toggle").attr("src","/img/mobile/arrow_down2_gray.png");
|
||||
}
|
||||
console.log($("#show_toggle").attr("src"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$("body").on("click",".keywords_copy",function(i,v){
|
||||
|
||||
selected_keyword = $(this).prev().text();
|
||||
$("#search_keyword").val(selected_keyword);
|
||||
onkeyup_search_keyword(selected_keyword);
|
||||
});
|
||||
|
||||
keys = $.cookie("pre_keyword") || "[]";
|
||||
keys = JSON.parse(keys);
|
||||
$("#prev_keyword_list").html("");
|
||||
|
||||
add = null;
|
||||
add = "<span class=\"close fr keywords_copy\" style=\"width: 14px;\"><img src=\"/img/mobile/img_pointer.png\"></span>";
|
||||
|
||||
for(i=0;i<keys.length;i++){
|
||||
$("#prev_keyword_list").append("\n" +
|
||||
"\t\t<div class='keys' id='keys"+i+"'>\n" +
|
||||
"\t\t\t<span><a href=\"javascript:search_keyword_proc('"+keys[i].split("|")[0]+"')\"><span class=\"search_pointer\">"+keys[i].split("|")[0]+"</span></a></span>\n" +
|
||||
//"\t\t\t<span class=\"close fr\" onclick='remove("+i+")'><img src=\"/img/mobile/img_x_grey.png\"></span>\n" +
|
||||
add+
|
||||
"<span class=\"date fr\">"+keys[i].split("|")[1]+"</span>"+
|
||||
"\t\t</div>");
|
||||
}
|
||||
|
||||
$("#search_keyword").focus(function(){
|
||||
$(".open_search").show();
|
||||
});
|
||||
|
||||
toggle = $.cookie('pre_keyword_show') || "Y";
|
||||
|
||||
if(toggle == 'Y'){
|
||||
$("#prev_keyword_list").show();
|
||||
$("#pre_on_off").text("끄기");
|
||||
}
|
||||
else{
|
||||
$("#prev_keyword_list").hide();
|
||||
$("#pre_on_off").text("켜기");
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
scroll_fix('news_nav'); // 상단 고정하고 싶은 클래스 설정.
|
||||
var swiper4 = new Swiper('.swiper-04', {
|
||||
slidesPerView: 3,
|
||||
spaceBetween: 10,
|
||||
pagination : { // 페이징 설정
|
||||
el : '.swiper-pagination',
|
||||
clickable : true, // 페이징을 클릭하면 해당 영역으로 이동, 필요시 지정해 줘야 기능 작동
|
||||
},
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
});
|
||||
|
||||
</script>
|
||||
162
application/views/m/common/realtime.php
Executable file
162
application/views/m/common/realtime.php
Executable file
@@ -0,0 +1,162 @@
|
||||
<div class="open_roll bar_type">
|
||||
<div class="mostpopular-fixed"><span>실시간급상승</span></div>
|
||||
<div>
|
||||
|
||||
<?
|
||||
$ci = &get_instance();
|
||||
$ci->load->model('web/m_realtime_keyword');
|
||||
$arr_realtime_keyword = $ci->m_realtime_keyword->realtime_keyword_all_list();
|
||||
|
||||
|
||||
foreach ($arr_realtime_keyword as $key=>$val) :
|
||||
|
||||
$last_rank = $val['last_rank'];
|
||||
$rank = $val['rank'];
|
||||
|
||||
$class = '';
|
||||
$last_rank_txt = '';
|
||||
if($last_rank==0){
|
||||
$class = 'new';
|
||||
$last_rank_txt = 'NEW';
|
||||
} else {
|
||||
$calc_rank = $last_rank - $rank;
|
||||
if($calc_rank == 0){ // 같음
|
||||
$last_rank_txt = '-';
|
||||
} else if($calc_rank > 0){ // up
|
||||
$last_rank_txt = '<img src="/img/web/btn_up.jpg">'.$calc_rank;
|
||||
} else {
|
||||
$last_rank_txt = '<img src="/img/web/btn_down.jpg">'.abs($calc_rank);
|
||||
}
|
||||
}
|
||||
$keyword = mb_strimwidth($val['keyword'], '0', '25', '..', 'utf-8');
|
||||
?>
|
||||
<div class="roll_box">
|
||||
<span class="mostpopular">실시간급상승</span>
|
||||
<span class="no" >
|
||||
<?=$rank?>
|
||||
</span>
|
||||
<span class="keyword" style="cursor:pointer;">
|
||||
<a href="/m/search/?search_keyword=<?=urlencode($val['keyword'])?>">
|
||||
<?=$keyword?>
|
||||
</a>
|
||||
</span>
|
||||
<span class="graph updown" style="cursor:pointer;">
|
||||
<?=$last_rank_txt?>
|
||||
</span>
|
||||
<span style="padding-left:10px;cursor:pointer" ><img src="/img/mobile/arr_down.gif"></span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="open_roll spread">
|
||||
<div class="open_roll_wrap">
|
||||
<div class="txt">실시간 급상승
|
||||
<a class="close_btn" style="cursor:pointer;">×</a>
|
||||
</div>
|
||||
<ul class="ranking">
|
||||
<li style="width:48%">
|
||||
<a class="rank first current" style="cursor:pointer;">1-10위</a>
|
||||
</li>
|
||||
<li style="width:2%">
|
||||
<img src="/img/mobile/img_ranking.gif">
|
||||
</li>
|
||||
<li style="width:48%">
|
||||
<a class="rank second" style="cursor:pointer;">11-20위</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="roll_box_wrap">
|
||||
<div>
|
||||
<?
|
||||
foreach ($arr_realtime_keyword as $key=>$val) :
|
||||
|
||||
$last_rank = $val['last_rank'];
|
||||
$rank = $val['rank'];
|
||||
|
||||
$class = '';
|
||||
$last_rank_txt = '';
|
||||
if($last_rank==0){
|
||||
$class = 'new';
|
||||
$last_rank_txt = 'NEW';
|
||||
} else {
|
||||
$calc_rank = $last_rank - $rank;
|
||||
if($calc_rank == 0){ // 같음
|
||||
$last_rank_txt = '-';
|
||||
} else if($calc_rank > 0){ // up
|
||||
$last_rank_txt = '<img src="/img/web/btn_up.jpg">'.$calc_rank;
|
||||
} else {
|
||||
$last_rank_txt = '<img src="/img/web/btn_down.jpg">'.abs($calc_rank);
|
||||
}
|
||||
}
|
||||
$keyword = mb_strimwidth($val['keyword'], '0', '25', '..', 'utf-8');
|
||||
?>
|
||||
<div class="<?echo ($key < 10)?"first": "second hide"?>">
|
||||
<div class="issue_box">
|
||||
<span class="no">
|
||||
<?=$rank?>
|
||||
</span>
|
||||
<span>
|
||||
<a href="/m/search/?search_keyword=<?=urlencode($val['keyword'])?>">
|
||||
<?=$keyword?>
|
||||
</a>
|
||||
</span>
|
||||
<span class="bbox <?=$class?> updown">
|
||||
<?=$last_rank_txt?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<?endforeach; ?>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
// 실시간 급상승 검색어 위로 슬라이딩
|
||||
var margin_top = 0;
|
||||
var no_i = 0;
|
||||
setInterval(function(){
|
||||
(margin_top < (51*20*-1))? margin_top = 0 : margin_top -= 51.5;
|
||||
$(".open_roll.bar_type > div").animate({ "margin-top" : margin_top +"px"},1000);
|
||||
},10000);
|
||||
|
||||
// 실시간 급상승 펼치기 버튼
|
||||
$(".open_roll.bar_type .roll_box img").click(function(){
|
||||
$(".open_roll.spread").show();
|
||||
});
|
||||
|
||||
// 실시간 급상승 접기 버튼
|
||||
$(".open_roll.spread .close_btn").click(function(){
|
||||
$(".open_roll.spread").hide();
|
||||
});
|
||||
|
||||
//순위별 보여주기 , 1-10위 | 11-20위 클릭시
|
||||
$(".open_roll.spread .ranking a.rank").click(function(){
|
||||
|
||||
//모든 current 클래스 제거
|
||||
$(".open_roll.spread .ranking a.rank").removeClass("current");
|
||||
//클릭된 엘리먼트에 current 추가
|
||||
$(this).addClass("current");
|
||||
|
||||
// 1-10위 클릭이면
|
||||
$(".roll_box_wrap > div > div").addClass("hide");
|
||||
if($(this).hasClass("first")){
|
||||
|
||||
$(".roll_box_wrap > div > div.first").removeClass("hide");
|
||||
}
|
||||
// 11-20위 클릭이면
|
||||
else if($(this).hasClass("second")){
|
||||
$(".roll_box_wrap > div > div.second").removeClass("hide");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
55
application/views/m/common/weather.php
Executable file
55
application/views/m/common/weather.php
Executable file
@@ -0,0 +1,55 @@
|
||||
<div id="weather_block" style="height:60px;overflow:hidden;">
|
||||
<div class="spirit-fixed"><span class="">영적기상도</span></div>
|
||||
<div>
|
||||
<?
|
||||
|
||||
$ci = &get_instance();
|
||||
$ci->load->model('web/m_weather');
|
||||
$arr_weather = $ci->m_weather->weather_join_relation_article_join_news_list();
|
||||
|
||||
|
||||
// var_dump($arr_weather[0]);
|
||||
// $data = $arr_weather[0];
|
||||
//var_dump
|
||||
foreach ($arr_weather as $data):
|
||||
?>
|
||||
<div class="weather" onclick="window.location='/m/news/news_view/<?=$data['relation_article_idx']?>'" style="cursor:pointer;">
|
||||
|
||||
<span class="spirit">영적기상도</span>
|
||||
|
||||
<span class="country">
|
||||
<strong>
|
||||
<?= $data['continent'] ?>
|
||||
</strong>
|
||||
</span>
|
||||
<span class="country2">
|
||||
<?= $data['country'] ?>
|
||||
<span class="date">
|
||||
<span>|</span>
|
||||
<?
|
||||
setlocale(LC_TIME, 'ko_KR');
|
||||
echo iconv("euc-kr", "utf-8", strftime('%Y.%m.%d(%a)')); // 결과 : 금 금요일
|
||||
?>
|
||||
</span>
|
||||
</span>
|
||||
<span class="fr">
|
||||
<img src="<?= $data['weather_icon'] ?>">
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
_margin_top = 0;
|
||||
setInterval(function(){
|
||||
(_margin_top < (60*<?=count($arr_weather)-2?>*-1))? _margin_top = 0 : _margin_top -= 60;
|
||||
|
||||
$("#weather_block > div").animate({ "margin-top" : _margin_top+"px"},1000);
|
||||
|
||||
},10000);
|
||||
});
|
||||
</script>
|
||||
250
application/views/m/grace/main.php
Executable file
250
application/views/m/grace/main.php
Executable file
@@ -0,0 +1,250 @@
|
||||
<div class="swiper-slide" data-hash="grace">
|
||||
<div class="news_cont2">
|
||||
<div class="grace_top">
|
||||
<? for ($i = 1; $i <= 5; $i++):$data = $arr_headline_news[$i] ?>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/news/news_view/<?= $data['content_idx'] ?>">
|
||||
<? //echo (mb_strlen($data['title']) > 25) ? iconv_substr($data['title'], 0, 25, "utf-8") . "…" : $data['title']; ?>
|
||||
<? echo $data['title']; ?>
|
||||
</a>
|
||||
</h2>
|
||||
<? endfor; ?>
|
||||
</div>
|
||||
<? include_once(APPPATH . "/views/m/common/realtime.php"); ?>
|
||||
<div class="grace_cont">
|
||||
<div class="wrap">
|
||||
<div class="grace_boxs">
|
||||
<? for ($i = 1; $i <= 2; $i++): @$data = $arr_grace_top[$i]; ?>
|
||||
<div class="grace_con<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?= thumb($data['theme_img']) ?>" class="art-img"
|
||||
onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<span class="beachblue">
|
||||
<? if ($data['head_title']) echo "[" . $data['head_title'] . "]"; ?>
|
||||
</span>
|
||||
<? echo (mb_strlen($data['title']) > 30) ? iconv_substr($data['title'], 0, 30, "utf-8") . "…" : $data['title']; ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<? endfor ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="banner_grace" style="margin-bottom:0px;">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _메인 은혜 -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<? include_once(APPPATH . "views/m/common/weather.php"); ?>
|
||||
<div class="news_lists">
|
||||
<h4>
|
||||
<span class="beachblue">라이프</span>
|
||||
<span><a href="javascript:swiper1.slideTo(2);$('.news_nav > span').removeClass('current');$('.news_nav > span').eq(1).addClass('current')"
|
||||
class="btn btn-default br20 fr beachblue more">더보기</a></span>
|
||||
</h4>
|
||||
<? for ($i = 1; $i <= 3; $i++): @$data = $arr_grace_life[$i]; ?>
|
||||
<div class="news_list_cont" style="margin-bottom:0">
|
||||
<div class="art-img2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?= thumb($data['theme_img'])?>"
|
||||
onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/editor/<?= $data['partner_idx'] ?>">
|
||||
<p class="art-info">
|
||||
<?= $data['editor_name'] ?>
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<? echo (mb_strlen($data['title']) > 20) ? iconv_substr($data['title'], 0, 20, "utf-8") . "…" : $data['title']; ?>
|
||||
</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<? endfor; ?>
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<h4 class="beachblue">은혜의 샘</h4>
|
||||
|
||||
|
||||
<? for ($i = 1; $i <= 6; $i++): @$data = $arr_grace_well[$i]; ?>
|
||||
<? if ($i % 2 != 0): ?>
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<? endif ?>
|
||||
<div class="channel_con2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?= thumb($data['theme_img']);?>" class="art-img"
|
||||
onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<span class="beachblue">
|
||||
<?
|
||||
|
||||
$data['head_title'] = ($data['head_title'] != '') ? "[".$data['head_title']."]": $data['head_title'] ;
|
||||
?>
|
||||
<?=$data['head_title']?>
|
||||
|
||||
</span>
|
||||
<?= $data['title'] ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<? if ($i % 2 == 0): ?>
|
||||
</div>
|
||||
<? endif ?>
|
||||
<? endfor ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="channel_cont" style="background:#fff;">
|
||||
<div class="wrap">
|
||||
<h4>
|
||||
<span class="beachblue">하늘 양식</span>
|
||||
<span><a href="javascript:swiper1.slideTo(2);$('.news_nav > span').removeClass('current');$('.news_nav > span').eq(1).addClass('current')"
|
||||
class="btn btn-default br20 fr beachblue more">더보기</a></span>
|
||||
</h4>
|
||||
<? for ($i = 1; $i <= 3; $i++): @$data = $arr_grace_sky[$i]; ?>
|
||||
<div class="sky_boxs" style="">
|
||||
<span class="channel_photo<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?=thumb( $data['theme_img'] ) ?>" class="art-img"
|
||||
onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'">
|
||||
</a>
|
||||
</span>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<?= $data['title']; ?>
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<img src="/img/mobile/img_heart.gif">
|
||||
<?= $data['hit_count']; ?>
|
||||
<span class="chname">
|
||||
<a href="/m/life/editor/<?= $data['partner_idx'] ?>">
|
||||
<?= $data['editor_name']; ?>
|
||||
</a>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<? endfor ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cont_top">
|
||||
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/life/life_view/<?= $arr_card_news[0]['content_idx'] ?>">
|
||||
<img src="<?= thumb($arr_card_news[0]['main_img'])?>">
|
||||
</a>
|
||||
</div>
|
||||
<p class="cont_top_title3">카드뉴스</p>
|
||||
<p class="chn_bar2">
|
||||
<img src="/img/mobile/bg_bar.gif">
|
||||
</p>
|
||||
<p class="cont_top_title2">
|
||||
<a href="/m/life/life_view/<?= $arr_card_news[0]['content_idx'] ?>">
|
||||
<?= $arr_card_news[0]['title'] ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="grace_top">
|
||||
<h4>
|
||||
<span class="beachblue">오늘의 칼럼</span>
|
||||
<span>
|
||||
<a href="/m/news/column" class="btn btn-default br20 fr more">더보기</a>
|
||||
</span>
|
||||
</h4>
|
||||
|
||||
<? for ($i = 1; $i <= 5; $i++): @$data = $arr_headline_column[$i]; ?>
|
||||
<h2 class="art-title">
|
||||
|
||||
<span class="beachblue" class="grey">
|
||||
<a style="color:#2bbec6" href="/m/news/columnist/<?= $data['partner_idx'] ?>">
|
||||
[<?= $data['column_name'] ?>]
|
||||
</a>
|
||||
</span>
|
||||
<a href="/m/news/column_view/<?= $data['content_idx'] ?>">
|
||||
<?=$data['title']?>
|
||||
</a>
|
||||
</a>
|
||||
</h2>
|
||||
<? endfor ?>
|
||||
</div>
|
||||
<div class="channel_cont" style="margin-top:20px">
|
||||
<div class="wrap">
|
||||
<h4 class="beachblue">은혜로운 영상 </h4>
|
||||
|
||||
<? for ($i = 1; $i <= 6; $i++):@$data = $arr_etc_video[$i]; ?>
|
||||
|
||||
<?
|
||||
|
||||
$url = '';
|
||||
switch ($data['content_type']) {
|
||||
case 1:
|
||||
$url = "/m/news/news_view/" . $data['content_idx'];
|
||||
break;
|
||||
case 2:
|
||||
$url = "/m/news/column_view/" . $data['content_idx'];
|
||||
break;
|
||||
case 3:
|
||||
$url = "/m/life/life_view/" . $data['content_idx'];
|
||||
break;
|
||||
default:
|
||||
$url = "/m/life/life_view/" . $data['content_idx'];
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
<? if ($i % 2 != 0): ?>
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<? endif ?>
|
||||
<div class="channel_con">
|
||||
<div class="play_box">
|
||||
<a href="<?= $url ?>">
|
||||
<img src="<?= thumb($data['main_img']) ?>"
|
||||
onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'"
|
||||
class="art-img">
|
||||
<span class="play">
|
||||
<?if($data['video_url'] != ''):?>
|
||||
<img src="/img/mobile/img_play.png">
|
||||
<?endif?>
|
||||
</span>
|
||||
<span class="play_time">
|
||||
<?= $data['video_playtime'] ?>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="chtitle">
|
||||
<a href="<?= $url ?>">
|
||||
<span class="beachblue">
|
||||
<? if ($data['head_title']) echo "[" . $data['head_title'] . "]"; ?>
|
||||
</span>
|
||||
|
||||
<? echo (mb_strlen($data['title']) > 24) ? iconv_substr($data['title'], 0, 24, "utf-8") . "…" : $data['title']; ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<? if ($i % 2 == 0): ?>
|
||||
</div>
|
||||
<? endif ?>
|
||||
<? endfor ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
112
application/views/m/index.php
Executable file
112
application/views/m/index.php
Executable file
@@ -0,0 +1,112 @@
|
||||
<!doctype html>
|
||||
<html lang="ko"><head><meta charset="utf-8"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<title>Crossmap</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/mobile.css"/>
|
||||
</head>
|
||||
|
||||
<body id="news">
|
||||
<div class="news_top">
|
||||
<span class="news_menu"><a href=""><img src="images/news_menu.png"></a></span>
|
||||
<span class="news_logo"><a href=""><img src="images/news_logo.png"></a></span>
|
||||
<div>
|
||||
<span class="srch">
|
||||
<span><input type="text" placeholder=""><a href="#"><img src="images/mypage_serch_icon.gif" alt="검색하기"></a></span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_nav" style="border-bottom:0">
|
||||
<span style="width:20%;"><a href="">은혜</a> </span>
|
||||
<span style="width:30%;"><a href="">라이프</a> </span>
|
||||
<span style="width:20%;"><a href="">뉴스</a> </span>
|
||||
<span class="current" style="width:30%;"><a href="">바로가기</a></span>
|
||||
</div>
|
||||
<div class="news_media">
|
||||
<span class="news_media_list current"><a href=""><span><img src="images/direct1.png"><p>홈</p></a></span></span>
|
||||
<span class="news_media_list"><a href=""><span><img src="images/direct2.png"><p>은혜</p></a></span></span>
|
||||
<span class="news_media_list"><a href=""><span><img src="images/direct3.png"><p>미디어</p></a></span></span>
|
||||
<span class="news_media_list"><a href=""><span><img src="images/direct4.png"><p>정보</p></a></span></span>
|
||||
</div>
|
||||
<ul class="news_media3">
|
||||
<li><a href="" class="current">최근</a></li>
|
||||
<li><a href="">인기</a></li>
|
||||
<li><a href="">크로스맵</a></li>
|
||||
<li><a href="">네이버</a></li>
|
||||
<li><a href="">북마크</a></li>
|
||||
</ul>
|
||||
<div class="news_company">
|
||||
<div class="news_company_box">
|
||||
<a href=""><img src="images/img_ytn.jpg" alt="ytn"></a>
|
||||
<span class="companyname"> <a href="">YTN 뉴스</a></span> <span class="companyarrow"><a href=""><img src="images/company_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="news_company_box">
|
||||
<a href=""><img src="images/img_yh.jpg" alt="ytn"></a>
|
||||
<span class="companyname"> <a href="">연합 뉴스</a></span> <span class="companyarrow"><a href=""><img src="images/company_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="news_company_box">
|
||||
<a href=""><img src="images/img_sbs.jpg" alt="ytn"></a>
|
||||
<span class="companyname"> <a href="">SBS 뉴스</a></span> <span class="companyarrow"><a href=""><img src="images/company_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="news_company_box">
|
||||
<a href=""><img src="images/img_kbs.jpg" alt="ytn"></a>
|
||||
<span class="companyname"> <a href="">KBS 뉴스</a></span> <span class="companyarrow"><a href=""><img src="images/company_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="news_company_box">
|
||||
<a href=""><img src="images/img_mbc.jpg" alt="ytn"></a>
|
||||
<span class="companyname"> <a href="">MBC 뉴스 </a></span><span class="companyarrow"><a href=""><img src="images/company_close.gif"></a></span>
|
||||
</div>
|
||||
<div style="margin:20px auto; text-align:center;"><span><a href="" class="btn btn-default br20" style="padding:10px 100px;">방문내역 삭제</a></span></div>
|
||||
</div>
|
||||
<div class="banner_grace">
|
||||
<img src="images/banner_grace.jpg" alt="banner">
|
||||
</div>
|
||||
<div class="mypage_footer" style="margin-top:0">
|
||||
<div class="f_btns">
|
||||
<span><a href="" class="btn btn-default_bb br20">로그인</a></span>
|
||||
<span><a href="" class="btn btn-default_bb br20">PC버전</a></span>
|
||||
<span><a href="" class="btn btn-default_bb br20">고객센터</a></span>
|
||||
</div>
|
||||
<div class="f_policy">
|
||||
<span><a href="">이용약관</a></span>
|
||||
<span style="padding:0 2px"><img src="images/bar.gif"></span>
|
||||
<span><a href="">개인정보취급방침</a></span>
|
||||
</div>
|
||||
<div class="f_social">
|
||||
<span><a href=""><img src="images/f_icon1_l.png"></a></span>
|
||||
<span><a href=""><img src="images/f_icon2_l.png"></a></span>
|
||||
<span><a href=""><img src="images/f_icon3_l.png"></a></span>
|
||||
<span><a href=""><img src="images/f_icon4_l.png"></a></span>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
© 2017 The CrossMap. All Rights Reserved.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
|
||||
<script>
|
||||
// 스크롤 고정 함수.
|
||||
function scroll_fix(news_nav) {
|
||||
|
||||
$( document ).ready( function() {
|
||||
|
||||
var jbOffset = $( '.'+news_nav ).offset(); // 고정하고자 하는 클래스의 offset.
|
||||
|
||||
$( window ).scroll( function() {
|
||||
/*스크롤탑(현재스크롤위치) > news_nav : 상단 아래로 내렸을때 상단 고정*/
|
||||
if ( $( document ).scrollTop() > jbOffset.top ) {
|
||||
$( '.'+news_nav ).addClass( 'jbFixed' );
|
||||
}
|
||||
/*스크롤탑(현재스크롤위치) <= news_nav : 원래*/
|
||||
else {
|
||||
$( '.'+news_nav ).removeClass( 'jbFixed' );
|
||||
}
|
||||
});
|
||||
|
||||
} );
|
||||
}
|
||||
//
|
||||
|
||||
scroll_fix('news_media'); // 상단 고정하고 싶은 클래스 설정.
|
||||
</script>
|
||||
131
application/views/m/life/category.php
Executable file
131
application/views/m/life/category.php
Executable file
@@ -0,0 +1,131 @@
|
||||
<script src="/js/web/swiper.min.js"></script>
|
||||
<link rel="stylesheet" href="/js/web/swiper.min.css">
|
||||
|
||||
|
||||
<?echo trim($swiper_page);?>
|
||||
<?
|
||||
$page_title = "추천카테고리";
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
<div class="channel_cont channel_cont_fixed">
|
||||
<div class="wrap">
|
||||
<div class="channel_top" style="text-align:center; margin-bottom:0 !important;">
|
||||
<button type="button" onclick="location.href='/m/life/channel_recommend'" class="btn btn-default br10" style="padding:7px 30px;font-size: 19px; font-weight: 200 !important;">추천채널 </button>
|
||||
<button type="button" onclick="location.href='/m/life/category'" class="btn btn-default_bb br10" style="padding:7px 30px;font-size: 19px; font-weight: 200 !important; margin-left:10px;">카테고리 </button>
|
||||
</div>
|
||||
|
||||
<div class="channel_category bgb3">
|
||||
<div class="swiper-container">
|
||||
<div class="swiper-wrapper" style="padding-bottom: 10px;">
|
||||
<? foreach ($arr_category as $key=>$val) {
|
||||
$category_name_txt = mb_strimwidth($val['category_name'], '0', '10', '..', 'utf-8');
|
||||
?>
|
||||
<div class="swiper-slide"><a
|
||||
style = " font-weight: bold;font-size:15px;"
|
||||
href="/m/life/category/<?=$val['idx']?>" <? if($category_idx==$val['idx']) { echo 'class="current"';}?>><?=$category_name_txt?></a></div>
|
||||
<? }?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_tit">
|
||||
<?=$category_name?> <span class="beachblue"><?=number_format($total_count)?></span>
|
||||
<ul class="fr life_click2">
|
||||
<li><a style="cursor:pointer" onclick="location.href='/m/life/category/<?=$category_idx?>?search_sort=1'" <?=($search_sort=='1')? 'class="current"':''?>>최신순</a></li>
|
||||
<li>|</li>
|
||||
<li><a style="cursor:pointer" onclick="location.href='/m/life/category/<?=$category_idx?>?search_sort=2'" <?=($search_sort=='2')? 'class="current"':''?>>인기순</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<? $i=1;
|
||||
$editor_count = count($list);
|
||||
if($editor_count == 0) echo '<div style="height:100px; text-align:center; padding-top:30px">등록된 에디터가 없습니다.</div>';
|
||||
foreach ($list as $i=>$val) {
|
||||
if($i%2==0) echo '<div class="channel_boxs">';
|
||||
|
||||
|
||||
?>
|
||||
<div class="bk_con" onclick="location.href='/m/life/editor/<?=$val['idx']?>'" >
|
||||
<span class="shadow" style="cursor:pointer"></span>
|
||||
<a ><img style="cursor:pointer" src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="chn_tit"><a href="/m/life/editor/<?=$val['idx']?>"><?=$val['partner_name']?></a></p>
|
||||
<p class="chn_bar"> <img src="/img/web/bg_bar.gif"></p>
|
||||
<p class="chn_reply"><span class="beachblue" style="font-size:18px;"><a href="/m/life/editor/<?=$val['idx']?>"><?=number_format($val['article_count'])?></a></span><span style="font-size:14px;"> 개 글</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
|
||||
if($i%2==1 || $editor_count==($i+1)) echo '</div>';
|
||||
|
||||
}
|
||||
|
||||
$more_btn_style = 'style="display:none"';
|
||||
if($editor_count < $total_count) {
|
||||
$more_btn_style = 'style="display:block"';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<p style="text-align:center;">
|
||||
<button type="button" onclick="category_list_more();" class="btn btn-default br20" style="padding:8px 40px; font-size:16px;">더보기 <img src="/img/mobile/arr_down.gif" style="vertical-align:middle;">
|
||||
</button>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var swiper = new Swiper('.swiper-container', {
|
||||
slidesPerView: 4,
|
||||
spaceBetween: 0,
|
||||
initialSlide: 0
|
||||
});
|
||||
|
||||
|
||||
var page = 2;
|
||||
function category_list_more(){
|
||||
var form_data = {
|
||||
"sort" : "<?=$search_sort?>",
|
||||
"page" : page,
|
||||
"category_idx" : "<?=$category_idx?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/editor_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
$("#editor_list").append(arrHtml[1]);
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#editor_more_btn").hide();
|
||||
} else {
|
||||
$("#editor_more_btn").show();
|
||||
}
|
||||
page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('리스트 가져오기에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
111
application/views/m/life/channel.php
Executable file
111
application/views/m/life/channel.php
Executable file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
$channel_name = $result['channel_name'];
|
||||
$channel_main_img = $result['main_img'];
|
||||
$channel_idx = $result['idx'];
|
||||
$category_idx = $result['category_idx'];
|
||||
$category_name = $result['category_name'];
|
||||
$channel_intro = $result['channel_intro'];
|
||||
$channel_icon = $result['channel_icon'];
|
||||
|
||||
$content_type = '3';
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<? include_once ('life_header_inc.php');?>
|
||||
|
||||
|
||||
|
||||
<div class="channel_cont">
|
||||
<div class="wrap" style="padding-top:10px;">
|
||||
<div class="channel_top">
|
||||
<span class="fl">전체글 수 <span class="beachblue"><?=number_format($total_count)?></span></span>
|
||||
<span class="fr">
|
||||
<button type="button" onclick="location.href='/m/life/channel/<?=$channel_idx?>?search_sort=1'" class="btn br10 <? if($search_sort=='1') { echo 'btn-default_bb'; } else { echo 'btn-default';}?> br20" >최신순</button>
|
||||
<button type="button" onclick="location.href='/m/life/channel/<?=$channel_idx?>?search_sort=2'" class="btn br10 <? if($search_sort=='2') { echo 'btn-default_bb'; } else { echo 'btn-default';}?> br20">인기순</button>
|
||||
</span>
|
||||
</div>
|
||||
<div class="channel_boxs" id="life_list" style="margin-bottom: 0 !important;">
|
||||
<?
|
||||
|
||||
$i = 1;
|
||||
foreach ($list as $val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '90', '..', 'utf-8');
|
||||
|
||||
$channel_article_style = '';
|
||||
if($i == count($list)) {
|
||||
$channel_article_style= 'style="border-bottom:0 !important"';
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="channel_cont" style="padding-top:0">
|
||||
<span class="channel_photo"><a onclick="location.href='/m/life/life_view/<?=$val['idx']?>'" style="cursor:pointer"><img src="<?=$val['main_img']?>" class="art-img"></a></span>
|
||||
<p class="chtitle2">
|
||||
|
||||
<?if($val['head_title'] != ""):?>
|
||||
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><span class="beachblue">[<?=$val['head_title']?>]</span> </a>
|
||||
<?endif?>
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></p>
|
||||
<p class="ch_txt"><img src="/img/mobile/haert.png"><span class="like"><?=number_format($val['like_count'])?></span><span class="chname pdl25"><a href="/m/life/editor/<?=$val['partner_idx']?>"><?=$val['editor_name']?></a></span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?}?>
|
||||
|
||||
</div>
|
||||
<p style="text-align:center;"><button type="button" class="btn btn-default br20" style="padding:8px 40px; font-size:16px; margin-top:20px;" onclick="channel_list_more();">더보기 <img src="/img/mobile/arr_down.gif" style="vertical-align:middle"></button></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var life_page = 2;
|
||||
function channel_list_more(){
|
||||
var form_data = {
|
||||
"sort" : "<?=$search_sort?>",
|
||||
"page" : life_page,
|
||||
"channel_idx" : "<?=$channel_idx?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/life_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
|
||||
$("#life_list").append(arrHtml[1]);
|
||||
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#life_more_btn").hide();
|
||||
} else {
|
||||
$("#life_more_btn").show();
|
||||
}
|
||||
life_page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
132
application/views/m/life/channel_recommend.php
Executable file
132
application/views/m/life/channel_recommend.php
Executable file
@@ -0,0 +1,132 @@
|
||||
|
||||
|
||||
<?
|
||||
$page_title = "추천채널";
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
<div class="channel_cont channel_cont_fixed">
|
||||
<div class="wrap">
|
||||
<div class="channel_top" style="text-align:center; margin-bottom:0 !important;">
|
||||
<button type="button" class="btn btn-default_bb br20"
|
||||
style="padding:10px 40px;font-size: 19px; font-weight: 200 !important;">추천채널
|
||||
</button>
|
||||
<button type="button" class="btn btn-default br20" onclick="location.href='/m/life/category'"
|
||||
style="padding:10px 40px;font-size: 19px; font-weight: 200 !important;">카테고리
|
||||
</button>
|
||||
</div>
|
||||
<div id="channel_list">
|
||||
<?
|
||||
$i = 1;
|
||||
$etc_section_count = count($arr_etc_section);
|
||||
$etc_section_page = ceil($etc_section_count / 3);
|
||||
|
||||
foreach ($arr_etc_section as $val1) {
|
||||
|
||||
$curr_page = ceil($i / 3);
|
||||
|
||||
$style = 'display:block;';
|
||||
if ($i > 3) $style = 'display:none;';
|
||||
|
||||
|
||||
$class = 'bgb3';
|
||||
if ($etc_section_count < 3 || $i % 3 == 0) {
|
||||
$style .= 'margin-bottom: 0 !important;';
|
||||
$class = '';
|
||||
}
|
||||
|
||||
$class .= ' channel_page' . $curr_page;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="channel_boxs <?=$class?>" style="margin-top:10px;<?=$style?>">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<div class="channel_profile">
|
||||
<div onclick="location.href='/m/life/channel/<?= $val1['channel_idx'] ?>'"
|
||||
style="cursor:pointer;border-radius: 50px;width:50px;height:50px;background:url('<?= $val1['channel_icon'] ?>') no-repeat center; background-size:cover;"></div>
|
||||
</div>
|
||||
<div style="padding-top:7px;"><a href="/m/life/channel/<?= $val1['channel_idx'] ?>"><span
|
||||
class="chinfo"><?= $val1['channel_name'] ?></span></a>
|
||||
<p><span class="beachblue"><?= number_format($val1['channel_article_count']) ?></span>
|
||||
stories</p></a></div>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:15px !important; margin-right:10px;">
|
||||
<span class="delivery"><?= number_format($val1['delivery_count']) ?>명에게 배달중</span>
|
||||
<button type="button" class="btn btn-success br20"
|
||||
onclick="location.href='/m/life/channel/<?= $val1['channel_idx'] ?>'">더보기 <img
|
||||
src="/img/web/img_down.png" style="padding-top:8px;"></button>
|
||||
</div>
|
||||
</div>
|
||||
<? if (isset($arr_etc_section_detail[$val1['idx']]) == true) {
|
||||
foreach ($arr_etc_section_detail[$val1['idx']] as $j=>$val2) {
|
||||
if($j >2 )break;
|
||||
$head_title = '';
|
||||
if ($val2['head_title'] != '') $head_title = '<span class="beachblue">[' . $val2['head_title'] . ']</span> ';
|
||||
$title = $head_title . $val2['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '90', '..', 'utf-8');
|
||||
?>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/<?= $val2['content_idx'] ?>"><img src="<?= $val2['main_img'] ?>" class="art-img"></a>
|
||||
<p class="chtitle"><a href="/m/life/life_view/<?= $val2['content_idx'] ?>"><?= $title_txt ?></a>
|
||||
<a href="/m/life/editor/<?= $val2['partner_idx'] ?>"><?= $val2['editor_name'] ?></a></span></p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
$i++;
|
||||
|
||||
|
||||
}
|
||||
$more_btn_style = 'style="display:none;';
|
||||
if ($etc_section_count > 3) {
|
||||
$more_btn_style = 'style="display:block;"';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<p style="text-align:center;" <?=$more_btn_style?> id="life_more_btn"><button onclick="channel_list_more();" type="button" class="btn btn-default br20" style="padding:8px 40px; font-size:16px; ">더보기 <img src="/img/mobile/arr_down.gif" style="padding-top:3px"> </button></p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var channel_page = 2;
|
||||
|
||||
function channel_list_more() {
|
||||
$(".channel_page" + channel_page).show();
|
||||
|
||||
|
||||
if ("<?=$curr_page?>" == channel_page) {
|
||||
$("#life_more_btn").hide();
|
||||
} else {
|
||||
channel_page++;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
117
application/views/m/life/editor.php
Executable file
117
application/views/m/life/editor.php
Executable file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
$partner_idx = $result['idx'];
|
||||
$editor_name = $result['partner_name'];
|
||||
$editor_main_img = $result['main_img'];
|
||||
$editor_intro = $result['partner_intro'];
|
||||
$partner_img = $result['partner_img'];
|
||||
$category_idx = $result['category_idx'];
|
||||
$category_name = $result['category_name'];
|
||||
$channel_idx = $result['channel_idx'];
|
||||
$channel_name = $result['channel_name'];
|
||||
$sns_id1 = $result['sns_id1'];
|
||||
$sns_id2 = $result['sns_id2'];
|
||||
$sns_id3 = $result['sns_id3'];
|
||||
$sns_id4 = $result['sns_id4'];
|
||||
$sns_id5 = $result['sns_id5'];
|
||||
|
||||
|
||||
|
||||
|
||||
$content_type = '3';
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<? include_once ('life_header_inc.php');?>
|
||||
|
||||
<div class="channel_cont" style="padding-top:80px;">
|
||||
<div class="wrap">
|
||||
<div class="channel_top bgb3">
|
||||
<span class="fl art_no">전체글 수 <span class="beachblue"><?=number_format($total_count)?></span></span>
|
||||
<span class="fr art_bt">
|
||||
<button type="button" onclick="location.href='/m/life/editor/<?=$partner_idx?>?search_sort=1'" class="btn <? if($search_sort=='1') { echo 'btn-default_bb'; } else { echo 'btn-default';}?> br20" >최신순</button>
|
||||
<button type="button" onclick="location.href='/m/life/editor/<?=$partner_idx?>?search_sort=2'" class="btn <? if($search_sort=='2') { echo 'btn-default_bb'; } else { echo 'btn-default';}?> br20">인기순</button>
|
||||
</span>
|
||||
</div>
|
||||
<div id="life_list">
|
||||
<?
|
||||
$i = 1;
|
||||
$row_count = count($list);
|
||||
foreach ($list as $val) {
|
||||
$head_title = '';
|
||||
if($val['head_title'] != '') $head_title = '<span class="beachblue">['.$val['head_title'].']</span> ';
|
||||
$title = $head_title.$val['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '90', '..', 'utf-8');
|
||||
|
||||
|
||||
if($i%4==1) echo '<div class="channel_boxs" style="margin-bottom: 0 !important;">';
|
||||
|
||||
?>
|
||||
<div class="channel_con">
|
||||
<a onclick="location.href='/m/life/life_view/<?=$val['idx']?>'" ><img src="<?=$val['main_img']?>"> </a>
|
||||
<p class="chtitle" style="height:56px"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></p>
|
||||
</div>
|
||||
<?
|
||||
|
||||
if($i%4==0 || $row_count==$i) echo '</div>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
$life_more_btn_style = 'display:none;';
|
||||
if($total_count > $row_count) {
|
||||
$life_more_btn_style = 'display:inline-block;';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
<p style="text-align:center;"><button type="button" onclick="editor_list_more();" class="btn btn-default br20" style="padding:8px 40px; font-size:16px;<?=$life_more_btn_style?>">더보기 <img src="/img/mobile/arr_down.gif" style="vertical-align:middle;"> </button></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var life_page = 2;
|
||||
function editor_list_more(){
|
||||
var form_data = {
|
||||
"sort" : "<?=$search_sort?>",
|
||||
"page" : life_page,
|
||||
"partner_idx" : "<?=$partner_idx?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/life_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
$("#life_list").append(arrHtml[1]);
|
||||
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#life_more_btn").hide();
|
||||
} else {
|
||||
$("#life_more_btn").show();
|
||||
}
|
||||
life_page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
38
application/views/m/life/editor_life_list_more.php
Executable file
38
application/views/m/life/editor_life_list_more.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
|
||||
$i = 1;
|
||||
$row_count = count($list);
|
||||
foreach ($list as $val) {
|
||||
$head_title = '';
|
||||
if($val['head_title'] != '') $head_title = '<span class="beachblue">['.$val['head_title'].']</span> ';
|
||||
$title = $head_title.$val['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '90', '..', 'utf-8');
|
||||
|
||||
if($i%4==1) echo '<div class="channel_boxs" style="margin-bottom: 0 !important;">';
|
||||
|
||||
?>
|
||||
<div class="channel_con">
|
||||
<div class="art-img" onclick="location.href='/m/life/life_view/<?=$val['idx']?>'" style="border-top-left-radius: 5px;border-top-right-radius: 5px;cursor:pointer;width:309.39px;height:200.3px;background:url('<?=$val['main_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<p class="chtitle" style="height:56px"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></p>
|
||||
</div>
|
||||
<?
|
||||
|
||||
if($i%4==0 || $row_count==$i) echo '</div>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
37
application/views/m/life/editor_list_more.php
Executable file
37
application/views/m/life/editor_list_more.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
$i=1;
|
||||
$editor_count = count($list);
|
||||
foreach ($list as $val) {
|
||||
if($i%4==1) echo '<div class="channel_boxs">';
|
||||
|
||||
?>
|
||||
<div class="bk_con" onclick="location.href='/m/life/editor/<?=$val['idx']?>'" style="cursor: pointer">
|
||||
<span class="shadow"></span>
|
||||
<div class="art-img" onclick="location.href='/m/life/editor/<?=$val['idx']?>'" style="border-radius: 5px;cursor:pointer;width:173px;height:246px;background:url('<?=$val['main_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<p class="chn_tit"><a href="/m/life/editor/<?=$val['idx']?>"><?=$val['partner_name']?></a></p>
|
||||
<p class="chn_bar"> <img src="/img/web/bg_bar.gif"></p>
|
||||
<p class="chn_reply"><span class="beachblue" style="font-size:18px;"><a href="/m/life/editor/<?=$val['idx']?>"><?=number_format($val['article_count'])?></a></span><span style="font-size:14px;"> 개 글</span></p>
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
|
||||
if($i%4==0 || $editor_count==$i) echo '</div>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
251
application/views/m/life/index.php
Executable file
251
application/views/m/life/index.php
Executable file
@@ -0,0 +1,251 @@
|
||||
<?php
|
||||
$i = 1;
|
||||
$list1 = array();
|
||||
$list2 = array();
|
||||
$list3 = array();
|
||||
foreach($list as $val) {
|
||||
if($i%3 == 1) $list1[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
if($i%3 == 2) $list2[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
if($i%3 == 0) $list3[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?=DIR_CSS?>/web/jquery-ui.custom.css" />
|
||||
<script src="<?=DIR_JS?>/jquery-ui.min.js"></script>
|
||||
<script src="<?=DIR_JS?>/jquery-ui.multidatespicker.js"></script>
|
||||
|
||||
|
||||
<div class="contents">
|
||||
<div class="wrap" style="background:0 !important">
|
||||
<div class="life_left">
|
||||
<div class="life_header">
|
||||
<form name="input_form" id="input_form" method="post" action="/m/life/">
|
||||
<input type="hidden" name="search_sort" id="search_sort" value="<?=$search_sort?>">
|
||||
<input type="hidden" name="search_date" id="search_date" value="<?=$search_date?>">
|
||||
<input type="hidden" name="search_popular" id="search_popular" value="<?=$search_popular?>">
|
||||
<span class="life_date"><a href="javascript:life_search('search_date', '<?=$prev_date?>')"><img src="/img/web/ico_date_prev.gif"></a> <?=$month_txt?> <a href="javascript:life_search('search_date', '<?=$next_date?>')"><img src="/img/web/ico_date_next.gif"></a></span>
|
||||
<span class="life_story">라이프 스토리 </span>
|
||||
<span class="btn btn-default br15" style="font-size:12px; background-color:#fff"><a href="javascript:life_search('search_date', '');">최근</a></span>
|
||||
|
||||
<span class="fr">
|
||||
<ul class="life_click2">
|
||||
<li><a href="javascript:life_search('search_sort', '1');" <? if($search_sort=='1') { echo 'class="current"';}?>>최신순</a></li>
|
||||
<li><a href="javascript:life_search('search_sort', '2');" <? if($search_sort=='2') { echo 'class="current"';}?>>인기순</a></li>
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<? if(count($list) == 0) {
|
||||
echo '<div style="height:100px;width:100%; margin-top:100px;text-align: center">등록된 글이 없습니다.</div>';
|
||||
|
||||
} else {
|
||||
?>
|
||||
|
||||
<div class="item_story" id="life_list">
|
||||
<ul class="list_story item_1" id="item_list1">
|
||||
<?
|
||||
if(count($list1) > 0) {
|
||||
$i = 1;
|
||||
foreach($list1 as $val) {
|
||||
$style = '';
|
||||
if($i > 3) {
|
||||
$style = 'style="display:none;"';
|
||||
}
|
||||
?>
|
||||
<li class="life_box item1_1" id="item_1_<?=$i?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<? $i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<ul class="list_story2 item_2" id="item_list2">
|
||||
|
||||
<?
|
||||
if(count($list2) > 0) {
|
||||
$i = 1;
|
||||
foreach($list2 as $val) {
|
||||
$style = '';
|
||||
if($i > 4) {
|
||||
$style = 'style="display:none;"';
|
||||
}
|
||||
|
||||
?>
|
||||
<li class="life_box2 item2_1" id="item_2_<?=$i?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
<ul class="list_story3 item_3" id="item_list3">
|
||||
<?
|
||||
if(count($list3) > 0) {
|
||||
$i = 1;
|
||||
foreach($list3 as $val) {
|
||||
$style = '';
|
||||
if($i > 3) {
|
||||
$style = 'style="display:none;"';
|
||||
}
|
||||
?>
|
||||
<li class="life_box3 item3_1" id="item_3_<?=$i?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div >
|
||||
<a href="javascript:life_list_more();">
|
||||
<div id="more_btn" class="btn btn-default btn_life">
|
||||
<span >더보기 <img src="/img/web/img_replyopen.gif"></span>
|
||||
</div></a>
|
||||
<? }?>
|
||||
</div>
|
||||
|
||||
<div class="life_right">
|
||||
<div class="lifestory">
|
||||
<div class="lifestory_title">
|
||||
라이프 STORY
|
||||
</div>
|
||||
<ul class="life_tab">
|
||||
<li <? if($search_popular == '1') { echo 'class="current"';}?>><a href="/m/life/?search_date=<?=$search_date?>&search_sort=<?=$search_sort?>&search_popular=1">인기채널</a></li>
|
||||
<li <? if($search_popular == '2') { echo 'class="current"';}?>><a href="/m/life/?search_date=<?=$search_date?>&search_sort=<?=$search_sort?>&search_popular=2">인기에디터</a></li>
|
||||
</ul>
|
||||
<ul class="lifestory_list">
|
||||
<? foreach ($arr_popular as $val) {
|
||||
if($search_popular == 1) {
|
||||
$list_idx = $val['idx'];
|
||||
$list_icon = $val['channel_icon'];
|
||||
$list_title = $val['channel_name'];
|
||||
$list_intro = $val['channel_intro'];
|
||||
$view_url = '/m/life/channel/'.$list_idx;
|
||||
} else {
|
||||
$list_idx = $val['idx'];
|
||||
$list_icon = $val['partner_img'];
|
||||
$list_title = $val['partner_name'];
|
||||
$list_intro = $val['partner_intro'];
|
||||
$view_url = '/m/life/editor/'.$list_idx;
|
||||
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?=$view_url?>"><img src="<?=$list_icon?>"></a>
|
||||
<p class="life_cate"><a href="<?=$view_url?>"><?=$list_title?></a></p>
|
||||
<p class="life_tit"><a href="<?=$view_url?>"><?=$list_intro?></a></p>
|
||||
</li>
|
||||
<? }?>
|
||||
|
||||
</ul>
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div style="height:50px"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var list_height = $(".item_1").outerHeight(true);
|
||||
$('.item_story').css('height', list_height);
|
||||
|
||||
});
|
||||
|
||||
function life_search(id, val) {
|
||||
$("#"+id).val(val);
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
var page = 2;
|
||||
function life_list_more() {
|
||||
var calc_count = parseInt("<?=$total_count?>") - (page * 10);
|
||||
var form_data = {
|
||||
"sort" : "<?=$search_sort?>",
|
||||
"page" : page,
|
||||
"start_date" : "<?=$start_date?>",
|
||||
"end_date" : "<?=$end_date?>",
|
||||
"type" : "main"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/life_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
$("#item_list1").append(arrHtml[1]);
|
||||
$("#item_list2").append(arrHtml[2]);
|
||||
$("#item_list3").append(arrHtml[3]);
|
||||
|
||||
$(".item1_"+page).show();
|
||||
$(".item2_"+page).show();
|
||||
$(".item3_"+page).show();
|
||||
if (arrHtml[5] == "N") {
|
||||
$("#more_btn").hide();
|
||||
|
||||
var list_height = $(".item_1").outerHeight(true);
|
||||
var list_height2 = $(".item_2").outerHeight(true);
|
||||
var list_height3 = $(".item_3").outerHeight(true);
|
||||
if(list_height < list_height2) list_height = list_height2;
|
||||
if(list_height < list_height3) list_height = list_height3;
|
||||
|
||||
list_height = list_height + 200;
|
||||
} else {
|
||||
$("#more_btn").show();
|
||||
var list_height = $(".item_1").outerHeight(true);
|
||||
}
|
||||
$('.item_story').css('height', list_height);
|
||||
|
||||
page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
console.log(rtnHtml);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
35
application/views/m/life/life_comment.php
Executable file
35
application/views/m/life/life_comment.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
$title = $result['title'];
|
||||
$content = $result['content'];
|
||||
$main_img = $result['main_img'];
|
||||
$channel_main_img = $result['channel_main_img'];
|
||||
$editor_name = $result['editor_name'];
|
||||
$category_name = $result['category_name'];
|
||||
$channel_name = $result['channel_name'];
|
||||
$sub_title = $result['sub_title'];
|
||||
$hit_count = $result['hit_count'];
|
||||
$display_date = $result['display_date'];
|
||||
$partner_img = $result['partner_img'];
|
||||
$channel_idx = $result['channel_idx'];
|
||||
$partner_idx = $result['partner_idx'];
|
||||
$category_idx = $result['category_idx'];
|
||||
|
||||
$content_type = '3';
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<? include_once (APPPATH.'views/m/life/life_header_inc.php');?>
|
||||
<div class="reply" style="margin-top:60px;">
|
||||
<div class="reply_title">
|
||||
<h4 class="beachblue">댓글전체보기</h4>
|
||||
</div>
|
||||
<? require_once(APPPATH."views/m/common/comment_inc.php");?>
|
||||
</div>
|
||||
<script>
|
||||
change_comment_sort(2);
|
||||
</script>
|
||||
<? include_once (APPPATH.'views/m/life/life_footer_inc.php');?>
|
||||
|
||||
314
application/views/m/life/life_footer_inc.php
Executable file
314
application/views/m/life/life_footer_inc.php
Executable file
@@ -0,0 +1,314 @@
|
||||
<?
|
||||
$ci=& get_instance();
|
||||
|
||||
# 테마
|
||||
# theme_type = 13 (라이프스타일), theme_type = 14 (지금뜨는 라이프)
|
||||
$ci->load->model('web/m_theme');
|
||||
$req_data = array();
|
||||
$req_data['theme_types'] = array('13', '14');
|
||||
$arr_theme = $ci->m_theme->theme_join_vw_content_where_in_theme_type_list($req_data);
|
||||
|
||||
$arr_life_style = array();
|
||||
$arr_boomup_life = array();
|
||||
$i=1;$z=1;
|
||||
foreach ($arr_theme as $val) {
|
||||
if($val['theme_type'] == 13) {
|
||||
$arr_life_style[$val['rank']] = array('title' => $val['title'], 'sub_title'=> $val['sub_title'], 'sub_content' => $val['sub_content'], 'theme_img' => $val['theme_img'], 'content_idx' => $val['content_idx']);
|
||||
if($i>25) continue;
|
||||
}
|
||||
if($val['theme_type'] == 14) {
|
||||
$arr_boomup_life[$val['rank']] = array('title' => $val['title'], 'sub_content' => $val['sub_content'], 'theme_img' => $val['theme_img'], 'content_idx' => $val['content_idx']);
|
||||
if($i>12) continue;
|
||||
}
|
||||
$z++;
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
# 많이본 TOP5
|
||||
$req_data = array();
|
||||
$req_data['ranking_type'] = '1';
|
||||
$req_data['content_type'] = $content_type;
|
||||
$req_data['offset'] = 0;
|
||||
$req_data['limit'] = 5;
|
||||
$ci->load->model('web/m_ranking');
|
||||
$arr_ranking = $ci->m_ranking->ranking_join_life_list($req_data);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="life_footer">
|
||||
|
||||
<div class="life_cont1">
|
||||
<h4>라이프 스타일</h4>
|
||||
<?
|
||||
$i=1;
|
||||
$life_style_count = count($arr_life_style);
|
||||
foreach ($arr_life_style as $val) {
|
||||
$display_style = 'display:block';
|
||||
$curr_page = '1';
|
||||
if($i > 4) {
|
||||
$display_style = 'display:none;';
|
||||
$curr_page='2';
|
||||
}
|
||||
if($i%4==1) echo '<ul class="life_cont1_box life_style_page'.$curr_page.'" style="'.$display_style.'">';
|
||||
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '55', '..', 'utf-8');
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<li>
|
||||
<a href='/m/life/life_view/<?=$val['content_idx']?>' ><img src="<?=$val['theme_img']?>" class="art-img"></a>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$title_txt?></a></p>
|
||||
</li>
|
||||
|
||||
|
||||
<?
|
||||
if($i%4==0 || $life_style_count == $i) echo '</ul>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="channel_bottom2">
|
||||
<button type="button" class="btn btn-success br20" id="life_style_more_btn" onclick="life_style_more();">더보기 <img src="/img/web/img_down.png" style=padding-top:7px;></button>
|
||||
</div>
|
||||
<div class="life_cont2">
|
||||
<h4>지금 뜨는 라이프 </h4>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
$i=1;
|
||||
$boomup_life_count = count($arr_boomup_life);
|
||||
foreach ($arr_boomup_life as $val) {
|
||||
$display_style = $i == 1 ? 'display:block' : 'display:none';
|
||||
$curr_page = '1';
|
||||
if($i >= 2) {
|
||||
$display_style = 'display:none;';
|
||||
$curr_page='2';
|
||||
}
|
||||
echo '<div class="life_cont2_box boomup_life_page'.$curr_page.'" style="'.$display_style.'">';
|
||||
|
||||
?>
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['content_idx']?>">
|
||||
<span class="shadow"></span><a href="/m/life/life_view/<?=$val['content_idx']?>"><img src="<?=$val['theme_img']?>"></a><span class="photo_info2"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$val['title']?></a></a></span>
|
||||
|
||||
<?
|
||||
echo '</div>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="channel_bottom2">
|
||||
<button type="button" class="btn btn-success br20" id="boomup_life_more_btn" onclick="boomup_life_more();">더보기 <img src="/img/web/img_down.png" style=padding-top:7px;></button>
|
||||
</div>
|
||||
|
||||
<? if(count($arr_ranking) > 0) {?>
|
||||
<div class="life_cont4" style="margin-top:30px;">
|
||||
<h4>많이 본 <span class="beachblue">TOP 5</span> </h4>
|
||||
<span class="a_left"><a href=""><img src="/img/mobile/editor_left.gif"></a></span>
|
||||
<div class="life_cont4_box responsive">
|
||||
<? foreach ($arr_ranking as $val) {?>
|
||||
<div class="tr_img">
|
||||
<a href="/m/life/life_view/<?=$val['content_idx']?>"><img src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="tr_txt"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$val['title']?></a></p>
|
||||
</div>
|
||||
|
||||
<? }?>
|
||||
</div>
|
||||
<span class="a_right"><a href=""><img src="/img/mobile/editor_right.gif"></a></span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<? }?>
|
||||
|
||||
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _라이프_뷰 -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
function life_style_more() {
|
||||
$(".life_style_page2").show();
|
||||
$("#life_style_more_btn").hide();
|
||||
}
|
||||
|
||||
function boomup_life_more() {
|
||||
$(".boomup_life_page2").show();
|
||||
$("#boomup_life_more_btn").hide();
|
||||
}
|
||||
|
||||
$('.share_btn').click(function(e) {
|
||||
$("#share_box").toggle();
|
||||
var popH = $(this).offset().top;
|
||||
$('.popup_share').css('left','50%');
|
||||
$('.popup_share').css('top',popH+'px');
|
||||
|
||||
});
|
||||
|
||||
$(".mask").on('click', function(event){
|
||||
$(event.target).parent().hide();
|
||||
|
||||
});
|
||||
|
||||
|
||||
function bookmark(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"content_idx" : "<?=$idx?>",
|
||||
"content_type" : "<?=$content_type?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/bookmark_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$("#bookmark_img").attr("src", "/img/web/star_"+rtnJson.data.bookmark_status+".png");
|
||||
color = rtnJson.data.bookmark_status == "on" ? "#fdbb00" : "gray";
|
||||
$("#bookmark_img").css("color",color);
|
||||
$("#share_box").hide();
|
||||
if(rtnJson.data.bookmark_status == 'off') {
|
||||
alert("북마크함에서 삭제 되었습니다");
|
||||
return false;
|
||||
} else {
|
||||
alert("북마크함에 추가 되었습니다");
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
alert("북마크에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('북마크에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function like_proc(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"content_idx" : "<?=$idx?>",
|
||||
"content_type" : "<?=$content_type?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/like_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.result_code == "0000") {
|
||||
var like_count = setComma(rtnJson.result_data.like_count);
|
||||
$("#like_count").html('<img src="/img/mobile/img_heart.gif"> '+like_count);
|
||||
|
||||
} else {
|
||||
alert("저장에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
|
||||
$('.responsive').slick({
|
||||
dots: false,
|
||||
infinite: true,
|
||||
speed: 300,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 600,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
|
||||
.life_cont4_box .tr_txt{text-align:center}
|
||||
.life_cont4 .tr_txt a{display:block;width:90%;margin:0 auto;}
|
||||
.life_cont4 .a_left, .life_cont4 .a_right{display:none}
|
||||
.life_cont4 {position:relative}
|
||||
.life_cont4 .life_cont4_box{float:none;margin:0 auto}
|
||||
.life_cont4 .slick-prev.slick-arrow{cursor:pointer;z-index:99;position:absolute;left:-5%;top:30%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4 .slick-next.slick-arrow{cursor:pointer;z-index:99;position:absolute;right:-5%;top:30%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4_box .tr_txt{padding-top:1rem}
|
||||
.life_cont4 .life_cont4_box div img{margin:0 5%;}
|
||||
@media screen and (max-width: 640px){
|
||||
.life_cont4 .slick-prev.slick-arrow{left:-5%;top:20%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:10px;background-size:100% auto }
|
||||
.life_cont4 .slick-next.slick-arrow{ right:-5%;top:20%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:10px;background-size:100% auto}
|
||||
}
|
||||
@media screen and (max-width: 400px){
|
||||
.life_cont4 .slick-prev.slick-arrow{top:10%;}
|
||||
.life_cont4 .slick-next.slick-arrow{top:10%;}
|
||||
}
|
||||
</style>
|
||||
204
application/views/m/life/life_header_inc.php
Executable file
204
application/views/m/life/life_header_inc.php
Executable file
@@ -0,0 +1,204 @@
|
||||
<?php
|
||||
$method = $this->uri->segment(3);
|
||||
|
||||
$content_type = '3';
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
$logo_url = '/';
|
||||
if($method=='editor' || $method=='channel') {
|
||||
$logo_url = '/m/life/channel_recommend';
|
||||
}
|
||||
else if($bookmark_count > 0) {
|
||||
$bookmark_img = '/img/web/star_on.png';
|
||||
$bookmark_color = '#fdbb00';
|
||||
}
|
||||
$content_type = '3';
|
||||
|
||||
?>
|
||||
|
||||
<div class="mypage_top mypage_top_fixed bgb3">
|
||||
<div class="mypage_logo"><a href="/"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title" style="width: 100%;">
|
||||
<? if($method=='channel') {?>
|
||||
<a href="/m/life/channel/<?=$channel_idx?>"><span class="header_tit"><?=$channel_name?></span></a>
|
||||
<? } else {?>
|
||||
<span class="channel_title"><a href="/m/life/editor/<?=$partner_idx?>"><?=$editor_name?></a></span>
|
||||
<? }?>
|
||||
|
||||
</div>
|
||||
<div class="mypage_search" style="width: 150px; text-align: right;">
|
||||
<form name="search_form" id="search_form" method="get" action="/m/search/">
|
||||
<span><input type="text" class="inputer" id="search_keyword" name="search_keyword" value=""
|
||||
onkeyup="onkeyup_search_keyword(this.value);"><a href="javascript:search_form.submit();"><img
|
||||
src="/img/mobile/mypage_serch_icon.gif" alt="검색하기"></a></span>
|
||||
</form>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="channel_header channel_header_fixed">
|
||||
<div class="wrap_cover">
|
||||
|
||||
<?if($method!='editor' && $method !='channel') {?>
|
||||
<a href="#" class="bookmark" onclick="bookmark();" id="bookmark_img" style="color:<?=@$bookmark_color;?>;<?=($method=='life_comment') ? "display:none":""?>;z-index:99999">★</a>
|
||||
<?}?>
|
||||
<?
|
||||
$imgs = ($method=='editor') ? $editor_main_img : $channel_main_img;
|
||||
?>
|
||||
<div class="cover_image2" style="background:url(<?=$imgs?>)">
|
||||
</div>
|
||||
<div class="cover_inner">
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrap_channel">
|
||||
<? if($method=='channel') {
|
||||
$channel_delivery_btn = '/img/web/bt_delivery_off_white.png';
|
||||
if($channel_delivery_count > 0) {
|
||||
$channel_delivery_btn = '/img/web/bt_delivery_on_white.png';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="cover_cell">
|
||||
<p class="chcate" style="margin-bottom:15px;"><span><a href="/m/life/category/<?=$category_idx?>"><?=$category_name?></a></span></p>
|
||||
<p><span class="chdate icon_home" style="padding-left:25px"><?=number_format($total_count)?> Stories</span></p>
|
||||
<div class="titlewrap">
|
||||
<span class="chtit"><a><img src="<?=$channel_icon?>" style="width:39px;height:39px;"><?=$channel_name?></a></span>
|
||||
</div>
|
||||
<p class="cheditor2"><a><?=$channel_intro?> </a></p>
|
||||
<p class="chtxt2"><?=number_format($channel_delivery_total_count)?>명에게 배달중</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="wrap_btn" style="position:absolute;right:0;bottom:-20px;right:10px">
|
||||
<a href="javascript:channel_delivery();"><img src="<?=$channel_delivery_btn?>" id="channel_delivery_btn"></a>
|
||||
</div>
|
||||
|
||||
|
||||
<? } else if ($method=='editor'){?>
|
||||
<div class="cover_cell">
|
||||
<p class="chcate" style="margin-bottom:15px;"><span><a href="/m/life/category/<?=$category_idx?>"><?=$category_name?></a> <img src="/img/mobile/bg5.gif" style="padding: 2px 5px 0 5px;"> <a href="/m/life/channel/<?=$channel_idx?>"><?=$channel_name?></a></span></p>
|
||||
<p><span class="chdate icon_home" style="padding-left:25px"><?=number_format($total_count)?> Stories</span></p>
|
||||
<div class="titlewrap">
|
||||
<span class="chtit"><a href="/m/life/editor/<?=$partner_idx?>"><?=$editor_name?></a></span>
|
||||
</div>
|
||||
<p class="cheditor2"><a ><?=$editor_intro?></a></p>
|
||||
</div>
|
||||
<div class="cover_profile">
|
||||
<a><img src="<?=$partner_img?>" style="width:50px;height:50px;"></a>
|
||||
</div>
|
||||
<div class="cover_social" style="border-bottom:1px solid #ebeef3; padding-bottom:10px; padding-top: 15px;">
|
||||
|
||||
<a href="/m/life/editor/<?=$partner_idx?>"><img src="/img/web/f_icon1.png" alt="" title=""></a>
|
||||
<? if($sns_id1!='') { ?><a href="https://www.facebook.com/<?=$sns_id1?>" target="_blank"><img src="/img/web/f_icon3.png"></a><? }?>
|
||||
<? if($sns_id2!='') { ?><a href="https://instagram.com/<?=$sns_id2?>" target="_blank"><img src="/img/web/f_icon2.png"></a><? }?>
|
||||
<? if($sns_id3!='') { ?><a href="https://band.us/band/<?=$sns_id3?>" target="_blank"><img src="/img/web/f_icon8.png"></a><? }?>
|
||||
<? if($sns_id4!='') { ?><a href="https://story.kakao.com/ch/<?=$sns_id4?>" target="_blank"><img src="/img/web/f_icon6.png"></a><? }?>
|
||||
<? if($sns_id5!='') { ?><a href="https://story.kakao.com/<?=$sns_id5?>" target="_blank"><img src="/img/web/f_icon7.png"></a><? }?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<? } else {?>
|
||||
<div class="cover_cell">
|
||||
<p class="chcate" style="margin-bottom:15px;"><span><a href=""><a href="/m/life/category/<?=$category_idx?>"><?=$category_name?></a></a> <img src="/img/mobile/bg5.gif" style="padding: 2px 5px 0 5px;">
|
||||
<a href="/m/life/channel/<?=$channel_idx?>"><?=$channel_name?></a></span></p>
|
||||
<div class="titlewrap">
|
||||
<span class="chtit"><?=@$title?></span>
|
||||
</div>
|
||||
|
||||
<? if(@$sub_title != '') {
|
||||
echo '<p class="chdate">';
|
||||
echo $sub_title.' <span style="padding:0 10px;">|</span>';
|
||||
echo '</p>';
|
||||
|
||||
} ?>
|
||||
<p class="chdate">조회 <?=@number_format($hit_count)?><span style="padding:0 10px;">|</span><?=substr(@$display_date, 0, 10)?> </p>
|
||||
<p class="cheditor" style="margin-top:10px;"><a onclick="location.href='/m/life/editor/<?=$partner_idx?>'" style="cursor:pointer"><?=$editor_name?></a></p>
|
||||
</div>
|
||||
<div class="cover_profile" style="margin-top:5px;">
|
||||
<a href="/m/life/editor/<?=$partner_idx?>"><img src="<?=$partner_img?>"></a>
|
||||
</div>
|
||||
<? }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
// 레이어 이외의 공간 클릭시 close
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#life_search2");
|
||||
if( container.has(e.target).length === 0) container.hide();
|
||||
$("#life_search1").show();
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.side_menu_btn').click(function(e) {
|
||||
var element = $(".channel_header");
|
||||
var doc_width = element.width();
|
||||
|
||||
$("#side_menu_layer").toggle();
|
||||
var popH = $(this).offset().top;
|
||||
$("#side_menu_layer").css('top','0px');
|
||||
$("#side_menu_layer").css('left',doc_width+'px');
|
||||
|
||||
});
|
||||
|
||||
|
||||
function search(){
|
||||
$("#search_form").submit();
|
||||
}
|
||||
|
||||
function search_show(){
|
||||
$("#life_search1").hide();
|
||||
$("#life_search2").show();
|
||||
$("#search_keyword").focus();
|
||||
}
|
||||
|
||||
function channel_delivery(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"main_idx" : <?=$channel_idx?>,
|
||||
"content_type" : <?=$content_type?>
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/delivery_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$("#channel_delivery_btn").attr("src","/img/web/bt_delivery_"+rtnJson.data+"_white.png");
|
||||
|
||||
} else {
|
||||
alert("저장에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
44
application/views/m/life/life_list_more.php
Executable file
44
application/views/m/life/life_list_more.php
Executable file
@@ -0,0 +1,44 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
$i = 1;
|
||||
foreach ($list as $val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '90', '..', 'utf-8');
|
||||
|
||||
$channel_article_style = '';
|
||||
if($i == count($list)) {
|
||||
$channel_article_style= 'style="border-bottom:0 !important"';
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="channel_cont" style="padding-top:0">
|
||||
<span class="channel_photo"><a onclick="location.href='/m/life/life_view/<?=$val['idx']?>'" style="cursor:pointer"><img src="<?=$val['main_img']?>" class="art-img"></a></span>
|
||||
<p class="chtitle2">
|
||||
|
||||
<?if($val['head_title'] != ""):?>
|
||||
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><span class="beachblue">[<?=$val['head_title']?>]</span> </a>
|
||||
<?endif?>
|
||||
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></p>
|
||||
<p class="ch_txt"><img src="/img/mobile/haert.png"><span class="like"><?=number_format($val['like_count'])?></span><span class="chname pdl25"><a href="/m/life/editor/<?=$val['partner_idx']?>"><?=$val['editor_name']?></a></span></p>
|
||||
</div>
|
||||
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
84
application/views/m/life/life_main_list_more.php
Executable file
84
application/views/m/life/life_main_list_more.php
Executable file
@@ -0,0 +1,84 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
$i = 1;
|
||||
$list1 = array();
|
||||
$list2 = array();
|
||||
$list3 = array();
|
||||
foreach($list as $val) {
|
||||
if($i%3 == 1) $list1[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
if($i%3 == 2) $list2[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
if($i%3 == 0) $list3[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
|
||||
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?
|
||||
if(count($list1) > 0) {
|
||||
$i = 1;
|
||||
foreach($list1 as $val) {
|
||||
$style = 'style="display:none;"';
|
||||
|
||||
?>
|
||||
<li class="life_box item1_<?=$page?>" id="item_1_<?=$val['idx']?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<? $i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|||||
|
||||
<?
|
||||
if(count($list2) > 0) {
|
||||
$i = 1;
|
||||
foreach($list2 as $val) {
|
||||
$style = 'style="display:none;"';
|
||||
|
||||
|
||||
?>
|
||||
<li class="life_box2 item2_<?=$page?>" id="item_2_<?=$val['idx']?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|||||
|
||||
<?
|
||||
if(count($list3) > 0) {
|
||||
$i = 1;
|
||||
foreach($list3 as $val) {
|
||||
$style = 'style="display:none;"';
|
||||
|
||||
?>
|
||||
<li class="life_box3 item3_<?=$page?>" id="item_3_<?=$val['idx']?>" <?=$style?>>
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="226"></a>
|
||||
<p class="life_info"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['sub_title']?></a></p>
|
||||
<p class="life_title"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$val['title']?></a></p>
|
||||
<p class="life_click"><span>조회 <?=number_format($val['hit_count'])?></span> <span>댓글수 <?=number_format($val['comment_count'])?></span></p>
|
||||
</li>
|
||||
<? }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
80
application/views/m/life/life_right_inc.php
Executable file
80
application/views/m/life/life_right_inc.php
Executable file
@@ -0,0 +1,80 @@
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="list_right">
|
||||
<div class="hotlife">
|
||||
<h4>지금 뜨는 라이프 <span style="float: right;"><a href="javascript:change_boomup_life_page(-1)"><img src="/img/web/img_section_left.jpg"></a><a href="javascript:change_boomup_life_page(1)"><img src="/img/web/img_section_right.jpg"></a></span></h4>
|
||||
<?
|
||||
$i=1;
|
||||
$boomup_life_count = count($arr_boomup_life);
|
||||
$boomup_life_page = $boomup_life_count;
|
||||
foreach ($arr_boomup_life as $key=>$val) {
|
||||
$curr_page = $i;
|
||||
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '38', '..', 'utf-8');
|
||||
$display_style = 'block';
|
||||
if($i > 1) $display_style = 'none';
|
||||
?>
|
||||
|
||||
<div class="i-cover boomup_life_page<?=$curr_page?>" style="display:<?=$display_style?>">
|
||||
<a href="/m/life/life_view/<?=$val['content_idx']?>"><span class="shadow"></span>
|
||||
<div style="width:269px; height:150px; background:url('<?=$val['theme_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<p class="bar"> <img src="/img/web/bg_bar.gif"></p>
|
||||
<p class="txt"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$title_txt?></a> </p>
|
||||
</div>
|
||||
<?
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<? if(count($arr_life_ranking) > 0) {?>
|
||||
<div class="top3">
|
||||
<h4>공감글 TOP3</h4>
|
||||
<? foreach ($arr_life_ranking as $val) {?>
|
||||
<div class="top3_box" onclick="location.href='/m/life/life_view/<?=$val['content_idx']?>'" style="cursor: pointer">
|
||||
<div class="art-img" style="width:108px; height:90px; background:url('<?=$val['main_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<div class="art-info">
|
||||
<div><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$val['title']?></a></div>
|
||||
</div>
|
||||
</div>
|
||||
<? }?>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
<? if(count($arr_life_style) > 0) {?>
|
||||
<div class="lifestyle">
|
||||
<h4>라이프 스타일</h4>
|
||||
<? foreach ($arr_life_style as $val) {?>
|
||||
<div class="top3_box" onclick="location.href='/m/life/life_view/<?=$val['content_idx']?>'" style="cursor: pointer">
|
||||
<div class="art-img" style="width:108px; height:90px; background:url('<?=$val['theme_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<div class="art-info">
|
||||
<div><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$val['title']?></a></div>
|
||||
</div>
|
||||
</div>
|
||||
<? }?>
|
||||
<? }?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var boomup_life_curr_page = 1;
|
||||
function change_boomup_life_page(page){
|
||||
var total_page = "<?=$boomup_life_page?>";
|
||||
var move_page = boomup_life_curr_page + page;
|
||||
if(move_page > 0 && total_page >= move_page) {
|
||||
$(".boomup_life_page"+move_page).show();
|
||||
$(".boomup_life_page"+boomup_life_curr_page).hide();
|
||||
boomup_life_curr_page = move_page;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
87
application/views/m/life/life_view.php
Executable file
87
application/views/m/life/life_view.php
Executable file
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
$arr_tag = explode(" ",$result['tag']);
|
||||
$arr_tag = array_filter(array_map('trim',$arr_tag));
|
||||
|
||||
$title = $result['title'];
|
||||
$content = $result['content'];
|
||||
$main_img = $result['main_img'];
|
||||
$channel_main_img = $result['channel_main_img'];
|
||||
$editor_name = $result['editor_name'];
|
||||
$category_name = $result['category_name'];
|
||||
$channel_name = $result['channel_name'];
|
||||
$sub_title = $result['sub_title'];
|
||||
$hit_count = $result['hit_count'];
|
||||
$display_date = $result['display_date'];
|
||||
$partner_img = $result['partner_img'];
|
||||
$channel_idx = $result['channel_idx'];
|
||||
$partner_idx = $result['partner_idx'];
|
||||
$category_idx = $result['category_idx'];
|
||||
$video_url = $result['video_url'];
|
||||
|
||||
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
|
||||
$bookmark_img = '/img/web/star_off.png';
|
||||
$bookmark_color = 'gray';
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<? include_once (APPPATH.'views/m/life/life_header_inc.php');?>
|
||||
<div class="article_cont" style="margin-top:50px;">
|
||||
<div class="news_list">
|
||||
|
||||
<div class="view_article">
|
||||
<? if($video_url) { ?>
|
||||
<iframe src="<?=$video_url;?>" width="100%" height="240" frameborder="0"></iframe>
|
||||
<? } ?>
|
||||
<?=$content?>
|
||||
</div>
|
||||
<!-- <div class="middle_banners">-->
|
||||
<!-- <div class="mbleft">-->
|
||||
<!-- <a href=""><span class="shadow"></span>-->
|
||||
<!-- <img src="/img/mobile/mbleft.jpg" class="art-img"></a>-->
|
||||
<!-- <p class="chn_bar"> <img src="/img/mobile/bg_bar.gif"></p>-->
|
||||
<!-- <p class="card_main_title">이<span>전</span>글 </p>-->
|
||||
<!-- <p class="card_main_txt"><a href="">더운 여름, 감기 안 걸리는 방법 5가지 </a> </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="mbright">-->
|
||||
<!-- <a href=""><span class="shadow"></span>-->
|
||||
<!-- <a href=""><img src="/img/mobile/mbright.jpg" class="art-img"></a>-->
|
||||
<!-- <p class="chn_bar"> <img src="/img/mobile/bg_bar.gif"></p>-->
|
||||
<!-- <p class="card_main_title">다<span>음</span>글 </p>-->
|
||||
<!-- <p class="card_main_txt"><a href="">벽이 깊은 집 </a> </p>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<div class="life_tags">
|
||||
<div class="cover_profile3">
|
||||
<a href="/m/life/editor/<?=$partner_idx?>"><img src="<?=$result['partner_img']?>"></a>
|
||||
</div>
|
||||
<? if(count($arr_tag)>0) { ?>
|
||||
<div class="tags">Tags
|
||||
<? foreach ($arr_tag as $key=>$val) {
|
||||
if($key>0) echo ', ';
|
||||
?>
|
||||
<span class="beachblue"><a href="/m/life/tag/<?=$val?>"><?=$val?></a></span>
|
||||
<? }?>
|
||||
</div>
|
||||
|
||||
<? }?>
|
||||
<div class="panel_btns">
|
||||
<span><a href="javascript:;" class="share_btn btn btn-default br10 "><img src="/img/mobile/img_upload2.gif"> </a></span>
|
||||
<span><a href="javascript:like_proc();" id="like_count" class="btn btn-default br10"><img src="/img/mobile/img_heart.gif"> <?=number_format($result['like_count'])?></a></span>
|
||||
</div>
|
||||
</div>
|
||||
<? require_once(APPPATH."views/m/common/comment_inc.php");?>
|
||||
|
||||
<? include_once (APPPATH.'views/m/life/life_footer_inc.php');?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<? require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
393
application/views/m/life/main.php
Executable file
393
application/views/m/life/main.php
Executable file
@@ -0,0 +1,393 @@
|
||||
|
||||
<div class="news_cont2">
|
||||
<div class="cont_top">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/life/life_view/<?=$arr_grace_bigone[1]['content_idx']?>">
|
||||
<img src="<?= thumb($arr_grace_bigone[1]['theme_img']) ?>">
|
||||
</a>
|
||||
</div>
|
||||
<p class="cont_top_txt2">
|
||||
<a href="/m/life/editor/<?=$arr_grace_bigone[1]['partner_idx']?>">
|
||||
<?= $arr_grace_bigone[1]['editor_name'] ?>
|
||||
</a>
|
||||
</p>
|
||||
<p class="chn_bar2">
|
||||
<img src="/img/mobile/bg_bar.gif">
|
||||
</p>
|
||||
<p class="cont_top_title4">
|
||||
<a href="/m/life/life_view/<?=$arr_grace_bigone[1]['content_idx']?>">
|
||||
<?= $arr_grace_bigone[1]['title'] ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="news_lists">
|
||||
|
||||
<? for ($i = 1; $i <= 6; $i++):@$data = $arr_grace_middle[$i]; ?>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<img src="<?= thumb($data['theme_img']) ?>"
|
||||
onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'"
|
||||
class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<p class="art-info">
|
||||
<?= $data['sub_title']; ?>
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<span class="beachblue"><a href="/m/life/editor/<?=$data['partner_idx']?>" style="color:#2bbec6">[<?=$data['editor_name']?>]</a></span>
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>"> <?= $data['title'] ?></a>
|
||||
</a>
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
<?= $data['hit_count'] ?>명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
<? endfor ?>
|
||||
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<div class="channel_top">
|
||||
|
||||
<?$a = $ci->db->query("select * from (select a.*, b.category_name, c.channel_name, c.channel_icon, (select count(*) from partner where channel_idx=a.channel_idx) as editor_count, (select count(*) from life where channel_idx=a.channel_idx and is_del='N') as article_count, (select sum(hit_count) from life where channel_idx=a.channel_idx and is_del='N') as hit_count from life_etc_section as a join category as b on (a.category_idx = b.idx) join channel as c on (a.channel_idx = c.idx) where a.is_del='N' and b.is_del='N' and c.is_del='N' and a.etc_section_type = '2') as AA where is_del = 'N' order by AA.reg_date desc limit 0, 30")->result(); ?>
|
||||
<a href="/m/life/channel/<?=$a[0]->channel_idx?>">
|
||||
<span class="fl beachblue"><?=$a[0]->channel_name?></span>
|
||||
</a>
|
||||
<span class="fr">
|
||||
<a href="/m/life/channel/<?=$a[0]->channel_idx?>"><button type="button" class="btn btn-default br20">더보기</button></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<? for ($i = 0; $i < 6; $i++) : @$data = $arr_random_chanel[$i]; ?>
|
||||
|
||||
<? if ($i % 2 == 0): ?><div class="channel_boxs" style="margin-bottom:0;"><? endif ?>
|
||||
<div class="channel_con2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<img src="<?= thumb($data['main_img']) ?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['content_idx']?>">
|
||||
<span class="beachblue"><? if ($data['head_title']) echo "[" . $data['head_title'] . "]"; ?></span> <?= $data['title']; ?>
|
||||
</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/<?=$data['partner_idx']?>">
|
||||
by <?= $data['editor_name'] ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<? if ($i % 2 != 0): ?></div><? endif ?>
|
||||
<? endfor; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="channel_cont" style="background:#fff;">
|
||||
<div class="wrap">
|
||||
|
||||
<?
|
||||
$ci->db->select("*");
|
||||
$ci->db->from('vw_mid_editor');
|
||||
$res = $ci->db->get();
|
||||
$mid = $res->result_array();
|
||||
|
||||
$ci->db->select("*");
|
||||
$ci->db->from('life_etc_section_detail');
|
||||
$ci->db->where('etc_section_type', 4);
|
||||
$ci->db->where('is_del', 'N');
|
||||
$ci->db->order_by('life_etc_section_idx', 'asc');
|
||||
$ci->db->order_by('rank', 'asc');
|
||||
$res = $ci->db->get();
|
||||
|
||||
$tmp = $res->result_array();
|
||||
$detail = array();
|
||||
foreach ($tmp as $data) {
|
||||
$detail[$data['life_etc_section_idx']][] = $data;
|
||||
}
|
||||
|
||||
$detail = array_values($detail);
|
||||
|
||||
// var_dump($detail);
|
||||
|
||||
foreach ($mid as $key => $data):?>
|
||||
|
||||
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/editor/<?= $data['partner_idx'] ?>">
|
||||
<span class="channel_profile">
|
||||
<img src="<?= thumb($data['partner_img']) ?>" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo"><?= $data['partner_name'] ?></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p>
|
||||
<a href="/m/life/editor/<?= $data['partner_idx'] ?>">
|
||||
<span class="beachblue"
|
||||
style="font-size:13px;"><?= $data['article_count'] ?></span> stories</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
// var_dump($d);
|
||||
foreach ($detail[$key] as $d):
|
||||
|
||||
|
||||
?>
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/<?= $d['content_idx'] ?>">
|
||||
<img src="<?= thumb($d['main_img']) ?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?= $d['content_idx'] ?>"> <?= $d['title'] ?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cont_middle">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
|
||||
<a href="/m/life/editor/<?= $bigone_main['partner_idx'] ?>" class="img_profile">
|
||||
<?
|
||||
$ci->db->from("partner");
|
||||
$ci->db->where("idx=", $data['partner_idx']);
|
||||
$res = $ci->db->get();
|
||||
$res = $res->result_array();
|
||||
|
||||
?>
|
||||
<img src="<?= thumb($res[0]['main_img']) ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="cover_profile2">
|
||||
<a href="/m/life/editor/<?= $bigone_main['partner_idx'] ?>">
|
||||
<img src="<?= thumb($bigone_main['partner_img']) ?>" style="width:50px;height:50px;">
|
||||
</a>
|
||||
</div>
|
||||
<div class="life_editor3">
|
||||
<a href="/m/life/editor/<?= $bigone_main['partner_idx'] ?>"> <?= $bigone_main['partner_name'] ?> </a>
|
||||
</div>
|
||||
<div class="life_editor2">
|
||||
<a href="/m/life/life_view/<?= $d['content_idx'] ?>"> <?= $bigone_main['partner_intro'] ?> </a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
|
||||
<? foreach ($arr_mid_bigone as $i => $data): ?>
|
||||
|
||||
<? if ($i % 2 == 0): ?>
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<? endif; ?>
|
||||
|
||||
<div class="channel_con2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?= thumb($data['main_img']) ?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<span class="beachblue"><? if ($data['head_title']) echo "[" . $data['head_title'] . "]"; ?></span> <? echo (mb_strlen($data['title']) > 18) ? iconv_substr($data['title'], 0, 18, "utf-8") . "…" : $data['title']; ?></a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href=""><?= $data['hit_count'] ?>명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
<? if ($i % 2 != 0): ?>
|
||||
</div>
|
||||
</div>
|
||||
<? endif ?>
|
||||
<? endforeach; ?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
// $ci->load->model('admin/etc_section/m_life_etc_section');
|
||||
$req_data = array(
|
||||
|
||||
"search_type" => "",
|
||||
"search_keyword" => "",
|
||||
"search_category" => "",
|
||||
"search_etc_section_type" => "6",
|
||||
"sort_column" => "reg_date",
|
||||
"offset" => 0,
|
||||
"limit" => "1"
|
||||
|
||||
);
|
||||
$result = $ci->m_life_etc_section->life_editor_etc_section_list($req_data);
|
||||
?>
|
||||
<div class="life_cont4" style="margin-top:30px;">
|
||||
<h4 class="beachblue">
|
||||
<a href="/m/life/editor/<?=$result[0]['partner_idx']?>"><?=$result[0]['partner_name']?>
|
||||
<br>
|
||||
<span style="color:#818181; font-weight:normal; font-size:12px;">(읽을거리 <?=$result[0]['article_count']?>) </span>
|
||||
</a>
|
||||
</h4>
|
||||
<span class="a_left"><!--<a><img src="/img/mobile/editor_left.gif"></a>--></span>
|
||||
<div class="life_cont4_box responsive" style="width:86%;">
|
||||
|
||||
<?
|
||||
$result2 = $this->m_life_etc_section->life_etc_section_detail_list($result[0]['idx']);
|
||||
$arr_etc_section_detail_rank = array();
|
||||
foreach ($result2 as $val) {
|
||||
$arr_etc_section_detail_rank[$val['rank']] = array('idx'=>$val['idx'], 'main_img'=> $val['main_img'], 'head_title'=> $val['head_title'], 'title'=> $val['title'], 'content_idx'=> $val['content_idx'], 'hit_count'=>$val['hit_count'], 'editor_name'=>$val['editor_name'], 'video_url' => $val['video_url']);
|
||||
}
|
||||
|
||||
foreach($arr_etc_section_detail_rank as $data):
|
||||
?>
|
||||
<div class="tr_img<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?=thumb($data['main_img'])?>" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>"><?=$data['title']?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<?endforeach;?>
|
||||
|
||||
</div>
|
||||
<span class="a_right"><!--<a><img src="/img/mobile/editor_right.gif"></a>--></span>
|
||||
</div>
|
||||
<div class="news_lists">
|
||||
<?
|
||||
|
||||
// $ci->load->model('admin/etc_section/m_life_etc_section');
|
||||
$req_data = array(
|
||||
|
||||
"search_type" => "",
|
||||
"search_keyword" => "",
|
||||
"search_category" => "",
|
||||
"search_etc_section_type" => "3",
|
||||
"sort_column" => "reg_date",
|
||||
"offset" => 0,
|
||||
"limit" => "1"
|
||||
);
|
||||
$result = $ci->m_life_etc_section->life_etc_section_list($req_data);
|
||||
// $result1 = $this->m_life_etc_section->life_etc_section_select();
|
||||
$result2 = $this->m_life_etc_section->life_etc_section_detail_list($result[0]['idx']);
|
||||
|
||||
|
||||
$arr_etc_section_detail_rank = array();
|
||||
foreach ($result2 as $val) {
|
||||
$arr_etc_section_detail_rank[$val['rank']] = array('idx'=>$val['idx'], 'main_img'=> $val['main_img'], 'head_title'=> $val['head_title'], 'title'=> $val['title'], 'content_idx'=> $val['content_idx'], 'hit_count'=>$val['hit_count'], 'editor_name'=>$val['editor_name'],
|
||||
'partner_idx'=>$val['partner_idx'],
|
||||
'video_url' => $val['video_url']
|
||||
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class="news_lists_top" style="border-top:1px solid #64cacf; padding-top:20px;">
|
||||
<?$d = $ci->db->query("select * from (select a.*, b.category_name, c.channel_name, c.channel_icon, (select count(*) from partner where channel_idx=a.channel_idx) as editor_count, (select count(*) from life where channel_idx=a.channel_idx and is_del='N') as article_count, (select sum(hit_count) from life where channel_idx=a.channel_idx and is_del='N') as hit_count from life_etc_section as a join category as b on (a.category_idx = b.idx) join channel as c on (a.channel_idx = c.idx) where a.is_del='N' and b.is_del='N' and c.is_del='N' and a.etc_section_type = '3') as AA where 1 order by AA.reg_date desc limit 0, 30");
|
||||
$d= $d->result()[0];?>
|
||||
<span class="fl" >
|
||||
<a href="/m/life/channel/<?=$d->channel_idx?>">
|
||||
<?
|
||||
|
||||
echo $d->channel_name;
|
||||
?>
|
||||
|
||||
<span class="beachblue" style="padding-left: 10px;">인기베스트 5</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<?
|
||||
foreach($arr_etc_section_detail_rank as $i=>$data):
|
||||
|
||||
?>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/life/life_view/<?= $data['content_idx'] ?>">
|
||||
<img src="<?=thumb($data['main_img'])?>" onerror="this.src='<?=$data['main_img']?>'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no"><?=$i?></div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/<?= $data['partner_idx'] ?>"><?=$data['editor_name']?></a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<?if($data['head_title'] != ''):?><a href="/m/life/life_view/<?= $data['content_idx'] ?>">[<?=$data['head_title']?>] </a><?endif?> <a href="/m/life/life_view/<?= $data['content_idx'] ?>"><?=$data['title']?></a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<?endforeach?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/css/slick.css" />
|
||||
<script type="text/javascript" src="/js/slick.js"></script>
|
||||
--><script>
|
||||
window.onload=function(){
|
||||
$('.responsive').slick({
|
||||
dots: false,
|
||||
infinite: true,
|
||||
speed: 300,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 600,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
/*.life_cont4 .a_left, .life_cont4 .a_right{display:none}*/
|
||||
.life_cont4 {position:relative}
|
||||
.life_cont4 .life_cont4_box{/*float:none;*/margin:0 auto}
|
||||
.life_cont4 .slick-prev.slick-arrow{cursor:pointer;z-index:99;position:absolute;left:-5%;top:30%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4 .slick-next.slick-arrow{cursor:pointer;z-index:99;position:absolute;right:-5%;top:30%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4_box .tr_txt{padding-top:1rem}
|
||||
.life_cont4 .life_cont4_box div img{margin:0 auto}
|
||||
@media screen and (max-width: 640px){
|
||||
.life_cont4 .slick-prev.slick-arrow{left:-5%;top:20%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:10px;background-size:100% auto }
|
||||
.life_cont4 .slick-next.slick-arrow{ right:-5%;top:20%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:10px;background-size:100% auto}
|
||||
}
|
||||
@media screen and (max-width: 400px){
|
||||
.life_cont4 .slick-prev.slick-arrow{top:10%;}
|
||||
.life_cont4 .slick-next.slick-arrow{top:10%;}
|
||||
}
|
||||
</style>
|
||||
724
application/views/m/life/main2.php
Executable file
724
application/views/m/life/main2.php
Executable file
@@ -0,0 +1,724 @@
|
||||
<?
|
||||
$page_title = $page_title_1;
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
<div class="swiper-slide swiper-slide-active" data-hash="life" data-swiper-slide-index="1" style="width: 411px;">
|
||||
|
||||
<div class="news_cont2">
|
||||
<div class="cont_top" style="margin-top: 40px;">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/life/life_view/582">
|
||||
<img src="/files/theme/2019/01/201_edccbd3030087df6905d95b9516084ac.jpg">
|
||||
</a>
|
||||
</div>
|
||||
<p class="cont_top_txt2">
|
||||
<a href="/m/life/editor/49">
|
||||
하늘바보
|
||||
</a>
|
||||
</p>
|
||||
<p class="chn_bar2">
|
||||
<img src="/img/mobile/bg_bar.gif">
|
||||
</p>
|
||||
<p class="cont_top_title4">
|
||||
<a href="/m/life/life_view/582">
|
||||
기도에 대한 18가지 명언
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="news_lists">
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/581">
|
||||
<img src="/files/theme/2019/01/211_42ae986b7262927c982487ade8ca12dd.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/581">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/581">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/46" style="color:#2bbec6">[은혜]</a>
|
||||
<a href="/m/life/life_view/581"> 소망의 눈이 열려야 합니다</a>
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
642명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/580">
|
||||
<img src="/files/theme/2019/01/212_438514cdde3cbcfaf1287401dfe2ca52.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/580">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/580">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/3" style="color:#2bbec6">[하늘소]</a>
|
||||
<a href="/m/life/life_view/580"> 하늘보다 높으신 주님의 영광</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
609명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/587">
|
||||
<img src="/files/theme/2018/12/213_a90874ab14449095d9f5210bbe0511c8.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/587">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/587">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/50" style="color:#2bbec6">[탕자 아버지]</a>
|
||||
<a href="/m/life/life_view/587"> 한 가지 놀이만 반복하는 우리 아이, 괜찮은 걸까요?</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
503명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/577">
|
||||
<img src="/files/theme/2019/01/214_c1a0c66a5f8886e39947b48bef29f46b.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/577">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/577">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/69" style="color:#2bbec6">[주님 사랑]</a>
|
||||
<a href="/m/life/life_view/577"> 파키스탄, 크리스천 겨냥한 폭력사태 잇따라</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
616명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/576">
|
||||
<img src="/files/theme/2018/11/215_8f1fac94d6134bd944c31df398227118.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/576">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/576">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/6" style="color:#2bbec6">[하늘시인]</a>
|
||||
<a href="/m/life/life_view/576"> 기도밖에 드릴 게 없습니다</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
643명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/575">
|
||||
<img src="/files/theme/2019/01/216_d8b0042d8d9f233616a549d4710ab845.jpg" onerror="this.src='https://dummyimage.com/201x113/000/fff&text=no-data'" class="art-img">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<a href="/m/life/life_view/575">
|
||||
<p class="art-info">
|
||||
</p>
|
||||
</a>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/575">
|
||||
<span class="beachblue"></span></a><a href="/m/life/editor/67" style="color:#2bbec6">[은혜의 감동]</a>
|
||||
<a href="/m/life/life_view/575"> 인생의 흥망성쇠를 쥐고 계신 하나님께 드리는 기도</a>
|
||||
|
||||
</h2>
|
||||
<p class="art-info">
|
||||
744명이 봤어요</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<div class="channel_top">
|
||||
|
||||
<a href="/m/life/channel/1">
|
||||
<span class="fl beachblue">찬양의 향기</span>
|
||||
</a>
|
||||
<span class="fr">
|
||||
<a href="/m/life/channel/1"><button type="button" class="btn btn-default br20">더보기</button></a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_boxs" style="margin-bottom:0;"> <div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/410">
|
||||
<img src="/files/etc_section/2018/08/21_1e35a2b8317815758f480c91ed392fe1.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/410">
|
||||
<span class="beachblue">[a]</span> 당신께 하나님의 사랑으로(축복교제) </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/401">
|
||||
<img src="/files/etc_section/2018/08/22_b1491bc659ead1a67a414b0c731cccd1.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/401">
|
||||
<span class="beachblue">[a]</span> [찬양모음] 십자가 앞에 선 나를 봅니다 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="channel_boxs" style="margin-bottom:0;"> <div class="channel_con2">
|
||||
<a href="/m/life/life_view/377">
|
||||
<img src="/files/etc_section/2018/08/23_508214f152156a3c8953da8c18bdc977.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/377">
|
||||
<span class="beachblue">[본향을 향하여]</span> 아름다운 본향 천국 바라보며 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/21">
|
||||
by 아침을 여는 기도 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/142">
|
||||
<img src="/files/etc_section/2018/08/24_349944b7660e42ecf33a0c4e27e747fa.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/142">
|
||||
<span class="beachblue">[기분 업]</span> 기분이 울적할 때 듣기 좋은 찬양 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="channel_boxs" style="margin-bottom:0;"> <div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/284">
|
||||
<img src="/files/etc_section/2018/08/25_9061ec7ffca31cf7e90eb8c1a2915502.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/284">
|
||||
<span class="beachblue">[test]</span> 십자가를 묵상하며 part 1 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2 plays_b">
|
||||
<a href="/m/life/life_view/401">
|
||||
<img src="/files/etc_section/2018/08/26_b1491bc659ead1a67a414b0c731cccd1.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/401">
|
||||
<span class="beachblue"></span> [찬양모음] 십자가 앞에 선 나를 봅니다 </a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/1">
|
||||
by 오여정 </a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div> </div>
|
||||
</div>
|
||||
<div class="channel_cont" style="background:#fff;">
|
||||
<div class="wrap">
|
||||
|
||||
|
||||
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/editor/2">
|
||||
<span class="channel_profile">
|
||||
<img src="/files/partner/2018/05/6ffa83ec29e03a9e48577def38b40778.png" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo">숨은진주</span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p>
|
||||
<a href="/m/life/editor/2">
|
||||
<span class="beachblue" style="font-size:13px;">1</span> stories</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/410">
|
||||
<img src="/files/etc_section/2018/08/41_1e35a2b8317815758f480c91ed392fe1.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/410"> 당신께 하나님의 사랑으로(축복교제)</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/316">
|
||||
<img src="/files/etc_section/2018/08/412_2b953d0e94cd4188e85c3576e27e66ea.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/316"> 믿음의 확신이 생기지 않는다면</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/editor/5">
|
||||
<span class="channel_profile">
|
||||
<img src="/files/partner/2018/05/e70d2eb99fe9c6abee52226b078b9024.png" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo">주님찬양해</span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p>
|
||||
<a href="/m/life/editor/5">
|
||||
<span class="beachblue" style="font-size:13px;">7</span> stories</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/356">
|
||||
<img src="/files/etc_section/2018/08/421_ebd86221d99c3973667b5201e92bafd4.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/356"> 풍성한 사랑이 흘러가서</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/299">
|
||||
<img src="/files/etc_section/2018/08/422_d5aa021914a21feacc2188cf416c6bd0.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/299"> 가슴 벅차 심장이 쿵쿵</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="cont_middle">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
|
||||
<a href="/m/life/editor/8" class="img_profile">
|
||||
<img src="/files/editor/2018/05/946247d4c2435e17f1e9a289f41a3a13.jpg">
|
||||
</a>
|
||||
</div>
|
||||
<div class="cover_profile2">
|
||||
<a href="/m/life/editor/8">
|
||||
<img src="/files/partner/2018/05/570d7ba7b4b40acbd9595ba2d896dbf9.png" style="width:50px;height:50px;">
|
||||
</a>
|
||||
</div>
|
||||
<div class="life_editor3">
|
||||
<a href="/m/life/editor/8"> Lizzy </a>
|
||||
</div>
|
||||
<div class="life_editor2">
|
||||
<a href="/m/life/life_view/299"> 영어 어렵지 않아요~ </a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
|
||||
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/378">
|
||||
<img src="/files/etc_section/2018/08/51_6df1cd341b50b6086753035644183c61.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/378">
|
||||
<span class="beachblue">[주님과 함께]</span> 괴로우나 즐거우나</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">2111명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/183">
|
||||
<img src="/files/etc_section/2018/08/52_f60b156a67fb56d7ade8bd701806e0eb.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/183">
|
||||
<span class="beachblue">[콘티나눔]</span> 어버이 주일 예배 찬양 콘티 나눔</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">1152명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/357">
|
||||
<img src="/files/etc_section/2018/08/53_7600839f97e593efa0450728c25e8daa.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/357">
|
||||
<span class="beachblue">[성령 하나님]</span> 성령의 사귐이 모두와 함께</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">551명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/308">
|
||||
<img src="/files/etc_section/2018/08/54_7acd022979d8ec0ee8856231d9a81d5e.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/308">
|
||||
<span class="beachblue">[내가 주인 삼은]</span> 주일예배 찬양 콘티 나눔</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">5916명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/392">
|
||||
<img src="/files/etc_section/2018/08/55_73a5c3dc440632af9457cfc5f5c39a7c.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/392">
|
||||
<span class="beachblue">[세상의 기준]</span> BC와 AD의 의미는 뭘까?</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">2010명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/281">
|
||||
<img src="/files/etc_section/2018/08/56_dbde1b3c98442362aeeb4dc9008fca72.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/281">
|
||||
<span class="beachblue">[기도의 능력]</span> 다른 기도보다 ‘효과적인’ 기도에…</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="">1187명이 봤어요</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="life_cont4" style="margin-top:30px;">
|
||||
<h4 class="beachblue">
|
||||
<a href="/m/life/editor/24">해외통신 <br>
|
||||
<span style="color:#818181; font-weight:normal; font-size:12px;">(읽을거리 27) </span>
|
||||
</a>
|
||||
</h4>
|
||||
<span class="a_left"><!--<a><img src="/img/mobile/editor_left.gif"></a>--></span>
|
||||
<div class="life_cont4_box responsive slick-initialized slick-slider" style="width:86%;"><button type="button" data-role="none" class="slick-prev slick-arrow" aria-label="Previous" role="button" style="display: block;">Previous</button>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div aria-live="polite" class="slick-list draggable"><div class="slick-track" role="listbox" style="opacity: 1; width: 1070px; left: -321px;"><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide01" style="width: 107px;" data-slick-index="-3" aria-hidden="true">
|
||||
<a href="/m/life/life_view/235" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/08/612_0606ed3d34052293a1f66ec79878f19f.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/235" tabindex="-1">지도자들의 일반적 3가지 맹점</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide02" style="width: 107px;" data-slick-index="-2" aria-hidden="true">
|
||||
<a href="/m/life/life_view/589" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/12/63_5a3dc2eff40a49cb0d1dd03bebbc8249.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/589" tabindex="-1">이번 크리스마스에 기독교인이 되는 방법 10가지</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide03" style="width: 107px;" data-slick-index="-1" aria-hidden="true">
|
||||
<a href="/m/life/life_view/566" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/12/64_065fe3a91e1b2136ed3463a9589070b9.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/566" tabindex="-1">예수 그리스도</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-current slick-active" tabindex="-1" role="option" aria-describedby="slick-slide00" style="width: 107px;" data-slick-index="0" aria-hidden="false">
|
||||
<a href="/m/life/life_view/338" tabindex="0">
|
||||
<img src="/files/etc_section/2018/08/611_1a82315d576b74da43cf5b28f37644ad.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/338" tabindex="0">아무도 도와줄 수 없는 7가지 유형의 사람들</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-active" tabindex="-1" role="option" aria-describedby="slick-slide01" style="width: 107px;" data-slick-index="1" aria-hidden="false">
|
||||
<a href="/m/life/life_view/235" tabindex="0">
|
||||
<img src="/files/etc_section/2018/08/612_0606ed3d34052293a1f66ec79878f19f.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/235" tabindex="0">지도자들의 일반적 3가지 맹점</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-active" tabindex="-1" role="option" aria-describedby="slick-slide02" style="width: 107px;" data-slick-index="2" aria-hidden="false">
|
||||
<a href="/m/life/life_view/589" tabindex="0">
|
||||
<img src="/files/etc_section/2018/12/63_5a3dc2eff40a49cb0d1dd03bebbc8249.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/589" tabindex="0">이번 크리스마스에 기독교인이 되는 방법 10가지</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide" tabindex="-1" role="option" aria-describedby="slick-slide03" style="width: 107px;" data-slick-index="3" aria-hidden="true">
|
||||
<a href="/m/life/life_view/566" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/12/64_065fe3a91e1b2136ed3463a9589070b9.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/566" tabindex="-1">예수 그리스도</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide00" style="width: 107px;" data-slick-index="4" aria-hidden="true">
|
||||
<a href="/m/life/life_view/338" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/08/611_1a82315d576b74da43cf5b28f37644ad.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/338" tabindex="-1">아무도 도와줄 수 없는 7가지 유형의 사람들</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide01" style="width: 107px;" data-slick-index="5" aria-hidden="true">
|
||||
<a href="/m/life/life_view/235" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/08/612_0606ed3d34052293a1f66ec79878f19f.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/235" tabindex="-1">지도자들의 일반적 3가지 맹점</a>
|
||||
</p>
|
||||
</div><div class="tr_img slick-slide slick-cloned" tabindex="-1" role="option" aria-describedby="slick-slide02" style="width: 107px;" data-slick-index="6" aria-hidden="true">
|
||||
<a href="/m/life/life_view/589" tabindex="-1">
|
||||
<img src="/files/etc_section/2018/12/63_5a3dc2eff40a49cb0d1dd03bebbc8249.jpg" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/life_view/589" tabindex="-1">이번 크리스마스에 기독교인이 되는 방법 10가지</a>
|
||||
</p>
|
||||
</div></div></div><button type="button" data-role="none" class="slick-next slick-arrow" aria-label="Next" role="button" style="display: block;">Next</button></div>
|
||||
<span class="a_right"><!--<a><img src="/img/mobile/editor_right.gif"></a>--></span>
|
||||
</div>
|
||||
<div class="news_lists">
|
||||
|
||||
|
||||
|
||||
<div class="news_lists_top" style="border-top:1px solid #64cacf; padding-top:20px;">
|
||||
<span class="fl">
|
||||
<a href="/m/life/channel/1">
|
||||
찬양의 향기
|
||||
<span class="beachblue" style="padding-left: 10px;">인기베스트 5</span>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/284">
|
||||
<img src="/files/etc_section/2018/06/111_9061ec7ffca31cf7e90eb8c1a2915502.jpg" onerror="this.src='/files/etc_section/2018/06/111_9061ec7ffca31cf7e90eb8c1a2915502.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">1</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/1">오여정</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/284">십자가를 묵상하며 part 1</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/236">
|
||||
<img src="/files/etc_section/2018/06/112_84dcc68dc6897b7e688fd9c4933eae7e.jpg" onerror="this.src='/files/etc_section/2018/06/112_84dcc68dc6897b7e688fd9c4933eae7e.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">2</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/61">찬양영상</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/236">[좋아요b] </a> <a href="/m/life/life_view/236">들으면 들을수록 좋은 찬양</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/142">
|
||||
<img src="/files/etc_section/2018/06/113_349944b7660e42ecf33a0c4e27e747fa.jpg" onerror="this.src='/files/etc_section/2018/06/113_349944b7660e42ecf33a0c4e27e747fa.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">3</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/1">오여정</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/142">[기분 업] </a> <a href="/m/life/life_view/142">기분이 울적할 때 듣기 좋은 찬양</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2 plays_b">
|
||||
<a href="/m/life/life_view/238">
|
||||
<img src="/files/etc_section/2018/09/314_24cf32deadbafb07898ff1a707154b4d.jpg" onerror="this.src='/files/etc_section/2018/09/314_24cf32deadbafb07898ff1a707154b4d.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">4</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/1">오여정</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/238">주님 만나는 기도 시간에 들으면 좋은 찬양</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2">
|
||||
<a href="/m/life/life_view/336">
|
||||
<img src="/files/etc_section/2018/09/35_02cc1c9f4555e6349717797d068996f1.jpg" onerror="this.src='/files/etc_section/2018/09/35_02cc1c9f4555e6349717797d068996f1.jpg'">
|
||||
</a>
|
||||
</div>
|
||||
<div class="box_no">5</div>
|
||||
<div class="art-info2">
|
||||
<p class="art-info">
|
||||
|
||||
<a href="/m/life/editor/24">해외통신</a>
|
||||
</p>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/336">불신자들에게 그리스도의 사랑을 전할 수 있는 12가지 방법</a>
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/css/slick.css" />
|
||||
<script type="text/javascript" src="/js/slick.js"></script>
|
||||
--><script>
|
||||
window.onload=function(){
|
||||
$('.responsive').slick({
|
||||
dots: false,
|
||||
infinite: true,
|
||||
speed: 300,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 600,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
/*.life_cont4 .a_left, .life_cont4 .a_right{display:none}*/
|
||||
.life_cont4 {position:relative}
|
||||
.life_cont4 .life_cont4_box{/*float:none;*/margin:0 auto}
|
||||
.life_cont4 .slick-prev.slick-arrow{cursor:pointer;z-index:99;position:absolute;left:-5%;top:30%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4 .slick-next.slick-arrow{cursor:pointer;z-index:99;position:absolute;right:-5%;top:30%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4_box .tr_txt{padding-top:1rem}
|
||||
.life_cont4 .life_cont4_box div img{margin:0 auto}
|
||||
@media screen and (max-width: 640px){
|
||||
.life_cont4 .slick-prev.slick-arrow{left:-5%;top:20%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:10px;background-size:100% auto }
|
||||
.life_cont4 .slick-next.slick-arrow{ right:-5%;top:20%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:10px;background-size:100% auto}
|
||||
}
|
||||
@media screen and (max-width: 400px){
|
||||
.life_cont4 .slick-prev.slick-arrow{top:10%;}
|
||||
.life_cont4 .slick-next.slick-arrow{top:10%;}
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
272
application/views/m/life/main3.php
Executable file
272
application/views/m/life/main3.php
Executable file
@@ -0,0 +1,272 @@
|
||||
<?
|
||||
$page_title = $page_title_1;
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
<div class="swiper-slide swiper-slide-active" data-hash="life" data-swiper-slide-index="1" style="width: 100%;">
|
||||
<div class="news_cont2">
|
||||
<div class="cont_top" style="margin-top: 40px;">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/life/life_view/<?=$arr_daily_cutie[1]['content_idx']?>">
|
||||
<img src="<?=$arr_daily_cutie[1]['theme_img']?>">
|
||||
</a>
|
||||
</div>
|
||||
<p class="cont_top_txt2">
|
||||
<a href="/m/life/editor/72">
|
||||
데일리 큐티
|
||||
</a>
|
||||
</p>
|
||||
<p class="chn_bar2">
|
||||
<img src="/img/mobile/bg_bar.gif">
|
||||
</p>
|
||||
<p class="cont_top_title4">
|
||||
<a href="/m/life/life_view/<?=$arr_daily_cutie[1]['content_idx']?>">
|
||||
<?=$arr_daily_cutie[1]['title']?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="life_cont4" style="background: #f8f8f8;">
|
||||
<h4 class="beachblue">
|
||||
<a href="">추천채널
|
||||
<br>
|
||||
<?/*<!-- <span style="color:#818181; font-weight:normal; font-size:12px;">(읽을거리 <$arr_channel[0]['article_count']?>) </span> -->*/?>
|
||||
</a>
|
||||
</h4>
|
||||
<span class="a_left"><!--<a><img src="/img/mobile/editor_left.gif"></a>--></span>
|
||||
<div class="life_cont4_box responsive" style="width:86%;">
|
||||
<?foreach($arr_channel as $val):?>
|
||||
<div class="tr_img">
|
||||
<a href="/m/life/channel/<?=$val['idx']?>">
|
||||
<img src="<?=thumb($val['channel_icon'])?>" class="art-img">
|
||||
</a>
|
||||
<p class="tr_txt">
|
||||
<a href="/m/life/channel/<?=$val['idx']?>"><?=$val['channel_name']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?endforeach;?>
|
||||
</div>
|
||||
<span class="a_right"><!--<a><img src="/img/mobile/editor_right.gif"></a>--></span>
|
||||
</div>
|
||||
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<div class="channel_top">
|
||||
<a href="/m/life/channel/<?=$arr_book['idx']?>">
|
||||
<span class="fl beachblue"><?=$arr_book['channel_name']?></span>
|
||||
</a>
|
||||
<span class="fr">
|
||||
<a href="/m/life/channel/<?=$arr_book['idx']?>"><button type="button" class="btn btn-default br20">더보기</button></a>
|
||||
</span>
|
||||
</div>
|
||||
<?for($i=0 ; $i<6; $i++):@$data = $arr_book['data'][$i]?>
|
||||
<?if($i%2==0){?><div class="channel_boxs" style="margin-bottom:0;"><?}?>
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<span class="beachblue"></span><?=$data['title']?></a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/<?=$data['partner_idx']?>">by <?=$data['editor_name']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?if($i%2==1){?></div><?}?>
|
||||
<?endfor?>
|
||||
</div>
|
||||
<div class="wrap">
|
||||
<div class="channel_top">
|
||||
<a href="/m/life/channel/<?=$arr_card['idx']?>">
|
||||
<span class="fl beachblue"><?=$arr_card['channel_name']?></span>
|
||||
</a>
|
||||
<span class="fr">
|
||||
<a href="/m/life/channel/<?=$arr_card['idx']?>"><button type="button" class="btn btn-default br20">더보기</button></a>
|
||||
</span>
|
||||
</div>
|
||||
<?for($i=0 ; $i<4; $i++):@$data = $arr_card['data'][$i]?>
|
||||
<?if($i%2==0){?><div class="channel_boxs" style="margin-bottom:0;"><?}?>
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<span class="beachblue"></span><?=$data['title']?></a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/<?=$data['partner_idx']?>">by <?=$data['editor_name']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?if($i%2==1){?></div><?}?>
|
||||
<?endfor?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_cont" style="background:#fff;">
|
||||
<div class="wrap">
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/channel/<?=$arr_en['idx']?>">
|
||||
<span class="channel_profile">
|
||||
<img src="<?=$arr_en['channel_icon']?>" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo"><?=$arr_en['channel_name']?></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p><a href="/m/life/channel/<?=$arr_en['idx']?>">
|
||||
<span class="beachblue" style="font-size:13px;"><?=$arr_en['channel_article_count']?></span> stories
|
||||
</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<?for($i=0; $i<2; $i++):@$data = $arr_en['data'][$i]?>
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>"><?=$data['title']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?endfor?>
|
||||
</div>
|
||||
|
||||
<div class="channel_boxs bgb3" style="margin-top:10px;">
|
||||
<div class="channel_detail_box">
|
||||
<div class="channel_detail fl">
|
||||
<a href="/m/life/channel/<?=$arr_knowledge['idx']?>">
|
||||
<span class="channel_profile">
|
||||
<img src="<?=$arr_knowledge['channel_icon']?>" style="width:50px;height:50px;">
|
||||
</span>
|
||||
<div style="padding-top:15px;">
|
||||
<span class="chinfo"><?=$arr_knowledge['channel_name']?></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="fr" style="margin-top:20px;">
|
||||
<p><a href="/m/life/channel/<?=$arr_knowledge['idx']?>">
|
||||
<span class="beachblue" style="font-size:13px;"><?=$arr_knowledge['channel_article_count']?></span> stories
|
||||
</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<?for($i=0; $i<2; $i++):@$data = $arr_knowledge['data'][$i]?>
|
||||
<div class="channel_con">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>"><?=$data['title']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?endfor?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="cont_middle">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/life/channel/<?=$arr_post['idx']?>" class="img_profile">
|
||||
<img src="<?=$arr_post['main_img']?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="cover_profile2">
|
||||
<a href="/m/life/channel/<?=$arr_post['idx']?>">
|
||||
<img src="<?=$arr_post['channel_icon']?>" style="width:50px;height:50px;">
|
||||
</a>
|
||||
</div>
|
||||
<div class="life_editor3">
|
||||
<a href="/m/life/editor/8"> <?=$arr_post['channel_name']?> </a>
|
||||
</div>
|
||||
<div class="life_editor2">
|
||||
<a href="/m/life/channel/<?=$arr_post['idx']?>"> <?=$arr_post['channel_intro']?> </a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<?for($i=0;$i<4;$i++):@$data=$arr_poem['data'][$i]?>
|
||||
<?if($i%2==0){?>
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<?}?>
|
||||
<div class="channel_con2">
|
||||
<a href="/m/life/life_view/<?=$data['idx']?>">
|
||||
<img src="<?=$data['main_img']?>" class="art-img">
|
||||
</a>
|
||||
<p class="chtitle">
|
||||
<a href="/m/life/life_view/><?=$data['idx']?>">
|
||||
<span class="beachblue"></span> <?=$data['title']?>
|
||||
</a>
|
||||
</p>
|
||||
<p class="editor2">
|
||||
<a href="/m/life/editor/<?=$data['partner_idx']?>">by <?=$data['editor_name']?></a>
|
||||
</p>
|
||||
</div>
|
||||
<?if($i%2==1){?>
|
||||
</div>
|
||||
</div>
|
||||
<?}?>
|
||||
<?endfor?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/css/slick.css" />
|
||||
<script type="text/javascript" src="/js/slick.js"></script>
|
||||
--><script>
|
||||
window.onload=function(){
|
||||
$('.responsive').slick({
|
||||
dots: false,
|
||||
infinite: true,
|
||||
speed: 300,
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 1024,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 600,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 3,
|
||||
slidesToScroll: 1,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
/*.life_cont4 .a_left, .life_cont4 .a_right{display:none}*/
|
||||
.life_cont4 {position:relative}
|
||||
.life_cont4 .life_cont4_box{/*float:none;*/margin:0 auto}
|
||||
.life_cont4 .slick-prev.slick-arrow{cursor:pointer;z-index:99;position:absolute;left:-5%;top:30%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4 .slick-next.slick-arrow{cursor:pointer;z-index:99;position:absolute;right:-5%;top:30%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:14px;height:25px;border:none;text-indent:-9999rem;}
|
||||
.life_cont4_box .tr_txt{padding-top:1rem}
|
||||
.life_cont4 .life_cont4_box div img{margin:0 auto}
|
||||
@media screen and (max-width: 640px){
|
||||
.life_cont4 .slick-prev.slick-arrow{left:-5%;top:20%;background:url('/img/mobile/editor_left.gif') center center no-repeat;width:10px;background-size:100% auto }
|
||||
.life_cont4 .slick-next.slick-arrow{ right:-5%;top:20%;background:url('/img/mobile/editor_right.gif') center center no-repeat;width:10px;background-size:100% auto}
|
||||
}
|
||||
@media screen and (max-width: 400px){
|
||||
.life_cont4 .slick-prev.slick-arrow{top:10%;}
|
||||
.life_cont4 .slick-next.slick-arrow{top:10%;}
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
92
application/views/m/life/ranking.php
Executable file
92
application/views/m/life/ranking.php
Executable file
@@ -0,0 +1,92 @@
|
||||
<?
|
||||
$now_date = date("Y.m.d");
|
||||
?>
|
||||
|
||||
<div class="contents">
|
||||
<div class="wrap">
|
||||
<div class="list_left">
|
||||
<div class="news_list">
|
||||
<div class="rankynews">
|
||||
<div class="rankytop">
|
||||
<span class="ranky_tit">인기 라이프</span>
|
||||
<span class="ranky_date"><span class="btn-default_bb" style="margin-right:10px;">오늘</span> <?=$now_date?></span>
|
||||
</div>
|
||||
<ul class="rankylist">
|
||||
<li><a href="/m/life/ranking" <? if($ranking_type=='1') { echo 'class="current"'; }?>>많이본</a></li>
|
||||
<li><a href="/m/life/ranking?ranking_type=2" <? if($ranking_type=='2') { echo 'class="current"'; }?>>댓글많은 </a></li>
|
||||
<li><a href="/m/life/ranking?ranking_type=3" <? if($ranking_type=='3') { echo 'class="current"'; }?>>공감많은</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<?
|
||||
if(count($list) == 0) {
|
||||
echo '<div style="width: 100%; padding-left:40%">등록된 내용이 없습니다.</div>';
|
||||
|
||||
} else {
|
||||
|
||||
foreach ($list as $val) {
|
||||
|
||||
if($ranking_type=='1') {
|
||||
$ranking_view_txt = '조회 '.number_format($val['hit_count']);
|
||||
} else if($ranking_type=='2') {
|
||||
$comment_count = $val['comment_count'];
|
||||
$comment_count_txt = $comment_count;
|
||||
if($comment_count > 9) {
|
||||
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
|
||||
$comment_count_txt = (floor($comment_count/$calc_count)) * $calc_count;
|
||||
$comment_count_txt = $comment_count_txt.'+';
|
||||
}
|
||||
$ranking_view_txt = '<img src="/img/web/img_comment.png"> '.$comment_count_txt;
|
||||
} else if($ranking_type=='3') {
|
||||
$ranking_view_txt = '<img src="/img/web/img_heart.gif"> '.number_format($val['like_count']);
|
||||
}
|
||||
|
||||
$ranking_css ='art-info';
|
||||
$title_length = '40';
|
||||
$content_length = '250';
|
||||
if($val['rank'] < 3) {
|
||||
$ranking_css ='art-info';
|
||||
$title_length = '40';
|
||||
$content_length = '250';
|
||||
}
|
||||
$title_txt = mb_strimwidth($val['title'], '0', $title_length, '..', 'utf-8');
|
||||
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
|
||||
$content_txt = mb_strimwidth(strip_tags($content), '0', $content_length, '..', 'utf-8');
|
||||
|
||||
|
||||
?>
|
||||
<div class="news_list_cont">
|
||||
<div class="list_no beachblue"><?=$val['rank']?></div>
|
||||
<div class="<?=$ranking_css?>">
|
||||
<h2 class="art-title">
|
||||
<a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$title_txt?></a>
|
||||
<span class="origin"> | <a href="/m/life/editor/<?=$val['partner_idx']?>"><?=$val['editor_name']?></a></span>
|
||||
<span class="comment fr"> <?=$ranking_view_txt?></span>
|
||||
</h2>
|
||||
<p class="art-sum"><a href="/m/life/life_view/<?=$val['content_idx']?>"><?=$content_txt?></a> </p>
|
||||
</div>
|
||||
<div class="art-img"><a href="/m/life/life_view/<?=$val['content_idx']?>"><img src="<?=$val['main_img']?>" width="160"></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
<? }
|
||||
|
||||
}?>
|
||||
|
||||
|
||||
</div>
|
||||
<? if($pagination !='') {?>
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<? include_once ('life_right_inc.php');?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
156
application/views/m/life/tag.php
Executable file
156
application/views/m/life/tag.php
Executable file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
$tag_delivery_btn = '/img/web/bt_delivery_off_gray.png';
|
||||
if($tag_delivery_count > 0) {
|
||||
$tag_delivery_btn = '/img/web/bt_delivery_on_gray.png';
|
||||
}
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
?>
|
||||
|
||||
|
||||
<?
|
||||
$page_title = '#태그모음';
|
||||
$page_title_link = '#';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
|
||||
|
||||
<div class="channel_contents4 channel_contents4_fixed">
|
||||
<div class="wrap">
|
||||
<div style="text-align:center;">
|
||||
<p class="c_title" >#<?=$tag?> <span style="padding-top:1px;"><a href="javascript:tag_delivery();"><img src="<?=$tag_delivery_btn?>" id="tag_delivery_btn"></a></span></p>
|
||||
<p style="padding-bottom:20px;"><span><?=number_format($total_count)?>개의 글이 있어요</span></p>
|
||||
|
||||
</div>
|
||||
<div class="channel_top" style="text-align:center;">
|
||||
|
||||
<? foreach ($arr_relation_tag as $val) {?>
|
||||
<button type="button" class="btn btn-default_bb br20" onclick="location.href='/m/life/tag/<?=$val['tag']?>'" style="padding:10px 40px;"><?=$val['tag']?></button>
|
||||
<? }?>
|
||||
</div>
|
||||
<? $i=1;
|
||||
$tag_count = count($list);
|
||||
if($tag_count == 0) echo '<div style="height:100px; text-align:center; padding-top:30px">등록된 태그가 없습니다.</div>';
|
||||
foreach ($list as $val) {
|
||||
|
||||
$head_title = '';
|
||||
if($val['head_title'] != '') $head_title = '<span class="beachblue">['.$val['head_title'].']</span> ';
|
||||
$title = $head_title.$val['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '80', '..', 'utf-8');
|
||||
|
||||
?>
|
||||
|
||||
<div class="channel_boxs" style="margin-top:20px;">
|
||||
<div class="channel_con3">
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="chtitle">
|
||||
|
||||
|
||||
|
||||
<!-- <a href="/m/life/editor/--><?//=$val['partner_idx']?><!--">--><?//=$val['editor_name']?><!--</a>-->
|
||||
<span class="c_name"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></span>
|
||||
<span class="checkno fr">조회 <?=number_format($val['hit_count'])?> </span></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?
|
||||
$more_btn_style = 'style="display:none"';
|
||||
if($tag_count < $total_count) {
|
||||
$more_btn_style = 'style="display:block"';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="channel_bottom2" <?=$more_btn_style?>>
|
||||
<button type="button" class="btn btn-success br10" onclick="tag_list_more();">더보기 <img src="/img/mobile/img_down.png" style="padding-top:7px;"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var page = 2;
|
||||
function tag_list_more(){
|
||||
var form_data = {
|
||||
"page" : page,
|
||||
"tag" : "<?=$tag?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/life/tag_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
$(".wrap").append(arrHtml[1]);
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#tag_more_btn").hide();
|
||||
} else {
|
||||
$("#tag_more_btn").show();
|
||||
}
|
||||
page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('데이터 가져오기에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function tag_delivery(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"main_idx" : '<?=$tag?>',
|
||||
"content_type" : '9'
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/delivery_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$("#tag_delivery_btn").attr("src","/img/web/bt_delivery_"+rtnJson.data+"_gray.png");
|
||||
|
||||
} else {
|
||||
alert("저장에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
38
application/views/m/life/tag_list_more.php
Executable file
38
application/views/m/life/tag_list_more.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
if(count($list) > 0) {
|
||||
$i=1;
|
||||
$tag_count = count($list);
|
||||
foreach ($list as $val) {
|
||||
|
||||
$head_title = '';
|
||||
if($val['head_title'] != '') $head_title = '<span class="beachblue">['.$val['head_title'].']</span> ';
|
||||
$title = $head_title.$val['title'];
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '80', '..', 'utf-8');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="channel_boxs" style="margin-top:20px;">
|
||||
<div class="channel_con3">
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="chtitle"><a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a><span class="c_name"><a href="/m/life/editor/<?=$val['partner_idx']?>"><?=$val['editor_name']?></a></span><span class="checkno fr">조회 <?=number_format($val['hit_count'])?> </span></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||글가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
222
application/views/m/m_index.php
Executable file
222
application/views/m/m_index.php
Executable file
@@ -0,0 +1,222 @@
|
||||
<?
|
||||
require_once(APPPATH."views/m/common/navigation.php");
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<!-- 슬라이드 시작 -->
|
||||
<div class="swiper-container mainswiper">
|
||||
<div class="swiper-wrapper">
|
||||
|
||||
<!-- 은혜 -->
|
||||
<div class="swiper-slide" data-hash="grace">
|
||||
<?require_once(APPPATH."views/m/grace/main.php");?>
|
||||
</div>
|
||||
<!-- 은혜 끝 -->
|
||||
|
||||
<!-- 라이프 -->
|
||||
<div class="swiper-slide" data-hash="life">
|
||||
<?require_once(APPPATH."views/m/life/main.php");?>
|
||||
</div>
|
||||
<!-- 라이프 끝 -->
|
||||
|
||||
<!-- 뉴스 -->
|
||||
<div class="swiper-slide" data-hash="newss">
|
||||
<?require_once(APPPATH."views/m/news/main.php");?>
|
||||
</div>
|
||||
<!-- 뉴스 끝 -->
|
||||
|
||||
<!-- 바로가기 -->
|
||||
<div class="swiper-slide" data-hash="shortcut">
|
||||
<?require_once(APPPATH."views/m/shortcut/main.php");?>
|
||||
</div>
|
||||
<!-- 바로가기 끝 -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
<!-- 슬라이드 스크립트 -->
|
||||
<!--script src="/js/m/swiper.js"></script-->
|
||||
<script>
|
||||
if(location.hash == '#grace'){
|
||||
pager = 0;
|
||||
}
|
||||
else if(location.hash == '#life'){
|
||||
pager = 1;
|
||||
}
|
||||
else if(location.hash == '#newss'){
|
||||
pager = 2;
|
||||
}
|
||||
else if(location.hash == '#shortcut'){
|
||||
pager = 3;
|
||||
}
|
||||
else{
|
||||
pager = 0;
|
||||
}
|
||||
$(".news_nav").find("span").removeClass("current");
|
||||
$(".news_nav").find("span").eq(pager).addClass("current");
|
||||
|
||||
console.log(location.hash);
|
||||
// 루프용 슬라이드
|
||||
var swiper1 = new Swiper('.mainswiper', {
|
||||
loop: true,
|
||||
autoHeight: true,
|
||||
hashNavigation: {
|
||||
watchState: true,
|
||||
//replaceState: true,
|
||||
},
|
||||
initialSlide : pager,
|
||||
noSwipingClass : 'life_cont4_box'
|
||||
//history: {
|
||||
// replaceState: true,
|
||||
//},
|
||||
});
|
||||
$('.news_media3').click(function(){
|
||||
swiper1.updateAutoHeight();
|
||||
});
|
||||
//swiper1.on('tap', function () {
|
||||
// swiper1.updateAutoHeight();
|
||||
// });
|
||||
swiper1.on("slideChange", function(){
|
||||
$(window).scrollTop(0);
|
||||
});
|
||||
console.log(location.hash);
|
||||
$(document).on("touchend mousemove", ".mainswiper", function(){
|
||||
console.log(swiper1.activeIndex);
|
||||
// 슬라이드 당겼을 때, 전 current 제거
|
||||
$(".news_nav .current").removeClass('current')
|
||||
// 슬라이드 당겼을 떄, 후 current 생성
|
||||
slide_index = swiper1.activeIndex-1;
|
||||
if(swiper1.activeIndex==5){
|
||||
slide_index = 0;
|
||||
}
|
||||
$(".news_nav span").eq(slide_index).addClass('current')
|
||||
|
||||
});
|
||||
var swiper2 = new Swiper('.swiper-03', {
|
||||
slidesPerView: 3,
|
||||
spaceBetween: 10,
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
// 홈 만나 를 클릭했을때 슬라이드 이동
|
||||
$(".news_nav span").on('touchstart mousedown',function(e){
|
||||
$(window).scrollTop(0);
|
||||
//console.log('클릭이동');
|
||||
// 터치하거나, 마우스 다운을 눌렀을 때, 실행 금지
|
||||
e.preventDefault();
|
||||
// 은혜, 라이프,,, 클릭시, 전 current 제거
|
||||
$(".news_nav .current").removeClass('current')
|
||||
// 후 current 생성
|
||||
$(this).addClass('current');
|
||||
// 후 슬라이드로 이동
|
||||
swiper1.slideTo( $(this).index()+1 );
|
||||
$(".life_list_top > li > a").removeClass("current");
|
||||
$(".life_list_top > li > a").eq($(this).index() ).addClass("current");
|
||||
|
||||
})
|
||||
$(".news_nav span").click(function(e){
|
||||
// 홈 만나 클릭시 실행 금지.
|
||||
e.preventDefault()
|
||||
})
|
||||
|
||||
function change_slide(i){
|
||||
|
||||
$('.life_close').trigger("click");
|
||||
setTimeout(function(){
|
||||
|
||||
$(".news_nav span").eq(i).trigger("mousedown");
|
||||
$(".life_list_top > li > a").removeClass("current");
|
||||
$(".life_list_top > li > a").eq(i).addClass("current");
|
||||
|
||||
},100);;
|
||||
|
||||
$(window).scrollTop(0);
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
<!-- 슬라이드 스크립트 끝-->
|
||||
|
||||
<script>
|
||||
var mySwiper ;
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.news_menu').click(function(){
|
||||
$('.life_menu_l').addClass('active');
|
||||
$('.mainswiper').css('height','740px');
|
||||
});
|
||||
$('.life_close').click(function(){
|
||||
$('.life_menu_l').removeClass('active');
|
||||
$('.mainswiper').css('height','auto');
|
||||
});
|
||||
$('.dims').click(function(){
|
||||
$('.life_menu_l').removeClass('active');
|
||||
$('.mainswiper').css('height','auto');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
function detectswipe(el,func) {
|
||||
swipe_det = new Object();
|
||||
swipe_det.sX = 0;
|
||||
swipe_det.sY = 0;
|
||||
swipe_det.eX = 0;
|
||||
swipe_det.eY = 0;
|
||||
var min_x = 20; //min x swipe for horizontal swipe
|
||||
var max_x = 40; //max x difference for vertical swipe
|
||||
var min_y = 40; //min y swipe for vertical swipe
|
||||
var max_y = 50; //max y difference for horizontal swipe
|
||||
var direc = "";
|
||||
ele = document.getElementById(el);
|
||||
ele.addEventListener('touchstart',function(e){
|
||||
var t = e.touches[0];
|
||||
swipe_det.sX = t.screenX;
|
||||
swipe_det.sY = t.screenY;
|
||||
},false);
|
||||
ele.addEventListener('touchmove',function(e){
|
||||
e.preventDefault();
|
||||
var t = e.touches[0];
|
||||
swipe_det.eX = t.screenX;
|
||||
swipe_det.eY = t.screenY;
|
||||
},false);
|
||||
ele.addEventListener('touchend',function(e){
|
||||
//horizontal detection
|
||||
if ((((swipe_det.eX - min_x > swipe_det.sX) || (swipe_det.eX + min_x < swipe_det.sX)) && ((swipe_det.eY < swipe_det.sY + max_y) && (swipe_det.sY > swipe_det.eY - max_y)))) {
|
||||
if(swipe_det.eX > swipe_det.sX) direc = "r";
|
||||
else direc = "l";
|
||||
}
|
||||
//vertical detection
|
||||
if ((((swipe_det.eY - min_y > swipe_det.sY) || (swipe_det.eY + min_y < swipe_det.sY)) && ((swipe_det.eX < swipe_det.sX + max_x) && (swipe_det.sX > swipe_det.eX - max_x)))) {
|
||||
if(swipe_det.eY > swipe_det.sY) direc = "d";
|
||||
else direc = "u";
|
||||
}
|
||||
|
||||
if (direc != "") {
|
||||
if(typeof func == 'function') func(el,direc);
|
||||
}
|
||||
direc = "";
|
||||
},false);
|
||||
}
|
||||
|
||||
function myfunction(el,d) {
|
||||
$('.life_menu_l').removeClass('active');
|
||||
$('.mainswiper').css('height','auto');
|
||||
}
|
||||
detectswipe('swipeme',myfunction);
|
||||
|
||||
</script>
|
||||
|
||||
<!-- 슬라이드 끝 -->
|
||||
136
application/views/m/member/change_pw.php
Executable file
136
application/views/m/member/change_pw.php
Executable file
@@ -0,0 +1,136 @@
|
||||
|
||||
<div class="account_header_fixed">
|
||||
<span class="header_tit">비밀번호 변경 안내</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a href="<?=$_GET['redir']?>"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont" id="step1">
|
||||
<div class="bgb trc" style="padding:30px 0 20px;border-bottom: 1px solid #bfbfbf;">
|
||||
<span class="ft14">회원님의 소중한 개인정보를 안전하게 보호하기 위해</span><br>
|
||||
<span class="ft24" style="margin-top: 5px;color: #606060;display: inline-block;">비밀번호 변경을 안내 드립니다.</span>
|
||||
</div>
|
||||
<div style="padding: 20px 0; width: 90%; margin: 0 auto; line-height: 24px;">
|
||||
비밀번호를 변경하신 지 <span class="beachblue">3개월이 지난 경우</span>
|
||||
에 비밀번호 변경 안내를 드리고 있습니다.<br>
|
||||
<span style="padding:10px 0;display: block;">
|
||||
‘다음에 변경하기’ 버튼을 눌러 변경을 연기하시면 새로 로그인 접속하실 때 다시 안내해 드립니다.<br>
|
||||
</span>
|
||||
조금 불편하시더라도, <span class="beachblue">주기적으로 비밀번호를 변경하여 소중한 개인정보를 스스로 지켜주세요.</span>
|
||||
</div>
|
||||
<div class="info_forms">
|
||||
<div class="form-group" style="border-bottom:0">
|
||||
<input type="password" name="now_pwd" id="now_pwd" class="form-control" placeholder="현재 비밀번호를 입력해주세요. " style="width:97%;">
|
||||
</div>
|
||||
<div class="form-group" style="border-bottom:0">
|
||||
<input type="password" name="new_member_pwd" id="new_member_pwd" class="form-control" placeholder="새 비밀번호 (6~16 영문 대·소문자,숫자,특수문자)" style="width:97%;">
|
||||
</div>
|
||||
<div class="form-group" style="border-bottom:0">
|
||||
<input type="password" name="new_re_member_pwd" id="new_re_member_pwd" class="form-control" placeholder="새 비밀번호를 한번 더 입력해주세요. " style="width:97%;">
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin:30px 0 30px 0; display:block; text-align:center; padding-top:30px;">
|
||||
|
||||
<button type="button" class="btn btn-default_bb br5" style="padding:7px 20px; font-size:16px; margin:10px 0 " onclick="location.href='<?=$_GET['redir']?>'">다음에 변경하기</button>
|
||||
<button type="button" class="btn btn-success br5" style="padding:8px 40px; font-size:16px; margin:10px 0" onclick="change_password()">변경하기</button>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="account_cont" style="display:none;" id="step2">
|
||||
<div class="bgb trc" style="padding:30px 0 20px;border-bottom: 1px solid #bfbfbf;">
|
||||
<span class="ft24" style="margin-top: 5px;color: #606060;display: inline-block; ">비밀번호가 변경되었습니다.</span>
|
||||
</div>
|
||||
<div class="ft18 trc" style="padding: 20px 0; width: 90%; margin: 0 auto;">
|
||||
<span class="beachblue">비밀번호 변경</span>에 따른 안내
|
||||
</div>
|
||||
<dl class="pw_table">
|
||||
<dt>아이디</dt>
|
||||
<dd id="cp_member_id">abcd****</dd>
|
||||
<dt>이메일</dt>
|
||||
<dd id="cp_member_email">a**d***@n******</dd>
|
||||
<dt>변경일시</dt>
|
||||
<dd id="cp_now_date">2017.08.24</dd>
|
||||
<dt>다음 변경 권고일</dt>
|
||||
<dd id="cp_next_change_date">2010.11.24</dd>
|
||||
</dl>
|
||||
<div class="trc f14" style="padding-top:30px;">
|
||||
비밀번호를 다시 변경하시려면 로그인 후 <br><span class="beachblue" style="text-decoration:underline"><a href="/m/mypage/req_password">마이페이지</a></span>
|
||||
메뉴를 이용해주세요.
|
||||
</div>
|
||||
<div class="bgt" style="margin:30px 0 40px 0; display:block; text-align:center; padding-top:30px;">
|
||||
<button type="button" class="btn btn-success br5" style="padding:7px 40px; font-size:16px; width:100%;" onclick="location.href='/m/member/login'">로그인하기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
function change_password(){
|
||||
if($("#now_pwd").val()==""){
|
||||
alert("현재 비밀번호를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#new_member_pwd").val()=="") {
|
||||
alert("비밀번호를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(member_pwd_valid_check($("#new_member_pwd").val())==false) {
|
||||
alert("비밀번호는 6~16 영문 대·소문자,숫자,특수문자로 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#new_re_member_pwd").val()=="") {
|
||||
alert("비밀번호를 확인을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#new_member_pwd").val() != $("#new_re_member_pwd").val()) {
|
||||
alert("비밀번호를 확인을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#now_pwd").val() == $("#new_member_pwd").val()) {
|
||||
alert("변경할 비밀번호와 현재 비밀번호는 다르게 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"now_pwd" : $("#now_pwd").val(),
|
||||
"new_member_pwd" : $("#new_member_pwd").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/password_change_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
|
||||
$("#cp_next_change_date").html(rtnJson.data.next_change_data);
|
||||
$("#cp_now_date").html(rtnJson.data.now_date);
|
||||
$("#cp_member_id").html(rtnJson.data.member_id);
|
||||
$("#cp_member_email").html(rtnJson.data.member_email);
|
||||
|
||||
$("#step1").hide();
|
||||
$("#step2").show();
|
||||
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('비밀번호 변경에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
function later(){
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
7
application/views/m/member/change_pw2.php
Executable file
7
application/views/m/member/change_pw2.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: magama
|
||||
* Date: 2018. 10. 31.
|
||||
* Time: AM 4:27
|
||||
*/
|
||||
67
application/views/m/member/find_id.php
Executable file
67
application/views/m/member/find_id.php
Executable file
@@ -0,0 +1,67 @@
|
||||
<div id="find_id_layer">
|
||||
|
||||
<div class="popuptop" class="account_header_fixed">
|
||||
<h3 class="p_title" style="text-align:center">아이디 찾기 </h3>
|
||||
<span class="btn-close"><a href="/m/"><img src="/img/mobile/btn-close.png"></a></span>
|
||||
</div>
|
||||
<div class="reply_cont">
|
||||
<div class="reply_cont_wrap">
|
||||
<div class="ft18 beachblue trc" style="padding-bottom:20px">원하시는 방식을 선택해 주세요.</div>
|
||||
<dl class="bgb notice_list ft16">
|
||||
<dt>본인확인 이메일로 인증</dt>
|
||||
<dd><input type="radio" name="find_id_type" id="find_id_type2" value="2" check=""></dd>
|
||||
<dt>본인명의 휴대전화로 인증</dt>
|
||||
<dd><input type="radio" name="find_id_type" id="find_id_type3" value="1"></dd>
|
||||
|
||||
</dl>
|
||||
</div>
|
||||
<div class="account_btn">
|
||||
<div class="form-group" style="margin:30px 0; display:block; text-align:center; border-bottom:0;">
|
||||
<button type="button" onclick="find_id_type_select()" class="btn btn-success br20" style="padding:10px 50px; font-size:16px">확인</button>
|
||||
<button type="button" onclick="window.location='/m/member/login'" class="btn btn-default_bb br20" style="padding:10px 50px; font-size:16px ">취소
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="find_id_fin_layer" style="display:none;">
|
||||
|
||||
<div class="account_header_fixed">
|
||||
<span class="header_tit">아아디 찾기</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a href="/m/"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont">
|
||||
<div class="search_text">회원님의 아이디는 <br><span id="find_id_text" class="beachblue">abcd</span><br>
|
||||
입니다.
|
||||
</div>
|
||||
<div class="account_btn" style="margin-top:60px;">
|
||||
<span><a href="/m/member/login" class="btn btn-success br5" style="font-size: 17px;padding: 10px 0;width: 60%;">로그인하기 </a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
// 아이디 찾기
|
||||
function find_id_type_select() {
|
||||
|
||||
$("input[name=find_id_type]:checked").each(function () {
|
||||
var find_id_type = $(this).val();
|
||||
if (find_id_type == '1') {
|
||||
window.open("/m/common/kmc_mobile_auth?type=find_id");
|
||||
} else {
|
||||
window.location = "/m/member/find_id_with_email";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
160
application/views/m/member/find_id_with_email.php
Executable file
160
application/views/m/member/find_id_with_email.php
Executable file
@@ -0,0 +1,160 @@
|
||||
<div id="find_id_email_layer">
|
||||
<div class="account_header_fixed">
|
||||
<span class="header_tit">아이디 찾기</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a
|
||||
href="/m/"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont_fixed">
|
||||
<div class="reply_text">회원정보에 인증등록하신 이메일 주소와 <br> 등록하신 본인 이름을 작성해주시기 바랍니다.
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">본인확인 이메일로 인증 </label>
|
||||
<input type="text" class="form-control" placeholder="이름" name="find_id_name" id="find_id_name"
|
||||
style="width:98%;">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="이메일 주소 " name="find_id_email" id="find_id_email">
|
||||
<span style="position:absolute; right:0; bottom:8px;"><a onclick="find_id_email_proc()"
|
||||
class="btn btn-default_bb br10">인증</a></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<input type="text" name="find_id_auth_key" id="find_id_auth_key" class="form-control"
|
||||
placeholder="인증번호 숫자 6자리" style="width:98%;">
|
||||
<span style="position:absolute; right:0; bottom:8px;"><a onclick="find_id_email_auth_proc()" class="btn btn-default_bb br10"
|
||||
style="padding:4px 26px">확인 </a></span>
|
||||
</div>
|
||||
<div>
|
||||
<div style="padding:10px 15px; text-decoration:underline;"><p
|
||||
style="font-size:15px; text-align:center; margin:80px 0 20px 0; color:#868686"><a
|
||||
href="javascript:find_id_email_proc();">인증번호가 오지 않나요?</a></p>
|
||||
</div>
|
||||
<div
|
||||
style="font-size:13px; padding:20px; border:1px solid #adadad; color:#868686; border-radius:2px; line-height:26px;">
|
||||
발송한 메일이 스팸 메일로 분류된 것은 아닌지 확인해 주세요. 스팸 메일함에도 메일이 없다면, 다시 한번 ‘인증’을 눌러주세요.
|
||||
</div>
|
||||
</div>
|
||||
<div class="account_btn">
|
||||
<span style="padding: 0;"><a onclick="find_id_email_auth_proc();" class="btn btn-success br5"
|
||||
style="font-size: 17px;padding: 20px 0;width: 100%;">확인 </a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="find_id_fin_layer" style="display:none;">
|
||||
|
||||
<div class="account_header_fixed">
|
||||
<span class="header_tit">아아디 찾기</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a
|
||||
href="/m/"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont">
|
||||
<div class="search_text">회원님의 아이디는 <br><span id="find_id_text" class="beachblue">abcd</span><br>
|
||||
입니다.
|
||||
</div>
|
||||
<div class="account_btn" style="margin-top:60px;">
|
||||
<span><a href="/m/member/login" class="btn btn-success br5"
|
||||
style="font-size: 17px;padding: 10px 0;width: 60%;">로그인하기 </a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
// 아이디 찾기 메일 보내기
|
||||
function find_id_email_proc() {
|
||||
if ($("#find_id_name").val() == true) {
|
||||
alert("이름을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if ($("#find_id_email").val() == true) {
|
||||
alert("이메일주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if (checkEmail($("#find_id_email").val()) == false) {
|
||||
alert("이메일을 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
var form_data = {
|
||||
"content": $("#find_id_name").val(),
|
||||
"email": $("#find_id_email").val(),
|
||||
"type": 'id',
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/member/find_by_email_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
alert("인증번호를 메일로 발송했습니다.");
|
||||
console.log(rtnJson.data);
|
||||
return false;
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('인증번호 발송에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 아이디찾기 인증 확인
|
||||
function find_id_email_auth_proc() {
|
||||
if ($("#find_id_name").val() == true) {
|
||||
alert("이름을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if ($("#find_id_email").val() == true) {
|
||||
alert("이메일주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if (checkEmail($("#find_id_email").val()) == false) {
|
||||
alert("이메일을 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
if ($("#find_id_auth_key").val() == true) {
|
||||
alert("인증번호를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"content": $("#find_id_name").val(),
|
||||
"email": $("#find_id_email").val(),
|
||||
"type": 'id',
|
||||
"auth_key": $("#find_id_auth_key").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/member/find_by_email_auth_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$('#find_id_email_layer').hide();
|
||||
$('#find_id_fin_layer').show();
|
||||
$("#find_id_text").html(rtnJson.data);
|
||||
return false;
|
||||
|
||||
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('인증번호 발송에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
126
application/views/m/member/find_pw.php
Executable file
126
application/views/m/member/find_pw.php
Executable file
@@ -0,0 +1,126 @@
|
||||
<div id="find_pwd_layer">
|
||||
<div class="popuptop" class="account_header_fixed">
|
||||
<h3 class="p_title" style="text-align:center">비밀번호 찾기 </h3>
|
||||
<span class="btn-close"><a href="/m/"><img src="/img/mobile/btn-close.png"></a></span>
|
||||
</div>
|
||||
<div class="reply_cont">
|
||||
<div class="reply_cont_wrap">
|
||||
|
||||
<div class="ft18 beachblue trc" style="padding-bottom:20px">원하시는 방식을 선택해 주세요.</div>
|
||||
<dl class="bgb notice_list ft16">
|
||||
<dt>모바일폰 인증으로 찾기</dt>
|
||||
<dd><input type="radio" name="find_password_type" id="find_password_type1" value="1"></dd>
|
||||
<dt>이메일 인증으로 찾기</dt>
|
||||
<dd><input type="radio" name="find_password_type" id="find_password_type2" value="2" checked=""></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="account_btn">
|
||||
<div class="form-group" style="margin:30px 0; display:block; text-align:center; border-bottom:0;">
|
||||
<button type="button" onclick="find_password_type_select();" class="btn btn-success br20" style="padding:10px 50px; font-size:16px">확인</button>
|
||||
<button type="button" onclick="window.location='/m/member/login'" class="btn btn-default_bb br20" style="padding:10px 50px; font-size:16px ">취소</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="find_pwd_fin_layer" style="display:none;">
|
||||
<div class="account_header_fixed">
|
||||
<span class="header_tit">비밀번호 찾기</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a href="/m/"><img
|
||||
src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont">
|
||||
<div class="search_text" style="margin: 80px 0 0 0; font-size: 16px;">인증된 메일<br>
|
||||
<span id="find_pwd_email_text" class="beachblue">a**d***@d******</span>
|
||||
<br>로 변경된 임시비밀번호 정보를 발신하였습니다.<br><br>회원님의 소중한 개인정보 보호를 위해<br>
|
||||
지금 꼭! 비밀번호를 변경하신 후,
|
||||
<br>로그인 하시기 바랍니다.<br>
|
||||
</div>
|
||||
<div class="account_btn" style="margin-top:20px;">
|
||||
<span><a href="/m/member/login" class="btn btn-success br5" style="font-size: 17px;padding: 10px 0;width: 60%;">로그인하기 </a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
|
||||
// 비밀번호 찾기
|
||||
function find_password_type_select() {
|
||||
$("input[name=find_password_type]:checked").each(function () {
|
||||
var find_password_type = $(this).val();
|
||||
if (find_password_type == '1') {
|
||||
window.open("/m/common/kmc_mobile_auth?type=find_password");
|
||||
} else {
|
||||
window.location="/m/member/find_pw_with_email"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 비밀번호 변경
|
||||
function change_password() {
|
||||
if ($("#now_pwd").val() == "") {
|
||||
alert("현재 비밀번호를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#new_member_pwd").val() == "") {
|
||||
alert("비밀번호를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (member_pwd_valid_check($("#new_member_pwd").val()) == false) {
|
||||
alert("비밀번호는 6~16 영문 대·소문자,숫자,특수문자로 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#new_re_member_pwd").val() == "") {
|
||||
alert("비밀번호를 확인을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#new_member_pwd").val() != $("#new_re_member_pwd").val()) {
|
||||
alert("비밀번호를 확인을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#now_pwd").val() == $("#new_member_pwd").val()) {
|
||||
alert("변경할 비밀번호와 현재 비밀번호는 다르게 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"now_pwd": $("#now_pwd").val(),
|
||||
"new_member_pwd": $("#new_member_pwd").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/password_change_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
|
||||
$("#cp_next_change_date").html(rtnJson.data.next_change_data);
|
||||
$("#cp_now_date").html(rtnJson.data.now_date);
|
||||
$("#cp_member_id").html(rtnJson.data.member_id);
|
||||
$("#cp_member_email").html(rtnJson.data.member_email);
|
||||
|
||||
commonLayerClose('pw_3month_auto_change');
|
||||
commonLayerOpen('pw_3month_auto_change_fin');
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('비밀번호 변경에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
106
application/views/m/member/find_pw_with_email.php
Executable file
106
application/views/m/member/find_pw_with_email.php
Executable file
@@ -0,0 +1,106 @@
|
||||
<div id="find_pwd_email_layer">
|
||||
<div class="account_header_fixed">
|
||||
<span class="header_tit">비밀번호 찾기</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a
|
||||
href="/m/"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont_fixed">
|
||||
<div class="reply_text">회원정보에 인증등록하신 이메일 주소와 <br> 등록하신 본인 이름을 작성해주시기 바랍니다.
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">본인확인 이메일로 인증 </label>
|
||||
<input type="text" class="form-control" placeholder="아이디" name="find_pwd_id" id="find_pwd_id"
|
||||
style="width:98%;">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="이메일 주소 " name="find_pwd_email" id="find_pwd_email">
|
||||
<span style="position:absolute; right:0; bottom:8px;"></span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
<div
|
||||
style="font-size:13px; padding:20px;margin-top:8px; border:1px solid #adadad; color:#868686; border-radius:2px; line-height:26px;">
|
||||
발송한 메일이 스팸 메일로 분류된 것은 아닌지 확인해 주세요. 스팸 메일함에도 메일이 없다면, 다시 한번 ‘인증’을 눌러주세요.
|
||||
</div>
|
||||
</div>
|
||||
<div class="account_btn">
|
||||
<span style="padding: 0;"><a onclick="find_pwd_email_proc();" class="btn btn-success br5"
|
||||
style="font-size: 17px;padding: 20px 0;width: 100%;">확인 </a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="find_pwd_fin_layer" style="display:none;">
|
||||
<div class="account_header_fixed">
|
||||
<span class="header_tit">비밀번호 찾기</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a href="/m/"><img
|
||||
src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont">
|
||||
<div class="search_text" style="margin: 80px 0 0 0; font-size: 16px;">인증된 메일<br>
|
||||
<span id="find_pwd_email_text" class="beachblue">a**d***@d******</span>
|
||||
<br>로 변경된 임시비밀번호 정보를 발신하였습니다.<br><br>회원님의 소중한 개인정보 보호를 위해<br>
|
||||
지금 꼭! 비밀번호를 변경하신 후,
|
||||
<br>로그인 하시기 바랍니다.<br>
|
||||
</div>
|
||||
<div class="account_btn" style="margin-top:20px;">
|
||||
<span><a href="/m/member/login" class="btn btn-success br5" style="font-size: 17px;padding: 10px 0;width: 60%;">로그인하기 </a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
// 비밀번호 이메일로 찾기
|
||||
function find_pwd_email_proc() {
|
||||
if ($("#find_pwd_id").val() == true) {
|
||||
alert("아이디를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if ($("#find_pwd_email").val() == true) {
|
||||
alert("이메일주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if (checkEmail($("#find_pwd_email").val()) == false) {
|
||||
alert("이메일을 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"type": "email",
|
||||
"id": $("#find_pwd_id").val(),
|
||||
"key": $("#find_pwd_email").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/member/find_password_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
commonLayerClose('find_pwd_layer');
|
||||
commonLayerClose('find_pwd_email_layer');
|
||||
commonLayerOpen('find_pwd_fin_layer');
|
||||
$("#find_pwd_email_text").html(rtnJson.data);
|
||||
return false;
|
||||
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('비밀번호 찾기에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
22
application/views/m/member/join.php
Executable file
22
application/views/m/member/join.php
Executable file
@@ -0,0 +1,22 @@
|
||||
|
||||
<div class="main_header">
|
||||
<span class="header_tit"><img src="/img/mobile/img_logo.jpg" style="margin:120px 0;"></span><span class="fr" style="position:absolute; top:25px; right:25px;"><a href="/m/"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="main_cont" style="top: 245px;">
|
||||
<div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0;">
|
||||
<button type="button" class="btn br5 m_email" style="padding:17px 0" onclick="window.location='/m/member/join_1'">크로스맵 계정으로 가입하기 </button>
|
||||
</div>
|
||||
<div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0; ">
|
||||
<button type="button" class="btn br5 m_facebook" style="padding:17px 0">페이스북 계정 만들기 </button>
|
||||
</div>
|
||||
<div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0;">
|
||||
<button type="button" class="btn br5 m_kakao" style="padding:17px 0">카카오톡 계정 만들기 </button>
|
||||
</div>
|
||||
<div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0;">
|
||||
<button type="button" class="btn br5 m_naver" style="padding:17px 0">네이버 계정 만들기 </button>
|
||||
</div>
|
||||
<div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0; ">
|
||||
<button type="button" class="btn br5 m_tweeter" style="padding:17px 0">트위터 계정 만들기 </button>
|
||||
</div>
|
||||
<div class="b_bottom"><a href="">이미 가입하셨나요?</a> <span class="b_login"><a href="/m/member/login">로그인하기</a></span></div>
|
||||
</div>
|
||||
1293
application/views/m/member/join_1.php
Executable file
1293
application/views/m/member/join_1.php
Executable file
File diff suppressed because it is too large
Load Diff
30
application/views/m/member/join_2.php
Executable file
30
application/views/m/member/join_2.php
Executable file
@@ -0,0 +1,30 @@
|
||||
|
||||
<div class="popupbox" >
|
||||
<div class="popuptop2">
|
||||
<span class="logo"><a href="/m/"><img src="/img/mobile/logo_sm.jpg" alt="logo"></a></span>
|
||||
<span style="float:right; padding-right:30px; padding-top:5px;">크리스천 기독 종합 포털</span>
|
||||
</div>
|
||||
<div class="popupimg">
|
||||
<img src="/img/mobile/popupimg.jpg">
|
||||
<div class="popuptxt">
|
||||
<span class="ft22 done">가입이 완료됐습니다.</span><br>
|
||||
<span style="padding-top: 5px; display: inline-block;">크리스천 놀이터 크로스맵에 자주 놀러 오실 거죠?</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="popupbody">
|
||||
<table class="body_table">
|
||||
<tbody><tr>
|
||||
<td class="bt_tit" style="padding-top:15px;">아이디</td>
|
||||
<td class="bt_txt" style="padding-top:15px;"><?echo $_SESSION['C_Member_Id']?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bt_tit" style="padding-top:10px; padding-bottom:15px;">이름/닉네</td>
|
||||
<td class="bt_txt" style="padding-top:10px; padding-bottom:15px;"><?echo $_SESSION['C_Member_Nicname']?></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<div class="ft14" style="margin-top:20px;">닉네임 등 프로필 정보는 <span class="beachblue" style="text-decoration:underline;"><a href="/m/mypage/req_password">내 정보관리</a></span>에서 수정할 수 있어요.</div>
|
||||
<div class="form-group" style="margin:20px 0 30px; display:block; text-align:center">
|
||||
<button type="button" class="btn btn-success br5" style="padding: 15px 40px;font-size: 16px; width: 100%;" onclick="window.location='/m/'"><span class="current">시작하기 </span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
108
application/views/m/member/login.php
Executable file
108
application/views/m/member/login.php
Executable file
@@ -0,0 +1,108 @@
|
||||
|
||||
<?
|
||||
$redir = isset($redir) ? $redir : "/m/";
|
||||
?>
|
||||
<script>
|
||||
|
||||
function login_proc(){
|
||||
if($("#login_member_id").val()=="") {
|
||||
alert("아이디를 입력해주세요.");
|
||||
$("#login_member_id").focus();
|
||||
return false;
|
||||
}
|
||||
if($("#login_member_pwd").val()=="") {
|
||||
alert("비밀번호를 입력해주세요.");
|
||||
$("#login_member_pwd").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var save_login = 'N';
|
||||
if($('input:checkbox[id="save_login"]').is(":checked") == true){
|
||||
save_login = "Y"
|
||||
}
|
||||
|
||||
var save_id = 'N';
|
||||
if($('input:checkbox[id="save_id"]').is(":checked") == true){
|
||||
save_id = "Y"
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"member_id" : $("#login_member_id").val(),
|
||||
"member_pwd" : $("#login_member_pwd").val(),
|
||||
"save_login" : save_login,
|
||||
"save_id" : save_id
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/member/login_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
if(rtnJson.msg!=''){
|
||||
alert(rtnJson.msg);
|
||||
}
|
||||
location.href="<?=$redir?>";
|
||||
|
||||
} else if (rtnJson.code == "1111") {
|
||||
|
||||
location.href="/m/member/change_pw?redir=<?=$redir?>";
|
||||
}
|
||||
else{
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('로그인에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function inputSendit() {
|
||||
if (event.keyCode == 13) {
|
||||
login_proc();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<?
|
||||
$save_user_id = get_cookie("crossmap_save_login_id");
|
||||
?>
|
||||
<div class="main_header">
|
||||
<span class="header_tit"><img src="/img/mobile/img_logo.jpg" style="margin:80px 0 170px 0;"></span><span class="fr" style="position:absolute; top:25px; right:25px;"><a href="/m/"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
<div class="form-group2">
|
||||
<input type="id" id="login_member_id" class="form-control" placeholder="아이디를 입력해주세요." value="<?=get_cookie("crossmap_save_login_id");?>" style="width:98%;" onkeydown="inputSendit();">
|
||||
</div>
|
||||
<div class="form-group3">
|
||||
<input type="password" id="login_member_pwd" class="form-control" placeholder="비밀번호를 입력해주세요."style="width:98%;" onkeydown="inputSendit();">
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_cont" style="top:250px;">
|
||||
<div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0;">
|
||||
<button type="button" class="btn br5 m_email" style="padding:20px 0" onclick="login_proc();">로그인</button>
|
||||
</div>
|
||||
<div class="chk_id_login">
|
||||
<input value="" id="save_login" type="checkbox" style="margin-right:5px;">자동로그인
|
||||
<input value="" id="save_id" type="checkbox" style="margin-left:20px;margin-right:5px;" <?echo isset($save_user_id) ? "checked" : "";?> >아이디 저장
|
||||
<div><span class="beachblue" style="text-decoration: underline;"><a href="/m/member/find_id">아이디</a>/<a href="/m/member/find_pw">비밀번호</a></span>를 잊어버리셨나요?</div>
|
||||
</div>
|
||||
<!-- <div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0; ">-->
|
||||
<!-- <button type="button" class="btn br5 m_facebook" style="padding:17px 0">페이스북 계정으로 로그인하기</button>-->
|
||||
<!-- </div>-->
|
||||
<!---->
|
||||
<!-- <div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0;">-->
|
||||
<!-- <button type="button" class="btn br5 m_kakao" style="padding:17px 0">카카오톡 계정으로 로그인하기</button>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0;">-->
|
||||
<!-- <button type="button" class="btn br5 m_naver" style="padding:17px 0">네이버 계정으로 로그인하기 </button>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="form-group" style="margin:0px 0; display:block; text-align:center; border-bottom: 0; ">-->
|
||||
<!-- <button type="button" class="btn br5 m_tweeter" style="padding:17px 0">트위터 계정으로 로그인하기 </button>-->
|
||||
<!-- </div>-->
|
||||
<div class="b_bottom"><a href="">처음 오셨나요?</a> <span class="b_login"><a href="/m/member/join">가입하기</a></span></div>
|
||||
</div>
|
||||
|
||||
205
application/views/m/member/secession.php
Executable file
205
application/views/m/member/secession.php
Executable file
@@ -0,0 +1,205 @@
|
||||
<div id="step1">
|
||||
<div class="account_header_fixed">
|
||||
<span class="header_tit"><a href="#" onclick="history.go(-1); return false;"><img src="/img/mobile/arrow_account.gif"></a>계정삭제</span>
|
||||
</div>
|
||||
<div class="account_cont">
|
||||
<div class="reply_text">계정 삭제를 계속 진행하시기 위해서 <br>
|
||||
비밀번호를 한번 더 확인해주세요.
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">비밀번호 </label>
|
||||
<input type="password" class="form-control mybutton_on" id="member_leave_chk_pwd" placeholder="비밀번호를 입력해주세요" style="width: 98%;" onkeydown="inputSendit();">
|
||||
</div>
|
||||
<div class="account_btn" style="margin-top:200px;">
|
||||
<span><a href="javascript:member_leave_step2()" class="btn btn-success br5"
|
||||
style="font-size: 17px;padding: 10px 0;width: 100%;">계속 진행하기</a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="step2" style="display:none;">
|
||||
<div class="account_header_fixed">
|
||||
<span class="header_tit"><a href="#" onclick="history.go(-1); return false;"><img src="/img/mobile/arrow_account.gif"></a>계정삭제</span>
|
||||
</div>
|
||||
<div class="reply_cont" style="padding-top: 20px;">
|
||||
<div class="reply_cont_wrap">
|
||||
<div class="reply_tit">1. 이메일 재사용 및 고객 정보 삭제 안내</div>
|
||||
<div class="reply_txt">- 탈퇴할 경우에 가입한 이메일로는 3개월이 지난 후 다시 가입할 수
|
||||
있습니다.<br>
|
||||
- 사용자 개인 정보 및 이용 기록은 모두 삭제 됩니다,
|
||||
</div>
|
||||
<div class="reply_tit">2. 개인 정보 및 이용 기록 삭제 안내</div>
|
||||
<div class="reply_txt">- 개인 정보 및 이용 기록은 삭제되며, 삭제된 정보는 복구할 수
|
||||
없습니다.<br>
|
||||
- 계정 정보 : 이메일, 닉네임, 프로필 사진, 생년월일, 성별<br>
|
||||
- 서비스 사용 기록 : 좋아요, 보관함,. 구독이력, 알림내역
|
||||
</div>
|
||||
<div class="reply_tit">3. 개인 댓글 및 답글 처리 안내</div>
|
||||
<div class="reply_txt">- 서비스에 남긴 댓글과 답글은 탈퇴해도 삭제되지 않습니다.</div>
|
||||
</div>
|
||||
<div class="account_check_off" onclick="toggle_check(this)">안내 사항 확인 후 동의</div>
|
||||
<div class="account_btn">
|
||||
<span><a class="btn btn-grey br5 secession"
|
||||
style="width: 100%;padding: 20px 0;font-size: 17px;" onclick="open_secession()">계정 삭제하기</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="popup_wrap" id="confirm" style="display:none;">
|
||||
<div class="popupbox txc">
|
||||
<div class="popuptop">
|
||||
<h3 class="p_title">계정 삭제하기</h3>
|
||||
<span class="btn-close"><a href="javascript:close_secession()"><img src="/img/mobile/btn-close.png"></a></span>
|
||||
</div>
|
||||
<div class="popupbody">
|
||||
<div style="padding:30px 0 15px;font-size:16px;color:#01373a">정말 크로스맵을 떠나실 건가요?</div>
|
||||
<div class="txl" style="font-size:13px;color:#868686">계정 삭제를 하시면 회원님의 계정 정보와 사용기록이 영구적으로 삭제됩니다. 정말 떠나실 준비가 되셨다면 [확인]버튼을 선택해주세요.</div>
|
||||
<div style="margin:20px 0 30px; display:block; text-align:center; border-bottom:0">
|
||||
<span class="btn btn-default_bb br20" style="padding:7px 30px; font-size:14px" onclick="close_secession()"><span class="current">취소 </span></span>
|
||||
<span class="btn btn-success br20" style="padding:7px 30px; font-size:14px" onclick="secession_proc()"><span class="current">확인</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="popup_wrap" id="complete" style="display:none;">
|
||||
<div class="popupbox txc">
|
||||
<div class="popuptop">
|
||||
<h3 class="p_title">계정 삭제 완료</h3>
|
||||
</div>
|
||||
<div class="popupbody">
|
||||
<div style="padding:30px 0 15px;font-size:16px;color:#01373a">계정 삭제가 완료되었습니다.</div>
|
||||
|
||||
<div class="txl" style="font-size:13px;color:#868686">크로스맵이 다시 생각나신다면 언제든 돌아와주세요.
|
||||
당신을 위한 새로운 이야기들을 항상 준비해놓겠습니다.</div>
|
||||
<div style="margin:20px 0 30px; display:block; text-align:center; border-bottom:0">
|
||||
<span class="btn btn-success br20" style="padding:7px 30px; font-size:14px" onclick="window.location='/m'"><span class="current">확인</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mask" style="display:none;">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
function open_secession(){
|
||||
|
||||
$btn = $(".account_btn a.secession");
|
||||
|
||||
if($btn.hasClass("btn-success")){
|
||||
$("#confirm").show();
|
||||
$(".mask").show();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function close_secession(){
|
||||
$(".popup_wrap").hide();
|
||||
$(".mask").hide();
|
||||
}
|
||||
|
||||
function secession_proc(){
|
||||
|
||||
if($("#member_leave_chk_pwd").val()==""){
|
||||
alert("잘못된 접근입니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var form_data = {
|
||||
"member_pwd" : $("#member_leave_chk_pwd").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/member_leave_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
|
||||
$(".popup_wrap").hide();
|
||||
$(".mask").hide();
|
||||
$("#complete").show();
|
||||
$(".mask").show();
|
||||
return false;
|
||||
} else {
|
||||
alert("탈퇴에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('탈퇴에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function toggle_check(elm){
|
||||
|
||||
// 꺼진 상태라면
|
||||
$btn = $(".account_btn a.secession");
|
||||
if($(elm).hasClass("account_check_off")){
|
||||
$(elm).removeClass("account_check_off");
|
||||
$(elm).addClass("account_check_on");
|
||||
$btn.removeClass("btn-grey");
|
||||
$btn.addClass("btn-success");
|
||||
}
|
||||
|
||||
//켜진 상태라면
|
||||
else{
|
||||
$(elm).removeClass("account_check_on");
|
||||
$(elm).addClass("account_check_off");
|
||||
$btn.addClass("btn-grey");
|
||||
$btn.removeClass("btn-success");
|
||||
}
|
||||
}
|
||||
|
||||
function member_leave_step2(){
|
||||
if($("#member_leave_chk_pwd").val()==""){
|
||||
alert("비밀번호를 입력해주세요.");
|
||||
$("#member_leave_chk_pwd").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"member_pwd" : $("#member_leave_chk_pwd").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/member_pwd_check_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
commonLayerClose('step1');
|
||||
commonLayerOpen('step2');
|
||||
return false;
|
||||
} else {
|
||||
alert("비밀번호를 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('비밀번호를 확인해주세요.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function inputSendit() {
|
||||
if (event.keyCode == 13) {
|
||||
member_leave_step2();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
430
application/views/m/mypage/bookmark.php
Executable file
430
application/views/m/mypage/bookmark.php
Executable file
@@ -0,0 +1,430 @@
|
||||
|
||||
<form name="input_form" id="input_form" action="/m/mypage/bookmark" method="post">
|
||||
<div class="mypage_top mypage_top_fixed">
|
||||
<a href="/m/mypage/qna_add" class="pens"><img src="/img/mobile/penicon.png"></a>
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title"><a href="/m/mypage/req_password">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="mypage_header mypage_header_fixed">
|
||||
<li class="header_tit">내 북마크 모음</li>
|
||||
</ul>
|
||||
<div class="middle_search" >
|
||||
<div class="m_t_search">
|
||||
<span class="srch_inp">
|
||||
<input name="search_keyword" id="search_keyword" value="<?=$search_keyword?>" placeholder="북마크 검색">
|
||||
</span>
|
||||
<button class="btn_search">검색 </button>
|
||||
</div>
|
||||
<span class="total fr">총 <span class="beachblue"><?=$total_count?></span>개</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="mypage_cont" >
|
||||
|
||||
<div class="cont_header" style="padding: 10px 20px;display:none;" >
|
||||
<span style="margin-right:20px; display: inline-block;"><input value="" type="checkbox" name="allcheck" id="allcheck" ></span>
|
||||
<span style="margin-right:20px; display: inline-block; vertical-align: middle;">총 <span class="beachblue" id="bookmark_del_count">0</span>개 선택</span>
|
||||
<span style="display: inline-block; vertical-align: top;"><a href="javascript:bookmark_arr_del();"class="btn btn-default br15" >삭제</a></span>
|
||||
<span class="fr"><a href="javascript:bookmark_edit();" class="btn btn-default br15">편집완료</a></span>
|
||||
</div>
|
||||
<div class="cont_header" style="padding: 10px 20px;">
|
||||
<!--span style="margin-right:20px; display: inline-block;"><input value="" type="checkbox"></span-->
|
||||
<span style="margin-right:20px; display: inline-block; vertical-align: middle;">총 <span class="beachblue"><?=$total_count?></span>개</span>
|
||||
<!--span style="display: inline-block; vertical-align: top;"><a href="" class="btn btn-default br15">삭제</a></span-->
|
||||
<span class="fr"><a href="javascript:bookmark_edit();" class="btn btn-default br15">편집</a></span>
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
if(count($list)==0){
|
||||
echo '<div style="min-height:300px; padding:30px 0; text-align:center;" class="mypage_list_cont">등록된 북마크가 없습니다.</div>';
|
||||
} else {
|
||||
|
||||
foreach ($list as $val) {
|
||||
|
||||
switch ($val['content_type']) {
|
||||
case '1': $view_url = '/m/news/news_view/'.$val['idx']; $share_id_name = "news_".$val['idx'];
|
||||
break;
|
||||
case '2': $view_url = '/m/news/column_view/'.$val['idx']; $share_id_name = "column_".$val['idx'];
|
||||
break;
|
||||
case '3': $view_url = '/m/life/life_view/'.$val['idx']; $share_id_name = "life_".$val['idx'];
|
||||
break;
|
||||
}
|
||||
|
||||
$title = $val['title'];
|
||||
$bookmark_date = $val['bookmark_date'];
|
||||
$bookmark_date_txt = substr($bookmark_date, 0, 10);
|
||||
$bookmark_date_txt = str_replace('-', '.', $bookmark_date_txt);
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '50', '..', 'utf-8');
|
||||
$content = $val['content'];
|
||||
$content_txt = mb_strimwidth($content, '0', '200', '..', 'utf-8');
|
||||
|
||||
preg_match_all("/(\<img[[:space:]])(.*?)?(src=\"?'?)([^\"?'?]*)([\"?'?]*)([^\>]*)(\>)/Uis", $content, $matches);
|
||||
$_img = $matches[0];
|
||||
$_content_len = $_img?100:110;
|
||||
$_content = mb_substr(strip_tags($val['content']), 0, $_content_len, 'utf-8');
|
||||
$_content = str_replace(' ', '', $_content);
|
||||
$_content = $_content.'…';
|
||||
|
||||
$share_title = str_replace("'", "\\'", $title);
|
||||
$share_title = str_replace('"', '\\"', $share_title);
|
||||
$share_content = mb_strimwidth($content, '0', '250', '..', 'utf-8');
|
||||
$share_content = htmlspecialchars($share_content);
|
||||
$share_content = str_replace("'", "\\'", $share_content);
|
||||
$share_content = str_replace('”', '"', $share_content);
|
||||
|
||||
$main_img = $val['main_img'];
|
||||
|
||||
|
||||
switch($val['content_name']){
|
||||
|
||||
case "라이프":
|
||||
|
||||
$view1 = $val['channel_name'];
|
||||
$view2 = $val['editor_name'];
|
||||
break;
|
||||
case "뉴스":
|
||||
$view1 = $val['category_name'];
|
||||
$view2 = $val['press_name'];
|
||||
break;
|
||||
|
||||
case "칼럼":
|
||||
// var_dump($val);
|
||||
$view1 = $val['column_name'];
|
||||
$view2 = '';
|
||||
break;
|
||||
|
||||
default:
|
||||
$view1 = '';
|
||||
$view2 = '';
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="cont_box edit">
|
||||
<div class="inn bookmark_checkbox" style="display:none;"><input type="checkbox" name="is_del[]" value="<?=$val['bookmark_idx']?>" onclick="bookmark_del_count();"></div>
|
||||
<div class="cont_img imm1"><a href="<?=$view_url?>"><img src="<?=$main_img?>" class="art_img"></a>
|
||||
</div>
|
||||
<div class="cont_title imm2">
|
||||
<input type="hidden" name="content_<?=$share_id_name?>" id="content_<?=$share_id_name?>" value="<?=$share_content?>">
|
||||
<input type="hidden" name="title_<?=$share_id_name?>" id="title_<?=$share_id_name?>" value="<?=$share_title?>">
|
||||
<input type="hidden" name="copy_url_<?=$share_id_name?>" id="copy_url_<?=$share_id_name?>" value="<?=WWW_CROSSMAP?><?=$view_url?>">
|
||||
<input type="hidden" name="img_url_l<?=$share_id_name?>" id="img_url_<?=$share_id_name?>" value="<?=WWW_CROSSMAP?><?=$main_img?>">
|
||||
<a href="<?=WWW_CROSSMAP?><?=$view_url?>"><?=$title_txt?></a>
|
||||
|
||||
<div class="cont_cate"><a href="<?=$view_url?>"><?=$val['content_name']?></a> <span style="padding:0 6px;"></span>
|
||||
|
||||
|
||||
<span style="padding:0 6px"></div>
|
||||
<div class="art-menu">
|
||||
<span class="btn btn-default" style="border-radius:5px 0 0 5px !important;float:left;padding: 5px 6px 0 9px;"><a onclick="share_box(this);" id="share_box_btn<?=$val['bookmark_idx']?>" strA="<?=$share_id_name?>"><img src="/img/mobile/img_upload.gif"></a></span>
|
||||
<span class="btn btn-default" style="border-radius:0 5px 5px 0 !important; border-left:0 !important;padding: 5px 6px 0 6px"><a href="javascript:bookmark_del('<?=$val['bookmark_idx']?>')" ><img src="/img/mobile/img_x2.gif"></a></span>
|
||||
<span><a onclick="content_toggle(this);" class="btn btn-default br5 arrow_down" style="font-size:12px;">자세히</a></span>
|
||||
<span class="art-menu-date"><?=$bookmark_date_txt?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="cont_box_open" style="display:none;">
|
||||
<?=($_content);?>
|
||||
</div>
|
||||
<? }
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<?
|
||||
$title = '';$content='';$main_img='';
|
||||
require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
|
||||
|
||||
|
||||
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
|
||||
<script>
|
||||
// 스크롤 고정 함수.
|
||||
function scroll_fix3(news_nav) {
|
||||
|
||||
$( document ).ready( function() {
|
||||
|
||||
var jbOffset = $( '.'+news_nav ).offset(); // 고정하고자 하는 클래스의 offset.
|
||||
|
||||
$( window ).scroll( function() {
|
||||
/*스크롤탑(현재스크롤위치) > news_nav : 상단 아래로 내렸을때 상단 고정*/
|
||||
if ( $( document ).scrollTop() > jbOffset.top ) {
|
||||
$( '.'+news_nav ).addClass( 'jbFixed4' );
|
||||
//$( '.'+news_nav ).css('position','fixed');
|
||||
$(".mypage_top").hide();
|
||||
$(".mypage_top_fixed").hide();
|
||||
$(".total ").css('top','33px');
|
||||
}
|
||||
/*스크롤탑(현재스크롤위치) <= news_nav : 원래*/
|
||||
else {
|
||||
$( '.'+news_nav ).removeClass( 'jbFixed4' );
|
||||
//$( '.'+news_nav ).css('position','relative');
|
||||
$(".mypage_top").show();
|
||||
$(".mypage_top_fixed").show();
|
||||
$(".total ").css('top','15px');
|
||||
}
|
||||
|
||||
console.log($( document ).scrollTop());
|
||||
});
|
||||
|
||||
} );
|
||||
}
|
||||
//
|
||||
|
||||
scroll_fix3('middle_search'); // 상단 고정하고 싶은 클래스 설정.
|
||||
//scroll_fix3('mypage_header_fixed'); // 상단 고정하고 싶은 클래스 설정.
|
||||
|
||||
|
||||
|
||||
function content_toggle(elm){
|
||||
if($(elm).hasClass("arrow_down")){
|
||||
$(elm).removeClass("arrow_down");
|
||||
$(elm).addClass("arrow_up");
|
||||
$(elm).text("접기");
|
||||
}
|
||||
else{
|
||||
$(elm).addClass("arrow_down");
|
||||
$(elm).removeClass("arrow_up");
|
||||
$(elm).text("자세히");
|
||||
}
|
||||
|
||||
$(elm).parent().parent().parent().parent().next().toggle();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var share_key = '';
|
||||
function share_box(e){
|
||||
var id = e.id;
|
||||
$("#share_box").toggle();
|
||||
var key = $("#"+id).attr('strA');
|
||||
|
||||
$("#share_content").val($("#content_"+key).val());
|
||||
$("#share_title").val($("#title_"+key).val());
|
||||
$("#share_copy_url").val($("#copy_url_"+key).val());
|
||||
$("#share_img_url").val($("#img_url_"+key).val());
|
||||
$("#copy_url").val($("#copy_url_"+key).val());
|
||||
|
||||
var popH = $("#"+id).offset().top;
|
||||
var popL = $("#"+id).offset().left;
|
||||
|
||||
$('.popup_share').css('left',(popL-100)+'px');
|
||||
$('.popup_share').css('top',popH+'px');
|
||||
|
||||
share_key = key;
|
||||
}
|
||||
|
||||
|
||||
// 공유하기 - 북마크
|
||||
function bookmark(){
|
||||
alert("이미 북마크되었습니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 스크롤
|
||||
<? if($total_count <= $limit) {?>
|
||||
var more_yn = 'N';
|
||||
<?} else {?>
|
||||
var more_yn = 'Y';
|
||||
<?}?>
|
||||
$(document).ready(function () {
|
||||
$(document).scroll(function() {
|
||||
var maxHeight = $(document).height();
|
||||
var currentScroll = $(window).scrollTop() + $(window).height();
|
||||
if (maxHeight <= currentScroll + 100) {
|
||||
if(more_yn=='Y') {
|
||||
bookmark_list_more();
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
var bookmark_list_page = 2;
|
||||
function bookmark_list_more(){
|
||||
var form_data = {
|
||||
"page" : bookmark_list_page,
|
||||
"search_keyword" : "<?=$search_keyword?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/mypage/bookmark_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
more_yn = arrHtml[2];
|
||||
if (arrHtml[1] != "") {
|
||||
$("#bookmark_list").append(arrHtml[1]);
|
||||
bookmark_list_page++;
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('데이터 로드에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 검색
|
||||
function list_search(e){
|
||||
if (e.keyCode == 13) {
|
||||
list_search_proc();
|
||||
}
|
||||
}
|
||||
function list_search_proc(){
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
// 북마크
|
||||
function bookmark_add(){
|
||||
if($("#bookmark_url").val()==''){
|
||||
alert("url을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"bookmark_url" : $("#bookmark_url").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/bookmark_url_add_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
location.href='/m/mypage/bookmark';
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('북마크에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 북마크 삭제
|
||||
function bookmark_del(idx){
|
||||
if(confirm("북마크가 삭제됩니다. 삭제하시겠습니까?") == true) { //확인
|
||||
var form_data = {
|
||||
"idx" : idx
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/bookmark_del_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
location.href='/m/mypage/bookmark';
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('북마크 삭제에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
} else { //취소
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// 복수 삭제
|
||||
function bookmark_arr_del() {
|
||||
if($("input:checkbox[name='is_del[]']").is(":checked") == false) {
|
||||
alert("삭제할 내용이 없습니다.");
|
||||
return false;
|
||||
}
|
||||
if(confirm("북마크가 삭제됩니다. 삭제하시겠습니까?") == true) { //확인
|
||||
$("#input_form").attr("action", "/web/comm/bookmark_arr_del_proc");
|
||||
$("#input_form").submit();
|
||||
} else { //취소
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// 편집 - 클릭시
|
||||
function bookmark_edit(){
|
||||
$(".cont_header").toggle();
|
||||
$("#bookmark_edit_btn").toggleClass('arrow_down');
|
||||
$("#bookmark_edit_btn").toggleClass('arrow_up');
|
||||
$(".bookmark_checkbox").toggle();
|
||||
|
||||
var class_name = $("#bookmark_edit_btn").attr("class");
|
||||
if(class_name == 'btn btn-default br5 fr arrow_down') {
|
||||
$(".mypage_list_cont").css('padding-left', '20px');
|
||||
} else {
|
||||
$(".mypage_list_cont").css('padding-left', '0px');
|
||||
}
|
||||
}
|
||||
|
||||
// 내용 펼치기
|
||||
function content_more(key){
|
||||
$("#content_"+key).toggle();
|
||||
$("#arrow_img_"+key).toggleClass('arrow_down');
|
||||
$("#arrow_img_"+key).toggleClass('arrow_up');
|
||||
|
||||
var class_name = $("#arrow_img_"+key).attr("class");
|
||||
if(class_name == 'btn btn-default br5 fr arrow_down') {
|
||||
$("#arrow_img_"+key).html('자세히');
|
||||
} else {
|
||||
$("#arrow_img_"+key).html('접기');
|
||||
}
|
||||
}
|
||||
|
||||
// checkbox click
|
||||
function bookmark_del_count(){
|
||||
var cnt = $("input[name='is_del[]']:checkbox:checked").length;
|
||||
$("#bookmark_del_count").html(cnt);
|
||||
}
|
||||
|
||||
// checkbox all checked/unchecked
|
||||
$(function(){
|
||||
$("#allcheck").click(function(){
|
||||
if($("#allcheck").prop("checked")) {
|
||||
$("input:checkbox[name='is_del[]']").prop('checked', true); // 전체선택하기
|
||||
} else {
|
||||
$("input:checkbox[name='is_del[]']").prop("checked", false);
|
||||
}
|
||||
bookmark_del_count();
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
</script>
|
||||
356
application/views/m/mypage/delivery.php
Executable file
356
application/views/m/mypage/delivery.php
Executable file
@@ -0,0 +1,356 @@
|
||||
<?
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$SES_MEMBER_NICNAME = $this->session->userdata('C_Member_Nicname');
|
||||
|
||||
$controller = $this->uri->segment(2);
|
||||
|
||||
$ci=& get_instance();
|
||||
|
||||
$ci->load->model('web/m_delivery');
|
||||
$ci->load->model('web/m_life');
|
||||
|
||||
# 채널
|
||||
$req_data = array();
|
||||
if(get_cookie("pre_page") != '' && get_cookie("pre_page") != null){
|
||||
$req_data['content_type'] = get_cookie("pre_page");
|
||||
}
|
||||
else{
|
||||
$req_data['content_type'] = '3';
|
||||
}
|
||||
$c_type =$req_data['content_type'];
|
||||
|
||||
|
||||
$req_data['offset'] = 0;
|
||||
$req_data['limit'] = 10;
|
||||
$limit = $req_data['limit'];
|
||||
$req_data['member_id'] = $SES_MEMBER_ID;
|
||||
|
||||
# model
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<script>
|
||||
function setCookie(cname, cvalue, exdays) {
|
||||
var d = new Date();
|
||||
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
|
||||
var expires = "expires="+d.toUTCString();
|
||||
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
|
||||
}
|
||||
|
||||
function getCookie(cname) {
|
||||
var name = cname + "=";
|
||||
var ca = document.cookie.split(';');
|
||||
for(var i = 0; i < ca.length; i++) {
|
||||
var c = ca[i];
|
||||
while (c.charAt(0) == ' ') {
|
||||
c = c.substring(1);
|
||||
}
|
||||
if (c.indexOf(name) == 0) {
|
||||
return c.substring(name.length, c.length);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
function checkCookie() {
|
||||
var user = getCookie("username");
|
||||
if (user != "") {
|
||||
alert("Welcome again " + user);
|
||||
} else {
|
||||
user = prompt("Please enter your name:", "");
|
||||
if (user != "" && user != null) {
|
||||
setCookie("username", user, 365);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<div class="mypage_top">
|
||||
<a href="/m/mypage/qna_add" class="pens"><img src="/img/mobile/penicon.png"></a>
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title"><a href="/m/mypage/req_password">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mypage_header">
|
||||
<h3 class="p_title3 fl"><strong><?=$SES_MEMBER_NICNAME?></strong> 님의 배달함</h3>
|
||||
<span class="btn-info fr"><a href="javascript:change_help()"><img src="/img/mobile/btn-info.png"></a></span>
|
||||
</div>
|
||||
<div class="mypage_submenu">
|
||||
<span class="fl submenu_cate">
|
||||
<a onclick="javascript:change_delivery_type('3')" href="#3"><span class="<?=$req_data['content_type'] == 3 ? "current": "" ?>" id="delivery_menu3">채널</span></a> |
|
||||
<a onclick="javascript:change_delivery_type('2')" href="#2"><span class="<?=$req_data['content_type'] == 2 ? "current": "" ?>" id="delivery_menu2">칼럼</span></a> |
|
||||
<a onclick="javascript:change_delivery_type('9')" href="#9"><span class="<?=$req_data['content_type'] == 9 ? "current": "" ?>" id="delivery_menu9">태그</span></a>
|
||||
</span>
|
||||
<span class="fr"><a href="javascript:delivery_arr_del()"><img src="/img/mobile/img_trash.gif"></a></span>
|
||||
</div>
|
||||
<div class="mypage_cont">
|
||||
<div class="popupbody3">
|
||||
<div class="pop_tit">
|
||||
<span id="delivery_text">배달받는 채널 수</span> <span class="beachblue" id="delivery_count"><?//number_format($total_count)?></span>
|
||||
</div>
|
||||
<div id="delivery_list">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="delivery_info3" id="delivery_help" style="z-index:9999;width:200px;display:none">
|
||||
<p class="d_info_tit" style="text-align:center; margin:10px 0">배달함 도움말</p>
|
||||
<p class="d_info_txt" style="margin-bottom: 15px;display: inline-block;"> 채널 배달받기를 하고 있는 나만의배달리스트를 관리 할수 있습니다. </p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
|
||||
<script>
|
||||
// 스크롤 고정 함수.
|
||||
function scroll_fix3(news_nav) {
|
||||
|
||||
$( document ).ready( function() {
|
||||
|
||||
var jbOffset = $( '.'+news_nav ).offset(); // 고정하고자 하는 클래스의 offset.
|
||||
|
||||
$( window ).scroll( function() {
|
||||
/*스크롤탑(현재스크롤위치) > news_nav : 상단 아래로 내렸을때 상단 고정*/
|
||||
if ( $( document ).scrollTop() > jbOffset.top ) {
|
||||
$( '.'+news_nav ).addClass( 'jbFixed2' );
|
||||
$( '.'+news_nav ).css('position','fixed');
|
||||
}
|
||||
/*스크롤탑(현재스크롤위치) <= news_nav : 원래*/
|
||||
else {
|
||||
$( '.'+news_nav ).removeClass( 'jbFixed2' );
|
||||
$( '.'+news_nav ).css('position','relative');
|
||||
}
|
||||
|
||||
console.log($( document ).scrollTop());
|
||||
});
|
||||
|
||||
|
||||
$(".pop_cont_info .fr").click(function(e){
|
||||
e.preventDefault();
|
||||
$(this).next().show();
|
||||
|
||||
});
|
||||
} );
|
||||
}
|
||||
//
|
||||
|
||||
scroll_fix3('mypage_header'); // 상단 고정하고 싶은 클래스 설정.
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
window.onpageshow = function (event) {
|
||||
if (event.persisted) {
|
||||
console.log('BFCahe로부터 복원됨');
|
||||
}
|
||||
else {
|
||||
console.log('새로 열린 페이지');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// 레이어 이외의 공간 클릭시 close
|
||||
$(document).mouseup(function (e){
|
||||
var container = $("#delivery_help");
|
||||
if( container.has(e.target).length === 0) container.hide();
|
||||
container = $(".info_popup");
|
||||
if( container.has(e.target).length === 0) container.hide();
|
||||
|
||||
|
||||
});
|
||||
|
||||
$(".mask").on('click', function(event){
|
||||
$(event.target).parent().hide();
|
||||
|
||||
});
|
||||
|
||||
var help_type = 1;
|
||||
function change_help(){
|
||||
|
||||
if(help_type ==1) {
|
||||
$("#delivery_help").css("display","block");
|
||||
help_type = 2;
|
||||
} else {
|
||||
$("#delivery_help").css("display","none");
|
||||
help_type = 1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
var delivery_content_type = '<?=$c_type?>';
|
||||
|
||||
|
||||
function change_delivery_type(content_type) {
|
||||
$('#delivery_menu3').removeClass('current');
|
||||
$('#delivery_menu2').removeClass('current');
|
||||
$('#delivery_menu9').removeClass('current');
|
||||
$('#delivery_menu'+content_type).addClass('current');
|
||||
|
||||
delivery_page = 1;
|
||||
delivery_content_type = content_type;
|
||||
delivery_list(content_type);
|
||||
|
||||
var text = '배달받는 채널 수';
|
||||
if(content_type == '2') {
|
||||
text = '배달받는 칼럼 수';
|
||||
} else if(content_type == '3') {
|
||||
text = '배달받는 채널 수';
|
||||
} else if(content_type == '9') {
|
||||
text = '배달받는 태그 수';
|
||||
}
|
||||
$("#delivery_text").html(text);
|
||||
|
||||
}
|
||||
|
||||
|
||||
var delivery_page = 1;
|
||||
|
||||
|
||||
function delivery_list(content_type){
|
||||
if(content_type == '') content_type = delivery_content_type;
|
||||
|
||||
console.log(content_type);
|
||||
var form_data = {
|
||||
"page" : delivery_page,
|
||||
"content_type" : content_type,
|
||||
"limit" : <?=$limit?>
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/mypage/delivery_list',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if(rtnHtml=='') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if(arrHtml[0].trim()=='0000') {
|
||||
if(delivery_page == 1) {
|
||||
$("#delivery_list").html(arrHtml[1]);
|
||||
} else {
|
||||
$("#delivery_list").append(arrHtml[1]);
|
||||
}
|
||||
var total_count = setComma(arrHtml[2]);
|
||||
$("#delivery_count").html(total_count);
|
||||
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#delivery_more_btn").hide();
|
||||
} else {
|
||||
$("#delivery_more_btn").show();
|
||||
}
|
||||
delivery_page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('데이터 가져오기에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function delivery_del(idx){
|
||||
var form_data = {
|
||||
"idx" : idx
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/delivery_del_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
delivery_page = 1;
|
||||
delivery_list(delivery_content_type);
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('삭제에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function delivery_arr_del(){
|
||||
if(confirm("배달함이 삭제됩니다. 삭제하시겠습니까?") == true) { //확인
|
||||
var checkbox_del = [];
|
||||
$("input[name='is_del[]']").each(function(idx){
|
||||
checkbox_del.push($(this).val());
|
||||
});
|
||||
var form_data = {
|
||||
"idxs" : checkbox_del
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/delivery_arr_del_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
delivery_page = 1;
|
||||
delivery_list(delivery_content_type);
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('삭제에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
} else { //취소
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function copy_delivery_url(idx){
|
||||
$('#copy_delivery_url'+idx).select();
|
||||
try {
|
||||
document.execCommand('copy');
|
||||
alert("주소가 복사되었습니다.")
|
||||
} catch (err) {
|
||||
alert('이 브라우저는 지원하지 않습니다.')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
delivery_list(delivery_content_type);
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
134
application/views/m/mypage/delivery_list.php
Executable file
134
application/views/m/mypage/delivery_list.php
Executable file
@@ -0,0 +1,134 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
$row_count = count($list);
|
||||
|
||||
|
||||
$ci=& get_instance();
|
||||
$ci->load->model('web/m_life');
|
||||
$ci->load->model('web/m_column');
|
||||
$ci->load->model('web/m_tag');
|
||||
foreach ($list as $val) {
|
||||
|
||||
$idx = $val['idx'];
|
||||
$delivery_count = $val['delivery_count'];
|
||||
$reg_date = $val['reg_date'];
|
||||
$main_idx = $val['main_idx'];
|
||||
$content_type = $val['content_type'];
|
||||
|
||||
$now_date = date("Y-m-d").' 00:00:00';
|
||||
$req_data = array();
|
||||
$req_data['offset'] = $_POST['page']-1 * $_POST['limit'];
|
||||
$req_data['limit'] = $_POST['limit'];
|
||||
|
||||
$req_data['offset'] = $req_data['offset'] < 0 ? 0 : $req_data['offset'];
|
||||
|
||||
if($content_type == '2') {
|
||||
$article_count = $val['article_count'];
|
||||
$delivery_title = $val['partner_name'];
|
||||
$main_img = $val['partner_img'];
|
||||
|
||||
|
||||
$req_data['sort_column'] = 'display_date';
|
||||
$req_data['search_type'] = 'partner_idx';
|
||||
$req_data['search_key'] = $val['main_idx'];
|
||||
$delivery_row = $ci->m_column->column_list($req_data);
|
||||
|
||||
$delivery_row_display_date_txt = ''; $title=''; $article_view_url='';
|
||||
if(count($delivery_row) > 0) {
|
||||
$display_date = $delivery_row[0]['display_date'];
|
||||
$delivery_row_display_date_txt = substr($display_date, 0, 16);
|
||||
$title = $delivery_row[0]['title'];
|
||||
$article_view_url = '/web/news/column_view/'.$delivery_row[0]['idx'];
|
||||
}
|
||||
|
||||
$view_url = '/m/news/columnist/'.$main_idx;
|
||||
|
||||
$req_data['partner_idx'] = $val['main_idx'];
|
||||
$req_data['now_date'] = $now_date;
|
||||
|
||||
$delivery_today_count = $ci->m_column->column_where_display_date_partner_idx_count($req_data);
|
||||
|
||||
|
||||
} else if($content_type == '3') {
|
||||
$article_count = $val['article_count'];
|
||||
$delivery_title = $val['channel_name'];
|
||||
$main_img = $val['channel_icon'];
|
||||
|
||||
|
||||
$req_data['channel_idx'] = $val['main_idx'];
|
||||
$delivery_row = $ci->m_life->life_where_channel_idx_list_limit1($req_data);
|
||||
$display_date = $delivery_row['display_date'];
|
||||
$delivery_row_display_date_txt = substr($display_date, 0, 16);
|
||||
|
||||
$article_view_url = '/m/life/life_view/'.$delivery_row['idx'];
|
||||
$view_url = '/m/life/channel/'.$main_idx;
|
||||
|
||||
$req_data['channel_idx'] = $val['main_idx'];
|
||||
$req_data['now_date'] = $now_date;
|
||||
|
||||
$delivery_today_count = $ci->m_life->life_where_display_date_channel_idx_count($req_data);
|
||||
|
||||
$title = $delivery_row['title'];
|
||||
|
||||
} else if($content_type == '9') {
|
||||
$delivery_title = '#'.$main_idx;
|
||||
$main_img = '';
|
||||
|
||||
$req_data['tag'] = $val['main_idx'];
|
||||
$delivery_row = $ci->m_tag->tag_join_life_where_tag_list_limit1($req_data);
|
||||
$article_count = $ci->m_tag->tag_join_life_where_tag_count($req_data);
|
||||
|
||||
$display_date = $delivery_row['display_date'];
|
||||
$delivery_row_display_date_txt = substr($display_date, 0, 16);
|
||||
|
||||
|
||||
$req_data['tag'] = $val['main_idx'];
|
||||
$req_data['now_date'] = $now_date;
|
||||
|
||||
$delivery_today_count = $ci->m_tag->tag_join_life_where_display_date_count($req_data);
|
||||
|
||||
$article_view_url = '/m/life/life_view/'.$delivery_row['idx'];
|
||||
$view_url = '/m/life/tag/'.$main_idx;
|
||||
|
||||
$title = $delivery_row['title'];
|
||||
$title = mb_strimwidth($title, '0', '200', '..', 'utf-8');
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<input type="text" name="copy_delivery_url<?=$idx?>" id="copy_delivery_url<?=$idx?>" style="position:absolute;top:-9999em;" value="<?=WWW_CROSSMAP?><?=$view_url?>">
|
||||
<input type="hidden" name="is_del[]" value="<?=$idx?>">
|
||||
<div class="pop_cont_box">
|
||||
<div class="pop_cont_title">
|
||||
<a href="<?=$article_view_url?>"><?=@$delivery_row['title']?></a>
|
||||
<p class="popup_date"><?=$delivery_row_display_date_txt?></p>
|
||||
</div>
|
||||
<div class="pop_cont_txt">
|
||||
|
||||
<span class="pop_cont_img" <?=($content_type == 9) ?"style='display:none'" :""?>><div onclick="setCookie('pre_page',<?=$content_type?>,'365');location.href='<?=$view_url?>'" style="border-radius:50px;cursor:pointer;width:50px;height:50px;background:url('<?=$main_img?>') no-repeat center; background-size:cover;"></div></span>
|
||||
<div class="pop_cont_txt_box">
|
||||
<p class="t_black"><a onclick="setCookie('pre_page',<?=$content_type?>,'365');location.href='<?=$view_url?>';"><?=$delivery_title?></a> <? if($delivery_today_count>0) {?><span class="pop_cont_like"><?=number_format($delivery_today_count)?>+</span><? }?></p>
|
||||
<p><span class="beachblue"><?=number_format($article_count)?></span>개의 글이 있습니다. </p>
|
||||
<p><span class="beachblue"><?=number_format($delivery_count)?></span>명에게 배달 중</p>
|
||||
</div>
|
||||
<div class="pop_cont_info">
|
||||
<span class="fr" onclick="$(this).next().toggle();"><img src="/img/mobile/pop_info.png"></a></span>
|
||||
<ul class="info_popup" style="display:none;">
|
||||
<li><a href="javascript:delivery_del('<?=$idx?>');">삭제하기</a></li>
|
||||
<li style="border-top:1px solid #ededed"><a href="javascript:copy_delivery_url('<?=$idx?>');">링크복사</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? }
|
||||
|
||||
}
|
||||
|
||||
if($more_list=='N') echo '<div style="height:50px"></div>';
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
|
||||
?>
|
||||
586
application/views/m/mypage/member_edit.php
Executable file
586
application/views/m/mypage/member_edit.php
Executable file
@@ -0,0 +1,586 @@
|
||||
<?
|
||||
$member_img = $result['member_img'];
|
||||
$member_name = $result['member_name'];
|
||||
$member_id = $result['member_id'];
|
||||
$member_nickname = $result['member_nickname'];
|
||||
$member_intro = $result['member_intro'];
|
||||
$member_birth = $result['member_birth'];
|
||||
$member_calendar = $result['member_calendar'];
|
||||
$member_gender = $result['member_gender'];
|
||||
$country_phone_no = $result['country_phone_no'];
|
||||
$member_mobile = $result['member_mobile'];
|
||||
$member_email = $result['member_email'];
|
||||
$is_agree_sms = $result['is_agree_sms'];
|
||||
|
||||
$is_agree_mail = $result['is_agree_mail'];
|
||||
$is_agree_info_open = $result['is_agree_info_open'];
|
||||
$member_edit_church = $result['member_church'];
|
||||
$etc1 = $result['etc1'];
|
||||
$etc2 = $result['etc2'];
|
||||
$mobile_CI = $result['mobile_CI'];
|
||||
$sns_type = $result['sns_type'];
|
||||
$is_under14 = $result['is_under14'];
|
||||
$is_nickname = 'N';
|
||||
if($member_nickname!='') $is_nickname = 'Y';
|
||||
if($member_img == '') {
|
||||
$member_img = '/img/web/img_photo.png';
|
||||
}
|
||||
$member_id = mb_substr($member_id, 0, 4).'****';
|
||||
|
||||
$member_birth1 = ''; $member_birth2 = ''; $member_birth3 = '';
|
||||
if($member_birth!='') {
|
||||
$arr_birth = explode("-", $member_birth);
|
||||
$member_birth1 = $arr_birth[0];
|
||||
$member_birth2 = (int)$arr_birth[1];
|
||||
$member_birth3 = (int)$arr_birth[2];
|
||||
}
|
||||
|
||||
$member_calendar_txt = '';
|
||||
if($member_calendar == 1) {
|
||||
$member_calendar_txt = '양력';
|
||||
} if($member_calendar == 2) {
|
||||
$member_calendar_txt = '음력';
|
||||
}
|
||||
|
||||
$member_gender_txt = '';
|
||||
if($member_gender == 1) {
|
||||
$member_gender_txt = '남성';
|
||||
} if($member_gender == 2) {
|
||||
$member_gender_txt = '여성';
|
||||
}
|
||||
|
||||
$member_email_txt = '';
|
||||
$member_mobile = mb_substr($member_mobile, 1, 4).'***-***'.mb_substr($member_mobile, 12, 1);
|
||||
if($member_email!='') {
|
||||
$arr_email = explode("@", $member_email);
|
||||
|
||||
$email1 = mb_substr($arr_email[0], 0, 2).'******';
|
||||
$arr_email2 = explode(".", $arr_email[1]);
|
||||
$email2 = mb_substr($arr_email[1], 0, 1).'*******'.str_replace($arr_email2[0], '', $arr_email[1]);
|
||||
$member_email_txt = $email1.'@'.$email2;
|
||||
|
||||
}
|
||||
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<form class="profile_forms2" id="input_form" name="input_form" action="/web/mypage/member_edit_proc" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="is_nickname" id="is_nickname" value="<?=$is_nickname?>">
|
||||
<input type="hidden" name="is_mobile_auth_email" id="is_mobile_auth_email" value="N">
|
||||
<input type="hidden" name="org_profile_img" id="org_profile_img" value="<?=$member_img?>">
|
||||
|
||||
<div class="mypage_top">
|
||||
<a href="/m/mypage/qna_add" class="pens"><img src="/img/mobile/penicon.png"></a>
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title"><a href="/m/mypage/req_password">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="account_header">
|
||||
<span class="header_tit"><a href="javascript:window.history.back(-1)"><img src="/img/mobile/arrow_account.gif"></a>프로필 수정</span>
|
||||
<span class="fr save" style="padding-right:20px; padding-top:3px;"><a onclick="member_edit_proc()" style="cursor:pointer">저장 </a></span>
|
||||
</div>
|
||||
<div class="account_cont account_cont_wrap">
|
||||
<div class="join_header">
|
||||
<span class="photo"><a href=""><img id="profile" style="max-width:77px;max-height:77px;" src="<?=$member_img?>"></a></span>
|
||||
<input type="file" id="member_img" name="member_img" style="position:absolute; top:0; left:-9999px;" onChange="readURL1(this)" />
|
||||
<label for="member_img"><div class="btn btn-default br15" style="color:black">사진 변경</div></label>
|
||||
</div>
|
||||
<div class="form-group" style="margin-top:20px;">
|
||||
<label for="exampleInputEmail1">기본정보</label>
|
||||
<div class=" form_info" style="position: absolute;top: 10px;left: 100px;line-height:18px;color:#a7a7a7; font-size:13px;">이름변경은 PC버전에서만 가능합니다.</div>
|
||||
<span class="fixed"><?=$member_name?></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form_tit">아이디</div><div class=" form_info" style="position: absolute;top: 10px;left: 100px;line-height:18px;color:#a7a7a7; font-size:13px;">아이디는 변경이 불가합니다.</div>
|
||||
<span class="fixed"><?=$member_id?></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form_tit" style="height: 35px;">닉네임<div class=" form_info" style="position: absolute;top: 10px;left: 100px;line-height:18px;color:#a7a7a7; font-size:13px;">5~20자 이내 한글,영문,특수문자</div></div>
|
||||
<input type="id" class="form-control" placeholder="닉네임을 입력해 주세요." name="member_nickname" id="member_nickname" value="<?=$member_nickname?>">
|
||||
<span style="position:absolute; right:0; bottom:8px;"><a href="javascript:nickname_overlab_check()" class="btn btn-default_bb br10">중복확인</a></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="member_intro" id="member_intro" value="<?=$member_intro?>" class="form-control" placeholder="한 줄 메세지 (20자이내)">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form_tit">성별</div>
|
||||
<span class="fixed" style="padding-left: 45%;"><?=$member_gender_txt?></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form_tit">생년월일</div>
|
||||
<span class="fixed" style="padding-left:60px;"><?=$member_birth1?><span style="color:#b7b7b7"> 년</span></span>
|
||||
<span class="fixed" style="padding-left:40px;"><?=$member_birth2?><span style="color:#b7b7b7"> 월</span></span>
|
||||
<span class="fixed" style="padding-left:40px;"><?=$member_birth3?><span style="color:#b7b7b7"> 일</span></span>
|
||||
<span class="fixed" style="padding-left:40px;"><span style="color:#b7b7b7"> <?=$member_calendar_txt?></span></span>
|
||||
</div>
|
||||
<div class="form-group" style="margin-top:10px;">
|
||||
<label for="exampleInputEmail1">연락처</label>
|
||||
<div class="form_tit" style="height: 35px;">이메일<div class=" form_info" style="position: absolute;top: 10px;left: 70px; color:#a7a7a7; font-size:13px;">아이디, 비밀번호 찾기 등 본인확인이 필요한 경우 사용할 이메일 주소입니다.</div></div>
|
||||
<span class="fixed" id="member_email_txt" class="member_email_txt"><?=$member_email_txt?></span>
|
||||
|
||||
|
||||
<span style="position:absolute; right:0; bottom:8px;"><a href="javascript:email_reset();commonLayerOpen('email_check_layer');" class="btn btn-default_bb br10">변경</a></span>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="email_check_layer" style="display:none;margin-top:10px;">
|
||||
<div id="email_change_layer1">
|
||||
<div class="form-group2">
|
||||
<input type="text" name="now_email" id="now_email" style="width:400px;border:1px solid" class="form-control" placeholder="현재 이메일 주소 확인" >
|
||||
</div>
|
||||
<p class="red" id="email_check_error" style="display:none;padding-top:10px;">본인 확인 이메일을 정확하게 입력해 주세요.</p>
|
||||
<div style="margin-top:10px;">
|
||||
<? if($is_under14!='Y') {?><div class="form_tit" style="height: 10px;">휴대전화 인증으로도 이메일 수정이 가능합니다. <span class="b_login"><a href="javascript:member_email_mobile_auth()">휴대전화인증</a></span></div><?}?>
|
||||
<div class="form_wrap" style="border-bottom:0 !important">
|
||||
<div class="form-group" style="margin:20px 0; display:block; text-align:center; border-bottom:0">
|
||||
<button type="button" class="btn btn-success br20" style="padding:7px 30px; font-size:16px" onclick="email_check();"><span class="current">확인</span></button>
|
||||
<button type="button" class="btn btn-default_bb br20" style="padding:7px 30px; font-size:16px; margin-left:5px " onclick="commonLayerClose('email_check_layer');">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="email_change_layer2" style="display:none">
|
||||
<div class="form-group2">
|
||||
<input type="text" name="change_email" id="change_email" style="width:400px;border:1px solid" class="form-control" placeholder="변경할 이메일 주소" onkeypress="if( event.keyCode==13 ){email_edit();}">
|
||||
</div>
|
||||
<div style="margin-top:10px;">
|
||||
<div class="form_wrap" style="border-bottom:0 !important">
|
||||
<div class="form-group" style="margin:20px 0; display:block; text-align:center; border-bottom:0">
|
||||
<button type="button" class="btn btn-success br20" style="padding:7px 30px; font-size:16px" onclick="email_edit();"><span class="current">변경</span></button>
|
||||
<button type="button" class="btn btn-default_bb br20" style="padding:7px 30px; font-size:16px; margin-left:5px " onclick="commonLayerClose('email_check_layer');">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form_tit" style="height: 45px;">모바일폰<div class=" form_info" style="position: absolute;top: 10px;left: 70px;line-height:15px;color:#a7a7a7; font-size:13px;">아이디, 비밀번호 찾기 등 본인확인이 필요한 경우 등에 크로스맵으로부터 알림을 받을 때 사용할 휴대전화입니다.</div></div>
|
||||
<span class="fixed" id="member_edit_text"><?=$country_phone_no?> <?=$member_mobile?></span>
|
||||
<? if($is_under14!='Y') {?><button type="button" class="btn btn-default_bb br10 fr" onclick="commonLayerOpen('mobile_edit_layer');">변경</button><?}?>
|
||||
</div>
|
||||
<div id="mobile_edit_layer" class="form-group" style="display:none;margin-top:0px;">
|
||||
<div style="margin:0px 0 10px; height:30px">
|
||||
<span class="slct" style="width:50px; margin-top:-2px; height:30px; margin-right:3px;">
|
||||
<select id="country_phone_no" name="country_phone_no" style=" height:30px;width:50px;">
|
||||
<option value="+82">+82 </option>
|
||||
</select>
|
||||
</span>
|
||||
<input type="text" name="member_edit_mobile" id="member_edit_mobile" class="form-control" placeholder="변경할 휴대전화번호 입력" style="width:58%; height:30px; padding:0 2%; border: 1px solid #adadad; border-radius:5px;">
|
||||
<span style="position:absolute;right:0px;top:8px;"><a type="button" class="btn btn-default_bb br10" onclick="member_edit_mobile_auth();">인증<span class="caret"></span></a></span>
|
||||
</div>
|
||||
<div class="form_wrap" style="border-bottom:0 !important">
|
||||
<div class="form-group" style="margin:20px 0; display:block; text-align:center; border-bottom:0">
|
||||
<button type="button" class="btn btn-success br20" style="padding:7px 30px; font-size:16px"><span class="current">변경완료</span></button>
|
||||
<button type="button" onclick="javascript:commonLayerClose('mobile_edit_layer');" class="btn btn-default_bb br20" style="padding:7px 30px; font-size:16px; margin-left:5px ">취소</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="margin-top:10px;">
|
||||
<label for="exampleInputEmail1"> 수신동의</label>
|
||||
<div class="form_tit">이메일알림 수신동의 <span style="padding-left:20px;"><input value="Y" name="is_agree_sms" id="is_agree_sms" type="checkbox" <? if($is_agree_sms=='Y') { echo 'checked';}?>> 이벤트 알림 등 (본인인증 제외) </span></span></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form_tit">SMS알림 수신동의 <span style="padding-left:30px;"><input value="Y" name="is_agree_mail" id="is_agree_mail" type="checkbox" <? if($is_agree_mail=='Y') { echo 'checked';}?>> SMS알림 등 (본인인증 제외)</span></span></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form_tit">정보공개 동의 <span style="padding-left:55px;"><input value="Y" name="is_agree_info_open" id="is_agree_info_open" type="checkbox" <? if($is_agree_info_open=='Y') { echo 'checked';}?> > 정보를 공개합니다.</span></span></div>
|
||||
</div>
|
||||
<div style="margin-top:30px; text-align:center;">
|
||||
<span style=""><a href="/m/member/secession" class="btn btn-default_bb br3" style="padding:10px 10px; font-size:16px; margin-bottom:10px;">회원탈퇴 </a></span>
|
||||
<span style=""><a target="_blank" href="/m/rules/privacy" class="btn btn-default_bb br3" style="padding:10px 10px; font-size:16px; margin-bottom:10px; margin-left:5px;">개인정보 취급방침</a>
|
||||
<a target="_blank" href="/m/rules/service" class="btn btn-default_bb br3" style="padding:10px 10px; font-size:16px; margin-bottom:10px; margin-left:5px;">이용약관 </a></span>
|
||||
</div>
|
||||
<div class="form-group" style="margin-top:10px;">
|
||||
<label for="exampleInputEmail1">추가정보 (선택사항)</label>
|
||||
<div class="form_tit" style="height: 20px;">출석교회</div>
|
||||
</div>
|
||||
<div class="form-group" style="border-bottom:0;">
|
||||
<input type="text" name="member_edit_church" id="member_edit_church" value="<?=$member_edit_church?>" placeholder="교회명" style="width:30%; border-bottom:1px solid #ccc;margin-right:1%;">
|
||||
<input type="text" name="member_edit_etc1" id="member_edit_etc1" value="<?=$etc1?>" placeholder="지역(동)" style="width:30%; border-bottom:1px solid #ccc;margin-right:1%;">
|
||||
<input type="text" name="member_edit_etc2" id="member_edit_etc2" value="<?=$etc2?>" placeholder="담임목사" style="width:30%; border-bottom:1px solid #ccc;">
|
||||
|
||||
</div>
|
||||
<? if($sns_type=='') {?>
|
||||
<div class="form-group" style="margin-top:10px;">
|
||||
<label for="exampleInputEmail1">비밀번호 변경</label>
|
||||
<div class="form-group">
|
||||
<input type="password" name="member_edit_password" id="member_edit_password" class="form-control" placeholder="현재 비밀번호" onkeydown="inputSendit();">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form_tit" style="height: 20px;">새 비밀번호<div class=" form_info" style="position: absolute;top: 10px;left: 100px;line-height:18px;color:#a7a7a7; font-size:13px;">6~16자 영문 대 소문자,숫자,특수문자를 사용하세요</div></div>
|
||||
<input type="password" name="member_edit_new_password" id="member_edit_new_password" class="form-control" placeholder="새로운 비밀번호 " style="margin-top:15px;" onkeydown="inputSendit();">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" name="member_edit_new_password_re" id="member_edit_new_password_re" class="form-control" placeholder="새로운 비밀번호 재입력" onkeydown="inputSendit();">
|
||||
</div>
|
||||
</div>
|
||||
<? }?>
|
||||
<div class="form_wrap" style="border-bottom:0 !important">
|
||||
<div class="form-group" style="margin:20px 0; display:block; text-align:center; border-bottom:0">
|
||||
<button type="button" onclick="member_edit_proc()" class="btn btn-success br20" style="padding:7px 30px; font-size:16px"><span class="current">저장하기</span></button>
|
||||
<button type="button" onclick="window.location='/m/mypage'" class="btn btn-default_bb br20" style="padding:7px 30px; font-size:16px; margin-left:5px ">취소하기</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script src="js/jquery-1.11.3.min.js"></script>
|
||||
<script>
|
||||
$( document ).ready( function() {
|
||||
var jbOffseter = $( '.mypage_top' ).offset();
|
||||
$( window ).scroll( function() {
|
||||
if ( $( document ).scrollTop() > jbOffseter.top ) {
|
||||
$( '.mypage_top' ).addClass( 'fix' );
|
||||
}
|
||||
else {
|
||||
$( '.mypage_top' ).removeClass( 'fix' );
|
||||
}
|
||||
});
|
||||
} );
|
||||
//var topEle = $('#member_leave_btn');
|
||||
//topEle.on('click', function() {
|
||||
// var popH = $(this).offset().top;
|
||||
// commonLayerOpen('member_leave_step1_layer');
|
||||
// $('#member_leave_step1_layer').css('top', popH+'px');
|
||||
//
|
||||
//});
|
||||
//
|
||||
//
|
||||
|
||||
var topEle = $('#member_leave_btn');
|
||||
var delay = 100;
|
||||
topEle.on('click', function() {
|
||||
commonLayerOpen('member_leave_step1_layer');
|
||||
//$('html').stop().animate({scrollTop: 0}, delay);
|
||||
});
|
||||
|
||||
|
||||
function onchange_nickname(){
|
||||
$("#is_nickname").val('N');
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 프로필이미지 등록
|
||||
function readURL1(input) {
|
||||
if (input.files && input.files[0]) {
|
||||
var reader = new FileReader();
|
||||
reader.onload = function (e) {
|
||||
$("#profile").attr("src",e.target.result);
|
||||
}
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
}
|
||||
}
|
||||
|
||||
// 프로필삭제
|
||||
function profile_delete() {
|
||||
$("#profile").css("background","url('/img/web/img_photo.png') no-repeat center");
|
||||
$("#profile").css("background-size","cover");
|
||||
$("#member_img").val("");
|
||||
$("#org_profile_img").val("");
|
||||
|
||||
}
|
||||
|
||||
// 닉네임 중복확인
|
||||
function nickname_overlab_check(){
|
||||
if($("#member_nickname").val()==""){
|
||||
alert("닉네임을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#member_nickname").val().length < 5 || $("#member_nickname").val().length > 20 ) {
|
||||
alert("닉네임은 5~20자 이내 한글,영문,특수문자만 가능합니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(checkNumber($("#member_nickname").val())==true) {
|
||||
alert("닉네임은 5~20자 이내 한글,영문,특수문자만 가능합니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"member_nickname" : $("#member_nickname").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/member_nickname_check_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.result_code != "0000") {
|
||||
alert("사용할수 없는 닉네임입니다.");
|
||||
return false;
|
||||
} else {
|
||||
$("#is_nickname").val("Y");
|
||||
alert("사용가능한 닉네임입니다.");
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('닉네임 중복확인을 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 이메일 reset
|
||||
function email_reset(){
|
||||
$("#email_check_error").hide();
|
||||
$("#now_email").val('');
|
||||
$("#change_email").val('');
|
||||
$("#email_change_layer1").show();
|
||||
$("#email_change_layer2").hide();
|
||||
$("#is_mobile_auth_email").val('N');
|
||||
}
|
||||
|
||||
// 현재 이메일 체크
|
||||
function email_check(){
|
||||
$("#email_check_error").hide();
|
||||
var email = $("#now_email").val();
|
||||
if(checkEmail(email)==false) {
|
||||
alert("이메일을 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"email" : email
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/member_my_email_check_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.result_code != "0000") {
|
||||
$("#email_check_error").show();
|
||||
$("#is_mobile_auth_email").val('N');
|
||||
|
||||
return false;
|
||||
} else {
|
||||
$("#email_change_layer2").show();
|
||||
$("#email_change_layer1").hide();
|
||||
$("#is_mobile_auth_email").val('Y');
|
||||
$("#now_email").val('');
|
||||
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('이메일 확인에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 휴대폰 인증
|
||||
function member_email_mobile_auth(){
|
||||
window.open("/m/common/kmc_mobile_auth?mobile=&type=email_check");
|
||||
//$('#kmc_mobile_auth')[0].contentWindow.kmc_window_open('', 'email_check');
|
||||
}
|
||||
|
||||
function member_edit_mobile_auth(){
|
||||
var mobile = $("#member_edit_mobile").val();
|
||||
if(checkMobile(mobile)==false){
|
||||
alert("휴대폰번호를 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
window.open("/m/common/kmc_mobile_auth?mobile="+mobile+"&type=member_edit");
|
||||
//$('#kmc_mobile_auth')[0].contentWindow.kmc_window_open(mobile, 'member_edit');
|
||||
}
|
||||
|
||||
|
||||
|
||||
function email_edit(){
|
||||
if($("#is_mobile_auth_email")=="N") {
|
||||
alert("이메일 인증에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var email = $("#change_email").val();
|
||||
if(checkEmail(email)==false) {
|
||||
alert("이메일을 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
console.log(email);
|
||||
var form_data = {
|
||||
"email" : email
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/member_email_edit_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
alert("이메일이 변경되었습니다.");
|
||||
commonLayerClose('email_check_layer');
|
||||
$("#change_email").val('');
|
||||
$("#member_email_txt").html(rtnJson.data);
|
||||
$("#member_email_txt").html(rtnJson.data);
|
||||
return false;
|
||||
} else {
|
||||
alert("이메일이 변경이 실패되었습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('이메일이 변경이 실패되었습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function member_edit_proc(){
|
||||
if($("#member_nickname").val()!=""){
|
||||
if($("#is_nickname").val()=='N') {
|
||||
alert("닉네임 중복확인을 해주세요.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if($("#member_edit_new_password").val()!="" || $("#member_edit_password").val()!="") {
|
||||
if($("#member_edit_password").val()=="") {
|
||||
alert("현재 비밀번호를 입력해주세요.");
|
||||
$("#member_edit_password").focus();
|
||||
return false;
|
||||
}
|
||||
if(member_pwd_valid_check($("#member_edit_new_password").val())==false) {
|
||||
alert("새로운 비밀번호를 6~16자 영문 대 소문자,숫자,특수문자로 입력해주세요.");
|
||||
$("#member_edit_new_password").focus();
|
||||
return false;
|
||||
}
|
||||
if($("#member_edit_password").val() == $("#member_edit_new_password").val()) {
|
||||
alert("현재 비밀번호와 새로운 비밀번호가 같습니다.");
|
||||
$("#member_edit_new_password").focus();
|
||||
return false;
|
||||
}
|
||||
if($("#member_edit_new_password_re").val()=="") {
|
||||
alert("새로운 비밀번호를 재입력해주세요.");
|
||||
$("#member_edit_new_password_re").focus();
|
||||
return false;
|
||||
}
|
||||
if($("#member_edit_new_password").val() != $("#member_edit_new_password_re").val()) {
|
||||
alert("재입력하신 새로운 비밀번호가 일치하지 않습니다.");
|
||||
$("#member_edit_new_password_re").focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$("#input_form").submit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function member_leave_step2(){
|
||||
if($("#member_leave_chk_pwd").val()==""){
|
||||
alert("비밀번호를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"member_pwd" : $("#member_leave_chk_pwd").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/member_pwd_check_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
commonLayerClose('member_leave_step1_layer');
|
||||
commonLayerOpen('member_leave_step2_layer');
|
||||
return false;
|
||||
} else {
|
||||
alert("비밀번호를 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('비밀번호를 확인해주세요.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function member_leave_step3(){
|
||||
if($("#member_leave_agree").is(":checked")==false){
|
||||
alert("계정삭제 안내사항에 동의 해주세요.");
|
||||
return false;
|
||||
}
|
||||
commonLayerClose('member_leave_step2_layer');
|
||||
commonLayerOpen('member_leave_step3_layer');
|
||||
|
||||
}
|
||||
|
||||
function member_leave_proc(){
|
||||
if($("#member_leave_chk_pwd").val()==""){
|
||||
alert("잘못된 접근입니다.");
|
||||
location.href='/web/mypage/member_edit';
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#member_leave_agree").is(":checked")==false){
|
||||
alert("잘못된 접근입니다.");
|
||||
location.href='/web/mypage/member_edit';
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"member_pwd" : $("#member_leave_chk_pwd").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/member_leave_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
commonLayerClose('member_leave_step3_layer');
|
||||
commonLayerOpen('member_leave_step4_layer');
|
||||
return false;
|
||||
} else {
|
||||
alert("탈퇴에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('탈퇴에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function inputSendit() {
|
||||
if (event.keyCode == 13) {
|
||||
member_edit_proc();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
156
application/views/m/mypage/qna.php
Executable file
156
application/views/m/mypage/qna.php
Executable file
@@ -0,0 +1,156 @@
|
||||
|
||||
<div class="mypage_top">
|
||||
<a href="/m/mypage/qna_add" class="pens"><img src="/img/mobile/penicon.png"></a>
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title"><a href="/m/mypage/req_password">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="mypage_header">
|
||||
<li class="header_tit2"><span onclick="window.location='/m/board/notice'" style="cursor:pointer">공지사항</span> | <span onclick="window.location='/m/board/faq'" style="cursor:pointer">FAQ</span> | <strong onclick="window.location='/m/mypage/qna'" style="cursor:pointer">1:1문의</strong> </li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" method="post" >
|
||||
<div class="mi_search">
|
||||
<ul>
|
||||
|
||||
<li class="checks"><input type="checkbox" name="allcheck" id="allcheck" ></li>
|
||||
<li class="searchs">
|
||||
<div><input type="text" name="search_keyword" id="search_keyword" placeholder="1:1문의 검색"><a onclick="search_list()"><i class="xi-search"></i></a></div>
|
||||
</li>
|
||||
<li class="txtxs">총<span><?=$total_count?></span>개</li>
|
||||
<li class="tracc"><a onclick="qna_arr_del()"><i class="xi-trash-o"></i></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="mypage_cont">
|
||||
|
||||
<?foreach($list as $i=>$data):?>
|
||||
|
||||
|
||||
<?if($data['write_id'] != 'admin'):?>
|
||||
<div class="list_open">
|
||||
<div style="width:100%;">
|
||||
<div class="tbl_box80"><input value="<?=$data['idx']?>" name="is_del[]" type="checkbox"><a href="javascript:toggle(<?=$i?>)"> <?=($data['title']);?></a> <img src="/img/mobile/chain.jpg"> </div>
|
||||
|
||||
<div class="tbl_box20 txr"><a href="javascript:toggle(<?=$i?>)">
|
||||
<img class="l_i_<?=$i?>" src="/img/mobile/arrow_down2.png">
|
||||
<img class="l_i_<?=$i?>" src="/img/mobile/arrow_up2.png" style="display:none">
|
||||
</a> </div>
|
||||
</div>
|
||||
<div><span class="beachblue" style="padding-right:5px;"> <?=($data['write_name']);?></span><span class="time"><?=
|
||||
date('m/d',strtotime($data['reg_date']));
|
||||
|
||||
?></span></div>
|
||||
</div>
|
||||
<div class="list_view l_<?=$i?>" style="display:none;">
|
||||
<?=$data['content']?>
|
||||
</div>
|
||||
|
||||
<?else:?>
|
||||
|
||||
|
||||
<div class="list_open2">
|
||||
<div style="width:100%;">
|
||||
<div class="tbl_box80"><img src="/img/mobile/mypage_reply.gif"> <a href="javascript:toggle(<?=$i?>)"><?=($data['title']);?></a> <img src="/img/mobile/chain.jpg"> </div>
|
||||
<div class="tbl_box20 txr"><a href="javascript:toggle(<?=$i?>)">
|
||||
<img class="l_i_<?=$i?>" src="/img/mobile/arrow_down2.png">
|
||||
<img class="l_i_<?=$i?>" src="/img/mobile/arrow_up2.png" style="display:none">
|
||||
|
||||
</a> </div>
|
||||
</div>
|
||||
<div style="clear:both;"><span class="beachblue" style="padding-right:5px;"><?=($data['write_name']);?></span><span class="time"><?=
|
||||
date('m/d',strtotime($data['reg_date']));
|
||||
|
||||
?></span></div>
|
||||
</div>
|
||||
<div class="list_view l_<?=$i?>" style="display:none;">
|
||||
<?=$data['content']?>
|
||||
</div>
|
||||
<?endif?>
|
||||
<?endforeach;?>
|
||||
<div class="pagenumber">
|
||||
|
||||
|
||||
<?=$pagination?>
|
||||
<span class="fr" style="padding-right:5%;"><a href=""><img src="/img/mobile/arrow_up.gif"></a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _고객센터_FAQ -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
function search_list(){
|
||||
if($("#search_keyword").val()==''){
|
||||
alert("검색할 내용을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
$("#input_form").attr("action", "/m/mypage/qna");
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 복수 삭제
|
||||
function qna_arr_del() {
|
||||
if($("input:checkbox[name='is_del[]']").is(":checked") == false) {
|
||||
alert("삭제할 내용이 없습니다.");
|
||||
return false;
|
||||
}
|
||||
if(confirm("1:1문의가 삭제됩니다. 삭제하시겠습니까?") == true) { //확인
|
||||
$("#input_form").attr("action", "/m/mypage/qna_arr_del_proc");
|
||||
$("#input_form").submit();
|
||||
} else { //취소
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// checkbox all checked/unchecked
|
||||
$(function(){
|
||||
$("#allcheck").click(function(){
|
||||
if($("#allcheck").prop("checked")) {
|
||||
$("input:checkbox[name='is_del[]']").prop('checked', true); // 전체선택하기
|
||||
} else {
|
||||
$("input:checkbox[name='is_del[]']").prop("checked", false);
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready( function() {
|
||||
var jbOffset = $( '.mypage_header' ).offset();
|
||||
$( window ).scroll( function() {
|
||||
if ( $( document ).scrollTop() > jbOffset.top ) {
|
||||
$( '.mi_search' ).addClass( 'fix' );
|
||||
$( '.mypage_cont' ).addClass( 'fix' );
|
||||
}
|
||||
else {
|
||||
$( '.mi_search' ).removeClass( 'fix' );
|
||||
$( '.mypage_cont' ).removeClass( 'fix' );
|
||||
}
|
||||
});
|
||||
} );
|
||||
|
||||
|
||||
function toggle(i){
|
||||
$(".l_"+i).toggle();
|
||||
$(".l_i_"+i).toggle();
|
||||
}
|
||||
</script>
|
||||
117
application/views/m/mypage/qna_add.php
Executable file
117
application/views/m/mypage/qna_add.php
Executable file
@@ -0,0 +1,117 @@
|
||||
<!--<script src="/js/ckeditor/ckeditor.js"></script>-->
|
||||
<form name="input_form" id="input_form" action="/m/mypage/qna_add_proc" method="post">
|
||||
<div class="mypage_top mypage_top_fixed">
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title" style="width:200px;"><a href="/m/mypage/qna">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="mypage_header mypage_header_fixed">
|
||||
<li class="header_tit2"><strong>1:1문의</strong> </li>
|
||||
</ul>
|
||||
<div class="mypage_cont">
|
||||
<div class="qna_w">
|
||||
<ul class="tit">
|
||||
<li><input type="text" placeholder="제목을 입력해주세요." name="title" id="title"></li>
|
||||
<li class="capt"><span id="title_count">0</span>/60byte (한글 30자) <i class="xi-lock"></i></li>
|
||||
</ul>
|
||||
<div class="qna_wbox">
|
||||
<textarea name="content" id="ir1" style="width:720px; height:450px;" /></textarea>
|
||||
</div>
|
||||
<div style="text-align:center; margin:20px 2%; overflow:hidden;">
|
||||
<span class="fl"><a href="" class="btn btn-default_bb br10" style="padding:5px 20px; font-size:16px;"><img src="/img/mobile/img_x.gif" style="padding-right:5px;">취소 </a></span>
|
||||
<span class="fr"><a onclick="qna_add_proc()" class="btn btn-default_bb br10" style="padding:5px 20px; font-size:16px; margin-left:5px;"><img src="/img/mobile/img_check2.gif" style="padding-right:5px;">등록</a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
var oEditors = [];
|
||||
var oEditors2 = [];
|
||||
$(function(){
|
||||
nhn.husky.EZCreator.createInIFrame({
|
||||
oAppRef: oEditors,
|
||||
elPlaceHolder: "ir1",
|
||||
sSkinURI: "/smarteditor/SmartEditor2Skin.html",
|
||||
htParams : {
|
||||
bUseToolbar : true,
|
||||
bUseVerticalResizer : true,
|
||||
bUseModeChanger : true,
|
||||
fOnBeforeUnload : function(){
|
||||
}
|
||||
},
|
||||
fOnAppLoad : function(){
|
||||
},
|
||||
fCreator: "createSEditor2"
|
||||
});
|
||||
|
||||
nhn.husky.EZCreator.createInIFrame({
|
||||
oAppRef: oEditors2,
|
||||
elPlaceHolder: "ir2",
|
||||
sSkinURI: "/smarteditor/SmartEditor2Skin.html",
|
||||
htParams : {
|
||||
bUseToolbar : true,
|
||||
bUseVerticalResizer : true,
|
||||
bUseModeChanger : true,
|
||||
fOnBeforeUnload : function(){
|
||||
}
|
||||
},
|
||||
fOnAppLoad : function(){
|
||||
},
|
||||
fCreator: "createSEditor2"
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
// CKEDITOR.replace( 'ir1' );
|
||||
// CKEDITOR.config.height = 200;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
$('#title').on('keyup', function(event) {
|
||||
var len = $(this).val().length;
|
||||
if (len >= 60) {
|
||||
$(this).val($(this).val().substring(0, 60));
|
||||
len = 60;
|
||||
}
|
||||
$("#title_count").html(len);
|
||||
});
|
||||
|
||||
function qna_add_proc(){
|
||||
|
||||
oEditors.getById["ir1"].exec("UPDATE_CONTENTS_FIELD", []);
|
||||
if($("#title").val()=="") {
|
||||
alert("제목을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
/*
|
||||
if($("#content").val()=="") {
|
||||
alert("내용을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
if($("#ir1").val()=='' || $("#ir1").val()=='null' || $("#ir1").val()==' ' || $("#ir1").val()=='<p> </p>') {
|
||||
alert("내용을 입력해주세요.");
|
||||
oEditors.getById["ir1"].exec("focus");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
88
application/views/m/mypage/req_password.php
Executable file
88
application/views/m/mypage/req_password.php
Executable file
@@ -0,0 +1,88 @@
|
||||
<?
|
||||
|
||||
$SES_MEMBER_NAME = $this->session->userdata('C_Member_Name');
|
||||
$SES_MEMBER_FIRST = $this->session->userdata('C_Member_First');
|
||||
$SES_MEMBER_PASSWORD_CHANGE = $this->session->userdata('C_Member_Password_Change');
|
||||
$SES_MEMBER_LOGIN = $this->session->userdata('C_Member_Login');
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$this->session->unset_userdata('C_Member_Login');
|
||||
$this->session->unset_userdata('C_Member_First');
|
||||
$this->session->unset_userdata('C_Member_Password_Change');
|
||||
|
||||
?>
|
||||
<div class="mypage_top">
|
||||
<a href="/m/mypage/qna_add" class="pens"><img src="/img/mobile/penicon.png"></a>
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title"><a href="">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="account_header">
|
||||
<span class="header_tit">계정정보</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a href=""><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont">
|
||||
<p style="text-align:center; margin:60px 0 80px;; display:block; overflow:hidden;"><img src="/img/mobile/logo_cm.gif"></p>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">비밀번호 </label>
|
||||
<input type="password" id="profile_password" class="form-control mybutton_on" placeholder="설정하신 비밀번호를 입력해 주세요." style="width: 98%; cursor:auto;" onkeydown="inputSendit();">
|
||||
</div>
|
||||
<div style=" margin-top:140px; padding-left:5px;">
|
||||
<p style="font-size:16px;"><span class="beachblue" style="font-size:18px">Q.</span> 설정하신 비번이 기억 안나시나요?</p>
|
||||
<div style="margin-top:15px;">
|
||||
<span><a href="/m/member/find_id" class="btn btn-default_bb br3" style="padding:8px 12px">아이디찾기</a></span>
|
||||
<span style="margin-left:10px;"><a href="/m/member/find_pw" class="btn btn-default br3" style="padding:8px 12px">비밀번호 찾기</a></span></a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="account_btn" style="margin-top:20px;">
|
||||
<span><a onclick="history.back(-1)" class="btn btn-default_bb br5" style="font-size: 17px;padding: 15px 0;width: 50%; margin-right:3%;">뒤로가기</a></span>
|
||||
<span><a onclick="check_password()" class="btn btn-success br5" style="font-size: 17px;padding: 15px 0;width: 45%;">다음</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
function check_password(){
|
||||
|
||||
if($("#profile_password").val()==""){
|
||||
alert("비밀번호를 입력해주세요.");
|
||||
$("#profile_password").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"member_id" : "<?=$SES_MEMBER_ID?>",
|
||||
"member_pwd" : $("#profile_password").val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/member/password_check_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
console.log(rtnJson);
|
||||
console.log(rtnJson.code);
|
||||
if (rtnJson.code == "0000") {
|
||||
location.href="/m/mypage/member_edit";
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('비밀번호 확인에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function inputSendit() {
|
||||
if (event.keyCode == 13) {
|
||||
check_password();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
525
application/views/m/mypage/user_comment_inc.php
Executable file
525
application/views/m/mypage/user_comment_inc.php
Executable file
@@ -0,0 +1,525 @@
|
||||
<?
|
||||
# session
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$SES_MEMBER_NICNAME = $this->session->userdata('C_Member_Nicname');
|
||||
|
||||
$controller = $this->uri->segment(2);
|
||||
|
||||
$this->load->helper('cookie');
|
||||
$comment_sns_id = get_cookie('crossmap_comment_sns_id');
|
||||
$comment_sns_name = get_cookie('crossmap_comment_sns_name');
|
||||
$comment_sns_type = get_cookie('crossmap_comment_sns_type');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="comment_wrap2" style="display:none;">
|
||||
<div class="commentbox2">
|
||||
<div class="mypage_top">
|
||||
<a href="/m/mypage/qna_add" class="pens"><img src="/img/mobile/penicon.png"></a>
|
||||
<div class="mypage_logo"><a href="/m"><img src="/img/mobile/logo_cm.jpg" alt="logo"></a>
|
||||
</div>
|
||||
<div class="mypage_title"><a href="/m/mypage/req_password">마이페이지</a>
|
||||
</div>
|
||||
<div class="mypage_menu"><a href=""><img src="/img/mobile/menu_list.gif" alt="menu"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="commenttop3">
|
||||
|
||||
<h3 class="p_title2"><strong><span id="user_comment_nicname" onclick="window.location='/m/mypage/user_comment'" style="cursor:pointer;"><?= $SES_MEMBER_NICNAME ?></span></strong>
|
||||
님의 댓글
|
||||
|
||||
</h3>
|
||||
|
||||
|
||||
<a href="javascript:change_toggle('my_comment_policy')"><span class="btn-tit">댓글운영정책</span></a>
|
||||
<span class="btn-info"><a href="javascript:change_toggle('my_comment_policy')"><img
|
||||
src="/img/web/btn-info.png"></a></span>
|
||||
</div>
|
||||
<div class="delivery_info3" id="my_comment_policy"
|
||||
style="display:none;max-width:70vw;max-height:30vh;overflow-y:scroll">
|
||||
<p class="d_info_tit" style="text-align:center; margin:10px 0">댓글운영정책</p>
|
||||
<p class="d_info_txt">크로스맵 댓글은 게시물에 대하여 자신의 생각을 말하고 남의 생각을 들으며 서로 다양한 의견을 나누는 공간입니다. 그러나 간혹 불건전한 내용을 올리시는
|
||||
분들이 계셔서 건전한 인터넷문화 정착을 위해 아래와 같은 운영원칙을 적용합니다.<br><br><span
|
||||
style="text-decoration:underline; margin-bottom: 15px;display: inline-block;">1. 댓글의 삭제 및 제한 조치</span><br>네티즌들의
|
||||
신고 또는 자제 모니터링을 통해 아래에 해당하는 내용이 포함된 댓글이 발견되면 예고없이 삭제 또는 제한 조치를 하겠습니다. <br></p>
|
||||
<table style="font-size:13px;">
|
||||
<tr>
|
||||
<td>1) 타인에 대한 욕설 또는 비방</td>
|
||||
<td>2) 인신공격 또는 명예훼손</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3) 개인정보 유출 또는 사생활 침해</td>
|
||||
<td>4) 음란성 내용 또는 음란물 링크</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5) 상업적 광고 또는 사이트/홈피 홍보 </td>
|
||||
<td>6) 불법정보 유출</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7) 같은 내용의 반복(도배)</td>
|
||||
<td>8) 폭력 또는 사행심 조장</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>9) 기타 게시물 내용과 관계없는 내용</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br><br>
|
||||
<p class="d_info_txt"><span style="text-decoration:underline; margin-bottom: 15px;display: inline-block;">2. 댓글 작성에 대한 제한</span><br>불건전한
|
||||
댓글은 발견시 별도의 통보없이 즉시 삭제 또는 제한 조치 하며 상습적 또는 위반 정도가 심한 댓글을 올리시는 분에 대해서는 일정 기간 댓글 작성에 대한 권한을 제한할 수 있습니다.<br>또한
|
||||
비정상적인 패턴으로 조회, 추천, 반대 등이 발생하는 것으로 관리자 또는 시스템이 판단하는 경우 부정 클릭여부를 확인하여 해당 IP나 ID를 제재할 수 있습니다.<br>명예훼손,
|
||||
개인정보유츨, 욕설 등 법률에 위반되는 댓글은 관계 법령에 의거 민형사상 처벌을 받을 수 있으니 이용에 주의를 부탁 드립니다.<br><br><span
|
||||
style="text-decoration:underline; margin-bottom: 15px;display: inline-block;">3. 뉴스, 칼럼 댓글함 전체공개</span><br>건전한
|
||||
댓글 문화를 위하여 뉴스 및 칼럼 댓글에 한해서만 댓글모음이 전체공개됩니다. 제공되는 목록에 삭제한 댓글이나 답글은 포함되지 않습니다. <br></p>
|
||||
<div class="form-group" style="margin:20px 0; display:block; text-align:center">
|
||||
<button type="button" class="btn btn-success" style="padding:5px 20px; font-size:14px"
|
||||
onclick="change_toggle('my_comment_policy')"
|
||||
">확인</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="commentbody3">
|
||||
<h2 class="com_header">
|
||||
<span ><a href="javascript:change_user_comment_content_type(3)"
|
||||
class="current" id="user_comment_menu3">라이프</a> | <a
|
||||
href="javascript:change_user_comment_content_type(1)" id="user_comment_menu1">뉴스</a> | <a
|
||||
href="javascript:change_user_comment_content_type(2)" id="user_comment_menu2">칼럼</a></span>
|
||||
</h2>
|
||||
<div class="com_tit">
|
||||
댓글/답글 <span class="beachblue" id="user_comment_count"></span>
|
||||
<div class="reply_sort2">
|
||||
<span><a href="javascript:change_user_comment_sort(1)" id="user_comment_sort1" style="color:#CCC" >호감순</a></span>
|
||||
<span><a href="javascript:change_user_comment_sort(2)" id="user_comment_sort2" style="color:#CCC" class="current">최신순</a></span>
|
||||
<span><a href="javascript:change_user_comment_sort(3)" id="user_comment_sort3" style="color:#CCC">과거순</a></span>
|
||||
<span><a href="javascript:change_user_comment_sort(4)" id="user_comment_sort4" style="color:#CCC">답글순</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="user_comment_list">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="btn-default btn_life">
|
||||
<a href="javascript:user_comment_list();">더보기 </a><img src="/img/mobile/img_replyopen.gif">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? require_once(APPPATH . "views/m/common/comment_spam_layer_inc.php");?>
|
||||
|
||||
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
|
||||
<script>
|
||||
// 스크롤 고정 함수.
|
||||
function scroll_fix3(news_nav) {
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
var jbOffset = $('.' + news_nav).offset(); // 고정하고자 하는 클래스의 offset.
|
||||
|
||||
$(window).scroll(function () {
|
||||
/*스크롤탑(현재스크롤위치) > news_nav : 상단 아래로 내렸을때 상단 고정*/
|
||||
if ($(document).scrollTop() > jbOffset.top) {
|
||||
$('.' + news_nav).addClass('jbFixed2');
|
||||
$('.' + news_nav).css('position', 'fixed');
|
||||
}
|
||||
/*스크롤탑(현재스크롤위치) <= news_nav : 원래*/
|
||||
else {
|
||||
$('.' + news_nav).removeClass('jbFixed2');
|
||||
$('.' + news_nav).css('position', 'relative');
|
||||
}
|
||||
|
||||
console.log($(document).scrollTop());
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
scroll_fix3('commenttop3'); // 상단 고정하고 싶은 클래스 설정.
|
||||
</script>
|
||||
|
||||
<?// require_once(APPPATH . "views/m/common/comment_spam_layer_inc.php"); ?>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
var user_comment_page = 1;
|
||||
var user_comment_content_type = '3';
|
||||
var user_comment_write_id = '<?=$comment_sns_id?>';
|
||||
var user_comment_sort = '2';
|
||||
|
||||
<?
|
||||
if(isset($_GET['id'])){
|
||||
echo "user_comment('".$_GET['id']."', '".$_GET['nick']."');";
|
||||
echo "user_comment_content_type = '".$_GET['type']."';";
|
||||
}
|
||||
|
||||
?>
|
||||
change_user_comment_content_type(user_comment_content_type);
|
||||
|
||||
$(".mask").on('click', function (event) {
|
||||
$(event.target).parent().hide();
|
||||
|
||||
});
|
||||
|
||||
function view_user_comment(id,nick){
|
||||
location.href = '/m/mypage/user_comment?id=compizz07&nick=%EA%B9%80%EC%A2%85%EC%9B%90&type=3';
|
||||
}
|
||||
|
||||
$('.user_replay_text').click(function (e) {
|
||||
$("#social_login").toggle();
|
||||
|
||||
$(".popup_wrap").css('left', '50%');
|
||||
$(".popup_wrap").css('top', popH + 'px');
|
||||
|
||||
});
|
||||
|
||||
$('.user_comment_text').on('keyup', function (event) {
|
||||
var key = $(this).attr('strA');
|
||||
var len = $(this).val().length;
|
||||
if (len >= 300) {
|
||||
$(this).val($(this).val().substring(0, 300));
|
||||
len = 300;
|
||||
}
|
||||
$("#user_reply_text_count" + key).html(len + '/300');
|
||||
});
|
||||
|
||||
|
||||
// sort
|
||||
function change_user_comment_sort(type) {
|
||||
user_comment_sort = type;
|
||||
user_comment_page = 1;
|
||||
user_comment_list();
|
||||
|
||||
$(".reply_sort2").find("a").removeClass("current");
|
||||
$(".reply_sort2").find("a").eq(type-1).addClass("current");
|
||||
}
|
||||
|
||||
|
||||
// content_type
|
||||
function change_user_comment_content_type(type) {
|
||||
user_comment_content_type = type;
|
||||
user_comment_page = 1;
|
||||
user_comment_list();
|
||||
|
||||
$('#user_comment_menu1').removeClass('current');
|
||||
$('#user_comment_menu2').removeClass('current');
|
||||
$('#user_comment_menu3').removeClass('current');
|
||||
|
||||
$('#user_comment_menu' + type).addClass('current');
|
||||
$(".comment_wrap2").show();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function user_comment_list() {
|
||||
var form_data = {
|
||||
"page": user_comment_page,
|
||||
"content_type": user_comment_content_type,
|
||||
"write_id": user_comment_write_id,
|
||||
"sort": user_comment_sort
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/mypage/user_comment_list',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
|
||||
if (rtnHtml == '') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if (arrHtml[0].trim() == '0000') {
|
||||
if (user_comment_page == 1) {
|
||||
$("#user_comment_list").html(arrHtml[1]);
|
||||
} else {
|
||||
$("#user_comment_list").append(arrHtml[1]);
|
||||
}
|
||||
var total_count = setComma(arrHtml[2]);
|
||||
$("#user_comment_count").html(total_count);
|
||||
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#user_comment_more_btn").hide();
|
||||
$("#user_comment_bottom").show();
|
||||
} else {
|
||||
$("#user_comment_more_btn").show();
|
||||
$("#user_comment_bottom").hide();
|
||||
}
|
||||
user_comment_page++;
|
||||
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('데이터 가져오기에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 대댓글 더보기
|
||||
function user_comment_reply_more(idx) {
|
||||
var page = $("#user_comment_reply_page" + idx).val();
|
||||
page = parseInt(page) + 1;
|
||||
$("#user_comment_reply_page" + idx).val(page);
|
||||
user_comment_reply_list(idx, page);
|
||||
|
||||
}
|
||||
|
||||
|
||||
var user_comment_reply_open_type = 1;
|
||||
|
||||
function user_comment_reply_open(idx) {
|
||||
|
||||
if (user_comment_reply_open_type == 1) {
|
||||
$("#user_comment_reply_box" + idx).css("display", "block");
|
||||
user_comment_reply_list(idx, 1);
|
||||
|
||||
user_comment_reply_open_type = 2;
|
||||
} else {
|
||||
$("#user_comment_reply_box" + idx).css("display", "none");
|
||||
user_comment_reply_open_type = 1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function user_comment_reply_list(idx, page) {
|
||||
var form_data = {
|
||||
"page": page,
|
||||
"sort": user_comment_sort,
|
||||
"comment_idx": idx,
|
||||
"type": "user_comment"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/mypage/comment_reply_list',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
if (rtnHtml == '') return false;
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if (arrHtml[0].trim() == '0000') {
|
||||
if (page == 1) {
|
||||
$("#user_comment_reply_list" + idx).html(arrHtml[1]);
|
||||
} else {
|
||||
$("#user_comment_reply_list" + idx).append(arrHtml[1]);
|
||||
}
|
||||
var total_count = setComma(arrHtml[2]);
|
||||
$("#user_comment_reply_count").html(total_count);
|
||||
console.log(arrHtml[3]);
|
||||
if (arrHtml[3] == "N") {
|
||||
$("#user_comment_reply_more_btn" + idx).hide();
|
||||
} else {
|
||||
$("#user_comment_reply_more_btn" + idx).show();
|
||||
}
|
||||
} else {
|
||||
alert(arrHtml[1]);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('데이터 가져오기에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$("#user_comment_reply_box" + idx).show();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 대대글 달기
|
||||
function user_comment_reply_add_proc(p_idx, content_idx) {
|
||||
if ("<?=$comment_sns_id?>" == "") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
if ($("#user_comment" + p_idx).val() == "") {
|
||||
alert("댓글을 입력해주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
var form_data = {
|
||||
"p_idx": p_idx,
|
||||
"content_idx": content_idx,
|
||||
"content_type": user_comment_content_type,
|
||||
"comment": $("#user_comment" + p_idx).val()
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/comment_add_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$("#user_comment" + p_idx).val('');
|
||||
$("#user_reply_text_count" + p_idx).html('0/300');
|
||||
$("#user_comment_reply_page" + p_idx).val(1);
|
||||
|
||||
user_comment_reply_list(p_idx, 1);
|
||||
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
function user_comment_del(idx) {
|
||||
if (confirm("댓글이 삭제됩니다. 삭제하시겠습니까?") == false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var form_data = {
|
||||
"idx": idx
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/user_comment_del_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
user_comment_page = 1;
|
||||
user_comment_list();
|
||||
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('삭제에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
function user_reply_comment_del(idx, p_idx) {
|
||||
if (confirm("댓글이 삭제됩니다. 삭제하시겠습니까?") == false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var form_data = {
|
||||
"idx": idx
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/user_comment_del_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
user_comment_reply_list(p_idx, 1);
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('삭제에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
function user_comment(write_id, write_name) {
|
||||
user_comment_page = 1;
|
||||
user_comment_write_id = write_id;
|
||||
user_comment_list();
|
||||
$("#user_comment_layer").show();
|
||||
$("html, body").scrollTop(0);
|
||||
if (write_name != '') {
|
||||
$("#user_comment_nicname").html(write_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function copy_user_comment_url(idx) {
|
||||
$('#copy_user_comment_url' + idx).text($('#copy_user_comment_url' + idx).val()).select();
|
||||
try {
|
||||
document.execCommand('copy');
|
||||
console.log($('#copy_user_comment_url' + idx).val());
|
||||
alert("주소가 복사되었습니다.")
|
||||
} catch (err) {
|
||||
alert('이 브라우저는 지원하지 않습니다.')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 댓글 좋아요
|
||||
function user_comment_like_select(type, idx) {
|
||||
if ("<?=$SES_MEMBER_ID?>" == "") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"comment_idx": idx,
|
||||
"type": type
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/comment_like_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
var like_count = setComma(rtnJson.data.like_count);
|
||||
var bad_count = setComma(rtnJson.data.bad_count);
|
||||
$("#comment_like1_" + idx).html(like_count);
|
||||
$("#comment_like2_" + idx).html(bad_count);
|
||||
|
||||
} else {
|
||||
alert("저장에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
function logout_advice() {
|
||||
alert("로그아웃 후에 이용해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
175
application/views/m/mypage/user_comment_list.php
Executable file
175
application/views/m/mypage/user_comment_list.php
Executable file
@@ -0,0 +1,175 @@
|
||||
<?
|
||||
$this->load->helper('cookie');
|
||||
$comment_sns_id = get_cookie('crossmap_comment_sns_id');
|
||||
$comment_sns_name = get_cookie('crossmap_comment_sns_name');
|
||||
$comment_sns_type = get_cookie('crossmap_comment_sns_type');
|
||||
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
$row_count = count($list);
|
||||
if($row_count > 0) {
|
||||
|
||||
foreach ($list as $val) {
|
||||
$idx = $val['idx'];
|
||||
$p_idx = $val['p_idx'];
|
||||
$s_idx = $val['s_idx'];
|
||||
$comment = $val['comment'];
|
||||
$reg_date = $val['reg_date'];
|
||||
$content_idx = $val['content_idx'];
|
||||
$content_type = $val['content_type'];
|
||||
$main_img = $val['main_img'];
|
||||
$title = $val['title'];
|
||||
$column_name = $val['column_name'];
|
||||
$like_count = $val['like_count'];
|
||||
$bad_count = $val['bad_count'];
|
||||
$reply_count = $val['reply_count'];
|
||||
$write_id = $val['write_id'];
|
||||
$comment_status = $val['comment_status'];
|
||||
$comment_del_date = $val['del_date'];
|
||||
$is_best = $val['is_best'];
|
||||
|
||||
|
||||
$user_comment_type = '<img src="/img/web/img_ballon.gif">';
|
||||
if($s_idx > 1) {
|
||||
$user_comment_type = '<span class="btn btn-default" style="padding: 1px 5px;">답글</span>';
|
||||
}
|
||||
|
||||
$reg_date_txt = substr($reg_date, 0, 16);
|
||||
|
||||
switch ($content_type) {
|
||||
case '1':
|
||||
$view_url = '/m/news/news_view/'.$content_idx;
|
||||
$comment_url = '/m/news/news_comment/'.$content_idx;
|
||||
|
||||
|
||||
break;
|
||||
case '2': $view_url = '/m/news/column_view/'.$content_idx; $comment_url = '/m/news/column_comment/'.$content_idx;
|
||||
if($column_name != '') {
|
||||
$title = '['.$column_name.'] <span style="color:black;">'.$title.'<span>';
|
||||
}
|
||||
|
||||
break;
|
||||
case '3': $view_url = '/m/life/life_view/'.$content_idx; $comment_url = '/m/life/life_comment/'.$content_idx; break;
|
||||
}
|
||||
|
||||
$comment_txt = $user_comment_type.' '.$comment;
|
||||
if($comment_status!='1') {
|
||||
$comment_txt = '<div style="color:#bcbcbc;"><img src="/img/web/icon_info.gif"> '.$comment.'</div><div class="r_date" style="margin-top:5px;color:#bcbcbc;">'.$comment_del_date.'</div>';
|
||||
}
|
||||
|
||||
if($comment_sns_id == '') {
|
||||
$reply_css2 = 'user_replay_text';
|
||||
$content_readonly = 'readonly';
|
||||
} else {
|
||||
$reply_css2 = '';
|
||||
$content_readonly = '';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="com_cont_box">
|
||||
<div class="com_cont_title">
|
||||
<input type="hidden" name="copy_user_comment_url<?=$idx?>" id="copy_user_comment_url<?=$idx?>" value="<?=WWW_CROSSMAP?><?=$comment_url?>" style="position:absolute;top:-9999em;">
|
||||
<a href="<?=$view_url?>"><?=$user_comment_type?> <?=$comment?></a>
|
||||
<p class="comment_date"><?=$reg_date_txt?></p>
|
||||
|
||||
</div>
|
||||
<div class="com_cont_txt">
|
||||
<span class="com_cont_img2"><a href="<?=$view_url?>"><img src="<?=$main_img?>"></a></span>
|
||||
<div class="com_cont_txt_box">
|
||||
<p class="t_black"><a href="<?=$view_url?>" <?if($content_type == '2'):?>style="color:#2bbec6;"<?endif;?>><?=$title?></a></p>
|
||||
<p class="com_replay_more"><a href="<?=$comment_url?>">댓글 더보기</a></p>
|
||||
</div>
|
||||
<div class="com_cont_info" style="position:relative">
|
||||
<span class="fr"><a href="javascript:change_toggle('user_comment_info<?=$idx?>')"><img src="/img/mobile/pop_info.png"></a></span>
|
||||
<ul class="info_comment" style="display:none;width:80px;" id="user_comment_info<?=$idx?>" >
|
||||
<? if($comment_status=='1') {
|
||||
if($comment_sns_id == $write_id) {?>
|
||||
<li><a href="javascript:user_comment_del('<?=$idx?>');">삭제하기</a></li>
|
||||
<? } else {?>
|
||||
<li><a href="javascript:comment_spam('<?=$idx?>', '<?=$write_id?>')">신고하기</a></li>
|
||||
<? }
|
||||
}
|
||||
?>
|
||||
<li style="border-top:1px solid #ededed"><a href="javascript:copy_user_comment_url('<?=$idx?>')">링크복사</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="r_base">
|
||||
<? if($p_idx == $idx) {?>
|
||||
<li class="btn btn-default" style="padding: 1px 12px;" onclick="user_comment_reply_open('<?=$p_idx?>');" style="cursor: pointer;">답글 <?=number_format($reply_count)?></li>
|
||||
<? }?>
|
||||
<li class="icons">
|
||||
<span class="thumbup"><a href="javascript:user_comment_like_select(1, '<?=$val['idx']?>')"><img src="/img/web/img_thumbup.jpg"></a><span id="comment_like1_<?=$val['idx']?>"><?=number_format($val['like_count'])?></span></span>
|
||||
<span class="thumbdown"><a href="javascript:user_comment_like_select(2, '<?=$val['idx']?>')"><img src="/img/web/img_thumbdown.jpg"></a><span id="comment_like2_<?=$val['idx']?>"><?=number_format($bad_count)?></span></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<? if($p_idx == $idx) {
|
||||
|
||||
$comment_sns_img1 = '/img/web/img_cm_off.gif'; $comment_sns_class1 = 'fr'; $nameText1=""; $comment_sns_javascript1="change_toggle('login_layer');"; $comment_sns_cursor1 = 'pointer';
|
||||
$comment_sns_img2 = '/img/web/img_tweet_off.gif'; $comment_sns_class2 = 'fr'; $nameText2=""; $comment_sns_javascript2="twitter_join('comment')"; $comment_sns_cursor2 = 'pointer';
|
||||
$comment_sns_img3 = '/img/web/img_facebook_off.gif';$comment_sns_class3 = 'fr'; $nameText3=""; $comment_sns_javascript3="checkLoginState();"; $comment_sns_cursor3 = 'pointer';
|
||||
$comment_sns_img4 = '/img/web/img_kakao_off.gif'; $comment_sns_class4 = 'fr'; $nameText4=""; $comment_sns_javascript4="kakako_login()"; $comment_sns_cursor4 = 'pointer';
|
||||
$comment_sns_img5 = '/img/web/img_naver_off.gif'; $comment_sns_class5 = 'fr'; $nameText5=""; $comment_sns_javascript5="naver_login()"; $comment_sns_cursor5 = 'pointer';
|
||||
if($comment_sns_type != '') {
|
||||
$comment_sns_javascript1 = "logout_advice()"; $comment_sns_javascript2 = "logout_advice()"; $comment_sns_javascript3 = "logout_advice()"; $comment_sns_javascript4 = "logout_advice()"; $comment_sns_javascript5 = "logout_advice()";
|
||||
//$comment_sns_cursor1 = "default"; $comment_sns_cursor2 = "default"; $comment_sns_cursor3 = "default"; $comment_sns_cursor4 = "default"; $comment_sns_cursor5 = "default";
|
||||
switch ($comment_sns_type) {
|
||||
case 'cm': $comment_sns_img1 = '/img/web/img_cm_on.gif'; $comment_sns_class1 = ''; $nameText1="<span>".$comment_sns_name."</span>"; break;
|
||||
case 'twitter': $comment_sns_img2 = '/img/web/img_tweet.gif'; $comment_sns_class2 = ''; $nameText2="<span>".$comment_sns_name."</span>"; break;
|
||||
case 'facebook': $comment_sns_img3 = '/img/web/img_facebook_on.gif'; $comment_sns_class3 = ''; $nameText3="<span>".$comment_sns_name."</span>"; break;
|
||||
case 'kakao': $comment_sns_img4 = '/img/web/img_kakao_on.gif'; $comment_sns_class4 = ''; $nameText4="<span>".$comment_sns_name."</span>"; break;
|
||||
case 'naver': $comment_sns_img5 = '/img/web/img_naver_on.gif'; $comment_sns_class5 = ''; $nameText5="<span>".$comment_sns_name."</span>"; break;
|
||||
}
|
||||
} else {
|
||||
$comment_sns_class1 = '';$comment_sns_class2 = '';$comment_sns_class3 = '';$comment_sns_class4 = '';$comment_sns_class5 = '';
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="reply_box2" id="user_comment_reply_box<?=$p_idx?>" style="display: none">
|
||||
<input type="hidden" name="user_comment_reply_page<?=$val['idx']?>" id="user_comment_reply_page<?=$val['idx']?>" value="1">
|
||||
<div id="user_comment_reply_list<?=$p_idx?>"></div>
|
||||
<ul class="box_wrap2">
|
||||
<li style="width: 100%;text-align:right;font-size: 12px;padding-bottom:10px;display:none" id="user_comment_reply_more_btn<?=$idx?>" class="fr"><a href="<?=$comment_url?>">댓글 더보기 ></a></li>
|
||||
<li class="r_img2" style="width: 2%; padding-right: 10px;"><img src="/img/web/img_reply1.gif"></li>
|
||||
<li style="width: 95%;">
|
||||
<div class="reply_box">
|
||||
<div class="reply_social">
|
||||
|
||||
<a href="javascript:<?=$comment_sns_javascript1?>" style="cursor:<?=$comment_sns_cursor1?>"><span class="<?=$comment_sns_class1?>"><img src="<?=$comment_sns_img1?>"></span></a> <?=$nameText1?>
|
||||
<a href="javascript:<?=$comment_sns_javascript2?>" style="cursor:<?=$comment_sns_cursor2?>"><span class="tweet <?=$comment_sns_class2?>"><img src="<?=$comment_sns_img2?>"></span></a> <?=$nameText2?>
|
||||
<a href="javascript:<?=$comment_sns_javascript3?>" style="cursor:<?=$comment_sns_cursor3?>"><span class="facebook <?=$comment_sns_class3?>"><img src="<?=$comment_sns_img3?>"></span></a> <?=$nameText3?>
|
||||
<a href="javascript:<?=$comment_sns_javascript4?>" style="cursor:<?=$comment_sns_cursor4?>"><span class="<?=$comment_sns_class4?>"><img src="<?=$comment_sns_img4?>"></span></a> <?=$nameText4?>
|
||||
<a href="javascript:<?=$comment_sns_javascript5?>" style="cursor:<?=$comment_sns_cursor5?>"><span class="<?=$comment_sns_class5?>"><img src="<?=$comment_sns_img5?>"></span></a> <?=$nameText5?>
|
||||
|
||||
</div>
|
||||
<div class="reply_write">
|
||||
<textarea class="form-control <?=$reply_css2?> user_comment_text" <?=$content_readonly?> name="user_comment<?=$idx?>" id="user_comment<?=$idx?>" strA="<?=$idx?>" rows="3" placeholder="댓글 작성 시 상대방에 대한 배려와 사랑을 담아주세요." style="width:95%;"></textarea>
|
||||
</div>
|
||||
<div class="reply_regist"><span class="reply_no" id="user_reply_text_count<?=$p_idx?>">0/300</span><span class="reply_btn"><a href="javascript:user_comment_reply_add_proc('<?=$idx?>', '<?=$content_idx?>');"> 등록</a></span></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="reply_close"><a href="javascript:change_toggle('user_comment_reply_box<?=$p_idx?>')">댓글 접기</a> <img src="/img/web/img_replyclose.gif"></div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
|
||||
|
||||
<? }
|
||||
|
||||
} else {
|
||||
echo '<div class="pop_cont_box" style="text-align: center">등록된 댓글이 없습니다.</div>';
|
||||
}
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||데이터 가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
74
application/views/m/mypage/user_comment_reply_list.php
Executable file
74
application/views/m/mypage/user_comment_reply_list.php
Executable file
@@ -0,0 +1,74 @@
|
||||
<?
|
||||
$this->load->helper('cookie');
|
||||
$comment_sns_id = get_cookie('crossmap_comment_sns_id');
|
||||
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
$row_count = count($arr_comment);
|
||||
if($row_count > 0) {
|
||||
foreach($arr_comment as $val) {
|
||||
$comment_reg_date = $val['reg_date'];
|
||||
$comment_reg_date = substr($comment_reg_date, 0, 16);
|
||||
$comment = $val['comment'];
|
||||
$comment_status = $val['comment_status'];
|
||||
$comment_del_date = $val['del_date'];
|
||||
$is_best = $val['is_best'];
|
||||
$comment_txt = $comment;
|
||||
if($comment_status!='1') {
|
||||
$comment_txt = '<div style="color:#bcbcbc;"><img src="/img/web/icon_info.gif"> '.$comment.'</div><div class="r_date" style="margin-top:5px;color:#bcbcbc;">'.$comment_del_date.'</div>';
|
||||
}
|
||||
|
||||
if($is_best=='Y') $comment_txt = ''.$comment_txt;
|
||||
|
||||
?>
|
||||
|
||||
<ul class="box_wrap">
|
||||
<li class="img_reply2"><img src="/img/mobile/img_reply1.gif"></li>
|
||||
<li class="img_reply3">
|
||||
<div class="r_info">
|
||||
<a href="javascript:view_user_comment('<?=$val['write_id']?>', '<?=$val['write_name']?>')"><span class="beachblue"><?=$val['write_name']?></span></a><span class="r_date"><?=$comment_reg_date?> <span style="color:#e1e2e2;padding-left:10px;">
|
||||
|
||||
</div>
|
||||
<?=$comment_txt?>
|
||||
</li>
|
||||
<li class="img_reply4" style="float:right;position: relative;">
|
||||
<div class="com_cont_info" style="float:right">
|
||||
<span class="fr"><a href="javascript:change_toggle('user_comment_reply_info<?=$val['idx']?>')"><img src="/img/mobile/pop_info.png"></a></span>
|
||||
<ul class="info_comment2" id="user_comment_reply_info<?=$val['idx']?>" style="display:none;width:80px;">
|
||||
<?
|
||||
if($comment_status=='1') {
|
||||
if($val['write_id'] == $comment_sns_id) {?>
|
||||
<li><a href="javascript:user_reply_comment_del('<?=$val['idx']?>', '<?=$val['p_idx']?>');">삭제하기</a></li>
|
||||
<? } else {?>
|
||||
<li><a href="javascript:comment_spam('<?=$val['idx']?>', '<?=$val['write_name']?>');">신고하기</a></li>
|
||||
<? }
|
||||
}
|
||||
?>
|
||||
<li style="border-top:1px solid #ededed"><a href="javascript:copy_user_comment_url('<?=$val['p_idx']?>')">링크복사</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
<div class="icons">
|
||||
<span class="thumbup"><a href="javascript:user_comment_like_select(1, '<?=$val['idx']?>')"><img src="/img/web/img_thumbup.jpg"></a><span id="comment_like1_<?=$val['idx']?>"><?=number_format($val['like_count'])?></span></span>
|
||||
<span class="thumbdown"><a href="javascript:user_comment_like_select(2, '<?=$val['idx']?>')"><img src="/img/web/img_thumbdown.jpg"></a><span id="comment_like2_<?=$val['idx']?>"><?=number_format($val['bad_count'])?></span></span>
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
echo '|||||'.$total_count.'|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||댓글가져오기를 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
193
application/views/m/news/category.php
Executable file
193
application/views/m/news/category.php
Executable file
@@ -0,0 +1,193 @@
|
||||
<?
|
||||
$category_name = $arr_category['category_name'];
|
||||
$category_code1 = $arr_category1['category_code'];
|
||||
$category_name1 = $arr_category1['category_name'];
|
||||
$category_code2 = '';
|
||||
$category_name2 = '';
|
||||
if (isset($arr_category2['category_code']) == true) {
|
||||
$category_code2 = $arr_category2['category_code'];
|
||||
$category_name2 = $arr_category2['category_name'];
|
||||
}
|
||||
$category_code3 = '';
|
||||
$category_name3 = '';
|
||||
if (isset($arr_category3['category_code']) == true) {
|
||||
$category_code3 = $arr_category3['category_code'];
|
||||
$category_name3 = $arr_category3['category_name'];
|
||||
}
|
||||
$ci =& get_instance();
|
||||
$ci->load->model('web/m_contents_setting');
|
||||
$arr_news_setting = $ci->m_contents_setting->contents_setting_select(1);
|
||||
|
||||
|
||||
$category_txt = "<a href='/m/news/category/".$category_code1."'>".$category_name1."</a>";
|
||||
if ($category_name2 != '') $category_txt .= ' <img src="/img/mobile/arrow_left.gif" style="vertical-align:baseline"> <a href="/m/news/category/'.$category_code2.'">' . $category_name2."</a>";
|
||||
if ($category_name3 != '') $category_txt .= ' <img src="/img/mobile/arrow_left.gif" style="vertical-align:baseline"> <a href="/m/news/category/'.$category_code3.'">' . $category_name3."</a>";
|
||||
$page_title = "뉴스";
|
||||
$page_title_link = '/m/#news';
|
||||
|
||||
if (@$_GET['page']):
|
||||
|
||||
foreach ($list as $val) :
|
||||
|
||||
$press_homepage = $val['press_homepage'];
|
||||
$comment_count = $val['comment_count'];
|
||||
$comment_count_txt = $comment_count;
|
||||
if ($comment_count > 9) {
|
||||
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
|
||||
$comment_count_txt = (floor($comment_count / $calc_count)) * $calc_count;
|
||||
$comment_count_txt = $comment_count_txt . '+';
|
||||
}
|
||||
|
||||
$display_date = $val['display_date'];
|
||||
$display_date_txt = substr($display_date, 0, 10);
|
||||
$display_date_txt = str_replace('-', '.', $display_date_txt);
|
||||
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '60', '..', 'utf-8');
|
||||
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
|
||||
$content = strip_tags($content);
|
||||
$content_txt = mb_strimwidth($content, '0', '250', '..', 'utf-8');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="news_list_cont" style="margi-top:50px;">
|
||||
<div class="art-img2"><a href="/m/news/news_view/<?= $val['idx'] ?>"><img src="<?= $val['main_img'] ?>"
|
||||
width="160"></a></div>
|
||||
<div class="art-info2">
|
||||
<h2 class="art-title"><a href="/m/news/news_view/<?= $val['idx'] ?>"><?= $title_txt ?></a></h2>
|
||||
<p class="art-info"><?= $display_date_txt ?>
|
||||
|
||||
|
||||
<? if($arr_news_setting['etc_char1']=='Y') {?> |
|
||||
<a target="_blank" href="<?= $val['press_homepage'] ?>"><?= $val['press_name'] ?></a>
|
||||
<?}?>
|
||||
|
||||
<span
|
||||
class="feedback fr"><img src="/img/mobile/img_comments.gif"> <?= $comment_count_txt ?>+</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?endforeach;
|
||||
exit();
|
||||
else :?>
|
||||
<?
|
||||
require_once(APPPATH . "/views/m/common/light_header.php"); ?>
|
||||
<div class="news_cont2" style="padding-top:50px">
|
||||
<div class="news_cate2" style="box-sizing: border-box;">
|
||||
<span class="beachblue" style="padding-right:5px;">기사</span>
|
||||
<span class="category fr" style="font-size:14px;line-height: 22px;">
|
||||
|
||||
<?=$category_txt?>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="news_lists" style="padding-top: 0px; padding-bottom: 25px;">
|
||||
<div class="rankynews">
|
||||
<div class="rankytop" style="margin-bottom:10px; border-bottom: 1px solid #ddd;">
|
||||
<span <? if ($search_sort == '1') {
|
||||
echo 'class="radio_on"';
|
||||
} else {
|
||||
echo 'class="radio_off"';
|
||||
} ?> style="margin-right:10px;width: 60px;float: left;"><a
|
||||
href="/m/news/category/<?= $category_code ?>?search_sort=1">최신순</a></span>
|
||||
<span <? if ($search_sort == '2') {
|
||||
echo 'class="radio_on"';
|
||||
} else {
|
||||
echo 'class="radio_off"';
|
||||
} ?> style="float: left;width: 60px;"><a
|
||||
href="/m/news/category/<?= $category_code ?>?search_sort=2">인기순</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
|
||||
foreach ($list as $val) :
|
||||
|
||||
$press_homepage = $val['press_homepage'];
|
||||
$comment_count = $val['comment_count'];
|
||||
$comment_count_txt = $comment_count;
|
||||
if ($comment_count > 9) {
|
||||
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
|
||||
$comment_count_txt = (floor($comment_count / $calc_count)) * $calc_count;
|
||||
$comment_count_txt = $comment_count_txt . '+';
|
||||
}
|
||||
|
||||
$display_date = $val['display_date'];
|
||||
$display_date_txt = substr($display_date, 0, 10);
|
||||
$display_date_txt = str_replace('-', '.', $display_date_txt);
|
||||
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '60', '..', 'utf-8');
|
||||
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
|
||||
$content = strip_tags($content);
|
||||
$content_txt = mb_strimwidth($content, '0', '250', '..', 'utf-8');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2"><a href="/m/news/news_view/<?= $val['idx'] ?>"><img
|
||||
src="<?= $val['main_img'] ?>" width="160"></a></div>
|
||||
<div class="art-info2">
|
||||
<h2 class="art-title"><a href="/m/news/news_view/<?= $val['idx'] ?>"><?= $title_txt ?></a></h2>
|
||||
<p class="art-info"><?= $display_date_txt ?>
|
||||
<? if($arr_news_setting['etc_char1']=='Y') {?> |
|
||||
<a target="_blank" href="<?= $val['press_homepage'] ?>"><?= $val['press_name'] ?></a>
|
||||
<?}?>
|
||||
<span
|
||||
class="feedback fr"><img src="/img/mobile/img_comments.gif"> <?= $comment_count_txt ?>+</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<? endforeach; ?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<p style="text-align:center;">
|
||||
<button type="button" class="btn btn-default br20" style="padding:8px 40px; font-size:16px;" onclick="get_page()" id="add">더보기 <img
|
||||
src="/img/mobile/arr_down.gif" style="vertical-align:middle;"></button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
page = 2;
|
||||
function get_page(){
|
||||
|
||||
|
||||
var add = '<?=
|
||||
isset($_GET['search_sort'])?
|
||||
"&":"?";
|
||||
|
||||
?>';
|
||||
a = window.location.href+add+"page="+page;
|
||||
$.ajax({
|
||||
type :"get",
|
||||
url : a,
|
||||
success : function(data){
|
||||
|
||||
if(data.toString().trim().length > 0){
|
||||
$(".news_lists").append(data);
|
||||
page++;
|
||||
}
|
||||
else{
|
||||
alert("마지막 페이지 입니다.");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<? endif; ?>
|
||||
204
application/views/m/news/column.php
Executable file
204
application/views/m/news/column.php
Executable file
@@ -0,0 +1,204 @@
|
||||
|
||||
<?
|
||||
require_once(APPPATH."views/m/common/navigation.php");
|
||||
?>
|
||||
|
||||
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _칼럼 (상단) -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="news_cont2">
|
||||
<div class="grace_top">
|
||||
<h2 class="art-category">
|
||||
<span class="beachblue">전체칼럼</span>
|
||||
<? for($i=0;$i<=3;$i++) {
|
||||
if(isset($arr_columnist[$i])==false) continue;
|
||||
?>
|
||||
<span> <a href="/m/news/columnist/<?=$arr_columnist[$i]['idx']?>"><?=$arr_columnist[$i]['partner_name']?></a></span>
|
||||
<? }?>
|
||||
|
||||
<span class="fr"><a onclick="tg();" style="cursor:pointer;"><img id="down" src="/img/mobile/arrow_down2.png"><img id="up" src="/img/mobile/arrow_up2.png" style="display:none;"></a></span>
|
||||
<script>
|
||||
function tg(){
|
||||
$('.columnist_box').toggle();
|
||||
$("#down").toggle();
|
||||
$("#up").toggle();
|
||||
}
|
||||
</script>
|
||||
</h2>
|
||||
|
||||
|
||||
<!--
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<div class="columnist_box news_box" id="columnist_list" style="display:none;">
|
||||
<div>
|
||||
|
||||
<ul class="news_s_box">
|
||||
|
||||
<? // $arr_columnist = array_merge($arr_columnist,$arr_columnist,$arr_columnist,$arr_columnist,$arr_columnist); ?>
|
||||
|
||||
|
||||
<?
|
||||
$columnist_count = count($arr_columnist);
|
||||
$max = 20;
|
||||
$columnist_page = ceil($columnist_count / $max);
|
||||
foreach ($arr_columnist as $i=>$val) {
|
||||
|
||||
$curr_page = ceil(($i+1) / $max);
|
||||
$style_display = 'block';
|
||||
if ($i >0) $style_display = 'none';
|
||||
|
||||
$item_style = "";
|
||||
if($i % $max == 0){
|
||||
|
||||
echo '<ul class="news_s_box columnist_page' . $curr_page . '" style="display:' . $style_display . '">';
|
||||
$item_style = 'style="border-left:0 !important;"';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<li <?= $item_style ?>><a href="/m/news/columnist/<?= $val['idx'] ?>"><?= $val['partner_name'] ?></a></li>
|
||||
|
||||
<?if($i % $max == ($max-1)) : ?>
|
||||
</ul>
|
||||
|
||||
<?endif;?>
|
||||
<?
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="new_box_footer">
|
||||
<span class="c_left" onclick="change_columnist_page(1)" style="cursor:pointer;"><a><img src="/img/web/c_right.gif"></a></span>
|
||||
<span class="c_right" onclick="change_columnist_page(-1)" style="cursor:pointer;"><a><img src="/img/web/c_left.gif"></a></span>
|
||||
<span class="c_slide">
|
||||
<? for ($j = 1; $j <= $columnist_page; $j++) {
|
||||
$page_img = '/img/web/c_off.gif';
|
||||
if ($j == 1) $page_img = '/img/web/c_on.gif';
|
||||
?>
|
||||
<a href="javascript:columnist_page('<?= $j ?>')"><img src="<?= $page_img ?>"
|
||||
id="columnist_page<?= $j ?>"></a>
|
||||
<? } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
|
||||
|
||||
-->
|
||||
<h2 class="art-title">
|
||||
<?
|
||||
|
||||
if(count($arr_headline_column)==1){
|
||||
$headline_content = $arr_headline_column[1]['content'];
|
||||
$headline_content = strip_tags($headline_content);
|
||||
$headline_content = mb_strimwidth($headline_content, '0', '200', '..', 'utf-8');
|
||||
?>
|
||||
|
||||
<a href="/m/news/columnist/<?=$arr_headline_column[1]['partner_idx']?>"><span class="blue">[<?=$arr_headline_column[1]['column_name']?>]</span></a>
|
||||
<a href="/m/news/column_view/<?=$arr_headline_column[1]['content_idx']?>"><?=$arr_headline_column[1]['title']?></a>
|
||||
|
||||
<p class="art-txt"><a href="/m/news/column_view/<?=$arr_headline_column[1]['content_idx']?>"><?=$headline_content?></a></p>
|
||||
|
||||
<? }?>
|
||||
|
||||
|
||||
</h2>
|
||||
|
||||
<? foreach($list as $val) {?>
|
||||
<div>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/news/columnist/<?=$val['partner_idx']?>"><span class="blue">[<?=$val['column_name']?>]</span></a>
|
||||
<a href="/m/news/column_view/<?=$val['idx']?>"><?=$val['title']?></a>
|
||||
</h2>
|
||||
|
||||
</div>
|
||||
<?}?>
|
||||
|
||||
</div>
|
||||
<?
|
||||
include_once (APPPATH."/views/m/common/realtime.php");
|
||||
?>
|
||||
<div class="grace_top">
|
||||
<? foreach($list as $val) {?>
|
||||
<div>
|
||||
<h2 class="art-title">
|
||||
<a href="/m/news/columnist/<?=$val['partner_idx']?>"><span class="blue">[<?=$val['column_name']?>]</span></a>
|
||||
<a href="/m/news/column_view/<?=$val['idx']?>"><?=$val['title']?></a>
|
||||
</h2>
|
||||
</div>
|
||||
<?}?>
|
||||
</div>
|
||||
<?
|
||||
include_once (APPPATH."/views/m/common/weather.php");
|
||||
?>
|
||||
|
||||
|
||||
<?
|
||||
include_once (APPPATH."/views/m/news/news_right_inc.php");
|
||||
?>
|
||||
|
||||
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _칼럼 (하단) -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
var columnist_curr_page = 1;
|
||||
function change_columnist_page(page){
|
||||
var total_page = "<?=$columnist_page?>";
|
||||
var move_page = columnist_curr_page + page;
|
||||
if(move_page > 0 && total_page >= move_page) {
|
||||
columnist_page(move_page);
|
||||
}
|
||||
}
|
||||
|
||||
function columnist_page(page){
|
||||
$(".columnist_page"+page).show();
|
||||
$(".columnist_page"+columnist_curr_page).hide();
|
||||
|
||||
$("#columnist_page"+columnist_curr_page).attr("src","/img/web/c_off.gif");
|
||||
$("#columnist_page"+page).attr("src","/img/web/c_on.gif");
|
||||
|
||||
columnist_curr_page = page;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
var column_list_page = 2;
|
||||
</script>
|
||||
59
application/views/m/news/column_comment.php
Executable file
59
application/views/m/news/column_comment.php
Executable file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
$column_name = $result['column_name'];
|
||||
$title = $result['title'];
|
||||
$display_date = $result['display_date'];
|
||||
$display_date = str_replace('-', '.', $display_date);
|
||||
$display_date = substr($display_date, 0, 16);
|
||||
$hit_count = $result['hit_count'];
|
||||
$comment_count = $result['comment_count'];
|
||||
$content = $result['content'];
|
||||
$main_img = $result['main_img'];
|
||||
$partner_idx = $result['partner_idx'];
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
|
||||
$content_type = '2';
|
||||
|
||||
|
||||
|
||||
?><?
|
||||
$page_title = $column_name;
|
||||
$page_title_link = '#';
|
||||
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
|
||||
|
||||
<div class="article_cont article_cont_fixed">
|
||||
<div class="news_list">
|
||||
<div class="view_header">
|
||||
<div>
|
||||
<a href="/m/news/columnist/<?=$partner_idx?>"><span class="beachblue">[오피니언]</span></a><a href="<?=$page_title_link?>"> <?=$column_name?></a>
|
||||
</div>
|
||||
<h2><span class="blue">[<?=$column_name?>]</span> <?=$title?></h2>
|
||||
<div class="time">
|
||||
<img src="/img/mobile/star.gif" style="vertical-align:sub"> 입력 <?=$display_date?><br>
|
||||
<span style="padding-right:10px;">조회수 <span class="beachblue"><a href=""><?=number_format($hit_count)?></a></span>회</span>
|
||||
<span style="padding-right:10px">댓글 <span class="beachblue"><a href=""><?=number_format($comment_count)?></a></span>개</span>
|
||||
<span style="margin-right:10px;"><a class="btn btn-default share_btn br20" style=" padding:2px 10px;"><img src="/img/mobile/img_upload3.gif"></a></span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column_contents">
|
||||
<h4 class="beachblue"> 댓글전체보기</h4>
|
||||
</div>
|
||||
<? require_once(APPPATH."views/m/common/comment_inc.php");?>
|
||||
<!-- <div class="view_main">-->
|
||||
<!---->
|
||||
<!---->
|
||||
<!-- </div>-->
|
||||
<? require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
|
||||
<? include_once ('news_footer_inc.php');?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
23
application/views/m/news/column_list_more.php
Executable file
23
application/views/m/news/column_list_more.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
$row_count = count($list);
|
||||
if($row_count > 0) {
|
||||
|
||||
foreach($list as $val) {
|
||||
?>
|
||||
<div>
|
||||
<a href=""><span class="art_cate2" style="width:15%;">[<?=$val['column_name']?>]</span></a>
|
||||
<span style="width:70%;"><a href="/web/news/column_view/<?=$val['idx']?>"><?=$val['title']?></a></span>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
}
|
||||
|
||||
echo '|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||칼럼글 가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
215
application/views/m/news/column_view.php
Executable file
215
application/views/m/news/column_view.php
Executable file
@@ -0,0 +1,215 @@
|
||||
<?php
|
||||
|
||||
$column_name = $result['column_name'];
|
||||
$title = $result['title'];
|
||||
$display_date = $result['display_date'];
|
||||
$display_date = str_replace('-', '.', $display_date);
|
||||
$display_date = substr($display_date, 0, 16);
|
||||
$hit_count = $result['hit_count'];
|
||||
$comment_count = $result['comment_count'];
|
||||
$content = $result['content'];
|
||||
$main_img = $result['main_img'];
|
||||
$partner_idx = $result['partner_idx'];
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$video_url = $result['video_url'];
|
||||
|
||||
$bookmark_img = '/img/web/star4_off.png';
|
||||
if($bookmark_count > 0) {
|
||||
$bookmark_img = '/img/web/star4_on.png';
|
||||
}
|
||||
$content_type = '2';
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<?
|
||||
$page_title = $column_name;
|
||||
$page_title_link = '/m/news/columnist/'.$partner_idx;
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
<div class="article_cont article_cont_fixed">
|
||||
<div class="news_list">
|
||||
<div class="view_header">
|
||||
<div>
|
||||
<a href="/m/news/column"><span class="beachblue">[오피니언]</span></a><a href="<?=$page_title_link?>"> <?=$column_name?></a>
|
||||
</div>
|
||||
<h2><span class="blue">[<?=$column_name?>]</span> <?=$title?></h2>
|
||||
<div class="time">
|
||||
<img src="<?=$bookmark_img?>" style="vertical-align:sub;cursor:pointer" onclick="bookmark()" id="bookmark_img"> 입력 <?=$display_date?><br>
|
||||
<span style="padding-right:10px;">조회수 <span class="beachblue"><a href=""><?=number_format($hit_count)?></a></span>회</span>
|
||||
<span style="padding-right:10px">댓글 <span class="beachblue"><a href=""><?=number_format($comment_count)?></a></span>개</span>
|
||||
<span style="margin-right:10px;"><a class="btn btn-default share_btn br20" style=" padding:2px 10px;"><img src="/img/mobile/img_upload3.gif"></a></span>
|
||||
<!-- <span class="fr"><a href="javascript:zoom_out();"><img src="/img/mobile/s_a.gif"></a><a href="javascript:zoom_in();"><img src="/img/mobile/l_a.gif" style="padding-left:5px;"></a></span> -->
|
||||
<span class="fr"><a href="javascript:ts('body', -1);"><img src="/img/mobile/s_a.gif"></a><a href="javascript:ts('body', 1);"><img src="/img/mobile/l_a.gif" style="padding-left:5px;"></a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="view_main">
|
||||
<? if($video_url!='') {?>
|
||||
<div style="text-align:center; display: block;"><iframe type="text/html" src="<?=$video_url?>" allowfullscreen="true" style="border: 0px; display: block; margin: 0px; width: 560px; height: 315px;" data-ratio="0.5625" data-width="560" data-height="315"></iframe></div>
|
||||
<? }?>
|
||||
</div>
|
||||
<div class="view_article">
|
||||
<?=$content?>
|
||||
</div>
|
||||
<? if(count($arr_relation_column) > 0) { ?>
|
||||
<div class="reply"></div>
|
||||
<div class="relatedarticle">
|
||||
<h4 class="beachblue">관련연재</h4>
|
||||
<ul>
|
||||
<? foreach ($arr_relation_column as $val) { ?>
|
||||
<li><a href="/m/news/columnist/<?=$val['partner_idx']?>"><span class="blue">[<?=$val['column_name']?>]</span></a> <a href="/m/news/column_view/<?=$val['relation_article_idx']?>"><?=$val['title']?></a></li>
|
||||
<? }?>
|
||||
</ul>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
<div style="margin:30px 0; text-align:center;">
|
||||
<span style="margin-left:10px;"><a class="btn btn-default share_btn br10" style=" padding:2px 20px;color:#000; font-size:16px;"><img src="/img/mobile/img_upload2.gif" style="vertical-align: middle;"> </a></span>
|
||||
<span style="margin-left:10px;"><a href="javascript:like_proc()" class="btn btn-default br10" style=" padding:2px 20px;color:#000; font-size:16px;" id=""><img src="/img/mobile/img_heart.gif" style="vertical-align: middle;"> <span id="like_count"><?=number_format($result['like_count'])?></span></a></span>
|
||||
</div>
|
||||
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _칼럼_뷰 -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<? require_once(APPPATH."views/m/common/comment_inc.php");?>
|
||||
</div>
|
||||
|
||||
<? include_once ('news_footer_inc.php');?>
|
||||
|
||||
<? require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
function popup_print() {
|
||||
var pop_url = "/m/news/news_print";
|
||||
var pop_option = "width=760,height=750,top=0,left=0,noresizable,toolbar=no,status=no,scrollbars=yes,directory=n";
|
||||
window.open(pop_url, "news_print", pop_option);
|
||||
}
|
||||
|
||||
function bookmark(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"content_idx" : "<?=$idx?>",
|
||||
"content_type" : "<?=$content_type?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/bookmark_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$("#bookmark_img").attr("src", "/img/web/star4_"+rtnJson.data.bookmark_status+".png");
|
||||
$("#share_box").hide();
|
||||
if(rtnJson.data.bookmark_status == 'off') {
|
||||
alert("북마크함에서 삭제 되었습니다");
|
||||
return false;
|
||||
} else {
|
||||
alert("북마크함에 추가 되었습니다");
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
alert("북마크에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('북마크에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function like_proc(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"content_idx" : "<?=$idx?>",
|
||||
"content_type" : "<?=$content_type?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/like_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.result_code == "0000") {
|
||||
var like_count = setComma(rtnJson.result_data.like_count);
|
||||
$("#like_count").html(like_count);
|
||||
|
||||
} else {
|
||||
alert("저장에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function send_email_content(content_type, content_idx) {
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var form_data = {
|
||||
"content_idx" : content_idx,
|
||||
"content_type" : content_type
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/send_email_content',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
alert("이메일이 발송되었습니다.");
|
||||
return false;
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('이메일 발송에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
231
application/views/m/news/columnist.php
Executable file
231
application/views/m/news/columnist.php
Executable file
@@ -0,0 +1,231 @@
|
||||
<?
|
||||
$main_column_name = $arr_columnist['partner_name'];
|
||||
$main_column_idx = $arr_columnist['idx'];
|
||||
|
||||
$column_delivery_btn = '/img/web/bt_delivery_off_gray.png';
|
||||
if($column_delivery_count > 0) {
|
||||
$column_delivery_btn = '/img/web/bt_delivery_on_gray.png';
|
||||
}
|
||||
|
||||
$content_type ='2';
|
||||
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<?
|
||||
$page_title = $main_column_name;
|
||||
$page_title_link = '/m/news/columnist/'.$main_column_idx;
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
|
||||
<div class="news_cont news_cont_fixed">
|
||||
<?
|
||||
if($total_count == 0) {
|
||||
?>
|
||||
<div style="margin:30px 0px 40px 0px;text-align: center;">
|
||||
등록된 칼럼이 없습니다.
|
||||
</div>
|
||||
<?
|
||||
} else {
|
||||
?>
|
||||
|
||||
|
||||
<div class="cont_top">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/news/column_view/<?=$list[0]['idx']?>"><img src="<?=$list[0]['main_img']?>"></a>
|
||||
</div>
|
||||
<p class="cont_top_title"><a href=""><?=$list[0]['title']?></a></p>
|
||||
<p class="chn_bar"> <img src="/img/mobile/bg_bar.gif"></p>
|
||||
<p class="cont_top_txt">1시간 전</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="rankytop" style="padding:10px 20px 0 20px;border-bottom: 1px solid #eaeaea;">
|
||||
<span <? if($search_sort=='1') { echo 'class="radio_on" '; } else { echo 'class="radio_off"';}?> style="margin-right:10px;width: 60px;float: left;"><a href="/m/news/columnist/<?=$main_column_idx?>?search_sort=1">최신순</a></span>
|
||||
<span <? if($search_sort=='2') { echo 'class="radio_on" '; } else { echo 'class="radio_off"';}?> style="float: left;width: 60px;"><a href="/m/news/columnist/<?=$main_column_idx?>?search_sort=2">인기순</a></span>
|
||||
<!-- <span class="fr"><a href="" style="vertical-align:middle"><img src="/img/mobile/bt_delivery_on_beachblue.gif"></a></span>-->
|
||||
<span class="fr"><a href="javascript:column_delivery();"><img src="<?=$column_delivery_btn?>" id="column_delivery_btn"></a> </span>
|
||||
</div>
|
||||
<div class="grace_top">
|
||||
|
||||
<?
|
||||
|
||||
foreach ($list as $key=>$val) {
|
||||
if($key == 0) continue;
|
||||
$comment_count = $val['comment_count'];
|
||||
$comment_count_txt = $comment_count;
|
||||
if($comment_count > 9) {
|
||||
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
|
||||
$comment_count_txt = (floor($comment_count/$calc_count)) * $calc_count;
|
||||
$comment_count_txt = $comment_count_txt.'+';
|
||||
}
|
||||
|
||||
$display_date = $val['display_date'];
|
||||
$display_date_txt = substr($display_date, 0, 10);
|
||||
$display_date_txt = str_replace('-', '.', $display_date_txt);
|
||||
|
||||
$title_txt = $val['title'];
|
||||
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
|
||||
$content_txt = mb_strimwidth(strip_tags($content), '0', '250', '..', 'utf-8');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<h2 class="art-title"><a href=""><span class="blue">[<?=$val['column_name']?>]</span></a> <a href="/m/news/column_view/<?=$val['idx']?>"><?=$title_txt?></a></h2>
|
||||
|
||||
|
||||
<? }
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<? include_once (APPPATH.'/views/m/common/weather.php');?>
|
||||
<? include_once ('news_right_inc.php');?>
|
||||
|
||||
<!-- <div class="grace_top" style="margin-bottom:40px; border-bottom:0">-->
|
||||
<!-- <h2 class="art-title"><a href=""><span class="blue">[김영한 칼럼]</span> 英 메이 총리 “불임의 고통, 신앙으로 이길 수 있었다”</a></h2>-->
|
||||
<!-- <h2 class="art-title"><a href=""><span class="blue">[김영한 칼럼]</span> 칭의는 ‘공략’의 대상이 아닙니다</a></h2>-->
|
||||
<!-- <h2 class="art-title"><a href=""><span class="blue">[김영한 칼럼]</span> 강대상 바꿨을 뿐인데... 변화의 목회, 이렇게 어려..</a></h2>-->
|
||||
<!-- <h2 class="art-title"><a href=""><span class="blue">[김영한 칼럼]</span> 칭의는 ‘공략’의 대상이 아닙니다</a></h2>-->
|
||||
<!-- <h2 class="art-title"><a href=""><span class="blue">[김영한 칼럼]</span> 강대상 바꿨을 뿐인데... 변화의 목회, 이렇게 어려..</a></h2>-->
|
||||
<!-- <h2 class="art-title"><a href=""><span class="blue">[김영한 칼럼]</span> 칭의는 ‘공략’의 대상이 아닙니다</a></h2>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<!--
|
||||
|
||||
<div class="contents">
|
||||
<div class="wrap">
|
||||
<div class="list_left">
|
||||
<div class="news_list">
|
||||
<div class="rankynews">
|
||||
<div class="news_cate">
|
||||
<span class="beachblue" style="padding-right:5px;"><a href="/web/news/column">오피니언</a></span>
|
||||
<span class="text"><a href="/web/news/columnist/<?=$main_column_idx?>"><?=$main_column_name?></a></span>
|
||||
<span class="category" style="float:right">
|
||||
<span style="padding-top:1px;"><a href="javascript:column_delivery();"><img src="<?=$column_delivery_btn?>" id="column_delivery_btn"></a> </span>
|
||||
</div>
|
||||
<div class="rankytop" style="margin-bottom:10px">
|
||||
<span <? if($search_sort=='1') { echo 'class="radio_on" '; } else { echo 'class="radio_off"';}?> style="margin-right:10px;width: 60px;float: left;"><a href="/web/news/columnist/<?=$main_column_idx?>?search_sort=1">최신순</a></span>
|
||||
<span <? if($search_sort=='2') { echo 'class="radio_on" '; } else { echo 'class="radio_off"';}?> style="float: left;width: 60px;"><a href="/web/news/columnist/<?=$main_column_idx?>?search_sort=2">인기순</a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
if($total_count == 0) {
|
||||
?>
|
||||
<div style="margin:30px 0px 40px 0px;text-align: center;">
|
||||
등록된 칼럼이 없습니다.
|
||||
</div>
|
||||
<?
|
||||
} else {
|
||||
|
||||
foreach ($list as $val) {
|
||||
|
||||
$comment_count = $val['comment_count'];
|
||||
$comment_count_txt = $comment_count;
|
||||
if($comment_count > 9) {
|
||||
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
|
||||
$comment_count_txt = (floor($comment_count/$calc_count)) * $calc_count;
|
||||
$comment_count_txt = $comment_count_txt.'+';
|
||||
}
|
||||
|
||||
$display_date = $val['display_date'];
|
||||
$display_date_txt = substr($display_date, 0, 10);
|
||||
$display_date_txt = str_replace('-', '.', $display_date_txt);
|
||||
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '50', '..', 'utf-8');
|
||||
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
|
||||
$content_txt = mb_strimwidth(strip_tags($content), '0', '250', '..', 'utf-8');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2"><a href="/web/news/column_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="160"></a></div>
|
||||
<div class="art-info2">
|
||||
<h2 class="art-title"><a href="/web/news/column_view/<?=$val['idx']?>"><?=$title_txt?></a><span class="comment fr"><img src="/img/web/img_comment.png"> <?=$comment_count_txt?></span></h2>
|
||||
<p class="art-sum"><a href="/web/news/column_view/<?=$val['idx']?>"><?=$content_txt?></a> </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? }
|
||||
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<? if($pagination !='') {?>
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
|
||||
<? include_once ('news_main_content_inc.php');?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
function column_delivery(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"main_idx" : <?=$main_column_idx?>,
|
||||
"content_type" : <?=$content_type?>
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/delivery_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
|
||||
|
||||
$("#column_delivery_btn").attr("src","/img/web/bt_delivery_"+rtnJson.data+"_gray.png");
|
||||
|
||||
|
||||
// if(rtnJson.data == 'off')
|
||||
// $("#column_delivery_btn").attr("src","/img/mobile/bt_delivery_off_gray.png");
|
||||
// else
|
||||
// $("#column_delivery_btn").attr("src",'/img/mobile/bt_delivery_on_gray.png');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
alert("저장에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('저장에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
86
application/views/m/news/index.php
Executable file
86
application/views/m/news/index.php
Executable file
@@ -0,0 +1,86 @@
|
||||
<div class="contents">
|
||||
<div class="wrap">
|
||||
<div class="list_left">
|
||||
<div class="news_list">
|
||||
<div class="rankynews">
|
||||
<div class="rankytop" style="margin-bottom:10px">
|
||||
<span <? if($search_sort=='1') { echo 'class="radio_on"'; } else { echo 'class="radio_off"';}?> style="margin-right:10px;width: 60px;float: left;"><a href="/web/news/?search_sort=1">최신순</a></span>
|
||||
<span <? if($search_sort=='2') { echo 'class="radio_on"'; } else { echo 'class="radio_off"';}?> style="float: left;width: 60px;"><a href="/web/news/?search_sort=2">인기순</a></span>
|
||||
</div>
|
||||
</div>
|
||||
<?
|
||||
|
||||
|
||||
foreach ($list as $val) {
|
||||
|
||||
$comment_count = $val['comment_count'];
|
||||
$comment_count_txt = $comment_count;
|
||||
if($comment_count > 9) {
|
||||
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
|
||||
$comment_count_txt = (floor($comment_count/$calc_count)) * $calc_count;
|
||||
$comment_count_txt = $comment_count_txt.'+';
|
||||
}
|
||||
|
||||
$display_date = $val['display_date'];
|
||||
$display_date_txt = substr($display_date, 0, 10);
|
||||
$display_date_txt = str_replace('-', '.', $display_date_txt);
|
||||
|
||||
$title_len = 50;
|
||||
if($arr_news_setting['etc_char1']=='Y') {
|
||||
$title_len = '40';
|
||||
}
|
||||
|
||||
$title_txt = mb_strimwidth($val['title'], '0', $title_len, '..', 'utf-8');
|
||||
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
|
||||
$content = strip_tags($content);
|
||||
$content_txt = mb_strimwidth($content, '0', '250', '..', 'utf-8');
|
||||
|
||||
|
||||
?>
|
||||
<div class="news_list_cont">
|
||||
<div class="art-img2"><a href="/web/m/news_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>" width="160"></a></div>
|
||||
<div class="art-info2">
|
||||
<h2 class="art-title">
|
||||
<a href="/m/news/news_view/<?=$val['idx']?>"><?=$title_txt?></a>
|
||||
<? if($arr_news_setting['etc_char1']=='Y') {?><span class="company"><a href="<?=$val['press_homepage']?>" target="_blank"><?=$val['press_name']?></a></span><?}?>
|
||||
<span class="comment fr"><img src="/img/web/img_comment.png"> <?=$comment_count_txt?></span></h2>
|
||||
<p class="n_date"><?=$display_date_txt?></p>
|
||||
<p class="art-sum"><a href="/web/m/news_view/<?=$val['idx']?>"><?=$content_txt?></a> </p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? }?>
|
||||
</div>
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
|
||||
<? include_once ('news_main_content_inc.php');?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<? include_once ('news_right_inc.php');?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var today_photo_curr_page = 1;
|
||||
function change_today_photo_page(page){
|
||||
var total_page = "<?=$today_photo_page?>";
|
||||
var move_page = today_photo_curr_page + page;
|
||||
if(move_page > 0 && total_page >= move_page) {
|
||||
$(".today_photo_page"+move_page).show();
|
||||
$(".today_photo_page"+today_photo_curr_page).hide();
|
||||
today_photo_curr_page = move_page;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
123
application/views/m/news/main.php
Executable file
123
application/views/m/news/main.php
Executable file
@@ -0,0 +1,123 @@
|
||||
<?
|
||||
|
||||
$a = array(
|
||||
"search_type" => "",
|
||||
"search_keyword" => "",
|
||||
"search_theme_type" => "5",
|
||||
"search_category_code" => "",
|
||||
"sort_column" => "a.reg_date",
|
||||
"content_type" => 1,
|
||||
"search_click1" => "",
|
||||
"search_click2" => "",
|
||||
"offset" => 0,
|
||||
"limit" => "30"
|
||||
);
|
||||
$ci->load->model('admin/news/m_theme_news');
|
||||
$result = $ci->m_theme_news->theme_join_news_list($a);
|
||||
|
||||
?>
|
||||
|
||||
<div class="news_cont2">
|
||||
<div class="cont_top">
|
||||
<div class="cont_top_img">
|
||||
<span class="shadow"></span>
|
||||
<a href="/m/news/news_view/<?=$result[0]['content_idx']?>">
|
||||
<img src="<?= $result[0]['main_img'] ?>">
|
||||
</a>
|
||||
</div>
|
||||
<p class="cont_top_title">
|
||||
<a href="/m/news/news_view/<?=$result[0]['content_idx']?>"><?= $result[0]['title'] ?></a>
|
||||
</p>
|
||||
<p class="chn_bar">
|
||||
<img src="/img/mobile/bg_bar.gif">
|
||||
</p>
|
||||
<p class="cont_top_txt"><?
|
||||
$a = time();
|
||||
$b = strtotime($result[0]['reg_date']);
|
||||
echo floor(($a - $b) / 3600);
|
||||
|
||||
?>시간 전</p>
|
||||
</div>
|
||||
<div class="news_lists">
|
||||
<div id="news_box">
|
||||
<?
|
||||
$ci->db->from("news");
|
||||
$ci->db->select("*, `news`.idx as content_idx");
|
||||
$ci->db->join('press', 'press.idx = news.press_idx');
|
||||
$ci->db->where("news.is_del", "N");
|
||||
$ci->db->where("news.is_display", "Y");
|
||||
$ci->db->where("news.is_display", "Y");
|
||||
$ci->db->order_by("news.reg_date","desc");
|
||||
$ci->db->limit(11, 0);
|
||||
$res = $ci->db->get();
|
||||
|
||||
|
||||
$result = $res->result_array();
|
||||
|
||||
// echo $ci->db->last_query();
|
||||
|
||||
|
||||
foreach ($result as $data):
|
||||
?>
|
||||
|
||||
|
||||
<div class="news_list_cont" >
|
||||
<div class="art-img2<?=($data['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="/m/news/news_view/<?=$data['content_idx']?>">
|
||||
<img src="<?= thumb($data['main_img']) ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="art-info2">
|
||||
<h2 class="art-title">
|
||||
<a href="/m/news/news_view/<?=$data['content_idx']?>"><?= $data['title'] ?></a>
|
||||
</h2>
|
||||
<p class="art-info"><?
|
||||
$a = time();
|
||||
$b = strtotime($data['update_date']);
|
||||
echo floor(($a - $b) / 3600);
|
||||
|
||||
?>시간 전 <? if($arr_news_setting['etc_char1']=='Y') {?> |
|
||||
|
||||
|
||||
<a target="_blank" href="<?= $data['homepage'] ?>"><?= $data['press_name'] ?> </a>
|
||||
<?}?>
|
||||
<span class="feedback fr">
|
||||
<img src="/img/mobile/img_comments.gif"> <?= $data['comment_count'] ?>+</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<? endforeach; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<p style="text-align:center;">
|
||||
<button type="button" class="btn btn-default br20" style="padding:8px 40px; font-size:16px;" onclick="more();">더보기
|
||||
<img src="/img/mobile/arr_down.gif" style="vertical-align:middle;"></button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var $page = 1;
|
||||
function more(){
|
||||
|
||||
$.ajax({
|
||||
url: "/m/news/ajax_news_more?page=" + $page,
|
||||
complete: function (data) {
|
||||
$("#news_box").append(data.responseText);
|
||||
$page++;
|
||||
setTimeout(function(){
|
||||
swiper1.update();
|
||||
},500);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
79
application/views/m/news/news_comment.php
Executable file
79
application/views/m/news/news_comment.php
Executable file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
$press_logo = $result['logo_img'];
|
||||
$press_name = $result['press_name'];
|
||||
$org_url = $result['org_url'];
|
||||
$title = $result['title'];
|
||||
$display_date = $result['display_date'];
|
||||
$display_date = str_replace('-', '.', $display_date);
|
||||
$display_date = substr($display_date, 0, 16);
|
||||
$hit_count = $result['hit_count'];
|
||||
$comment_count = $result['comment_count'];
|
||||
$category_code = $result['category_code'];
|
||||
$category_name1 = $result['category_name1'];
|
||||
$category_name2 = $result['category_name2'];
|
||||
$category_name3 = $result['category_name3'];
|
||||
$category_code1 = substr($category_code, 0, 2);
|
||||
$category_code2 = substr($category_code, 0, 4);
|
||||
$category_code3 = substr($category_code, 0, 6);
|
||||
|
||||
$weather_icon = '';
|
||||
if(count($arr_weather) > 0){
|
||||
$weather_icon = $arr_weather['weather_icon'];
|
||||
$continent = $arr_weather['continent'];
|
||||
$country = $arr_weather['country'];
|
||||
$weather_content = $arr_weather['weather_content'];
|
||||
|
||||
}
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$content_type = '1';
|
||||
|
||||
?>
|
||||
<?
|
||||
$page_title = '뉴스';
|
||||
$page_title_link = '/m/#news';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
|
||||
|
||||
<div class="article_cont article_cont_fixed">
|
||||
<div class="news_list">
|
||||
<div class="view_header">
|
||||
<div>
|
||||
<a href=""><span class="logo_company"><img src="<?=$press_logo?>" width="20" height="17" alt="logo"></span><?=$press_name?></a>
|
||||
</div>
|
||||
<h2 style="padding-right: 75px;"><?=$title?>
|
||||
<? if(count($arr_weather) > 0){?>
|
||||
<div class="spirit_weather" style="float: right; margin-top: 5px;">
|
||||
<ul class="w_info">
|
||||
<li><img src="<?=$weather_icon?>" style="width:48px"></li>
|
||||
<li style="color:#fff">
|
||||
|
||||
<table style="line-height: 22px;width:100%; margin-top: 10px;">
|
||||
<tr>
|
||||
<td style="font-size:18px; padding-top: 15px;"><?=$weather_content?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="w_location"><?=$continent?> <span style="padding:0 5px;"><img src="/img/web/w_bg.gif" style="padding-top:8px;"></span><?=$country?></div>
|
||||
</div>
|
||||
<? }?></h2>
|
||||
<div class="time">
|
||||
<span style="padding-right:10px;">조회수 <span class="beachblue"><a><?=number_format($hit_count)?></a></span>회</span>
|
||||
<span style="padding-right:10px">댓글 <span class="beachblue"><a><?=number_format($comment_count)?></a></span>개</span>
|
||||
<span style="margin-right:10px;"><a class="share_btn btn btn-default br20 " style=" padding:2px 10px;"><img src="/img/mobile/img_upload3.gif"> </a></span>
|
||||
<span class="fr"><a href="javascript:zoom_out();"><img src="/img/mobile/s_a.gif"></a><a href="javascript:zoom_in();"><img src="/img/mobile/l_a.gif" style="padding-left:5px;"></a></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="reply">
|
||||
<p class="reply_title" style="padding-top: 20px;">댓글전체보기</p>
|
||||
</div>
|
||||
<? require_once(APPPATH."views/m/common/comment_inc.php");?>
|
||||
|
||||
</div>
|
||||
|
||||
<? require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
|
||||
<? require_once(APPPATH."views/m/news/news_footer_inc.php");?>
|
||||
|
||||
</div>
|
||||
68
application/views/m/news/news_footer_inc.php
Executable file
68
application/views/m/news/news_footer_inc.php
Executable file
@@ -0,0 +1,68 @@
|
||||
<div class="article_recommend">
|
||||
<div class="beachblue" style="font-size:16px; padding-bottom:10px;">추천기사</div>
|
||||
|
||||
|
||||
<?
|
||||
|
||||
$ci=& get_instance();
|
||||
|
||||
$ci->load->library('comm');
|
||||
$arr_news_comm = $ci->comm->fn_news_footer();
|
||||
$arr_recomm_news = $arr_news_comm['arr_m_recomm_news'];
|
||||
$ci->load->model('web/m_contents_setting');
|
||||
$arr_news_setting = $ci->m_contents_setting->contents_setting_select(1);
|
||||
|
||||
|
||||
for($i=1;$i<=3;$i++) {
|
||||
if(isset($arr_recomm_news[$i])==true) {
|
||||
$reomm_news = $arr_recomm_news[$i];
|
||||
|
||||
|
||||
|
||||
|
||||
$ci->db->from("press");
|
||||
$ci->db->where("press_name", $reomm_news['press_name']);
|
||||
$ci->db->limit(1, 0);
|
||||
$res = $ci->db->get();
|
||||
$result = $res->result_array();
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<div class="news_list_cont">
|
||||
|
||||
<div class="art-img2"><a href="/m/news/news_view/<?=$reomm_news['content_idx']?>"><img src="<?=$reomm_news['theme_img']?>"></a></div>
|
||||
<div class="art-info2">
|
||||
<h2 class="art-title"><a href="/m/news/news_view/<?=$reomm_news['content_idx']?>"><?=$reomm_news['title']?></a></h2>
|
||||
<p class="art-info"><?
|
||||
$a = time();
|
||||
$b = strtotime($reomm_news['update_date']);
|
||||
echo floor(($a-$b)/3600);
|
||||
?>시간 전
|
||||
|
||||
<? if($arr_news_setting['etc_char1']=='Y') {?> |
|
||||
|
||||
<a href="<?=$result[0]['homepage']?>" target="_blank"><?=$reomm_news['press_name']?></a></p>
|
||||
<?}?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div class="banner_grace">
|
||||
<a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a>
|
||||
<!-- m크맵 _뉴스_뷰
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div> -->
|
||||
103
application/views/m/news/news_main_content_inc.php
Executable file
103
application/views/m/news/news_main_content_inc.php
Executable file
@@ -0,0 +1,103 @@
|
||||
<?
|
||||
$ci=& get_instance();
|
||||
|
||||
# 테마
|
||||
$ci->load->model('web/m_theme');
|
||||
$req_data = array();
|
||||
$req_data['theme_types'] = array('4', '14');
|
||||
$arr_theme = $ci->m_theme->theme_join_vw_content_where_in_theme_type_list($req_data);
|
||||
|
||||
$arr_today_photo = array();
|
||||
$i=1;$z=1;
|
||||
foreach ($arr_theme as $val) {
|
||||
if($val['theme_type'] == 4) $arr_today_photo[$val['rank']] = array('rank'=>$val['rank'], 'title' => $val['title'], 'sub_content' => $val['sub_content'], 'theme_img' => $val['theme_img'], 'content_idx' => $val['content_idx']);
|
||||
|
||||
}
|
||||
|
||||
# 댓글 많은 뉴스 --> 뉴스 랭킹
|
||||
$req_data = array();
|
||||
$req_data['ranking_type'] = '2';
|
||||
$req_data['content_type'] = '1';
|
||||
$req_data['offset'] = 0;
|
||||
$req_data['limit'] = 10;
|
||||
$ci->load->model('web/m_ranking');
|
||||
$arr_news_ranking = $ci->m_ranking->ranking_join_news_list($req_data);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$today_photo_count = count($arr_today_photo);
|
||||
$today_photo_page = ceil($today_photo_count/4);
|
||||
if($today_photo_count > 0) { ?>
|
||||
|
||||
<div class="todayphoto">
|
||||
<h4>오늘의 포토</h4>
|
||||
<ul class="todayphoto_box">
|
||||
<? if($today_photo_count > 4) {?>
|
||||
<a href="javascript:change_today_photo_page(-1)"><span class="s_left"><img src="/img/web/p_slide_left.png"></span></a>
|
||||
<a href="javascript:change_today_photo_page(1)"><span class="s_right"><img src="/img/web/p_slide_right.png"></span></a>
|
||||
<? }?>
|
||||
<? $i=1;
|
||||
foreach ($arr_today_photo as $val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '40', '..', 'utf-8');
|
||||
|
||||
$curr_page = ceil($i/4);
|
||||
$margin = '';$style_display='block';
|
||||
if($i%4==0) $margin='margin-right:0px;';
|
||||
if($i > 4) $style_display='none';
|
||||
|
||||
?>
|
||||
<li class="today_photo_page<?=$curr_page?>" style="display:<?=$style_display?>;<?=$margin?>;cursor: pointer" onclick="location.href='/web/news/news_view/<?=$val['content_idx']?>'">
|
||||
<div style="width:171px; height:118px; background:url('<?=$val['theme_img']?>') no-repeat center; background-size:cover;"></div>
|
||||
<p class="card_title"><a href="/web/news/news_view/<?=$val['content_idx']?>"><?=$title_txt?></a></p>
|
||||
</li>
|
||||
|
||||
<? $i++;
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<? }?>
|
||||
|
||||
<div class="mostreply">
|
||||
<div style="float:left; width:18%">
|
||||
<h4>댓글 많은 뉴스</h4>
|
||||
<span class="viewall" style="text-decoration:none !important"><a href="/web/news/ranking?ranking_type=2">전체보기 ></a></span>
|
||||
</div>
|
||||
|
||||
|
||||
<? $i=1;
|
||||
foreach ($arr_news_ranking as $key=>$val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '30', '..', 'utf-8');
|
||||
|
||||
if($i==1) echo '<div style="float:left; width:40%; padding-right:2%">';
|
||||
if($i==6) echo '<div style="float:left; width:40%;">';
|
||||
|
||||
?>
|
||||
<div class="issue_box">
|
||||
<span class="no"><?=$val['rank']?></span>
|
||||
<span><a href="/web/news/news_view/<?=$val['content_idx']?>"><?=$title_txt?></a></span>
|
||||
</div>
|
||||
|
||||
<?
|
||||
if($i==5 || $i==10 || $i == count($arr_news_ranking)) echo '</div>';
|
||||
$i++;
|
||||
}?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var today_photo_curr_page = 1;
|
||||
function change_today_photo_page(page){
|
||||
var total_page = "<?=$today_photo_page?>";
|
||||
var move_page = today_photo_curr_page + page;
|
||||
if(move_page > 0 && total_page >= move_page) {
|
||||
$(".today_photo_page"+move_page).show();
|
||||
$(".today_photo_page"+today_photo_curr_page).hide();
|
||||
today_photo_curr_page = move_page;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
33
application/views/m/news/news_print.php
Executable file
33
application/views/m/news/news_print.php
Executable file
@@ -0,0 +1,33 @@
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/common.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/news.css?<?=time()?>"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/channel.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/life.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/css/web/search.css"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="printArea"></div>
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
printArea.innerHTML = opener.document.getElementById("print_area").innerHTML;
|
||||
window.print();
|
||||
window.close();
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
</html>
|
||||
205
application/views/m/news/news_right_inc.php
Executable file
205
application/views/m/news/news_right_inc.php
Executable file
@@ -0,0 +1,205 @@
|
||||
<?
|
||||
$method = $this->uri->segment(3);
|
||||
$controller = $this->uri->segment(2);
|
||||
|
||||
$ci=& get_instance();
|
||||
|
||||
$ci->load->library('comm');
|
||||
$arr_news_comm = $ci->comm->fn_news_right();
|
||||
|
||||
$arr_main_news = $arr_news_comm['arr_main_news'];
|
||||
$arr_recomm_column = $arr_news_comm['arr_recomm_column'];
|
||||
$arr_recomm_life = $arr_news_comm['arr_recomm_life'];
|
||||
$arr_life_ranking = $arr_news_comm['arr_life_ranking'];
|
||||
$arr_p_photo = $arr_news_comm['arr_p_photo'];
|
||||
$arr_p_video = $arr_news_comm['arr_p_video'];
|
||||
$arr_realtime_keyword = $arr_news_comm['arr_realtime_keyword'];
|
||||
|
||||
|
||||
|
||||
$main_news_class = 'section';
|
||||
$main_news_style='';
|
||||
if($controller == 'search') {
|
||||
$main_news_class = 'lifepopular';
|
||||
$main_news_style = 'style="margin-top:0"';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<?if($method != 'columnist'):?>
|
||||
<div class="channel_cont">
|
||||
<div class="wrap">
|
||||
<h4 class="beachblue">추천연재</h4>
|
||||
<div class="channel_boxs" style="margin-bottom:0;">
|
||||
<? foreach ($arr_recomm_column as $val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '60', '..', 'utf-8')."<br>";
|
||||
?>
|
||||
<div class="channel_con2">
|
||||
<a href="/m/news/column_view/<?=$val['content_idx']?>"><img src="<?=$val['theme_img']?>" class="art-img"></a>
|
||||
<p class="chtitle"><a href="/m/news/column_view/<?=$val['content_idx']?>"><span class="tit"> <?=$title_txt?> </a> <a href="/m/news/columnist/<?=$val['partner_idx']?>"><?=$val['column_name']?></a></p>
|
||||
</div>
|
||||
<? }?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?endif;?>
|
||||
|
||||
|
||||
|
||||
<div class="life_footer" style="background:#f8f8f8;">
|
||||
<div style="text-align:center; margin:30px 0">
|
||||
<span><a href="javascript:change_popular_media('popular_video');" class="btn btn-default br20 tab-btn popular_video" style="padding:8px 40px; font-size:16px;" id="p_v">영상 </a></span>
|
||||
<span><a href="javascript:change_popular_media('popular_photo');" class="btn btn-default br20 tab-btn popular_photo" style="padding:8px 40px; font-size:16px; margin-left:5px;" id="p_p">포토</a></span>
|
||||
</div>
|
||||
<ul class="life_cont2_box">
|
||||
<span class="s_left"><a href=""><img src="/img/mobile/p_slide_left.png"></a></span>
|
||||
<span class="s_right"><a href=""><img src="/img/mobile/p_slide_right.png"></a></span>
|
||||
<div class="popular responsive" id="popular_photo" style="display:none;">
|
||||
|
||||
<? $i=1;
|
||||
foreach ($arr_p_photo as $val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '38', '..', 'utf-8');
|
||||
switch ($val['content_type']) {
|
||||
case '1': $img_view_url = '/m/news/news_view/'.$val['content_idx']; break;
|
||||
case '2': $img_view_url = '/m/news/column_view/'.$val['content_idx']; break;
|
||||
case '3': $img_view_url = '/m/life/life_view/'.$val['content_idx']; break;
|
||||
}
|
||||
?>
|
||||
<li <?if(0 == $i%2) echo "class=right"?>>
|
||||
<a href="<?=$img_view_url?>"><img src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="life_title"><a href=""><span class="beachblue">[인기]</span> <?=$title_txt?></a></p>
|
||||
</li>
|
||||
|
||||
|
||||
<? if($i==10) break;
|
||||
$i++;
|
||||
}?>
|
||||
</div>
|
||||
|
||||
<div class="popular responsive" id="popular_video" style="">
|
||||
<? $i=1;
|
||||
foreach ($arr_p_video as $val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '38', '..', 'utf-8');
|
||||
switch ($val['content_type']) {
|
||||
case '1': $img_view_url = '/m/news/news_view/'.$val['content_idx']; break;
|
||||
case '2': $img_view_url = '/m/news/column_view/'.$val['content_idx']; break;
|
||||
case '3': $img_view_url = '/m/life/life_view/'.$val['content_idx']; break;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<li <?if(0 == $i%2) echo "class=right"?>>
|
||||
<a href="<?=$img_view_url?>"><img src="<?=$val['main_img']?>" class="art-img"></a>
|
||||
<p class="life_title">
|
||||
|
||||
<a href="<?=$img_view_url?>">
|
||||
<?if($val['head_title']!=''):?>
|
||||
|
||||
<span class="beachblue">[<?=$val['head_title']?>]</span>
|
||||
<?endif?>
|
||||
<?=$title_txt?></a></p>
|
||||
</li>
|
||||
|
||||
<?
|
||||
if($i==10) break;
|
||||
$i++;
|
||||
}?>
|
||||
</div>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
/**
|
||||
$(document).ready(function() {
|
||||
setInterval("popular_media_interval()", 7000);
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function change_popular_media(id){
|
||||
|
||||
|
||||
ids = (id == 'popular_video') ? "p_v":"p_p";
|
||||
ids2 = (id == 'popular_video') ? "p_p":"p_v"
|
||||
$("#popular_photo").hide();
|
||||
$("#popular_video").hide();
|
||||
$("#"+id).show();
|
||||
$("#"+ids).addClass("btn-default_bb");
|
||||
$("#"+ids).removeClass("btn-default");
|
||||
|
||||
$("#"+ids2).removeClass("btn-default_bb");
|
||||
$("#"+ids2).addClass("btn-default");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function popular_media_interval(){
|
||||
$("#popular_photo").toggle();
|
||||
$("#popular_video").toggle();
|
||||
}**/
|
||||
$(document).ready(function() {
|
||||
$(".tab-btn.popular_video").addClass("btn-default_bb");
|
||||
$("#popular_video").show();
|
||||
$('.responsive').slick({
|
||||
dots: false,
|
||||
infinite: true,
|
||||
speed: 300,
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 2,
|
||||
responsive: [
|
||||
{
|
||||
breakpoint: 480,
|
||||
settings: {
|
||||
slidesToShow: 2,
|
||||
slidesToScroll: 2,
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
$("#popular_video")[0].slick.refresh();
|
||||
$("#popular_video").slick('slickPlay');
|
||||
});
|
||||
|
||||
function change_popular_media(objId){
|
||||
$(".popular").hide();
|
||||
$(".tab-btn").removeClass("btn-default_bb");
|
||||
$(".tab-btn."+objId).addClass("btn-default_bb");
|
||||
$("#"+objId).show();
|
||||
$('#'+objId+'.responsive')[0].slick.refresh();
|
||||
$('#'+objId+'.responsive').slick('slickPlay');
|
||||
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
<style>
|
||||
.life_cont2_box li img{width:98%;margin-right:2%}
|
||||
.life_cont2_box li.right img{width:98%;margin-right:0;margin-left:2%}
|
||||
.life_cont2_box .s_left, .life_cont2_box .s_right{display:none}
|
||||
.life_cont2_box {position:relative}
|
||||
.life_cont2_box .life_cont4_box{float:none;margin:0 auto}
|
||||
.life_cont2_box .slick-prev.slick-arrow{cursor:pointer;z-index:99;position:absolute;left:0;top:30%;background:url('/img/mobile/p_slide_left.png') center center no-repeat;width:31px;height:59px;border:none;text-indent:-9999rem;text-decoration:}
|
||||
.life_cont2_box .slick-next.slick-arrow{cursor:pointer;z-index:99;position:absolute;right:0;top:30%;background:url('/img/mobile/p_slide_right.png') center center no-repeat;width:31px;height:59px;border:none;text-indent:-9999rem;}
|
||||
.life_cont2_box .tr_txt{padding-top:1rem}
|
||||
@media screen and (max-width: 640px){
|
||||
.life_cont2_box .slick-prev.slick-arrow{left:0;top:20%;background:url('/img/mobile/p_slide_left.png') center center no-repeat;width:31px;background-size:100% auto }
|
||||
.life_cont2_box .slick-next.slick-arrow{ right:0;top:20%;background:url('/img/mobile/p_slide_right.png') center center no-repeat;width:31px;background-size:100% auto}
|
||||
}
|
||||
@media screen and (max-width: 400px){
|
||||
.life_cont2_box .slick-prev.slick-arrow{top:10%;}
|
||||
.life_cont2_box .slick-next.slick-arrow{top:10%;}
|
||||
}
|
||||
</style>
|
||||
368
application/views/m/news/news_view.php
Executable file
368
application/views/m/news/news_view.php
Executable file
@@ -0,0 +1,368 @@
|
||||
<?php
|
||||
|
||||
//var_dump($result);
|
||||
$press_logo = $result['logo_img'];
|
||||
$press_name = $result['press_name'];
|
||||
$homepage = $result['homepage'];
|
||||
$org_url = $result['org_url'];
|
||||
$title = $result['title'];
|
||||
$display_date = $result['display_date'];
|
||||
$display_date = str_replace('-', '.', $display_date);
|
||||
$display_date = substr($display_date, 0, 16);
|
||||
$hit_count = $result['hit_count'];
|
||||
$comment_count = $result['comment_count'];
|
||||
$category_code = $result['category_code'];
|
||||
$category_name1 = $result['category_name1'];
|
||||
$category_name2 = $result['category_name2'];
|
||||
$category_name3 = $result['category_name3'];
|
||||
$category_code1 = substr($category_code, 0, 2);
|
||||
$category_code2 = substr($category_code, 0, 4);
|
||||
$category_code3 = substr($category_code, 0, 6);
|
||||
$sub_title = $result['sub_title'];
|
||||
$main_img = $result['main_img'];
|
||||
$content = $result['content'];
|
||||
$reporter_name = $result['reporter_name'];
|
||||
|
||||
$review_count1 = $result['review_count1'];
|
||||
$review_count2 = $result['review_count2'];
|
||||
$review_count3 = $result['review_count3'];
|
||||
$review_count4 = $result['review_count4'];
|
||||
$review_count5 = $result['review_count5'];
|
||||
$video_url = $result['video_url'];
|
||||
$weather_icon = '';
|
||||
if(count($arr_weather) > 0){
|
||||
$weather_icon = $arr_weather['weather_icon'];
|
||||
$continent = $arr_weather['continent'];
|
||||
$country = $arr_weather['country'];
|
||||
$weather_content = $arr_weather['weather_content'];
|
||||
|
||||
}
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
$http_host = $_SERVER['HTTP_HOST'];
|
||||
$request_uri = $_SERVER['REQUEST_URI'];
|
||||
$url = 'http://' . $http_host . $request_uri;
|
||||
|
||||
$bookmark_img = '/img/web/star4_off.png';
|
||||
if($bookmark_count > 0) {
|
||||
$bookmark_img = '/img/web/star4_on.png';
|
||||
}
|
||||
$content_type = '1';
|
||||
|
||||
$review_type = '';
|
||||
if(isset($arr_review['review_type'])==true) {
|
||||
$review_type = $arr_review['review_type'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?
|
||||
|
||||
|
||||
$page_title = "뉴스";
|
||||
$page_title_link = '/m/#news';
|
||||
require_once(APPPATH."/views/m/common/light_header.php");?>
|
||||
<div class="article_cont article_cont_fixed">
|
||||
<div class="news_list">
|
||||
<div class="view_header">
|
||||
<div class="view_alm">
|
||||
<ul class="tapt">
|
||||
<li><img src="/img/mobile/cloud.gif"></li>
|
||||
<li>비</li>
|
||||
</ul>
|
||||
<p class="tit">영적기상도</p>
|
||||
</div>
|
||||
<div>
|
||||
<a target="_blank" href="<?=$homepage?>"><span class="logo_company"><img src="<?=$press_logo?>" width="30" height="25" alt="logo"></span><?=$press_name?></a>
|
||||
</div>
|
||||
<h2 style="padding-right: 75px;"><?=$title?>
|
||||
<span class="category">
|
||||
<a href="/m/news/category/<?=$category_code1?>"><?=$category_name1?></a>
|
||||
<img src="/img/web/arrow_left.gif">
|
||||
<a href="/m/news/category/<?=$category_code2?>"><?=$category_name2?></a>
|
||||
<? if($category_name3!='') {?> <img src="/img/web/arrow_left.gif">
|
||||
<a href="/m/news/category/<?=$category_code3?>"><?=$category_name3?></a> <?}?>
|
||||
</span>
|
||||
|
||||
|
||||
<!-- --><?// if(count($arr_weather) > 0){?>
|
||||
<!-- <div class="spirit_weather" style="float: right; margin-top: 5px;">-->
|
||||
<!-- <ul class="w_info">-->
|
||||
<!-- <li><img src="--><?//=$weather_icon?><!--" style="width:48px"></li>-->
|
||||
<!-- <li style="color:#fff">-->
|
||||
<!---->
|
||||
<!-- <table style="line-height: 22px;width:100%; margin-top: 10px;">-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td style="font-size:18px; padding-top: 15px;">--><?//=$weather_content?><!--</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- </table>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- <div class="w_location">--><?//=$continent?><!-- <span style="padding:0 5px;"><img src="/img/web/w_bg.gif" style="padding-top:8px;"></span>--><?//=$country?><!--</div>-->
|
||||
<!-- </div>-->
|
||||
<!-- --><?// }?>
|
||||
</h2>
|
||||
<div class="time">
|
||||
<img src="<?=$bookmark_img?>" style="vertical-align:sub;cursor:pointer" onclick="bookmark()" id="bookmark_img"> 입력 <?=$display_date?><br>
|
||||
<span style="padding-right:10px;">조회수 <span class="beachblue"><a><?=number_format($hit_count)?></a></span>회</span>
|
||||
<span style="padding-right:10px">댓글 <span class="beachblue"><a><?=number_format($comment_count)?></a></span>개</span>
|
||||
<span style="margin-right:10px;"><a class="btn btn-default br20 share_btn" style=" padding:2px 10px;"><img src="/img/mobile/img_upload3.gif"> </a></span>
|
||||
<span class="fr">
|
||||
<!-- <a href="javascript:zoom_out();"><img src="/img/mobile/s_a.gif"></a><a href="javascript:zoom_in();"><img src="/img/mobile/l_a.gif" style="padding-left:5px;"></a> -->
|
||||
<a href="javascript:ts('body', -1);"><img src="/img/mobile/s_a.gif"></a><a href="javascript:ts('body', 1);"><img src="/img/mobile/l_a.gif" style="padding-left:5px;"></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="view_main">-->
|
||||
<!-- <div class="view_img">-->
|
||||
<!-- <div><img src="/img/mobile/img_photo.jpg"></div>-->
|
||||
<!-- <div class="img_desc">ⓒPexel</div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<? if($sub_title!='') { ?>
|
||||
<div class="sub_tit"><?=$sub_title?>
|
||||
</div>
|
||||
<div class="sub_tit_bar"><img src="/img/mobile/bg_row2.gif"></div>
|
||||
<? }?>
|
||||
<? if($video_url!='') {?>
|
||||
<div style="text-align:center; display: block;"><iframe type="text/html" src="<?=$video_url?>" allowfullscreen="true" style="border: 0px; display: block; margin: 0px; width: 100%; height: 240px;" data-ratio="0.5625" data-width="100%" data-height="240" width="100%" height="240"></iframe></div>
|
||||
<? }?>
|
||||
|
||||
|
||||
<div class="view_article">
|
||||
<?=$content?>
|
||||
</div>
|
||||
<div class="writer">
|
||||
<?=$reporter_name?> 기자
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<? if(count($arr_relation_news) > 0) { ?>
|
||||
<div class="relatedarticle">
|
||||
<h4>관련뉴스 </h4>
|
||||
<ul>
|
||||
<? foreach ($arr_relation_news as $val) {?>
|
||||
<li><a href="/m/news/news_view/<?=$val['idx']?>"><?=$val['title']?></a></li>
|
||||
<? }?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
<div class="reaction" >
|
||||
<div class="reaction_box">
|
||||
<a href="javascript:review_select(1);"><img src="/img/web/img_reaction1.png"></a>
|
||||
<div class="rb">
|
||||
<p class="like">좋아요</p>
|
||||
<p class="click" id="review1"><?=number_format($review_count1)?></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="reaction_box">
|
||||
<a href="javascript:review_select(2);"><img src="/img/web/img_reaction2.png"></a>
|
||||
<div class="rb">
|
||||
<p class="like">훈훈해요</p>
|
||||
<p class="click" id="review2"><?=number_format($review_count2)?></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="reaction_box" style="width:19%;">
|
||||
<a href="javascript:review_select(3);"><img src="/img/web/img_reaction3.png"></a>
|
||||
<div class="rb">
|
||||
<p class="like">슬퍼요 </p>
|
||||
<p class="click" id="review3"><?=number_format($review_count3)?></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="reaction_box" style="width:19%;">
|
||||
<a href="javascript:review_select(4);"><img src="/img/web/img_reaction4.png"></a>
|
||||
<div class="rb">
|
||||
<p class="like">화나요 </p>
|
||||
<p class="click" id="review4"><?=number_format($review_count4)?></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="reaction_box" style="width:22%;">
|
||||
<a href="javascript:review_select(5);"><img src="/img/web/img_reaction5.png"></a>
|
||||
<div class="rb">
|
||||
<p class="like">후속기사 원해요 </p>
|
||||
<p class="click" id="review5"><?=number_format($review_count5)?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin:30px 0; text-align:center;">
|
||||
<span style="margin-left:10px;"><a class="btn btn-default share_btn br10" style=" padding:2px 20px;color:#000; font-size:16px;"><img src="/img/mobile/img_upload2.gif" style="vertical-align: middle;"> </a></span>
|
||||
</div>
|
||||
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _뉴스_뷰 -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<? require_once(APPPATH."views/m/common/comment_inc.php");?>
|
||||
|
||||
</div>
|
||||
<? require_once(APPPATH."views/m/news/news_footer_inc.php");?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<? require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
<? if($review_type != '') {?>
|
||||
var review_type = "<?=$review_type?>";
|
||||
$("#review"+review_type).css("font-weight", "bold");
|
||||
|
||||
<?}?>
|
||||
});
|
||||
|
||||
|
||||
|
||||
function popup_print() {
|
||||
var pop_url = "/web/news/news_print";
|
||||
var pop_option = "width=760,height=750,top=0,left=0,noresizable,toolbar=no,status=no,scrollbars=yes,directory=n";
|
||||
window.open(pop_url, "news_print", pop_option);
|
||||
}
|
||||
|
||||
function review_select(t) {
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
$("#review1").css("font-weight", "normal");
|
||||
$("#review2").css("font-weight", "normal");
|
||||
$("#review3").css("font-weight", "normal");
|
||||
$("#review4").css("font-weight", "normal");
|
||||
$("#review5").css("font-weight", "normal");
|
||||
|
||||
var form_data = {
|
||||
"type" : t,
|
||||
"idx" : "<?=$idx?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/review_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.result_code == "0000") {
|
||||
var review_count1 = setComma(rtnJson.result_data.review_count1);
|
||||
var review_count2 = setComma(rtnJson.result_data.review_count2);
|
||||
var review_count3 = setComma(rtnJson.result_data.review_count3);
|
||||
var review_count4 = setComma(rtnJson.result_data.review_count4);
|
||||
var review_count5 = setComma(rtnJson.result_data.review_count5);
|
||||
|
||||
$("#review1").html(review_count1);
|
||||
$("#review2").html(review_count2);
|
||||
$("#review3").html(review_count3);
|
||||
$("#review4").html(review_count4);
|
||||
$("#review5").html(review_count5);
|
||||
|
||||
$("#review"+t).css("font-weight", "bold");
|
||||
|
||||
} else {
|
||||
alert("리뷰등록에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('리뷰등록에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
function bookmark(){
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
var form_data = {
|
||||
"content_idx" : "<?=$idx?>",
|
||||
"content_type" : "<?=$content_type?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/bookmark_proc',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
$("#bookmark_img").attr("src", "/img/web/star4_"+rtnJson.data.bookmark_status+".png");
|
||||
$("#share_box").hide();
|
||||
if(rtnJson.data.bookmark_status == 'off') {
|
||||
alert("북마크함에서 삭제 되었습니다");
|
||||
return false;
|
||||
} else {
|
||||
alert("북마크함에 추가 되었습니다");
|
||||
return false;
|
||||
}
|
||||
|
||||
} else {
|
||||
alert("북마크에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('북마크에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function send_email_content(content_type, content_idx) {
|
||||
if("<?=$SES_MEMBER_ID?>"=="") {
|
||||
alert("로그인 후에 이용가능합니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var form_data = {
|
||||
"content_idx" : content_idx,
|
||||
"content_type" : content_type
|
||||
};
|
||||
$.ajax({
|
||||
url: '/web/comm/send_email_content',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
data: form_data,
|
||||
success: function (rtnJson) {
|
||||
if (rtnJson.code == "0000") {
|
||||
alert("이메일이 발송되었습니다.");
|
||||
return false;
|
||||
} else {
|
||||
alert(rtnJson.msg);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnJson) {
|
||||
alert('이메일 발송에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
89
application/views/m/news/ranking.php
Executable file
89
application/views/m/news/ranking.php
Executable file
@@ -0,0 +1,89 @@
|
||||
<?
|
||||
$now_date = date("Y.m.d");
|
||||
?>
|
||||
|
||||
<div class="contents">
|
||||
<div class="wrap">
|
||||
<div class="list_left">
|
||||
<div class="news_list">
|
||||
<div class="rankynews" style="margin-top:0 !important;">
|
||||
<div class="rankytop">
|
||||
<span class="ranky_tit">랭킹뉴스</span>
|
||||
<span class="ranky_date"><span class="btn-default_bb" style="margin-right:10px;">오늘</span> <?=$now_date?></span>
|
||||
</div>
|
||||
<ul class="rankylist">
|
||||
<li><a href="/web/news/ranking" <? if($ranking_type=='1') { echo 'class="current"'; }?>>많이본</a></li>
|
||||
<li><a href="/web/news/ranking?ranking_type=2" <? if($ranking_type=='2') { echo 'class="current"'; }?>>댓글많은 </a></li>
|
||||
<li><a href="/web/news/ranking?ranking_type=3" <? if($ranking_type=='3') { echo 'class="current"'; }?>>공감많은</a> </li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
if(count($list) == 0) {
|
||||
echo '<div style="width: 100%; padding-left:40%">등록된 내용이 없습니다.</div>';
|
||||
|
||||
} else {
|
||||
|
||||
foreach ($list as $val) {
|
||||
|
||||
if($ranking_type=='1') {
|
||||
$ranking_view_txt = '조회 '.number_format($val['hit_count']);
|
||||
} else if($ranking_type=='2') {
|
||||
$comment_count = $val['comment_count'];
|
||||
$comment_count_txt = $comment_count;
|
||||
if($comment_count > 9) {
|
||||
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
|
||||
$comment_count_txt = (floor($comment_count/$calc_count)) * $calc_count;
|
||||
$comment_count_txt = $comment_count_txt.'+';
|
||||
}
|
||||
$ranking_view_txt = '<img src="/img/web/img_comment.png"> '.$comment_count_txt;
|
||||
} else if($ranking_type=='3') {
|
||||
$ranking_view_txt = '<img src="/img/web/img_heart.gif"> '.number_format($val['review_count1']);
|
||||
}
|
||||
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '38', '..', 'utf-8');
|
||||
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
|
||||
$content_txt = mb_strimwidth(strip_tags($content), '0', '250', '..', 'utf-8');
|
||||
|
||||
$display_date = $val['display_date'];
|
||||
$display_date_txt = substr($display_date, 0, 10);
|
||||
$display_date_txt = str_replace('-', '.', $display_date_txt);
|
||||
|
||||
$press_homepage = $val['press_homepage'];
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="news_list_cont">
|
||||
<div class="list_no beachblue"><?=$val['rank']?></div>
|
||||
<div class="art-info">
|
||||
<h2 class="art-title">
|
||||
<a href="/web/news/news_view/<?=$val['content_idx']?>"><?=$title_txt?></a>
|
||||
<? if($arr_news_setting['etc_char1']=='Y') {?><span class="company"><a href="<?=$press_homepage?>" target="_blank"><?=$val['press_name']?></a></span><?}?>
|
||||
<span class="comment fr"> <?=$ranking_view_txt?></span>
|
||||
</h2>
|
||||
<p class="n_date"><?=$display_date_txt?></p>
|
||||
<p class="art-sum"><a href="/web/news/news_view/<?=$val['content_idx']?>"><?=$content_txt?></a> </p>
|
||||
</div>
|
||||
<div class="art-img"><a href="/web/news/news_view/<?=$val['content_idx']?>"><img src="<?=$val['main_img']?>" width="160"></a></div>
|
||||
</div>
|
||||
|
||||
<? }
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<? if($pagination !='') {?>
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
<? }?>
|
||||
</div>
|
||||
|
||||
|
||||
<? include_once ('news_right_inc.php');?>
|
||||
</div>
|
||||
</div>
|
||||
24
application/views/m/rules/privacy.php
Executable file
24
application/views/m/rules/privacy.php
Executable file
@@ -0,0 +1,24 @@
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko"><head><meta charset="utf-8"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<title>Crossmap</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/mobile.css"/>
|
||||
</head>
|
||||
|
||||
<body id="mypage">
|
||||
<div class="account_header">
|
||||
<span class="header_tit">크로스맵 정책</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a href="/m"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont">
|
||||
<div class="popup_policy2">
|
||||
<div style=" margin-bottom:20px; text-align:center;">
|
||||
<span><a href="/m/rules/service" class="btn btn-default br10" style="margin-bottom:5px; padding:7px">이용약관 </a></span>
|
||||
<span><a href="/m/rules/privacy" class="btn btn-default_bb br10" style="margin-bottom:5px; padding:7px">개인정보취급방침</a></span>
|
||||
<span><a href="/m/rules/privacy_agreement" class="btn btn-default br10" style="margin-bottom:5px; padding:7px">개인정보수집및이용</a></span>
|
||||
</div>
|
||||
<h3 style="text-align:center;">개인정보취급방침</h3>
|
||||
<textarea rows="30" readonly><?=$site_info['privacy']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
24
application/views/m/rules/privacy_agreement.php
Executable file
24
application/views/m/rules/privacy_agreement.php
Executable file
@@ -0,0 +1,24 @@
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko"><head><meta charset="utf-8"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<title>Crossmap</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/mobile.css"/>
|
||||
</head>
|
||||
|
||||
<body id="mypage">
|
||||
<div class="account_header">
|
||||
<span class="header_tit">크로스맵 정책</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a href="/m"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont">
|
||||
<div class="popup_policy2">
|
||||
<div style=" margin-bottom:20px; text-align:center;">
|
||||
<span><a href="/m/rules/service" class="btn btn-default br10" style="margin-bottom:5px; padding:7px">이용약관 </a></span>
|
||||
<span><a href="/m/rules/privacy" class="btn btn-default br10" style="margin-bottom:5px; padding:7px">개인정보취급방침</a></span>
|
||||
<span><a href="/m/rules/privacy_agreement" class="btn btn-default_bb br10" style="margin-bottom:5px; padding:7px">개인정보수집및이용</a></span>
|
||||
</div>
|
||||
<h3 style="text-align:center;">개인정보수집및이용</h3>
|
||||
<textarea rows="30" readonly><?=$site_info['privacy_agreement']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
24
application/views/m/rules/service.php
Executable file
24
application/views/m/rules/service.php
Executable file
@@ -0,0 +1,24 @@
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko"><head><meta charset="utf-8"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
|
||||
<title>Crossmap</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/mobile.css"/>
|
||||
</head>
|
||||
|
||||
<body id="mypage">
|
||||
<div class="account_header">
|
||||
<span class="header_tit">크로스맵 정책</span><span class="fr" style="padding-right:20px; padding-top:3px;"><a href="/m"><img src="/img/mobile/img_close.gif"></a></span>
|
||||
</div>
|
||||
<div class="account_cont">
|
||||
<div class="popup_policy2">
|
||||
<div style=" margin-bottom:20px; text-align:center;">
|
||||
<span><a href="/m/rules/service" class="btn btn-default_bb br10" style="margin-bottom:5px; padding:7px">이용약관 </a></span>
|
||||
<span><a href="/m/rules/privacy" class="btn btn-default br10" style="margin-bottom:5px; padding:7px">개인정보취급방침</a></span>
|
||||
<span><a href="/m/rules/privacy_agreement" class="btn btn-default br10" style="margin-bottom:5px; padding:7px">개인정보수집및이용</a></span>
|
||||
</div>
|
||||
<h3 style="text-align:center;">이용약관</h3>
|
||||
<textarea rows="30" readonly><?=$site_info['service']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
266
application/views/m/search/image.php
Executable file
266
application/views/m/search/image.php
Executable file
@@ -0,0 +1,266 @@
|
||||
<?
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
|
||||
$is_more = 'Y';
|
||||
if ($total_count <= $limit) {
|
||||
$is_more = 'N';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<? include_once "search_header.php" ?>
|
||||
<style>
|
||||
.thumbs {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-content: flex-start;
|
||||
align-items: stretch;
|
||||
/* for demo: */
|
||||
|
||||
|
||||
margin: 10px auto;
|
||||
resize: both;
|
||||
}
|
||||
|
||||
.thumb {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
flex: 1 0 auto;
|
||||
width: auto;
|
||||
height: 120px;
|
||||
/* cosmetics and zoom: */
|
||||
margin: 2px;
|
||||
text-decoration: none;
|
||||
background-color: rgba(0,0,0, 0.50);
|
||||
box-shadow: 0px 0px 0px 0px rgba(0,0,0, 0.0);
|
||||
transition: box-shadow 300ms, transform 400ms, z-index 400ms, background-position 400ms;
|
||||
z-index: 1;
|
||||
}
|
||||
.thumb:hover {
|
||||
/* zoom: */
|
||||
box-shadow: 0px 0px 10px 0px rgba(0,0,0, 0.7);
|
||||
transform: scale(1.2, 1.2);
|
||||
z-index: 100;
|
||||
}
|
||||
.thumb-img > img,
|
||||
.thumb-txt > div {
|
||||
min-width: 60px;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.thumb-img {
|
||||
background-size: cover;
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.thumb-img:hover {
|
||||
animation-name: thumb-scroll;
|
||||
animation-delay: 400ms;
|
||||
animation-duration: 2.5s;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: normal;
|
||||
animation-timing-function: linear;
|
||||
animation-fill-mode: forwards;
|
||||
}
|
||||
.thumb-img > img {
|
||||
display: block;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<div class="news_box">
|
||||
<div class="news_box_title" style="border-bottom:0;">
|
||||
이미지 <span class="search_num"><?= number_format($total_count) ?>건</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="thumbs" class="thumbs">
|
||||
|
||||
</div>
|
||||
<iframe style=" width: 100vw;
|
||||
height: 100vh;
|
||||
position: fixed;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
background-image: url(/img/loading_circle.gif);
|
||||
background-size: auto;
|
||||
z-index: 2147483647;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
background-color: black;
|
||||
display:none;"></iframe>
|
||||
<?include_once ("search_footer_inc.php")?>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
var more_yn = '<?=$is_more?>';
|
||||
$(document).scroll(function () {
|
||||
var maxHeight = $(document).height();
|
||||
var currentScroll = $(window).scrollTop() + $(window).height();
|
||||
if (maxHeight <= (currentScroll + 100)) {
|
||||
console.log(more_yn);
|
||||
if (more_yn == "Y") {
|
||||
get_img_list();
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
var img_list_page = 1;
|
||||
|
||||
function get_img_list() {
|
||||
|
||||
console.log("get_img_list");
|
||||
var form_data = {
|
||||
"page": img_list_page,
|
||||
"search_keyword": "<?=$search_keyword?>"
|
||||
};
|
||||
$.ajax({
|
||||
url: '/m/search/image_list_more',
|
||||
async: false,
|
||||
type: 'POST',
|
||||
dataType: 'HTML',
|
||||
data: form_data,
|
||||
success: function (rtnHtml) {
|
||||
var arrHtml = rtnHtml.split("|||||");
|
||||
if (arrHtml[0].trim() == '0000') {
|
||||
more_yn = arrHtml[2];
|
||||
console.log(more_yn);
|
||||
if (arrHtml[1] != "") {
|
||||
$('.thumbs').append(arrHtml[1]);
|
||||
img_list_page++;
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
alert('데이터 로드에 실패했습니다.');
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
get_img_list();
|
||||
|
||||
$(document).ready(function () {
|
||||
//get_img_list();
|
||||
|
||||
|
||||
$('.smalls').click(function () {
|
||||
var tmp = $(this).parent()
|
||||
if (tmp.attr('class') == 'imms') {
|
||||
$('.imms').removeClass('act');
|
||||
tmp.addClass('act');
|
||||
} else {
|
||||
tmp.removeClass('act');
|
||||
}
|
||||
});
|
||||
$('.omm_a2').click(function () {
|
||||
var tmp = $(this).parent().parent()
|
||||
if (tmp.attr('class') == 'omgg_ul1') {
|
||||
tmp.addClass('act');
|
||||
} else {
|
||||
tmp.removeClass('act');
|
||||
}
|
||||
});
|
||||
$('.omm_c').click(function () {
|
||||
$('.omgg_ul1').removeClass('act');
|
||||
});
|
||||
|
||||
/*
|
||||
$('.ommbtn.omm_next').click(function(){
|
||||
var tmp = $(this).parent()
|
||||
if (tmp.attr('class') == 'image--expand') {
|
||||
$('html, body').animate({scrollTop:$(this).offset().top}, 0);
|
||||
}else{
|
||||
// $('html, body').animate({scrollTop:$(this).offset().top + 140}, 0);
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
});
|
||||
|
||||
var $cell = $('.image__cell');
|
||||
|
||||
function thumb_img_click(t) {
|
||||
var $thisCell = $(t).closest('.image__cell');
|
||||
if ($thisCell.hasClass('is-collapsed')) {
|
||||
$cell.not($thisCell).removeClass('is-expanded').addClass('is-collapsed');
|
||||
$thisCell.removeClass('is-collapsed').addClass('is-expanded');
|
||||
$('html, body').animate({scrollTop: $(t).offset().top}, 300);
|
||||
} else {
|
||||
$thisCell.removeClass('is-collapsed').addClass('is-expanded');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function img_view_change(num) {
|
||||
var $thisCell = $('#img_item' + num).closest('.image__cell');
|
||||
if ($thisCell.hasClass('is-collapsed')) {
|
||||
$cell.not($thisCell).removeClass('is-expanded').addClass('is-collapsed');
|
||||
$thisCell.removeClass('is-collapsed').addClass('is-expanded');
|
||||
$('html, body').animate({scrollTop: $('#img_item' + num).offset().top}, 0);
|
||||
} else {
|
||||
$thisCell.removeClass('is-expanded').addClass('is-collapsed');
|
||||
}
|
||||
}
|
||||
|
||||
function img_view_close(t) {
|
||||
var $thisCell = $(t).closest('.image__cell');
|
||||
$thisCell.removeClass('is-expanded').addClass('is-collapsed');
|
||||
}
|
||||
|
||||
|
||||
$('.ommbtn.omm_next', '.ommbtn.omm_pre').click(function () {
|
||||
var $thisCelle = $(this).closest('.image__cell');
|
||||
// var $this = $(this).closest('.omm_con');
|
||||
|
||||
if ($thisCelle.hasClass('is-collapsed')) {
|
||||
$cell.not($thisCelle).removeClass('is-expanded').addClass('is-collapsed');
|
||||
$thisCelle.removeClass('is-collapsed').addClass('is-expanded');
|
||||
$('html, body').animate({scrollTop: $(this).offset().top}, 300);
|
||||
//return true;
|
||||
|
||||
} else {
|
||||
$thisCelle.removeClass('is-expanded').addClass('is-collapsed');
|
||||
}
|
||||
});
|
||||
|
||||
function show_bigsize(i){
|
||||
$("body").find("iframe").attr("src","/m/search/image_view?data="+i);
|
||||
$("body").find("iframe").show();
|
||||
|
||||
}
|
||||
|
||||
function return_attr(i){
|
||||
$src = $(".thumb_"+i+".src");
|
||||
$href = $(".thumb_"+i+".href");
|
||||
$text = $(".thumb_"+i+".text");
|
||||
|
||||
ret = new Array();
|
||||
$src.each(function(i,v){
|
||||
ret.push({
|
||||
"src" : $src.eq(i).text(),
|
||||
"href" : $href.eq(i).text(),
|
||||
"text" : $text.eq(i).text()
|
||||
});
|
||||
});
|
||||
|
||||
return ret;
|
||||
|
||||
|
||||
}
|
||||
|
||||
function closeIframe(){
|
||||
|
||||
$("body").find("iframe").hide();
|
||||
}
|
||||
</script>
|
||||
120
application/views/m/search/image_list_more.php
Executable file
120
application/views/m/search/image_list_more.php
Executable file
@@ -0,0 +1,120 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
$row_count = count($list);
|
||||
|
||||
if($row_count > 0) {
|
||||
|
||||
$max_rand_num = $limit-1;
|
||||
if($total_count < $limit) $max_rand_num = $total_count-1;
|
||||
if(count($list) < $limit) $max_rand_num = count($list);
|
||||
|
||||
$relation_count = 8;
|
||||
if($total_count < 8) $relation_count = $total_count-1;
|
||||
$row = 1;
|
||||
if($page > 1) $row = $view_count +1;
|
||||
foreach($list as $i=>$val) {
|
||||
$idx =$val['idx'];
|
||||
$main_img =$val['main_img'];
|
||||
|
||||
$info = getimagesize('.'.$main_img);
|
||||
$img_width = $info[0];
|
||||
$img_height = $info[1];
|
||||
$img_mime = $info[2];
|
||||
|
||||
|
||||
|
||||
|
||||
$title_text = $val['title'];
|
||||
if(isset($val['category_name'])==true) $title_text.= ' - '.$val['category_name'];
|
||||
|
||||
$img_type = array('1'=>'GIF', '2'=>'JPG','3'=>'PNG','4'=>'PSD','5'=>'BMP','6'=>'TIFF','7'=>'TIFF','8'=>'JPC','9'=>'JP2','10'=>'JPX','11'=>'JB2','12'=>'SWC','13'=>'IFF','14'=>'WBMP','15'=>'XBM');
|
||||
|
||||
|
||||
switch ($val['content_type']) {
|
||||
case '1': $img_view_url = '/m/news/news_view/'.$val['idx']; $content_name='뉴스'; $content_main_url='/web/news'; break;
|
||||
case '2': $img_view_url = '/m/news/column_view/'.$val['idx']; $content_name='칼럼'; $content_main_url='/web/news/column'; break;
|
||||
case '3': $img_view_url = '/m/life/life_view/'.$val['idx']; $content_name='라이프'; $content_main_url='/web/life'; break;
|
||||
}
|
||||
|
||||
|
||||
// $req_data = array();
|
||||
// $req_data['search_type'] = 'main_search';
|
||||
// $req_data['search_keyword'] = $search_keyword_tmp;
|
||||
// $req_data['row_num'] = $val['row_num'];
|
||||
//
|
||||
// $this->load->model('web/m_vw_content');
|
||||
// $arr_next = $this->m_vw_content->vw_content_next_select($req_data);
|
||||
// $arr_prev = $this->m_vw_content->vw_content_prev_select($req_data);
|
||||
|
||||
|
||||
|
||||
// $req_data = array();
|
||||
// $req_data['search_type'] = 'main_search';
|
||||
// $req_data['search_keyword'] = $search_keyword_tmp;
|
||||
// $req_data['offset'] = 0;
|
||||
// $req_data['limit'] = 8;
|
||||
// $req_data['idx'] = $idx;
|
||||
// $this->load->model('web/m_vw_content');
|
||||
// $arr_relation_img = $this->m_vw_content->vw_content_where_not_idx_list($req_data);
|
||||
|
||||
|
||||
|
||||
|
||||
$cnt = ($page-1) * 100 + $i;
|
||||
// $arr = array();
|
||||
// $arr[] = array("src"=>$main_img,"href"=>$img_view_url,"text"=>$title_text);
|
||||
echo "<div style='display:none;' class='thumb_".$cnt." src'>".$main_img."</div>";
|
||||
echo "<div style='display:none;' class='thumb_".$cnt." href'>".$img_view_url."</div>";
|
||||
echo "<div style='display:none;' class='thumb_".$cnt." text'>".$title_text."</div>";
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<a href="#somelink" class="thumb thumb-img" style="background-image: url(<?=$main_img?>)" onclick="show_bigsize(<?=$cnt?>)">
|
||||
<img src="<?=$main_img?>" title="<?=$title_text?>" alt="<?=$title_text?>">
|
||||
|
||||
|
||||
<?
|
||||
for ($z=0;$z<$relation_count;$z++) {
|
||||
$key = rand(0, $max_rand_num);
|
||||
if(isset($list[$key]) == true) {
|
||||
|
||||
|
||||
$val2 = $list[$key];
|
||||
switch ($val2['content_type']) {
|
||||
case '1': $img_view_url2 = '/m/news/news_view/'.$val2['idx']; break;
|
||||
case '2': $img_view_url2 = '/m/news/column_view/'.$val2['idx']; break;
|
||||
case '3': $img_view_url2 = '/m/life/life_view/'.$val2['idx']; break;
|
||||
}
|
||||
$alt_text2 = $val2['title'];
|
||||
if(isset($val2['category_name'])==true) $alt_text2.= ' - '.$val2['category_name'];
|
||||
|
||||
echo "<div style='display:none;' class='thumb_".$cnt." src' id=\"thumb_".$cnt."\">".$val2['main_img']."</div>";
|
||||
echo "<div style='display:none;' class='thumb_".$cnt." href'>".$img_view_url2."</div>";
|
||||
echo "<div style='display:none;' class='thumb_".$cnt." text'>".$alt_text2."</div>";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
<?
|
||||
$row++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo '|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||이미지 가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
92
application/views/m/search/image_list_test.php
Executable file
92
application/views/m/search/image_list_test.php
Executable file
@@ -0,0 +1,92 @@
|
||||
<?
|
||||
if($result_code == '0000') {
|
||||
echo '0000|||||';
|
||||
$row_count = count($list);
|
||||
|
||||
if($row_count > 0) {
|
||||
|
||||
$max_rand_num = $limit-1;
|
||||
if($total_count < $limit) $max_rand_num = $total_count-1;
|
||||
|
||||
$relation_count = 8;
|
||||
if($total_count < 8) $relation_count = $total_count;
|
||||
foreach($list as $val) {
|
||||
$idx =$val['idx'];
|
||||
$main_img =$val['main_img'];
|
||||
|
||||
// $info = getimagesize(WWW_CROSSMAP.$main_img);
|
||||
// $img_width = $info[0];
|
||||
// $img_height = $info[1];
|
||||
// $img_mime = $info[2];
|
||||
|
||||
$title_text = $val['title'];
|
||||
if($val['category_name']!='') $title_text.= ' - '.$val['category_name'];
|
||||
|
||||
//$img_type = array('1'=>'GIF', '2'=>'JPG','3'=>'PNG','4'=>'PSD','5'=>'BMP','6'=>'TIFF','7'=>'TIFF','8'=>'JPC','9'=>'JP2','10'=>'JPX','11'=>'JB2','12'=>'SWC','13'=>'IFF','14'=>'WBMP','15'=>'XBM');
|
||||
|
||||
|
||||
switch ($val['content_type']) {
|
||||
case '1': $img_view_url = '/web/news/news_view/'.$val['idx']; $content_name='뉴스'; $content_main_url='/web/news'; break;
|
||||
case '2': $img_view_url = '/web/news/column_view/'.$val['idx']; $content_name='칼럼'; $content_main_url='/web/news/column'; break;
|
||||
case '3': $img_view_url = '/m/life/life_view/'.$val['idx']; $content_name='라이프'; $content_main_url='/web/life'; break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<a href="javascript:;" title="<?=$title_text?>" class="baimg" onclick="thumb_img_click(this)">
|
||||
<span class="photo_infos"><?=$img_width?>x<?=$img_height?> - <?=WWW_CROSSMAP?><?=$img_view_url?></span>
|
||||
<img id="expand-jump-<?=$idx?>" class="basic__img" src="<?=$main_img?>" alt="<?=$title_text?>" />
|
||||
</a>
|
||||
|
||||
|
||||
<a href="javascript:;" class="expand__close" onclick="img_view_close(this)"></a>
|
||||
<a href="javascript:img_view_change('<?=$val['row_num']+1?>');" title="다음이미지" class="ommbtn omm_next">></a>
|
||||
<a href="javascript:img_view_change('<?=$val['row_num']-1?>');" title="이전이미지" class="ommbtn omm_pre"><</a>
|
||||
<div class="omm_con">
|
||||
<div class="omgg_left"><a href="<?=$img_view_url?>" title="<?=$title_text?>"><img class="image--large" src="<?=$main_img?>" alt="<?=$title_text?>" /></a></div>
|
||||
<div class="omgg_right">
|
||||
<ul class="omgg_ul1">
|
||||
<li class="omm_tit"><a href="<?=$img_view_url?>"><?=$val['title']?></a></li>
|
||||
<li class="omm_txt"><strong><?=$content_name?></strong><?=$img_width?>x<?=$img_height?><span>|</span><?=$img_type[$img_mime]?><span>
|
||||
</ul>
|
||||
<div class="omm_imm_list">
|
||||
<ul>
|
||||
<? for ($z=0;$z<$relation_count;$z++) {
|
||||
$key = rand(0, $max_rand_num);
|
||||
$val2 = $list[$key];
|
||||
switch ($val2['content_type']) {
|
||||
case '1': $img_view_url2 = '/web/news/news_view/'.$val2['idx']; break;
|
||||
case '2': $img_view_url2 = '/web/news/column_view/'.$val2['idx']; break;
|
||||
case '3': $img_view_url2 = '/m/life/life_view/'.$val2['idx']; break;
|
||||
}
|
||||
$alt_text2 = $val2['title'];
|
||||
if($val2['category_name']!='') $alt_text2.= ' - '.$val2['category_name'];
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<li class="imms"><a href="<?=$img_view_url2?>"><img src="<?=$val2['main_img']?>" class="smalls" title="<?=$alt_text2?>"></a></li>
|
||||
|
||||
<? }?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo '|||||'.$more_list;
|
||||
|
||||
} else {
|
||||
echo $result_code.'|||||이미지 가져오기에 실패했습니다.';
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
111
application/views/m/search/image_view.php
Executable file
111
application/views/m/search/image_view.php
Executable file
@@ -0,0 +1,111 @@
|
||||
<?
|
||||
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
|
||||
<title>Crossmap</title>
|
||||
<link rel="stylesheet" href="/css/m/swiper.min.css">
|
||||
<link rel="stylesheet" href="/css/m/xeicon.min.css">
|
||||
<link rel="stylesheet" href="/css/m/img_style.css">
|
||||
</head>
|
||||
|
||||
<body id="photo" class="photos">
|
||||
<a href="javascript:dd()" class="ph_back"><i class="xi-long-arrow-left"></i></a>
|
||||
<!-- Swiper -->
|
||||
<div class="swiper-container gallery-top">
|
||||
<div class="swiper-wrapper" id="main">
|
||||
|
||||
</div>
|
||||
<!-- Add Arrows -->
|
||||
<div class="swiper-button-next swiper-button-white"></div>
|
||||
<div class="swiper-button-prev swiper-button-white"></div>
|
||||
</div>
|
||||
<div class="swiper-container gallery-thumbs">
|
||||
<div class="swiper-wrapper" id="sub">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/m/jquery-1.11.3.min.js"></script>
|
||||
<script src="/js/m/swipers.js"></script>
|
||||
<script>
|
||||
|
||||
|
||||
function dd(){
|
||||
parent.closeIframe();
|
||||
}
|
||||
|
||||
arr = parent.return_attr(<?=($_GET['data'])?>);
|
||||
|
||||
|
||||
|
||||
txt ='';
|
||||
txt2 = '';
|
||||
for(i=0;i<arr.length;i++){
|
||||
txt += '<div class="swiper-slide" style="background-image: url('+arr[i].src+'); background-size:contain;background-repeat:no-repeat;">\n' +
|
||||
'\t\t\t<div class="sw_tit">\n' +
|
||||
'\t\t\t\t<ul>\n' +
|
||||
'\t\t\t\t\t<li onclick="parent.window.location=\''+arr[i].href+'\'" style="cursor:pointer">'+arr[i].text+'</li>\n' +
|
||||
'\t\t\t\t</ul>\n' +
|
||||
'\t\t\t\t<div class="swbtn1"><a href="#">연관</a></div>\n' +
|
||||
'\t\t\t\t<div class="swbtn2"><a href="#"><i class="xi-ellipsis-v"></i></a></div>\n' +
|
||||
'\t\t\t</div>\n' +
|
||||
'\t\t\t<div class="sw_set">\n' +
|
||||
'\t\t\t\t<ul>\n' +
|
||||
'\t\t\t\t\t<li class="upbt"><a href="#"><i class="xi-upload"></i></a></li>\n' +
|
||||
'\t\t\t\t\t<li><a href="#"><i class="xi-overscan"></i></a></li>\n' +
|
||||
'\t\t\t\t\t<li><a href="#"><i class="xi-close"></i></a></li>\n' +
|
||||
'\t\t\t\t</ul>\n' +
|
||||
'\t\t\t</div>\n' +
|
||||
'\t\t</div>\n' +
|
||||
'\t\t';
|
||||
|
||||
txt2 +='<div class="swiper-slide" style="cursor:pointer;background-image: url('+arr[i].src+')"></div>\';';
|
||||
|
||||
}
|
||||
|
||||
$("#main").append(txt);
|
||||
$("#sub").append(txt2);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var galleryTop = new Swiper('.gallery-top', {
|
||||
spaceBetween: 10,
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
});
|
||||
var galleryThumbs = new Swiper('.gallery-thumbs', {
|
||||
spaceBetween: 10,
|
||||
centeredSlides: true,
|
||||
slidesPerView: 'auto',
|
||||
touchRatio: 0.2,
|
||||
slideToClickedSlide: true,
|
||||
});
|
||||
galleryTop.controller.control = galleryThumbs;
|
||||
galleryThumbs.controller.control = galleryTop;
|
||||
|
||||
</script>
|
||||
<script>
|
||||
var mySwiper ;
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.swbtn1').click(function(){
|
||||
|
||||
$("body").toggleClass('active');
|
||||
});
|
||||
|
||||
$('.swbtn2').click(function(){
|
||||
|
||||
$("div#main").toggleClass('set');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
491
application/views/m/search/index.php
Executable file
491
application/views/m/search/index.php
Executable file
@@ -0,0 +1,491 @@
|
||||
<?
|
||||
$SES_MEMBER_ID = $this->session->userdata('C_Member_Id');
|
||||
$title = '';
|
||||
$content = '';
|
||||
$main_img = '';
|
||||
|
||||
$arr_search_keyword = array();
|
||||
if($search_keyword!=''){
|
||||
$arr_search_keyword = explode(" ", $search_keyword);
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<?include_once "search_header.php"?>
|
||||
|
||||
<? if($total_count == 0) { ?>
|
||||
<div class="news_nothing">
|
||||
<div class="t_nothing"><span class="beachblue"><?=$search_keyword?></span> 에 대한 검색결과가 없습니다.</div>
|
||||
<ul>
|
||||
<li>단어의 철자가 정확한지 확인해 보세요.</li>
|
||||
<li>한글을 영어로 혹은 영어를 한글로 입력했는지 확인해보세요.</li>
|
||||
<li>검색어의 단어 수를 줄이거나, 보다 일반적인 검색어로 다시 검색해보세요.</li>
|
||||
<li>두 단어 이상의 검색어인 경우, 띄어쓰기를 확인해 보세요.</li>
|
||||
<li>검색 옵션을 변경해서 다시 검색해 보세요.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<? } ?>
|
||||
|
||||
|
||||
<? if(count($arr_search_keyword_relation) > 0) {?>
|
||||
<!-- <div class="relative">
|
||||
<span class="r_left"><span class="r_title">연관</span>
|
||||
<? foreach($arr_search_keyword_relation as $val) {?>
|
||||
<a href="/m/search/?search_keyword=<?=$val['relation_keyword']?>"><?=$val['relation_keyword']?></a>
|
||||
<? }?>
|
||||
</span>
|
||||
</div> -->
|
||||
|
||||
|
||||
<? }?>
|
||||
|
||||
|
||||
<? if(count($arr_life) > 0) {?>
|
||||
<div class="news_cont2">
|
||||
<div class="news_box">
|
||||
<div class="news_box_title">
|
||||
라이프
|
||||
</div>
|
||||
<? $i=1;
|
||||
foreach ($arr_life as $key=>$val) {
|
||||
$title = $val['title'];
|
||||
$content = strip_tags($val['content']);
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '60', '..', 'utf-8');
|
||||
$content_txt = mb_strimwidth($content, '0', '180', '..', 'utf-8');
|
||||
|
||||
foreach($arr_search_keyword as $val3) {
|
||||
$title_txt = str_replace($val3, '<b>'.$val3.'</b>', $title_txt);
|
||||
$content_txt = str_replace($val3, '<b>'.$val3.'</b>', $content_txt);
|
||||
}
|
||||
|
||||
$display_date_txt = gf_article_date_text($val['display_date']);
|
||||
|
||||
$share_title = str_replace("'", "\\'", $val['title']);
|
||||
$share_title = str_replace('"', '\\"', $share_title);
|
||||
$share_content = mb_strimwidth($content, '0', '250', '..', 'utf-8');
|
||||
$share_content = htmlspecialchars($share_content);
|
||||
$share_content = str_replace("'", "\\'", $share_content);
|
||||
$share_content = str_replace('”', '"', $share_content);
|
||||
|
||||
$main_img = $val['main_img'];
|
||||
|
||||
$life_class = '';
|
||||
if($i==count($arr_life)) {
|
||||
$life_class=' bb pdb20';
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<div class="news_box_con search_wrap<?=$life_class?>">
|
||||
<input type="hidden" name="content_life_<?=$val['idx']?>" id="content_life_<?=$val['idx']?>" value="<?=$share_content?>">
|
||||
<input type="hidden" name="title_life_<?=$val['idx']?>" id="title_life_<?=$val['idx']?>" value="<?=$share_title?>">
|
||||
<input type="hidden" name="copy_url_life_<?=$val['idx']?>" id="copy_url_life_<?=$val['idx']?>" value="<?=WWW_CROSSMAP_M?>/life/life_view/<?=$val['idx']?>">
|
||||
<input type="hidden" name="img_url_life_<?=$val['idx']?>" id="img_url_life_<?=$val['idx']?>" value="<?=WWW_CROSSMAP_M?><?=$main_img?>">
|
||||
<h2><a href="/m/life/life_view/<?=$val['idx']?>"><?=$title_txt?></a></h2>
|
||||
<div class="news_box_con_left">
|
||||
<div><?=$content_txt?></div>
|
||||
</div>
|
||||
<div class="news_box_detail" style="padding-top: 35px;">
|
||||
<span class="profile"><a href="/m/life/editor/<?=$val['partner_idx']?>"><img style="padding-right:3px; max-width:21px;max-height:21px; vertical-align:middle;" src="<?=$val['partner_img']?>"><?=$val['editor_name']?></a></span>
|
||||
<!-- <span><img src="/img/mobile/search_bar.gif"></span> -->
|
||||
<span>|</span>
|
||||
<span><?=$display_date_txt?></span>
|
||||
<span>|</span>
|
||||
<span><img src="/img/mobile/img_heart.gif" style="padding:0 3px; vertical-align:middle;"><?=number_format($val['like_count'])?></span>
|
||||
<span>|</span>
|
||||
<span><img src="/img/mobile/img_comment.gif" style="padding:0 3px; vertical-align:middle;"><?=number_format($val['comment_count'])?></span>
|
||||
</div>
|
||||
<div class="news_box_con_right">
|
||||
<a href="/m/life/life_view/<?=$val['idx']?>"><img src="<?=$main_img?>"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<? if($i==count($arr_life)) {?>
|
||||
|
||||
<div class="news_box_more">
|
||||
<a href="/m/search/list?search_keyword=<?=$search_keyword?>&content_type=3">더보기 <img src="/img/mobile/arrow_more.gif"></a>
|
||||
</div>
|
||||
<? }?>
|
||||
</div>
|
||||
</div>
|
||||
<? $i++;
|
||||
}?>
|
||||
|
||||
<? }?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<? if(count($arr_news) > 0) {?>
|
||||
<div class="news_box">
|
||||
<div class="news_box_title">
|
||||
뉴스
|
||||
|
||||
</div>
|
||||
|
||||
<? $i=1;
|
||||
foreach ($arr_news as $key=>$val) {
|
||||
$news_class = '';
|
||||
if($i==count($arr_news)) {
|
||||
$news_class='bb pdb20';
|
||||
}
|
||||
|
||||
$title = $val['title'];
|
||||
$content = strip_tags($val['content']);
|
||||
$title_txt = mb_strimwidth($title, '0', '60', '..', 'utf-8');
|
||||
$content_txt = mb_strimwidth($content, '0', '180', '..', 'utf-8');
|
||||
foreach($arr_search_keyword as $val3) {
|
||||
$title_txt = str_replace($val3, '<b>'.$val3.'</b>', $title_txt);
|
||||
$content_txt = str_replace($val3, '<b>'.$val3.'</b>', $content_txt);
|
||||
}
|
||||
|
||||
|
||||
$share_title = str_replace("'", "\\'", $val['title']);
|
||||
$share_title = str_replace('"', '\\"', $share_title);
|
||||
$share_content = mb_strimwidth($content, '0', '250', '..', 'utf-8');
|
||||
$share_content = htmlspecialchars($share_content);
|
||||
$share_content = str_replace("'", "\\'", $share_content);
|
||||
$share_content = str_replace('”', '"', $share_content);
|
||||
|
||||
$press_txt = $val['press_name'];
|
||||
if($val['press_homepage']!='') {
|
||||
$press_txt = '<a href="'.$val['press_homepage'].'" target="_blank">'.$val['press_name'].'</a>';
|
||||
}
|
||||
$display_date_txt = gf_article_date_text($val['display_date']);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<div class="news_box_con search_wrap <?=$news_class?>">
|
||||
<input type="hidden" name="content_news_<?=$val['idx']?>" id="content_news_<?=$val['idx']?>" value="<?=$share_content?>">
|
||||
<input type="hidden" name="title_news_<?=$val['idx']?>" id="title_news_<?=$val['idx']?>" value="<?=$share_title?>">
|
||||
<input type="hidden" name="copy_url_news_<?=$val['idx']?>" id="copy_url_news_<?=$val['idx']?>" value="<?=WWW_CROSSMAP_M?>/web/news/news_view/<?=$val['idx']?>">
|
||||
<input type="hidden" name="img_url_news_<?=$val['idx']?>" id="img_url_news_<?=$val['idx']?>" value="<?=WWW_CROSSMAP_M?><?=$main_img?>">
|
||||
|
||||
<h2><a href="/m/news/news_view/<?=$val['idx']?>"><?=$title_txt?></a></h2>
|
||||
<div class="news_box_con_left">
|
||||
<div><?=$content_txt?></div>
|
||||
</div>
|
||||
<div class="news_box_detail2" style="padding-top:5px;">
|
||||
<span><?=$press_txt?></span>
|
||||
<span>|</span>
|
||||
<span><?=$display_date_txt?></span>
|
||||
<span>|</span>
|
||||
<span><a href="/web/news/news_view/<?=$val['idx']?>">크로스맵뉴스</a></span>
|
||||
</div>
|
||||
<div class="news_box_con_right">
|
||||
<a href="/web/news/news_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>"></a>
|
||||
</div>
|
||||
<?
|
||||
if(isset($arr_news_relation_article[$val['idx']])==true) {
|
||||
if(count($arr_news_relation_article[$val['idx']]) > 0 ) {?>
|
||||
<div class="relatednews">
|
||||
<? $i=1;
|
||||
foreach ($arr_news_relation_article[$val['idx']] as $key1=>$val1) {
|
||||
|
||||
$relation_title_txt = mb_strimwidth($val1['title'], '0', '53', '..', 'utf-8');
|
||||
$press_txt = $val1['press_name'];
|
||||
if($val1['press_homepage']!='') {
|
||||
$press_txt = '<a href="'.$val1['press_homepage'].'" target="_blank">'.$val1['press_name'].'</a>';
|
||||
}
|
||||
|
||||
$display_date_txt = gf_article_date_text($val1['display_date']);
|
||||
?>
|
||||
|
||||
<div class="relatednews_box">
|
||||
<span class="relatednews_tit"><img src="/img/web/search_reply.gif" style="vertical-align:middle;"> <a href="/m/news/news_view/<?=$val1['idx']?>"><?=$relation_title_txt?></a></span>
|
||||
<span class="relatednews_info news_box_detail2">
|
||||
<span><?=$press_txt?></span>
|
||||
<span style="color:#c2c2c2;">|</span>
|
||||
<span><?=$display_date_txt?></span>
|
||||
<span style="color:#c2c2c2;">|</span>
|
||||
<span><a href="/m/news/news_view/<?=$val1['idx']?>">크로스맵뉴스</a></span>
|
||||
</span>
|
||||
</div>
|
||||
<?
|
||||
if($i==4) break;
|
||||
$i++;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="fr beachblue" style="margin-top: 5px;">
|
||||
<a href="/m/search/news?search_keyword=<?=$search_keyword?>&content_idx=<?=$val['idx']?>" >관련뉴스 <?=count($arr_news_relation_article[$val['idx']])?>건 전체보기></a>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="news_box_more"><a href="/m/search/news?search_keyword=<?=$search_keyword?>&content_type=1">
|
||||
더보기 <img src="/img/mobile/arrow_more.gif">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?
|
||||
}?>
|
||||
|
||||
<? if(count($arr_img) > 0) {?>
|
||||
|
||||
<div class="news_box">
|
||||
<div class="news_box_title" style="border-bottom:0;">
|
||||
이미지
|
||||
</div>
|
||||
<div class="news_box_con" style="padding:0; border-bottom:0; border-top:0">
|
||||
<div class="container">
|
||||
<? foreach ($arr_img as $key=>$val) {
|
||||
$title_text = $val['title'];
|
||||
if($val['category_name']!='') $title_text.= ' - '.$val['category_name'];
|
||||
|
||||
|
||||
|
||||
switch ($val['content_type']) {
|
||||
case '1': $img_view_url = '/m/news/news_view/'.$val['idx']; break;
|
||||
case '2': $img_view_url = '/m/news/column_view/'.$val['idx']; break;
|
||||
case '3': $img_view_url = '/m/life/life_view/'.$val['idx']; break;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="item">
|
||||
<!-- <a href="--><?//=$img_view_url?><!--">-->
|
||||
<img src='<?=$val['main_img']?>' title="<?=$title_text?>">
|
||||
<!-- </a>-->
|
||||
</div>
|
||||
|
||||
<? if($key == 4) break;
|
||||
}?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_box_more">
|
||||
<a href="/m/search/image?search_keyword=<?=$search_keyword?>">
|
||||
더보기 <img src="/img/mobile/arrow_more.gif">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?}?>
|
||||
<? if(count($arr_video) > 0) {?>
|
||||
<div class="news_box">
|
||||
<div class="news_box_title">
|
||||
동영상
|
||||
</div>
|
||||
<div class="news_box_con">
|
||||
<div class="news_video">
|
||||
<div class="swiper-container swiper-02">
|
||||
<div class="swiper-wrapper">
|
||||
<? foreach ($arr_video as $key=>$val) {
|
||||
$title_txt = mb_strimwidth($val['title'], '0', '28', '..', 'utf-8');
|
||||
switch ($val['content_type']) {
|
||||
case '1': $video_view_url = '/m/news/news_view/'.$val['idx'];
|
||||
// $video_category_url = '/m/news/category/'.$val['category_code'];
|
||||
break;
|
||||
case '2': $video_view_url = '/m/news/column_view/'.$val['idx'];
|
||||
$video_category_url = '/m/news/columnist/'.$val['partner_idx'];
|
||||
break;
|
||||
case '3': $video_view_url = '/m/life/life_view/'.$val['idx'];
|
||||
// $video_category_url = '/m/life/category/'.$val['category_idx'];
|
||||
break;
|
||||
}
|
||||
|
||||
$display_date_txt = gf_article_date_text($val['display_date']);
|
||||
?>
|
||||
|
||||
<div class="swiper-slide">
|
||||
<div class="channel_con">
|
||||
<div class="play_box">
|
||||
<a href="<?=$video_view_url?>"><img src="<?=$val['main_img']?>" class="art-img" style="max-height:80px;max-width:150px"></a>
|
||||
<span class="play"><a href="<?=$video_view_url?>"><img src="/img/mobile/img_play.png"></a></span>
|
||||
<span class="play_time"><?=$val['video_playtime']?></span>
|
||||
</div>
|
||||
<p class="chtitle"><a href="<?=$video_view_url?>"><span class="beachblue">[<?=$val['category_name']?>]</span> <?=$title_txt?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
<? }?>
|
||||
</div>
|
||||
<!-- Add Scrollbar -->
|
||||
<div class="swiper-scrollbar"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_box_more"><a href="/m/search/video?search_keyword=<?=$search_keyword?>">
|
||||
더보기 <img src="/img/mobile/arrow_more.gif">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? }?>
|
||||
|
||||
|
||||
|
||||
<? if(count($arr_column) > 0) {?>
|
||||
<div class="news_box">
|
||||
<div class="news_box_title">
|
||||
칼럼
|
||||
</div>
|
||||
<?
|
||||
$i=1;
|
||||
foreach ($arr_column as $val) {
|
||||
$column_class = '';
|
||||
if($i==count($arr_column)) {
|
||||
$column_class=' bb pdb20';
|
||||
}
|
||||
|
||||
$title = '['.$val['column_name'].'] '.$val['title'];
|
||||
$content = strip_tags($val['content']);
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '60', '..', 'utf-8');
|
||||
$content_txt = mb_strimwidth($content, '0', '180', '..', 'utf-8');
|
||||
|
||||
foreach($arr_search_keyword as $val3) {
|
||||
$title_txt = str_replace($val3, '<b>'.$val3.'</b>', $title_txt);
|
||||
$content_txt = str_replace($val3, '<b>'.$val3.'</b>', $content_txt);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$display_date_txt = gf_article_date_text($val['display_date']);
|
||||
|
||||
$share_title = str_replace("'", "\\'", $val['title']);
|
||||
$share_title = str_replace('"', '\\"', $share_title);
|
||||
|
||||
$share_content = mb_strimwidth($content, '0', '250', '..', 'utf-8');
|
||||
$share_content = htmlspecialchars($share_content);
|
||||
$share_content = str_replace("'", "\\'", $share_content);
|
||||
$share_content = str_replace('”', '"', $share_content);
|
||||
|
||||
$main_img = $val['main_img'];
|
||||
|
||||
?>
|
||||
<div class="news_box_con search_wrap<?=$column_class?>">
|
||||
<input type="hidden" name="content_column_<?=$val['idx']?>" id="content_column_<?=$val['idx']?>" value="<?=$share_content?>">
|
||||
<input type="hidden" name="title_column_<?=$val['idx']?>" id="title_column_<?=$val['idx']?>" value="<?=$share_title?>">
|
||||
<input type="hidden" name="copy_url_column_<?=$val['idx']?>" id="copy_url_column_<?=$val['idx']?>" value="<?=WWW_CROSSMAP_M?>/web/news/column_view/<?=$val['idx']?>">
|
||||
<input type="hidden" name="img_url_column_<?=$val['idx']?>" id="img_url_column_<?=$val['idx']?>" value="<?=WWW_CROSSMAP_M?><?=$main_img?>">
|
||||
<h2><a href=/m/news/column_view/<?=$val['idx']?>""><?=$title_txt?></a><span class="n_date"><?=$display_date_txt?></span></h2>
|
||||
<div class="news_box_con_left">
|
||||
<div><?=$content_txt?></div>
|
||||
</div>
|
||||
<div class="news_box_con_right">
|
||||
<a href="/m/news/column_view/<?=$val['idx']?>"><img src="<?=$val['main_img']?>"></a>
|
||||
</div>
|
||||
<div class="news_box_detail">
|
||||
<span class="beachblue"><a href="/m/news/column_view/<?=$val['idx']?>"><?=WWW_CROSSMAP_M?>/m/news/column_view/<?=$val['idx']?></a></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? if($i==count($arr_column)) {?>
|
||||
|
||||
<div class="news_box_more">
|
||||
<a href="/m/search/list?search_keyword=<?=$search_keyword?>&content_type=2">
|
||||
더보기 <img src="/img/mobile/arrow_more.gif">
|
||||
</a>
|
||||
</div>
|
||||
<? }?>
|
||||
</div>
|
||||
<? $i++;
|
||||
}?>
|
||||
|
||||
<?}?>
|
||||
|
||||
<? require_once(APPPATH."views/m/search/search_footer_inc.php"); ?>
|
||||
|
||||
|
||||
<?include_once ("search_footer_inc.php")?>
|
||||
<script>
|
||||
var swiper = new Swiper('.swiper-01', {
|
||||
spaceBetween: 5,
|
||||
slidesPerView: 'auto',
|
||||
scrollbar: {
|
||||
el: '.swiper-scrollbar',
|
||||
hide: true,
|
||||
},
|
||||
});
|
||||
var swiper = new Swiper('.swiper-02', {
|
||||
spaceBetween: 5,
|
||||
slidesPerView: 'auto',
|
||||
scrollbar: {
|
||||
el: '.swiper-scrollbar',
|
||||
hide: true,
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
// document.addEventListener('DOMContentLoaded', function () {
|
||||
// new SmartPhoto(".js-smartPhoto");
|
||||
// new SmartPhoto(".js-smartPhoto-hide", {
|
||||
// arrows: false,
|
||||
// nav: false
|
||||
// });
|
||||
// new SmartPhoto(".js-smartPhoto-fit", {
|
||||
// resizeStyle: 'fit'
|
||||
// });
|
||||
// });
|
||||
</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var options = {minMargin: 5, maxMargin: 15, itemSelector: ".item", firstItemClass: "first-item"};
|
||||
$(".container").rowGrid(options);
|
||||
});
|
||||
|
||||
jQuery(function($){
|
||||
'use strict';
|
||||
|
||||
setTimeout(function () {
|
||||
var $frame = $('#basic1');
|
||||
var $slidee = $frame.children('ul').eq(0);
|
||||
// Call Sly on frame
|
||||
$frame.sly({
|
||||
horizontal: 1,
|
||||
itemNav: 'basic',
|
||||
smart: 1,
|
||||
activateOn: 'click',
|
||||
mouseDragging: 1,
|
||||
touchDragging: 1,
|
||||
releaseSwing: 1,
|
||||
startAt: 0, // 탭설정
|
||||
scrollBy: 4,
|
||||
activatePageOn: 'click',
|
||||
speed: 300,
|
||||
elasticBounds: 1,
|
||||
easing: 'easeOutExpo',
|
||||
dragHandle: 1,
|
||||
dynamicHandle: 1,
|
||||
clickBar: 1
|
||||
});
|
||||
}(), 0);
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
119
application/views/m/search/list.php
Executable file
119
application/views/m/search/list.php
Executable file
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
$arr_search_keyword = array();
|
||||
if($search_keyword!=''){
|
||||
$arr_search_keyword = explode(" ", $search_keyword);
|
||||
}
|
||||
|
||||
?>
|
||||
<? require_once(APPPATH."views/m/search/search_header.php"); ?>
|
||||
|
||||
|
||||
<? if($total_count == 0) { ?>
|
||||
<div class="news_nothing">
|
||||
<div class="t_nothing"><span class="beachblue"><?=$search_keyword?></span> 에 대한 검색결과가 없습니다.</div>
|
||||
<ul>
|
||||
<li>단어의 철자가 정확한지 확인해 보세요.</li>
|
||||
<li>한글을 영어로 혹은 영어를 한글로 입력했는지 확인해보세요.</li>
|
||||
<li>검색어의 단어 수를 줄이거나, 보다 일반적인 검색어로 다시 검색해보세요.</li>
|
||||
<li>두 단어 이상의 검색어인 경우, 띄어쓰기를 확인해 보세요.</li>
|
||||
<li>검색 옵션을 변경해서 다시 검색해 보세요.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<? } ?>
|
||||
|
||||
<div class="news_cont2">
|
||||
<div class="news_box">
|
||||
<div class="news_box_title">
|
||||
<?=$page_title?> <span class="info"><span><?=number_format($start_row)?>-<?=number_format($end_row)?></span> | <span><?=number_format($total_count)?>건</span></span>
|
||||
</div>
|
||||
<? $i=1;
|
||||
foreach ($list as $key=>$val) {
|
||||
|
||||
// var_dump($list);exit();
|
||||
if($content_type == '2') {
|
||||
$title = '['.$val['column_name'].'] '.$val['title'];
|
||||
} else {
|
||||
$title = $val['title'];
|
||||
}
|
||||
$content = strip_tags($val['content']);
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '60', '..', 'utf-8');
|
||||
$content_txt = mb_strimwidth($content, '0', '180', '..', 'utf-8');
|
||||
|
||||
foreach($arr_search_keyword as $val3) {
|
||||
$title_txt = str_replace($val3, '<b>'.$val3.'</b>', $title_txt);
|
||||
$content_txt = str_replace($val3, '<b>'.$val3.'</b>', $content_txt);
|
||||
}
|
||||
|
||||
$display_date_txt = gf_article_date_text($val['display_date']);
|
||||
|
||||
$share_title = str_replace("'", "\\'", $val['title']);
|
||||
$share_title = str_replace('"', '\\"', $share_title);
|
||||
$share_content = mb_strimwidth($content, '0', '200', '..', 'utf-8');
|
||||
$share_content = htmlspecialchars($share_content);
|
||||
$share_content = str_replace("'", "\\'", $share_content);
|
||||
$share_content = str_replace('”', '"', $share_content);
|
||||
|
||||
$main_img = $val['main_img'];
|
||||
if($content_type == '2') {
|
||||
$view_url = '/m/news/column_view/'.$val['idx'];
|
||||
$share_id_name ="column_".$val['idx'];
|
||||
} else if($content_type == '3') {
|
||||
$view_url = '/m/life/life_view/'.$val['idx'];
|
||||
$share_id_name ="life_".$val['idx'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="news_box_con">
|
||||
<input type="hidden" name="content_<?=$share_id_name?>" id="content_<?=$share_id_name?>" value="<?=$share_content?>">
|
||||
<input type="hidden" name="title_<?=$share_id_name?>" id="title_<?=$share_id_name?>" value="<?=$share_title?>">
|
||||
<input type="hidden" name="copy_url_<?=$share_id_name?>" id="copy_url_<?=$share_id_name?>" value="<?=WWW_CROSSMAP?><?=$view_url?>">
|
||||
<input type="hidden" name="img_url_l<?=$share_id_name?>" id="img_url_<?=$share_id_name?>" value="<?=WWW_CROSSMAP?><?=$main_img?>">
|
||||
<h2 class="search_tit"><a href="<?=$view_url?>"><?=$title_txt?></a><? if($content_type!='1') { ?><span class="n_date"><?=$display_date_txt?><?}?></h2>
|
||||
<div class="news_box_con_left">
|
||||
<div><?=$content_txt?></div>
|
||||
<div class="news_box_detail" style="padding-top: 35px;">
|
||||
|
||||
<?if($content_type == 3):?>
|
||||
<span class="profile"><a href="/m/life/editor/<?=$val['partner_idx']?>"><div style="float:left;border-radius: 21px;cursor:pointer;width:21px;height:21px;background:url('<?=@$val['partner_img']?>') no-repeat center; background-size:cover;"></div> <?=@$val['editor_name']?></a></span>
|
||||
<span><img src="/img/web/search_bar.gif"></span>
|
||||
<?endif;?>
|
||||
|
||||
<?if($content_type == 2):?>
|
||||
<span class="profile"><a href="/m/news/columnist/<?=$val['partner_idx']?>"><?=@$val['column_name']?></a></span>
|
||||
<span><img src="/img/web/search_bar.gif"></span>
|
||||
<?endif;?>
|
||||
|
||||
|
||||
<span><img src="/img/web/img_heart.gif"><?=number_format($val['like_count'])?></span>
|
||||
<span><img src="/img/web/search_bar.gif"></span>
|
||||
<span><img src="/img/web/img_comment.gif"><?=number_format($val['comment_count'])?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_box_con_right<?=($val['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="<?=WWW_CROSSMAP?><?=$view_url?>"><img src="<?=$val['main_img']?>"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<? $i++;
|
||||
}?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="news_box">
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<? require_once(APPPATH."views/m/search/search_footer_inc.php"); ?>
|
||||
213
application/views/m/search/news.php
Executable file
213
application/views/m/search/news.php
Executable file
@@ -0,0 +1,213 @@
|
||||
<?php
|
||||
$arr_search_keyword = array();
|
||||
if($search_keyword!=''){
|
||||
$arr_search_keyword = explode(" ", $search_keyword);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<? require_once(APPPATH."views/m/search/search_header.php"); ?>
|
||||
|
||||
|
||||
<div class="contents">
|
||||
<div class="wrap">
|
||||
|
||||
<? if(count($list)==0) {?>
|
||||
<div class="news_nothing">
|
||||
<div class="t_nothing"><span class="beachblue"><?=$search_keyword?></span> 에 대한 검색결과가 없습니다.</div>
|
||||
<ul>
|
||||
<li>단어의 철자가 정확한지 확인해 보세요.</li>
|
||||
<li>한글을 영어로 혹은 영어를 한글로 입력했는지 확인해보세요.</li>
|
||||
<li>검색어의 단어 수를 줄이거나, 보다 일반적인 검색어로 다시 검색해보세요.</li>
|
||||
<li>두 단어 이상의 검색어인 경우, 띄어쓰기를 확인해 보세요.</li>
|
||||
<li>검색 옵션을 변경해서 다시 검색해 보세요.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<? } else {?>
|
||||
|
||||
|
||||
|
||||
<div class="news_cont2">
|
||||
<div class="news_box_title">
|
||||
뉴스 <span class="info"><span><?=number_format($start_row)?>-<?=number_format($end_row)?></span> | <span><?=number_format($total_count)?>건</span></span>
|
||||
</div>
|
||||
<div class="serchview">
|
||||
<? if(@$_GET['content_idx']):
|
||||
|
||||
$tmp = $_SERVER['REQUEST_URI'];
|
||||
$uri = explode("?",$tmp);
|
||||
$uri_org = $uri[0];
|
||||
$uri = explode("&",$uri[1]);
|
||||
$key = array();
|
||||
$value = array();
|
||||
foreach($uri as $data){
|
||||
$kv = explode("=",$data);
|
||||
|
||||
if($kv[0] != "content_idx"){
|
||||
$key[] = $kv[0];
|
||||
$value[] = $kv[1];
|
||||
}
|
||||
|
||||
}
|
||||
$str = array();
|
||||
foreach($key as $i => $data){
|
||||
$str[] = $data."=".$value[$i];
|
||||
}
|
||||
|
||||
$str = implode("&",$str);
|
||||
|
||||
$uri_org .= "?".$str;
|
||||
?>
|
||||
<a href="<?=$uri_org?>">
|
||||
<img src="/img/mobile/img_back.gif"> <span>검색어 뉴스</span> 전체 검색결과 보기
|
||||
</a>
|
||||
<?endif;?>
|
||||
</div>
|
||||
<? $i=1;
|
||||
foreach ($list as $key=>$val) {
|
||||
$title = $val['title'];
|
||||
$content = strip_tags($val['content']);
|
||||
$title_txt = mb_strimwidth($title, '0', '60', '..', 'utf-8');
|
||||
$content_txt = mb_strimwidth($content, '0', '180', '..', 'utf-8');
|
||||
$display_date_txt = gf_article_date_text($val['display_date']);
|
||||
|
||||
foreach($arr_search_keyword as $val3) {
|
||||
$title_txt = str_replace($val3, '<b>'.$val3.'</b>', $title_txt);
|
||||
$content_txt = str_replace($val3, '<b>'.$val3.'</b>', $content_txt);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$share_title = str_replace("'", "\\'", $val['title']);
|
||||
$share_title = str_replace('"', '\\"', $share_title);
|
||||
$share_content = mb_strimwidth($content, '0', '250', '..', 'utf-8');
|
||||
$share_content = htmlspecialchars($share_content);
|
||||
$share_content = str_replace("'", "\\'", $share_content);
|
||||
$share_content = str_replace('”', '"', $share_content);
|
||||
|
||||
$main_img = $val['main_img'];
|
||||
$press_txt = $val['press_name'];
|
||||
if($val['press_homepage']!='') {
|
||||
$press_txt = '<a href="'.$val['press_homepage'].'" target="_blank">'.$val['press_name'].'</a>';
|
||||
}
|
||||
$view_url = '/m/news/news_view/'.$val['idx'];
|
||||
$share_id_name ="news_".$val['idx'];
|
||||
|
||||
|
||||
?>
|
||||
<input type="hidden" name="content_<?=$share_id_name?>" id="content_<?=$share_id_name?>" value="<?=$share_content?>">
|
||||
<input type="hidden" name="title_<?=$share_id_name?>" id="title_<?=$share_id_name?>" value="<?=$share_title?>">
|
||||
<input type="hidden" name="copy_url_<?=$share_id_name?>" id="copy_url_<?=$share_id_name?>" value="<?=WWW_CROSSMAP?><?=$view_url?>">
|
||||
<input type="hidden" name="img_url_l<?=$share_id_name?>" id="img_url_<?=$share_id_name?>" value="<?=WWW_CROSSMAP?><?=$main_img?>">
|
||||
<div class="news_box">
|
||||
<div class="news_box_con">
|
||||
<h2 class="search_tit"><a href="<?=$view_url?>"><?=$title_txt?></a></h2>
|
||||
<div class="news_box_con_left">
|
||||
<div><?=$content_txt?></div>
|
||||
</div>
|
||||
<div class="news_box_detail2">
|
||||
|
||||
<span><?=$press_txt?></span>
|
||||
<span><img src="/img/mobile/search_bar.gif"></span>
|
||||
<span><?=$display_date_txt?></span>
|
||||
<span><img src="/img/mobile/search_bar.gif"></span>
|
||||
<span><a href="<?=$view_url?>">크로스맵뉴스</a></span>
|
||||
|
||||
</div>
|
||||
<div class="news_box_con_right<?=($val['video_url']) ? " plays_b" : ""; ?>">
|
||||
<a href="<?=$view_url?>"><img src="<?=$main_img?>"></a>
|
||||
</div>
|
||||
|
||||
<?
|
||||
if(isset($arr_news_relation_article[$val['idx']])==true) {
|
||||
if(count($arr_news_relation_article[$val['idx']]) > 0 ) {?>
|
||||
<div class="relatednews">
|
||||
<? $i=1;
|
||||
foreach ($arr_news_relation_article[$val['idx']] as $key1=>$val1) {
|
||||
|
||||
$relation_title_txt = mb_strimwidth($val1['title'], '0', '53', '..', 'utf-8');
|
||||
$press_txt = $val1['press_name'];
|
||||
if($val1['press_homepage']!='') {
|
||||
$press_txt = '<a href="'.$val1['press_homepage'].'" target="_blank">'.$val1['press_name'].'</a>';
|
||||
}
|
||||
|
||||
$display_date_txt = gf_article_date_text($val1['display_date']);
|
||||
?>
|
||||
|
||||
<div class="relatednews_box">
|
||||
<span class="relatednews_tit"><img src="/img/web/search_reply.gif"><a href="/m/news/news_view/<?=$val1['idx']?>"><?=$relation_title_txt?></a></span>
|
||||
<span class="relatednews_info news_box_detail2">
|
||||
<span><?=$press_txt?></span>
|
||||
<span style="color:#c2c2c2;">|</span>
|
||||
<span><?=$display_date_txt?></span>
|
||||
<span style="color:#c2c2c2;">|</span>
|
||||
<span><a href="/m/news/news_view/<?=$val1['idx']?>">크로스맵뉴스</a></span>
|
||||
</span>
|
||||
</div>
|
||||
<?
|
||||
if($i==4) break;
|
||||
$i++;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="fr beachblue" style="margin-top: 5px;">
|
||||
<a href="/m/search/news?search_keyword=<?=$search_keyword?>&content_idx=<?=$val['idx']?>" >관련뉴스 <?=count($arr_news_relation_article[$val['idx']])?>건 전체보기></a>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?}?>
|
||||
|
||||
<div class="pagenumber">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?}?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? require_once(APPPATH."views/m/search/search_footer_inc.php"); ?>
|
||||
<?
|
||||
$title = ''; $content = ''; $main_img = '';
|
||||
require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
<script>
|
||||
var share_key = '';
|
||||
$('.share_btn').click(function(e) {
|
||||
$("#share_box").toggle();
|
||||
var key = $(this).attr('strA');
|
||||
|
||||
$("#share_content").val($("#content_"+key).val());
|
||||
$("#share_title").val($("#title_"+key).val());
|
||||
$("#share_copy_url").val($("#copy_url_"+key).val());
|
||||
$("#share_img_url").val($("#img_url_"+key).val());
|
||||
$("#copy_url").val($("#copy_url_"+key).val());
|
||||
|
||||
var popH = $(this).offset().top;
|
||||
var popL = $(this).offset().left;
|
||||
|
||||
$('.popup_share').css('left',(popL+120)+'px');
|
||||
$('.popup_share').css('top',popH+'px');
|
||||
|
||||
share_key = key;
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
144
application/views/m/search/search_footer_inc.php
Executable file
144
application/views/m/search/search_footer_inc.php
Executable file
@@ -0,0 +1,144 @@
|
||||
|
||||
<!-- <div class="banner_grace">
|
||||
<a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a>
|
||||
<!-- m크맵 _검색결과
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div> -->
|
||||
|
||||
<?
|
||||
|
||||
$ci = & get_instance();
|
||||
$ci->load->model('web/m_realtime_keyword');
|
||||
$ci->load->model('web/m_search_keyword_relation');
|
||||
$search_keyword = trim($ci->input->get_post('search_keyword', TRUE));
|
||||
|
||||
|
||||
$search_keyword_tmp = urldecode($search_keyword);
|
||||
$search_keyword_tmp = addslashes($search_keyword_tmp);
|
||||
|
||||
# 연관검색어
|
||||
$req_data = array();
|
||||
$req_data['keyword'] = $search_keyword_tmp;
|
||||
$req_data['offset'] = 0;
|
||||
$req_data['limit'] = 10;
|
||||
$arr_search_keyword_relation = $ci->m_search_keyword_relation->search_keyword_relation_list($req_data);
|
||||
|
||||
|
||||
|
||||
|
||||
if(count($arr_search_keyword_relation) > 0) {?>
|
||||
<!-- <div class="news_box">
|
||||
<span class="relative"><span class="r_title">연관</span>
|
||||
<? foreach($arr_search_keyword_relation as $val) {?>
|
||||
<a href="/m/search/?search_keyword=<?=$val['relation_keyword']?>"><?=$val['relation_keyword']?></a>
|
||||
<? }?>
|
||||
</span>
|
||||
</div> -->
|
||||
|
||||
|
||||
<? }?>
|
||||
<div class="news_box">
|
||||
<div class="news_box_title">
|
||||
실시간 검색어
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="news_box_con">
|
||||
|
||||
<?
|
||||
|
||||
$arr_realtime_keyword = $ci->m_realtime_keyword->realtime_keyword_all_list();
|
||||
foreach ($arr_realtime_keyword as $key=>$val) :
|
||||
|
||||
$last_rank = $val['last_rank'];
|
||||
$rank = $val['rank'];
|
||||
|
||||
$class = '';
|
||||
$last_rank_txt = '';
|
||||
if($last_rank==0){
|
||||
$class = 'new';
|
||||
$last_rank_txt = 'NEW';
|
||||
} else {
|
||||
$calc_rank = $last_rank - $rank;
|
||||
if($calc_rank == 0){ // 같음
|
||||
$last_rank_txt = '-';
|
||||
} else if($calc_rank > 0){ // up
|
||||
$last_rank_txt = '<img src="/img/web/btn_up.jpg">'.$calc_rank;
|
||||
} else {
|
||||
$last_rank_txt = '<img src="/img/web/btn_down.jpg">'.abs($calc_rank);
|
||||
}
|
||||
}
|
||||
$keyword = mb_strimwidth($val['keyword'], '0', '25', '..', 'utf-8');
|
||||
|
||||
?>
|
||||
<?if($key % 5 == 0):?>
|
||||
|
||||
<div class="<?echo ($key < 5 || ($key ==10))?"c_left": "c_right"?> <?echo ($key<10)?"page1": "page2"?>" <?echo ($key>=10)?"style='display:none;'":""?>>
|
||||
|
||||
<?endif?>
|
||||
<div class="issue_box" style="font-size:14px;">
|
||||
<span class="no">
|
||||
<?=$rank?>
|
||||
</span>
|
||||
<span>
|
||||
<a href="/m/search/?search_keyword=<?=urlencode($val['keyword'])?>">
|
||||
<?=$keyword?>
|
||||
</a>
|
||||
</span>
|
||||
<span class="bbox <?=$class?> updown">
|
||||
<?=$last_rank_txt?>
|
||||
</span>
|
||||
</div>
|
||||
<?if($key % 5 == 4):?>
|
||||
</div>
|
||||
<?endif?>
|
||||
<?endforeach; ?>
|
||||
|
||||
</div>
|
||||
<div class="news_box_slide">
|
||||
<a onclick="page(1)" id="page1" style="cursor:pointer;"><img src="/img/mobile/circle_on.gif"></a>
|
||||
<a onclick="page(2)" id="page2" style="cursor:pointer;"><img src="/img/mobile/circle_off.gif"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text_size">
|
||||
<a class="share_btn" style="cursor:pointer;"><img src="/img/mobile/icon1.gif"></a>
|
||||
<!-- <a href="javascript:zoom_out();"><img src="/img/mobile/icon2.gif"></a>
|
||||
<a href="javascript:zoom_in();"><img src="/img/mobile/icon3.gif"></a> -->
|
||||
<a href="javascript:ts('body', -1);"><img src="/img/mobile/icon2.gif"></a>
|
||||
<a href="javascript:ts('body', 1);"><img src="/img/mobile/icon3.gif"></a>
|
||||
<a href="javascript:$(window).scrollTop(0)"><img src="/img/mobile/icon4.gif"></a>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
$title = ''; $content = ''; $main_img = '';
|
||||
require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
<script>
|
||||
function page(i){
|
||||
if( i == 1){
|
||||
$(".page2").hide();
|
||||
$(".page1").show();
|
||||
$("#page1 > img").attr("src","/img/mobile/circle_on.gif");
|
||||
$("#page2 > img").attr("src","/img/mobile/circle_off.gif");
|
||||
|
||||
}
|
||||
else{
|
||||
$(".page1").hide();
|
||||
$(".page2").show();
|
||||
$("#page1 > img").attr("src","/img/mobile/circle_off.gif");
|
||||
$("#page2 > img").attr("src","/img/mobile/circle_on.gif");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
150
application/views/m/search/search_header.php
Executable file
150
application/views/m/search/search_header.php
Executable file
@@ -0,0 +1,150 @@
|
||||
<div class="search_result_top search_result_top_fixed">
|
||||
<a href="/m">
|
||||
<span class="logo_srch"><img src="/img/mobile/logo_srch.gif" alt="logo"></span>
|
||||
</a>
|
||||
<span class="s_srch">
|
||||
<form>
|
||||
<span><input type="text" placeholder="" id="srch_input" name="search_keyword"
|
||||
value="<?= $_GET['search_keyword'] ?>">
|
||||
<!--a href="#"><img src="/img/mobile/mypage_serch_menu.gif" alt="검색하기" style="float:right;"></a-->
|
||||
<a><img src="/img/mobile/mypage_serch_icon.gif" alt="검색하기" style="float:right"
|
||||
onclick="window.location='/m/search/?search_keyword='+$('#srch_input').val()"></a>
|
||||
</span>
|
||||
</form>
|
||||
</span>
|
||||
</div>
|
||||
<?
|
||||
|
||||
$ci = &get_instance();
|
||||
|
||||
@$tmp = $_SERVER['REQUEST_URI'];
|
||||
@$tmp = (explode("?", $tmp));
|
||||
@$query_string = $tmp[1];
|
||||
|
||||
?>
|
||||
<div class="search_result search_result_fixed">
|
||||
<div class="search_result_menu">
|
||||
<nav class="topmn" id="basic1">
|
||||
<ul class="nav_u" id="timeline_tab">
|
||||
<li <?= $ci->uri->segment(3) == '' ? "class='active'" : ""; ?> id="root"><a
|
||||
href="/m/search/?<?= $query_string ?>" id="timeline_tab01">통합검색</a></li>
|
||||
<li <?= $ci->uri->segment(3) == 'image' ? "class='active'" : ""; ?>><a
|
||||
href="/m/search/image?<?= $query_string ?>" id="timeline_tab02">이미지</a></li>
|
||||
<li <?= ($ci->uri->segment(3) == 'list' && $_GET['content_type'] == 3) ? "class='active'" : ""; ?>><a
|
||||
href="/m/search/list?<?= $query_string ?>&content_type=3" id="timeline_tab03">라이프</a></li>
|
||||
<li <?= $ci->uri->segment(3) == 'news' ? "class='active'" : ""; ?>><a
|
||||
href="/m/search/news?<?= $query_string ?>" id="timeline_tab04">뉴스</a></li>
|
||||
<li <?= $ci->uri->segment(3) == 'video' ? "class='active'" : ""; ?>><a
|
||||
href="/m/search/video?<?= $query_string ?>" id="timeline_tab05">동영상</a></li>
|
||||
<li <?= ($ci->uri->segment(3) == 'list' && $_GET['content_type'] == 2) ? "class='active'" : ""; ?>><a
|
||||
href="/m/search/list?<?= $query_string ?>&content_type=2" id="timeline_tab03">칼럼</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div class="s_result" style="display:none;">
|
||||
|
||||
<span class="beachblue"><img src="/img/mobile/img_search.gif">‘<a id="keyword"><?= $search_keyword ?></a>’</span>
|
||||
검색어를 찾으셨습니까?
|
||||
<div class="search_view"><a href="" id="keyword_link">‘꽃처럼 살아가는 인생’ 검색결과 보기</a></div>
|
||||
</div>
|
||||
<script src="/js/m/jquery-1.11.3.min.js"></script>
|
||||
<script src="/js/m/swipers.js"></script>
|
||||
<script src="/js/m/jquery.row-grid.js"></script>
|
||||
<script src="/js/m/vendor_plugins.js"></script>
|
||||
<script src="/js/m/sly.min.js"></script>
|
||||
<script src="/js/m/smartphoto.js"></script>
|
||||
|
||||
<script>
|
||||
var s = '<?=$search_keyword?>';
|
||||
var t = e2k(s);
|
||||
console.log(s, t);
|
||||
|
||||
if (s !== t) {
|
||||
$(".s_result").show();
|
||||
|
||||
$("#keyword").text(t);
|
||||
$("#keyword_link").text("'" + t + "' 검색결과 보기");
|
||||
$("#keyword_link").attr("href", "/m/search/?search_keyword=" + encodeURI(t));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
var swiper = new Swiper('.swiper-01', {
|
||||
spaceBetween: 5,
|
||||
slidesPerView: 'auto',
|
||||
scrollbar: {
|
||||
el: '.swiper-scrollbar',
|
||||
hide: true,
|
||||
},
|
||||
});
|
||||
var swiper = new Swiper('.swiper-02', {
|
||||
spaceBetween: 5,
|
||||
slidesPerView: 'auto',
|
||||
scrollbar: {
|
||||
el: '.swiper-scrollbar',
|
||||
hide: true,
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var options = {minMargin: 5, maxMargin: 15, itemSelector: ".item", firstItemClass: "first-item"};
|
||||
$(".container").rowGrid(options);
|
||||
});
|
||||
|
||||
jQuery(function ($) {
|
||||
'use strict';
|
||||
|
||||
setTimeout(function () {
|
||||
var $frame = $('#basic1');
|
||||
// var $slidee = $frame.children('ul').eq(0);
|
||||
// Call Sly on frame
|
||||
|
||||
<? if ($ci->uri->segment(3) == '')
|
||||
$a = 0;
|
||||
else if ($ci->uri->segment(3) == 'image')
|
||||
$a = 1;
|
||||
else if ($ci->uri->segment(3) == 'list'){
|
||||
|
||||
if($_GET['content_type'] == 2)
|
||||
$a = 5;
|
||||
else
|
||||
$a = 2;
|
||||
}
|
||||
|
||||
|
||||
else if ($ci->uri->segment(3) == 'news')
|
||||
$a = 3;
|
||||
else if ($ci->uri->segment(3) == 'video')
|
||||
$a = 4;
|
||||
?>
|
||||
|
||||
|
||||
$frame.sly({
|
||||
horizontal: 1,
|
||||
itemNav: 'basic',
|
||||
smart: 1,
|
||||
activateOn: 'click',
|
||||
mouseDragging: 1,
|
||||
touchDragging: 1,
|
||||
releaseSwing: 1,
|
||||
startAt: <?=$a;?>, // 탭설정
|
||||
scrollBy: 4,
|
||||
activatePageOn: 'click',
|
||||
speed: 300,
|
||||
elasticBounds: 1,
|
||||
easing: 'easeOutExpo',
|
||||
dragHandle: 1,
|
||||
dynamicHandle: 1,
|
||||
clickBar: 1
|
||||
});
|
||||
}(), 0);
|
||||
|
||||
$("#timeline_tab > li.active").insertAfter("#root");
|
||||
|
||||
});
|
||||
</script>
|
||||
132
application/views/m/search/video.php
Executable file
132
application/views/m/search/video.php
Executable file
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
$arr_search_keyword = array();
|
||||
if($search_keyword!=''){
|
||||
$arr_search_keyword = explode(" ", $search_keyword);
|
||||
}
|
||||
|
||||
?>
|
||||
<? require_once(APPPATH."views/m/search/search_header.php"); ?>
|
||||
|
||||
|
||||
<div class="contents">
|
||||
<div class="wrap">
|
||||
|
||||
<? if(count($list)==0) {?>
|
||||
<div class="news_nothing">
|
||||
<div class="t_nothing"><span class="beachblue"><?=$search_keyword?></span> 에 대한 검색결과가 없습니다.</div>
|
||||
<ul>
|
||||
<li>단어의 철자가 정확한지 확인해 보세요.</li>
|
||||
<li>한글을 영어로 혹은 영어를 한글로 입력했는지 확인해보세요.</li>
|
||||
<li>검색어의 단어 수를 줄이거나, 보다 일반적인 검색어로 다시 검색해보세요.</li>
|
||||
<li>두 단어 이상의 검색어인 경우, 띄어쓰기를 확인해 보세요.</li>
|
||||
<li>검색 옵션을 변경해서 다시 검색해 보세요.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<? } else {?>
|
||||
<div class="news_cont2">
|
||||
<div class="news_box">
|
||||
<div class="news_box_title">
|
||||
동영상 <span class="info"><span><?=number_format($start_row)?>-<?=number_format($end_row)?></span> | <span><?=number_format($total_count)?>건</span></span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<? foreach ($list as $val) {
|
||||
$title = $val['title'];
|
||||
$content = strip_tags($val['content']);
|
||||
|
||||
$title_txt = mb_strimwidth($title, '0', '60', '..', 'utf-8');
|
||||
$content_txt = mb_strimwidth($content, '0', '140', '..', 'utf-8');
|
||||
|
||||
foreach($arr_search_keyword as $val3) {
|
||||
$title_txt = str_replace($val3, '<b>'.$val3.'</b>', $title_txt);
|
||||
$content_txt = str_replace($val3, '<b>'.$val3.'</b>', $content_txt);
|
||||
}
|
||||
|
||||
$display_date_txt = gf_article_date_text($val['display_date']);
|
||||
|
||||
|
||||
|
||||
$share_title = str_replace("'", "\\'", $val['title']);
|
||||
$share_title = str_replace('"', '\\"', $share_title);
|
||||
$share_content = mb_strimwidth($content, '0', '250', '..', 'utf-8');
|
||||
$share_content = htmlspecialchars($share_content);
|
||||
$share_content = str_replace("'", "\\'", $share_content);
|
||||
$share_content = str_replace('”', '"', $share_content);
|
||||
|
||||
$main_img = $val['main_img'];
|
||||
|
||||
|
||||
|
||||
switch ($val['content_type']) {
|
||||
case '1': $view_url = '/m/news/news_view/'.$val['idx']; $share_key = 'news_'.$val['idx']; $add_title = $val['category_name']; $writer_name = $val['reporter_name']; $curl = $view_url;break;
|
||||
case '2': $view_url = '/m/news/column_view/'.$val['idx']; $share_key = 'column_'.$val['idx']; $add_title = $val['column_name']; $writer_name = $val['column_name']; $curl = '/m/life/channel/'.$val['partner_idx']; break;
|
||||
case '3': $view_url = '/m/life/life_view/'.$val['idx']; $share_key = 'life_'.$val['idx']; $add_title = $val['channel_name']; $writer_name = $val['channel_name']; $curl = '/m/life/channel/'.$val['partner_idx'];break;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="news_box_con">
|
||||
<input type="hidden" name="content_life_<?=$val['idx']?>" id="content_life_<?=$val['idx']?>" value="<?=$share_content?>">
|
||||
<input type="hidden" name="title_life_<?=$val['idx']?>" id="title_life_<?=$val['idx']?>" value="<?=$share_title?>">
|
||||
<input type="hidden" name="copy_url_life_<?=$val['idx']?>" id="copy_url_life_<?=$val['idx']?>" value="<?=WWW_CROSSMAP?><?=$view_url?>">
|
||||
<input type="hidden" name="img_url_life_<?=$val['idx']?>" id="img_url_life_<?=$val['idx']?>" value="<?=WWW_CROSSMAP?><?=$main_img?>">
|
||||
<h2><a href="<?=$view_url?>"><?=$title_txt?> - <?=$add_title?></a><span class="n_date"><?=$display_date_txt?></span></h2>
|
||||
<div class="news_box_con_left">
|
||||
<div><?=$content_txt?></div>
|
||||
<div class="news_box_detail" style="padding-top: 35px;">
|
||||
<span class="profile" ><a href="<?=$curl?>" style="color:#000;"> <?=$writer_name?></a></span>
|
||||
<span><img src="/img/mobile/search_bar.gif"></span>
|
||||
<span class="beachblue"><a href="<?=$view_url?>"><?=WWW_CROSSMAP_M?><?=$view_url?></a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="news_box_con_right">
|
||||
<div class="channel_con">
|
||||
<div class="play_box">
|
||||
<a href=""><img src="<?=$main_img?>" style="max-width:150px;max-height:150px;" class="art-img"></a>
|
||||
<span class="play"><a href=""><img src="/img/mobile/img_play2.png"></a></span>
|
||||
<span class="play_time"><?=$val['video_playtime']?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<? }?>
|
||||
|
||||
</div>
|
||||
<div class="pagenumber" style="border-top: 1px solid #eaeaea; padding-top: 25px;">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
|
||||
<? require_once(APPPATH."views/m/search/search_footer_inc.php"); ?>
|
||||
|
||||
|
||||
|
||||
<?}?>
|
||||
|
||||
|
||||
<?
|
||||
$title = ''; $content = ''; $main_img = '';
|
||||
require_once(APPPATH."views/web/comm/share_box_inc.php"); ?>
|
||||
<script>
|
||||
var share_key = '';
|
||||
$('.share_btn').click(function(e) {
|
||||
$("#share_box").toggle();
|
||||
var key = $(this).attr('strA');
|
||||
|
||||
$("#share_content").val($("#content_"+key).val());
|
||||
$("#share_title").val($("#title_"+key).val());
|
||||
$("#share_copy_url").val($("#copy_url_"+key).val());
|
||||
$("#share_img_url").val($("#img_url_"+key).val());
|
||||
$("#copy_url").val($("#copy_url_"+key).val());
|
||||
|
||||
var popH = $(this).offset().top;
|
||||
var popL = $(this).offset().left;
|
||||
|
||||
$('.popup_share').css('left',(popL+130)+'px');
|
||||
$('.popup_share').css('top',popH+'px');
|
||||
|
||||
share_key = key;
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
228
application/views/m/shortcut/main.php
Executable file
228
application/views/m/shortcut/main.php
Executable file
@@ -0,0 +1,228 @@
|
||||
<?
|
||||
|
||||
# request
|
||||
$ci = &get_instance();
|
||||
|
||||
|
||||
$this->db->where('is_del', 'N');
|
||||
$this->db->where('depth', '1');
|
||||
$this->db->from('main_category');
|
||||
$this->db->order_by('p_category_code asc, depth asc, category_code asc');
|
||||
$this->db->limit(3, 0);
|
||||
$res = $this->db->get();
|
||||
$cat1 = $res->result_array();
|
||||
|
||||
|
||||
?>
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
history_refresh();
|
||||
});
|
||||
function select(i, elm) {
|
||||
$(".news_media").find("span.news_media_list").removeClass("current");
|
||||
$(elm).parent().addClass("current");
|
||||
$("ul[class*=cat2_]").hide();
|
||||
|
||||
$(".cat2_" + i).show();
|
||||
$(".news_company").hide();
|
||||
|
||||
|
||||
}
|
||||
|
||||
function select2(code){
|
||||
$(".portal").hide();
|
||||
$(".portal."+code).show();
|
||||
}
|
||||
|
||||
function open_url(url,name,img){
|
||||
|
||||
|
||||
history = JSON.parse($.cookie("history") || "{}") || [] ;
|
||||
delete history[name];
|
||||
history[name]= {"name" : name , "img" : img , "url" : url , "time" : Date.now()};
|
||||
$.cookie("history",JSON.stringify(history),{ expires: 7, path: '/'});
|
||||
|
||||
console.log(history);
|
||||
window.open(url);
|
||||
}
|
||||
|
||||
function remove_history(index = null){
|
||||
|
||||
console.log(index);
|
||||
if(index){
|
||||
a = JSON.parse($.cookie("history") || "{}") || [] ;
|
||||
delete a[index];
|
||||
$.cookie("history",JSON.stringify(a),{ expires: 7, path: '/'});
|
||||
}
|
||||
else{
|
||||
|
||||
if(confirm("모든 방문내역을 삭제하시겠습니까?")){
|
||||
|
||||
$.cookie("history",null,{ expires: 7, path: '/'});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
$(".news_company").hide();
|
||||
history_refresh();
|
||||
|
||||
}
|
||||
|
||||
function history_refresh(){
|
||||
|
||||
a = JSON.parse($.cookie("history") || "{}") || [] ;
|
||||
$txt = '';
|
||||
$(".news_company").html("");
|
||||
|
||||
tmp = [];
|
||||
|
||||
$.each(a,function(i,v){
|
||||
tmp.push({
|
||||
name : v.name,
|
||||
url : v.url,
|
||||
img : v.img,
|
||||
time : v.time
|
||||
});
|
||||
});
|
||||
|
||||
tmp = tmp.sort(function (a, b) {
|
||||
return (a.time > b.time) ? -1 : (a.time < b.time) ? 1 : 0 ;
|
||||
});
|
||||
$.each(tmp,function(i,v){
|
||||
$txt += '<div class="news_company_box">\n' +
|
||||
'\t\t<a href="'+v.url+'" target="_blank">\n' +
|
||||
'\t\t\t<img src="'+v.img+'" style="width:55px;height:55px;">\n' +
|
||||
'\t\t</a>\n' +
|
||||
'\t\t<span class="companyname">\n' +
|
||||
'\t\t<a href="'+v.url+'" target="_blank">\n' +v.name+
|
||||
'\t\t</a>\n' +
|
||||
'\t\t\t\t\t\t</span>\n' +
|
||||
'\t\t<span class="companyarrow">\n' +
|
||||
'\t\t<a href="javascript:remove_history(\''+v.name+'\')" target="_blank">\n' +
|
||||
'\t\t\t\t\t\t\t\t<img src="/img/mobile/company_close.gif">\n' +
|
||||
'\t\t</a>\n' +
|
||||
'\t\t\t\t\t\t</span>\n' +
|
||||
'\t</div>\n' +
|
||||
'\n';
|
||||
|
||||
});
|
||||
|
||||
$txt += '\t<div style="margin:20px auto; text-align:center;">\n' +
|
||||
'\t\t\t\t\t\t<span>\n' +
|
||||
'\t\t\t\t\t\t\t<a href="javascript:remove_history()" class="btn btn-default br20" style="padding:10px 100px;">방문내역 삭제</a>\n' +
|
||||
'\t\t\t\t\t\t</span>\n' +
|
||||
'\t</div>';
|
||||
|
||||
$(".news_company").append($txt);
|
||||
$(".news_company").show();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<div class="news_media">
|
||||
<span class="news_media_list current">
|
||||
<a href="javascript:select(0,this)">
|
||||
<span>
|
||||
<img src="/img/mobile/direct1.png">
|
||||
<p>홈</p>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
|
||||
<? foreach ($cat1 as $data): ?>
|
||||
<span class="news_media_list">
|
||||
<a href="javascript:select(<?= $data['category_code'] ?>,this)">
|
||||
<span>
|
||||
<img src="<?= $data['category_img'] ?>">
|
||||
<p><?= $data['category_name'] ?></p>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
<? endforeach ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?
|
||||
|
||||
$this->db->where('is_del', 'N');
|
||||
$this->db->where('depth', '2');
|
||||
$this->db->from('main_category');
|
||||
$this->db->order_by('p_category_code asc, depth asc, category_code asc');
|
||||
$res = $this->db->get();
|
||||
$cat2 = $res->result_array();
|
||||
$cat_compare = '';
|
||||
?>
|
||||
|
||||
<ul class="news_media3 cat2_0" style=";">
|
||||
<li><a href="javascript:$('.news_media3').hide();$('.portal').hide();$('.news_company').show();" target="_blank" class="current">최근</a></li>
|
||||
<li><a href="https://m.naver.com" target="_blank" class="current">네이버</a></li>
|
||||
<li><a href="https://m.daum.net" target="_blank" class="current">다음</a></li>
|
||||
<li><a href="http://m.nate.com" target="_blank" class="current">네이트</a></li>
|
||||
|
||||
<li><a href="https://m.search.naver.com/search.naver?query=%EB%82%A0%EC%94%A8&where=m&sm=mtp_hty" target="_blank" class="current">날씨</a></li>
|
||||
|
||||
</ul>
|
||||
<?
|
||||
foreach ($cat2
|
||||
|
||||
as $key => $data):
|
||||
|
||||
?>
|
||||
|
||||
<?
|
||||
if ($data['p_category_code'] != $cat_compare): ?>
|
||||
|
||||
<?if ($key != 0): ?></ul><?endif;?>
|
||||
<ul class="news_media3 cat2_<?= $data['p_category_code'] ?>" style="display:none;">
|
||||
<?
|
||||
endif ?>
|
||||
<li>
|
||||
<a href="javascript:select2('<?=$data['p_category_code']."-".$data['category_code']?>')" class="current"><?= $data['category_name'] ?></a>
|
||||
</li>
|
||||
|
||||
<?if (($key + 1) == count($cat2)):?></ul><?endif ?>
|
||||
<?$cat_compare = $data['p_category_code'];endforeach; ?>
|
||||
<div class="news_company" style="display:block;">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?
|
||||
$this->db->where('is_del', 'N');
|
||||
$this->db->from('main_category_company');
|
||||
$this->db->order_by('category_code1,category_code2,display_sort',"asc");
|
||||
$res = $this->db->get();
|
||||
$cat2 = $res->result_array();
|
||||
$cat_compare = '';
|
||||
foreach ($cat2 as $key => $data):
|
||||
$code = $data['category_code1']."-".$data['category_code2'];
|
||||
?>
|
||||
|
||||
|
||||
<?if ($code!= $cat_compare): ?>
|
||||
<?if ($key != 0): ?></div><?endif;?>
|
||||
<div class="portal <?=$code?>" style="display:none;">
|
||||
<?endif?>
|
||||
<div class="news_media_list2"><span><a href="javascript:open_url('<?=$data['homepage']?>','<?=$data['company_name']?>','<?=$data['logo_img']?>')"><img src="<?=$data['logo_img']?>" style="width:62px;height:72px;"><p><?=$data['company_name']?></p></a></span></div>
|
||||
<?if (($key + 1) == count($cat2)):?></div><?endif ?>
|
||||
<?$cat_compare = $code;endforeach; ?>
|
||||
|
||||
|
||||
<div class="banner_grace">
|
||||
<!-- <a href="#"><img src="/img/mobile/banner_grace.jpg" alt="banner"></a> -->
|
||||
<!-- m크맵 _바로가기 -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:720px;height:74px"
|
||||
data-ad-client="ca-pub-7071495522658800"
|
||||
data-ad-slot="5412203153"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user