mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
이미지 마크가 2개 표시되는 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3113 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ca9b348790
commit
206ffeefa0
6 changed files with 4 additions and 58 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<widget version="0.7">
|
||||
<widget version="1.0">
|
||||
<title xml:lang="ko">글, 댓글 랭킹 출력</title>
|
||||
<title xml:lang="zh-CN">输出主题, 评论排行</title>
|
||||
<author email_address="simulz@simulz.com" link="http://www.simulz.com" date="2007. 10. 07">
|
||||
|
|
|
|||
|
|
@ -113,20 +113,6 @@
|
|||
// 결과가 있으면 각 문서 객체화를 시킴
|
||||
if(count($output->data)) {
|
||||
foreach($output->data as $key => $val) {
|
||||
$val->point = $this->oPointModel->getPoint($val->member_srl);
|
||||
$val->perlev = $this->point_info($val->member_srl);
|
||||
|
||||
$image_name = $oMemberModel->getImageName($val->member_srl);
|
||||
$image_mark = $oMemberModel->getImageMark($val->member_srl);
|
||||
if($image_name->width) {
|
||||
if($image_mark->height && $image_mark->height > $image_name->height) $top_margin = ($image_mark->height - $image_name->height)/2;
|
||||
else $top_margin = 0;
|
||||
$val->nick_name = sprintf('<img src="%s" border="0" alt="%s" title="%s" width="%s" height="%s" align="absmiddle" style="margin-top:%dpx;" />', Context::getRequestUri().$image_name->file, $image_name->file, $image_name->file, $image_name->width, $image_name->height, $top_margin);
|
||||
}
|
||||
if($image_mark->width) {
|
||||
$val->nick_name = sprintf('<img src="%s" border="0" alt="%s" title="%s" width="%s" height="%s" align="absmiddle" />', Context::getRequestUri().$image_mark->file, $image_mark->file, $image_mark->file, $image_mark->width, $image_mark->height).$val->nick_name;
|
||||
}
|
||||
|
||||
$rank_list[$key] = $val;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
{@ $no = 1}
|
||||
<!--@foreach($widget_info->data as $val)-->
|
||||
<tr>
|
||||
<td class="left">{$no}위. <span class="member_{$val->member_srl}" {$val->perlev}>{$val->nick_name}</span></td>
|
||||
<td class="left">{$no}위. <span class="member_{$val->member_srl}">{$val->nick_name}</span></td>
|
||||
<td class="center">{$val->count}회</td>
|
||||
<td class="right">
|
||||
<!--@if($logged_info->is_admin == "Y")-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue