Show
Ignore:
Timestamp:
05/24/07 16:21:52 (20 months ago)
Author:
inureyes
Message:

#413

  • 페이징 출력하도록 함.
  • 관련한 쿼리들이 비만이라서 다이어트좀 시켰음.

#408

  • 목록에서의 팀블로그 유저 이름을 list_rep_name 으로 변경.
  • 관련하여 수정 예제 올릴 예정.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/lib/piece/blog/list.php

    r3300 r3321  
    1010        $teamblog_name = DBQuery::queryCell("SELECT b.name  
    1111            FROM {$database['prefix']}TeamEntryRelations a, {$database['prefix']}Users b   
    12             WHERE a.Owner=".$item['owner']." AND a.Id=".$item['id']." AND a.Team=b.userid"); 
     12            WHERE a.owner=".$item['owner']." AND a.id=".$item['id']." AND a.team=b.userid"); 
    1313        $itemsView .= str_replace( 
    1414            array( 
    1515                '[##_list_rep_regdate_##]', 
     16                '[##_list_rep_name_##]', 
    1617                '[##_list_rep_link_##]', 
    1718                '[##_list_rep_title_##]', 
     
    2021            array( 
    2122                fireEvent('ViewListDate', Timestamp::format3($item['published'])), 
     23                fireEvent('ViewListName', htmlspecialchars($teamblog_name)), 
    2224                "$blogURL/" . ($blog['useSlogan'] ? 'entry/' . encodeURL($item['slogan']) : $item['id']), 
    23                 htmlspecialchars('['.$teamblog_name.'] '. fireEvent('ViewListTitle', $item['title'])), 
     25                fireEvent('ViewListTitle', $item['title']), 
    2426                ($item['comments'] > 0) ? "({$item['comments']})" : '' 
    2527            ),