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

Changeset 7263


Ignore:
Timestamp:
May 17, 2008, 10:24:30 PM (11 years ago)
Author:
ogawa
Message:

#2259:albumImageList(アルバム写真リスト)のXHTML+CSS化

Location:
OpenPNE/branches/stable-2.12.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/public_html/xhtml_style.php

    r7260 r7263  
    21682168
    21692169/*==============================================================================
     2170 * albumImageList
     2171 *----------------------------------------------------------------------------*/
     2172.albumImageList td {
     2173        width: 50%;
     2174        padding: 5px;
     2175        text-align: center;
     2176}
     2177.albumImageList td p {
     2178        text-align: center;
     2179}
     2180
     2181/*==============================================================================
    21702182 * albumImageBox
    21712183 *----------------------------------------------------------------------------*/
  • OpenPNE/branches/stable-2.12.x/webapp/modules/pc/templates/fh_album.tpl

    r7260 r7263  
    6767
    6868({if $album_image_list})
     69({* {{{ albumImageList *})
     70<div class="dparts albumImageList"><div class="parts">
     71<div class="partsHeading"><h3>写真一覧</h3></div>
    6972
    70 ({* unknown *})<div class="dparts"><div class="parts">
    71 ({* unknown *})<div class="partsHeading"><h3>写真一覧</h3></div>
    72 ({* unknown *})
    73 ({* unknown *})({capture name=pager})({strip})
    74 ({* unknown *})<div class="pagerRelative">
    75 ({* unknown *})({if $is_prev})<p class="prev"><a href="({t_url m=pc a=page_fh_album})&amp;page=({$page-1})&amp;target_c_album_id=({$target_c_album_id})">前を表示</a></p>({/if})
    76 ({* unknown *})<p class="number">
    77 ({* unknown *})({$total_num})件中 ({$page*$page_size-$page_size+1})件~
    78 ({* unknown *})({if $page_size > $album_list_count})
    79 ({* unknown *})({$album_list_count+$page*$page_size-$page_size})
    80 ({* unknown *})({else})
    81 ({* unknown *})({$page*$page_size})
    82 ({* unknown *})({/if})
    83 ({* unknown *})件を表示
    84 ({* unknown *})</p>
    85 ({* unknown *})({if $is_next})<p class="next"><a href="({t_url m=pc a=page_fh_album})&amp;page=({$page+1})&amp;target_c_album_id=({$target_c_album_id})">次を表示</a></p>({/if})
    86 ({* unknown *})</div>
    87 ({* unknown *})({/strip})({/capture})
    88 ({* unknown *})({$smarty.capture.pager|smarty:nodefaults})
    89 ({* unknown *})
    90 ({* unknown *})<table>
    91 ({* unknown *})({foreach from=$album_image_list item=item})
    92 ({* unknown *})({counter assign=_cnt})
    93 ({* unknown *})({if $_cnt % 2 == 1})<tr>({/if})
    94 ({* unknown *})<td style="width: 50%; padding: 5px; text-align: center;">
    95 ({* unknown *})({if $item.image_filename})
    96 ({* unknown *})<a href="({t_url m=pc a=page_fh_album_image_show})&amp;target_c_album_image_id=({$item.c_album_image_id})"><img src="({t_img_url filename=$item.image_filename w=180 h=180})" alt="" /></a><br />
    97 ({* unknown *})({if $type == "h"})<a href="({t_url m=pc a=page_h_album_image_edit})&amp;target_c_album_id=({$item.c_album_id})&amp;target_c_album_image_id=({$item.c_album_image_id})">写真を編集</a>({/if})
    98 ({* unknown *})<p>({$item.image_description})</p>
    99 ({* unknown *})({/if})
    100 ({* unknown *})</td>
    101 ({* unknown *})({if $_cnt % 2 == 0})</tr>({/if})
    102 ({* unknown *})({/foreach})
    103 ({* unknown *})({if $_cnt % 2 == 1})<td></td></tr>({/if})
    104 ({* unknown *})</table>
    105 ({* unknown *})
    106 ({* unknown *})({$smarty.capture.pager|smarty:nodefaults})
    107 ({* unknown *})
    108 ({* unknown *})</div></div>
     73({capture name=pager})({strip})
     74<div class="pagerRelative">
     75({if $is_prev})<p class="prev"><a href="({t_url m=pc a=page_fh_album})&amp;page=({$page-1})&amp;target_c_album_id=({$target_c_album_id})">前を表示</a></p>({/if})
     76<p class="number">
     77({$total_num})件中 ({$page*$page_size-$page_size+1})件~
     78({if $page_size > $album_list_count})
     79({$album_list_count+$page*$page_size-$page_size})
     80({else})
     81({$page*$page_size})
     82({/if})
     83件を表示
     84</p>
     85({if $is_next})<p class="next"><a href="({t_url m=pc a=page_fh_album})&amp;page=({$page+1})&amp;target_c_album_id=({$target_c_album_id})">次を表示</a></p>({/if})
     86</div>
     87({/strip})({/capture})
     88({$smarty.capture.pager|smarty:nodefaults})
    10989
     90<table>
     91({foreach from=$album_image_list item=item})
     92({counter assign=_cnt})
     93({if $_cnt % 2 == 1})<tr>({/if})
     94<td>
     95({if $item.image_filename})
     96<p class="image">
     97<a href="({t_url m=pc a=page_fh_album_image_show})&amp;target_c_album_image_id=({$item.c_album_image_id})"><img src="({t_img_url filename=$item.image_filename w=180 h=180})" alt="" /></a><br />({if $type == "h"})<a href="({t_url m=pc a=page_h_album_image_edit})&amp;target_c_album_id=({$item.c_album_id})&amp;target_c_album_image_id=({$item.c_album_image_id})">写真を編集</a>({/if})
     98</p>
     99<p class="text">({$item.image_description})</p>
     100({/if})
     101</td>
     102({if $_cnt % 2 == 0})</tr>({/if})
     103({/foreach})
     104({if $_cnt % 2 == 1})<td></td></tr>({/if})
     105</table>
     106
     107({$smarty.capture.pager|smarty:nodefaults})
     108
     109</div></div>
     110({* }}} *})
    110111({/if})
    111112
Note: See TracChangeset for help on using the changeset viewer.