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

Changeset 6597


Ignore:
Timestamp:
Apr 17, 2008, 3:59:32 PM (12 years ago)
Author:
ebihara
Message:

#135:ページャが動作していなかったのを修正

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

Legend:

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

    r6572 r6597  
    6060       
    6161        $this->set('target_c_member_id',$target_c_member_id);
     62        $this->set('target_c_album_id',$target_c_album_id);
    6263        $this->set('album_info',$target_c_album);
    6364
  • OpenPNE/trunk/webapp/modules/pc/templates/fh_album.tpl

    r6585 r6597  
    131131({* #1952 *})
    132132({* #1952 *})({if $target_album_image})
    133 ({* #1952 *})<div class="pagerRelative">
    134 ({* #1952 *})({if $is_prev})
    135 ({* #1952 *})<p class="prev"><a href="({t_url m=pc a=page_fh_album})&amp;direc=-1&amp;page=({$page})({if $target_c_album_id})&amp;target_c_album_id=({$target_album_id})({/if})">前を表示</a></p>
    136 ({* #1952 *})({/if})
    137 ({* #1952 *})<p class="number">
    138 ({* #1952 *})({$total_num})件中
    139 ({* #1952 *})({strip})
    140 ({* #1952 *})({$page*$page_size-$page_size+1})件~
    141 ({* #1952 *})({if $page_size > $diary_list_count})
    142 ({* #1952 *})({$album_list_count+$page*$page_size-$page_size})
    143 ({* #1952 *})({else})
    144 ({* #1952 *})({$page*$page_size})
    145 ({* #1952 *})({/if})
    146 ({* #1952 *})件を表示
    147 ({* #1952 *})({/strip})
    148 ({* #1952 *})</p>
    149 ({* #1952 *})({if $is_next})
    150 ({* #1952 *})<p class="next"><a href="({t_url m=pc a=page_fh_album})&amp;direc=1&amp;page=({$page})({if $target_c_album_id})&amp;target_c_album_id=({$target_album_id})({/if})">次を表示</a></p>
    151 ({* #1952 *})({/if})
    152 ({* #1952 *})</div> <!-- pagerRelative -->
     133({capture name=pager})({strip})
     134<div class="pagerRelative">
     135
     136({if $is_prev})
     137<p class="prev"><a href="({t_url m=pc a=page_fh_album})&amp;direc=-1&amp;page=({$page})({if $target_c_album_id})&amp;target_c_album_id=({$target_c_album_id})({/if})">前を表示</a></p>
     138({/if})
     139<p class="number">
     140({$total_num})件中
     141({strip})
     142({$page*$page_size-$page_size+1})件~
     143({if $page_size > $diary_list_count})
     144({$album_list_count+$page*$page_size-$page_size})
     145({else})
     146({$page*$page_size})
     147({/if})
     148件を表示
     149({/strip})
     150</p>
     151({if $is_next})
     152<p class="next"><a href="({t_url m=pc a=page_fh_album})&amp;direc=1&amp;page=({$page})({if $target_c_album_id})&amp;target_c_album_id=({$target_c_album_id})({/if})">次を表示</a></p>
     153({/if})
     154</div> <!-- pagerRelative -->
     155({/strip})({/capture})
     156({$smarty.capture.pager|smarty:nodefaults})
    153157({* #1952 *})
    154158({* #1952 *})<table border="0" cellspacing="0" cellpadding="0" style="width:524px;" class="border_01">
     
    197201({* #1952 *})</table>
    198202({* #1952 *})
    199 ({* #1952 *})<div class="pagerRelative">
    200 ({* #1952 *})({if $is_prev})
    201 ({* #1952 *})<p class="prev"><a href="({t_url m=pc a=page_fh_album})&amp;direc=-1&amp;page=({$page})({if $target_c_album_id})&amp;target_c_album_id=({$target_album_id})({/if})">前を表示</a></p>
    202 ({* #1952 *})({/if})
    203 ({* #1952 *})<p class="number">
    204 ({* #1952 *})({$total_num})件中
    205 ({* #1952 *})({strip})
    206 ({* #1952 *})({$page*$page_size-$page_size+1})件~
    207 ({* #1952 *})({if $page_size > $diary_list_count})
    208 ({* #1952 *})({$album_list_count+$page*$page_size-$page_size})
    209 ({* #1952 *})({else})
    210 ({* #1952 *})({$page*$page_size})
    211 ({* #1952 *})({/if})
    212 ({* #1952 *})件を表示
    213 ({* #1952 *})({/strip})
    214 ({* #1952 *})</p>
    215 ({* #1952 *})({if $is_next})
    216 ({* #1952 *})<p class="next"><a href="({t_url m=pc a=page_fh_album})&amp;direc=1&amp;page=({$page})({if $target_c_album_id})&amp;target_c_album_id=({$target_album_id})({/if})">次を表示</a></p>
    217 ({* #1952 *})({/if})
    218 ({* #1952 *})</div> <!-- pagerRelative -->
     203({$smarty.capture.pager|smarty:nodefaults})
    219204({* #1952 *})({else})
    220205({* #1952 *})<!-- アルバムに画像なし -->
Note: See TracChangeset for help on using the changeset viewer.