mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-19 02:12:15 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1335 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ae3dcc2a6d
commit
b309e1519e
6 changed files with 60 additions and 23 deletions
|
|
@ -24,7 +24,7 @@
|
|||
* 2 : 1 + DB 쿼리
|
||||
* 3 : 모든 로그
|
||||
**/
|
||||
define('__DEBUG__', 2);
|
||||
define('__DEBUG__', 3);
|
||||
|
||||
/**
|
||||
* @brief 간단하게 사용하기 위한 함수 정의한 파일 require
|
||||
|
|
|
|||
15
modules/trackback/queries/getNewestTrackbackList.xml
Normal file
15
modules/trackback/queries/getNewestTrackbackList.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<query id="getNewestTrackbackList" action="select">
|
||||
<tables>
|
||||
<table name="trackbacks" />
|
||||
</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>
|
||||
|
|
@ -62,6 +62,28 @@
|
|||
return $trackback_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief mid 에 해당하는 엮인글을 가져옴
|
||||
**/
|
||||
function getNewestTrackbackList($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('trackback.getNewestTrackbackList', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief 모든 엮인글를 시간 역순으로 가져옴 (관리자용)
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
<!--%import("normal/style.css")-->
|
||||
<!--@end-->
|
||||
|
||||
<div class="newest_comment_default_{$colorset}" style="width:100%">
|
||||
<div class="newest_comment_default_box">
|
||||
<div class="newest_trackback_default_{$colorset}" style="width:100%">
|
||||
<div class="newest_trackback_default_box">
|
||||
|
||||
<!--@if($plugin_info->title)-->
|
||||
<div class="title_box">
|
||||
|
|
@ -16,11 +16,11 @@
|
|||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div class="comment_box">
|
||||
<!--@foreach($plugin_info->comment_list as $val)-->
|
||||
<div class="comment">
|
||||
<a href="{getUrl('','document_srl',$val->document_srl)}#comment_{$val->comment_srl}">{cut_str($val->content,15,'...')}</a>
|
||||
- {$val->user_name}
|
||||
<div class="trackback_box">
|
||||
<!--@foreach($plugin_info->trackback_list as $val)-->
|
||||
<div class="trackback">
|
||||
<a href="{getUrl('','document_srl',$val->document_srl)}#trackback_{$val->trackback_srl}">{cut_str($val->title,15,'...')}</a>
|
||||
- {cut_str($val->blog_name,10,'...')}
|
||||
</div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
.newest_comment_default_normal {
|
||||
.newest_trackback_default_normal {
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box {
|
||||
margin-bottom:5px;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .title_box {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .title_box {
|
||||
padding:5px;
|
||||
height:14px;
|
||||
overflow:hidden;
|
||||
color:#888888;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .title_box .title {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .title_box .title {
|
||||
font-weight:bold;
|
||||
height:14px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .title_box .more A {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .title_box .more A {
|
||||
float:right;
|
||||
color:#AAAAAA;
|
||||
text-decoration:none;
|
||||
|
|
@ -26,47 +26,47 @@
|
|||
font-weight:bold;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .comment_box {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .trackback_box {
|
||||
padding:5px 3px 3px 1px;
|
||||
clear:both;
|
||||
border:3px solid #EEEEEE;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .comment {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .trackback {
|
||||
padding:0px 0px 5px 5px;
|
||||
color:#AAAAAA;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .comment A {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .trackback A {
|
||||
text-decoration:none;
|
||||
color:#555555;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .comment A:hover {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .trackback A:hover {
|
||||
text-decoration:underline;
|
||||
color:#000000;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .comment A:visited {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .trackback A:visited {
|
||||
color:#AAAAAA;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .comment .comment A {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .trackback .trackback A {
|
||||
font-size:7pt;
|
||||
font-family:tahoma;
|
||||
color:#AAAAAA;
|
||||
letter-spacing:-1px;
|
||||
}
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .comment .writer {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .trackback .writer {
|
||||
font-size:9pt;
|
||||
font-family:tahoma;
|
||||
color:#AAAAAA;
|
||||
}
|
||||
|
||||
|
||||
.newest_comment_default_normal .newest_comment_default_box .regdate {
|
||||
.newest_trackback_default_normal .newest_trackback_default_box .regdate {
|
||||
color:#AAAAAA;
|
||||
font-size:8pt;
|
||||
font-family:tahoma;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<description xml:lang="ko">블로그 스타일로 최신 댓글을 출력합니다.</description>
|
||||
<description xml:lang="ko">블로그 스타일로 최신 엮인글 출력합니다.</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="normal">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue