mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1332 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b49e62e714
commit
a4a6c03302
5 changed files with 59 additions and 24 deletions
|
|
@ -74,6 +74,27 @@
|
||||||
return (int)$total_count;
|
return (int)$total_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief mid 에 해당하는 댓글을 가져옴
|
||||||
|
**/
|
||||||
|
function getNewestCommentList($obj) {
|
||||||
|
if($obj->mid) {
|
||||||
|
$oModuleModel = &getModel('module');
|
||||||
|
$obj->module_srl = $oModuleModel->getModuleSrlByMid($obj->mid);
|
||||||
|
unset($obj->mid);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 넘어온 module_srl은 array일 수도 있기에 array인지를 체크
|
||||||
|
if(is_array($obj->module_srl)) $args->module_srl = implode(',', $obj->module_srl);
|
||||||
|
else $args->module_srl = $obj->module_srl;
|
||||||
|
$args->list_count = $obj->list_count;
|
||||||
|
|
||||||
|
$output = executeQuery('comment.getNewestCommentList', $args);
|
||||||
|
if(!$output->toBool()) return $output;
|
||||||
|
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief document_srl에 해당하는 문서의 댓글 목록을 가져옴
|
* @brief document_srl에 해당하는 문서의 댓글 목록을 가져옴
|
||||||
**/
|
**/
|
||||||
|
|
|
||||||
15
modules/comment/queries/getNewestCommentList.xml
Normal file
15
modules/comment/queries/getNewestCommentList.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<query id="getNewestCommentList" action="select">
|
||||||
|
<tables>
|
||||||
|
<table name="comments" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="*" />
|
||||||
|
</columns>
|
||||||
|
<conditions>
|
||||||
|
<condition operation="in" column="module_srl" var="module_srl" filter="number" />
|
||||||
|
</conditions>
|
||||||
|
<navigation>
|
||||||
|
<index var="sort_index" default="list_order" order="asc" />
|
||||||
|
<list_count var="list_count" default="20" />
|
||||||
|
</navigation>
|
||||||
|
</query>
|
||||||
|
|
@ -4,8 +4,8 @@
|
||||||
<!--%import("normal/style.css")-->
|
<!--%import("normal/style.css")-->
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
||||||
<div class="newest_document_default_{$colorset}" style="width:100%">
|
<div class="newest_comment_default_{$colorset}" style="width:100%">
|
||||||
<div class="newest_document_default_box">
|
<div class="newest_comment_default_box">
|
||||||
|
|
||||||
<!--@if($plugin_info->title)-->
|
<!--@if($plugin_info->title)-->
|
||||||
<div class="title_box">
|
<div class="title_box">
|
||||||
|
|
@ -16,13 +16,11 @@
|
||||||
</div>
|
</div>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
||||||
<div class="document_box">
|
<div class="comment_box">
|
||||||
<!--@foreach($plugin_info->document_list as $val)-->
|
<!--@foreach($plugin_info->comment_list as $val)-->
|
||||||
<div class="document">
|
<div class="comment">
|
||||||
<a href="{getUrl('','document_srl',$val->document_srl,'comment_count', $val->comment_count)}">{$val->title}</a>
|
<a href="{getUrl('','document_srl',$val->document_srl)}#comment_{$val->comment_srl}">{cut_str($val->content,15,'...')}</a>
|
||||||
<!--@if($val->comment_count)-->
|
- {$val->user_name}
|
||||||
<span class="comment"><a href="{getUrl('','document_srl',$val->document_srl)}#comment_top_{$val->document_srl}">( {$val->comment_count} )</a></span>
|
|
||||||
<!--@end-->
|
|
||||||
</div>
|
</div>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,24 @@
|
||||||
.newest_document_default_normal {
|
.newest_comment_default_normal {
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box {
|
.newest_comment_default_normal .newest_comment_default_box {
|
||||||
margin-bottom:5px;
|
margin-bottom:5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .title_box {
|
.newest_comment_default_normal .newest_comment_default_box .title_box {
|
||||||
padding:5px;
|
padding:5px;
|
||||||
height:14px;
|
height:14px;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
color:#888888;
|
color:#888888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .title_box .title {
|
.newest_comment_default_normal .newest_comment_default_box .title_box .title {
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
height:14px;
|
height:14px;
|
||||||
float:left;
|
float:left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .title_box .more A {
|
.newest_comment_default_normal .newest_comment_default_box .title_box .more A {
|
||||||
float:right;
|
float:right;
|
||||||
color:#AAAAAA;
|
color:#AAAAAA;
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
|
|
@ -26,46 +26,47 @@
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .document_box {
|
.newest_comment_default_normal .newest_comment_default_box .comment_box {
|
||||||
padding:5px 3px 3px 1px;
|
padding:5px 3px 3px 1px;
|
||||||
clear:both;
|
clear:both;
|
||||||
border:3px solid #EEEEEE;
|
border:3px solid #EEEEEE;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .document {
|
.newest_comment_default_normal .newest_comment_default_box .comment {
|
||||||
padding:0px 0px 5px 5px;
|
padding:0px 0px 5px 5px;
|
||||||
|
color:#AAAAAA;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .document A {
|
.newest_comment_default_normal .newest_comment_default_box .comment A {
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
color:#555555;
|
color:#555555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .document A:hover {
|
.newest_comment_default_normal .newest_comment_default_box .comment A:hover {
|
||||||
text-decoration:underline;
|
text-decoration:underline;
|
||||||
color:#000000;
|
color:#000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .document A:visited {
|
.newest_comment_default_normal .newest_comment_default_box .comment A:visited {
|
||||||
color:#AAAAAA;
|
color:#AAAAAA;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .document .comment A {
|
.newest_comment_default_normal .newest_comment_default_box .comment .comment A {
|
||||||
font-size:7pt;
|
font-size:7pt;
|
||||||
font-family:tahoma;
|
font-family:tahoma;
|
||||||
color:#AAAAAA;
|
color:#AAAAAA;
|
||||||
letter-spacing:-1px;
|
letter-spacing:-1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .document .writer {
|
.newest_comment_default_normal .newest_comment_default_box .comment .writer {
|
||||||
font-size:9pt;
|
font-size:9pt;
|
||||||
font-family:tahoma;
|
font-family:tahoma;
|
||||||
color:#AAAAAA;
|
color:#AAAAAA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.newest_document_default_normal .newest_document_default_box .regdate {
|
.newest_comment_default_normal .newest_comment_default_box .regdate {
|
||||||
color:#AAAAAA;
|
color:#AAAAAA;
|
||||||
font-size:8pt;
|
font-size:8pt;
|
||||||
font-family:tahoma;
|
font-family:tahoma;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<skin>
|
<skin>
|
||||||
<title xml:lang="ko">블로그 스타일의 최신글 목록</title>
|
<title xml:lang="ko">블로그 스타일의 최신 댓글 목록</title>
|
||||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||||
<name xml:lang="ko">제로</name>
|
<name xml:lang="ko">제로</name>
|
||||||
<description xml:lang="ko">블로그 스타일로 최신글을 출력합니다.</description>
|
<description xml:lang="ko">블로그 스타일로 최신 댓글을 출력합니다.</description>
|
||||||
</maker>
|
</maker>
|
||||||
<colorset>
|
<colorset>
|
||||||
<color name="normal">
|
<color name="normal">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue