ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 3793


Ignore:
Timestamp:
Aug 30, 2007, 10:33:33 AM (12 years ago)
Author:
ebihara
Message:

#177:日記コメントの1ページ目に新着コメントが来るようにした

Location:
OpenPNE/trunk/webapp/modules/pc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/pc/page/fh_diary.php

    r3786 r3793  
    7373
    7474        list ($c_diary_comment_list, $is_next, $is_prev, $total_num, $total_page_num)
    75             = k_p_fh_diary_c_diary_comment_list4c_diary_id($target_c_diary_id, $page_size, $page, false);
     75            = k_p_fh_diary_c_diary_comment_list4c_diary_id($target_c_diary_id, $page_size, $page);
     76        $c_diary_comment_list = array_reverse($c_diary_comment_list);
    7677        $this->set('target_diary_comment_list', $c_diary_comment_list);
    7778        $this->set("is_prev", $is_prev);
  • OpenPNE/trunk/webapp/modules/pc/templates/fh_diary.tpl

    r3788 r3793  
    562562({else})
    563563<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;is_all=1">すべて表示</a>
    564 ({if $is_next})<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;direc=-1&amp;page=({$page})"><前</a> ({/if})
    565 ({if $is_prev})<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;direc=1&amp;page=({$page})">次></a> ({/if})
     564({if $is_next})<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;direc=-1&amp;page=({$page})">次></a> ({/if})
     565({if $is_prev})<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;direc=1&amp;page=({$page})"><前</a> ({/if})
    566566({/if})
    567567 ({$pager.start})番~({$pager.end})番を表示
     
    672672({else})
    673673<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;is_all=1">すべて表示</a>
    674 ({if $is_next})<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;direc=-1&amp;page=({$page})"><前</a> ({/if})
    675 ({if $is_prev})<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;direc=1&amp;page=({$page})">次></a> ({/if})
     674({if $is_next})<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;direc=-1&amp;page=({$page})">次></a> ({/if})
     675({if $is_prev})<a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$target_diary.c_diary_id})&amp;direc=1&amp;page=({$page})"><前</a> ({/if})
    676676({/if})
    677677 ({$pager.start})番~({$pager.end})番を表示
Note: See TracChangeset for help on using the changeset viewer.