반응형
나의 최근 작성 글
<div class="my_articles" cond="$is_logged">
<h3 class="title">최근 작성 글</h3>
{@ $oDB = &DB::getInstance();
$query_do = $oDB->_query('SELECT * FROM rx_documents where member_srl = '.$logged_info->member_srl.' ORDER BY regdate DESC LIMIT 5');
$result1 = $oDB->_fetch($query_do);
}
<!--@if($result1)-->
<!--@if(!is_array($result1))-->{@ $result1 = array($result1);}<!--@end-->
<ul class="list_wrap">
<li loop="$result1=>$key,$val">
{@ $title = strip_tags($val->title); $cut_title = mb_strimwidth($title,0,48,'..'); $count = $val->comment_count;}
<a href="{getURL('act','','document_srl',$val->document_srl)}">{$cut_title}</a><span class="pt_col list_cmt" cond="$count > 0">{$count}</span></li>
</ul>
<!--@else-->
<p>최근 작성한 글이 없습니다.</p>
<!--@end-->
</div>
나의 최근 댓글
<div class="my_comments" cond="$is_logged">
<h3 class="title">최근 작성 댓글</h3>
{@ $oDB = &DB::getInstance();
$query_co = $oDB->_query('SELECT * FROM rx_comments where member_srl = '.$logged_info->member_srl.' ORDER BY regdate DESC LIMIT 5');
$result2 = $oDB->_fetch($query_co);
}
<!--@if($result2)-->
<!--@if(!is_array($result2))-->{@ $result2 = array($result2);}<!--@end-->
<ul class="list_wrap">
<li loop="$result2=>$key,$val">
{@ $title = strip_tags($val->content); $cut_title = mb_strimwidth($title,0,48,'..'); }
<a href="{getURL('act','','document_srl',$val->document_srl)}#comment_{$val->comment_srl}">{$cut_title}</a></li>
</ul>
<!--@else-->
<p>최근 작성한 댓글이 없습니다.</p>
<!--@end-->
</div>
받은 쪽지
<div class="my_message" cond="$is_logged">
<h3 class="title">최근 쪽지</h3>
{@ $oDB = &DB::getInstance();
$query_me = $oDB->_query('SELECT * FROM rx_member_message where receiver_srl = '.$logged_info->member_srl.' AND message_type = "R" ORDER BY regdate DESC limit 5');
$result3 = $oDB->_fetch($query_me);
}
<!--@if($result3)-->
<!--@if(!is_array($result3))-->{@ $result3 = array($result3);}<!--@end-->
<ul class="list_wrap">
<li loop="$result3=>$key,$val">
{@ $title = strip_tags($val->title); $cut_title = mb_strimwidth($title,0,40,'..');}
<a href="{getURL('act','dispCommunicationMessages','message_srl',$val->message_srl)}">{$cut_title}
<i class="fas fa-envelope-open" cond="$val->readed == 'Y' " style="color: green; vertical-align: text-bottom;"></i>
<i class="fas fa-envelope" cond="$val->readed == 'N' " style="color: red; vertical-align: text-bottom;"></i></a></li>
</ul>
<!--@else-->
<p>최근 받은 쪽지가 없습니다.</p>
<!--@end-->
</div>
나의 최근 알림
<div class="my_notify" cond="$is_logged">
<h3 class="title">최근 알림</h3>
{@ $oDB = &DB::getInstance();
$query_no = $oDB->_query('SELECT * FROM rx_ncenterlite_notify where member_srl = '.$logged_info->member_srl.' ORDER BY regdate DESC LIMIT 5');
$result4 = $oDB->_fetch($query_no);
}
<!--@if($result4)-->
<!--@if(!is_array($result4))-->{@ $result4 = array($result4);}<!--@end-->
<ul class="list_wrap">
<li loop="$result4=>$key,$val">
{@ $title = strip_tags($val->target_summary); $cut_title = mb_strimwidth($title,0,40,'..');}
<a href="{$val->target_url}">{$cut_title}</a></li>
</ul>
<!--@else-->
<p>최근 받은 알림이 없습니다.</p>
<!--@end-->
</div>
반응형