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

Changeset 7257


Ignore:
Timestamp:
May 17, 2008, 1:44:08 PM (11 years ago)
Author:
ogawa
Message:

#2260:albumListをXHTML+CSS化

Location:
OpenPNE/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/public_html/xhtml_style.php

    r7251 r7257  
    21232123
    21242124/*==============================================================================
     2125 * albumList
     2126 *----------------------------------------------------------------------------*/
     2127.albumList th,
     2128.albumList td {
     2129        padding: 5px;
     2130}
     2131.albumList th {
     2132        width: 75px;
     2133}
     2134.albumList td.photo {
     2135        width: 190px;
     2136        padding: 5px 0;
     2137        text-align: center;
     2138}
     2139#Body .albumList th:first-child {
     2140        border-left-width: 1px;
     2141}
     2142.albumList td.operation {
     2143        text-align: center;
     2144}
     2145
     2146/*==============================================================================
    21252147 * albumImageBox
    21262148 *----------------------------------------------------------------------------*/
  • OpenPNE/trunk/webapp/modules/pc/templates/fh_album_list.tpl

    r7071 r7257  
    5050
    5151({if $target_album_list})
    52 ({* unknown *})<div class="dparts"><div class="parts">
    53 ({* unknown *})<div class="partsHeading"><h3>({$target_member.nickname})({if $type == "f"})さん({/if})のアルバム</h3></div>
    54 ({* unknown *})
    55 ({* unknown *})({capture name=pager})({strip})
    56 ({* unknown *})<div class="pagerRelative">
    57 ({* unknown *})({if $is_prev})
    58 ({* unknown *})<p class="prev"><a href="({t_url m=pc a=page_fh_album_list})&amp;page=({$page-1})&amp;target_c_member_id=({$target_member.c_member_id})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})">前を表示</a></p>
    59 ({* unknown *})({/if})
    60 ({* unknown *})<p class="number">
    61 ({* unknown *})({$total_num})件中 ({$page*$page_size-$page_size+1})件~
    62 ({* unknown *})({if $page_size > $album_list_count})
    63 ({* unknown *})({$album_list_count+$page*$page_size-$page_size})
    64 ({* unknown *})({else})
    65 ({* unknown *})({$page*$page_size})
    66 ({* unknown *})({/if})
    67 ({* unknown *})件を表示
    68 ({* unknown *})</p>
    69 ({* unknown *})({if $is_next})
    70 ({* unknown *})<p class="next"><a href="({t_url m=pc a=page_fh_album_list})&amp;page=({$page+1})&amp;target_c_member_id=({$target_member.c_member_id})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})">次を表示</a></p>
    71 ({* unknown *})({/if})
    72 ({* unknown *})</div>
    73 ({* unknown *})({/strip})({/capture})
    74 ({* unknown *})({$smarty.capture.pager|smarty:nodefaults})
    75 ({* unknown *})
    76 ({* unknown *})({foreach from=$target_album_list item=item})
    77 ({* unknown *})<table>
    78 ({* unknown *})<tr>
    79 ({* unknown *})<td rowspan="4" align="center" style="width: 180px; padding: 5px;">
    80 ({* unknown *})<a href="({t_url m=pc a=page_fh_album})&amp;target_c_album_id=({$item.c_album_id})"><img src="({if $item.album_cover_image})({t_img_url filename=$item.album_cover_image w=180 h=180})({else})({t_img_url_skin filename=no_image w=180 h=180})({/if})" alt="" /></a>
    81 ({* unknown *})</td>
    82 ({* unknown *})<th style="width:75px; padding: 5px;">タイトル</th>
    83 ({* unknown *})<td style="padding: 5px;" colspan="2">({$item.subject})</td>
    84 ({* unknown *})</tr>
    85 ({* unknown *})<tr>
    86 ({* unknown *})<th style="border-left-width: 1px; padding: 5px;">説明文</th>
    87 ({* unknown *})<td style="padding: 5px;" colspan="2">({$item.description|t_truncate:36:"":3})</td>
    88 ({* unknown *})</tr>
    89 ({* unknown *})<tr>
    90 ({* unknown *})<th style="border-left-width: 1px; padding: 5px;">公開範囲</th>
    91 ({* unknown *})<td style="padding: 5px;" colspan="2">
    92 ({* unknown *})({if $item.public_flag == "public"})
    93 ({* unknown *})全員に公開
    94 ({* unknown *})({elseif $item.public_flag == "friend"})
    95 ({* unknown *})({$WORD_MY_FRIEND})まで公開
    96 ({* unknown *})({elseif $item.public_flag == "private"})
    97 ({* unknown *})公開しない
    98 ({* unknown *})({/if})
    99 ({* unknown *})</td>
    100 ({* unknown *})</tr>
    101 ({* unknown *})<tr>
    102 ({* unknown *})<th style="border-left-width: 1px; padding: 5px;">作成日時</th>
    103 ({* unknown *})<td style="padding: 5px;">({$item.r_datetime|date_format:"%m月%d日 %H:%M"})</td>
    104 ({* unknown *})<td style="padding: 5px; text-align: center;"><a href="({t_url m=pc a=page_fh_album})&amp;target_c_album_id=({$item.c_album_id})"><img src="({t_img_url_skin filename=button_shosai})" alt="詳細を見る" /></a></td>
    105 ({* unknown *})</tr>
    106 ({* unknown *})</table>
    107 ({* unknown *})({/foreach})
    108 ({* unknown *})
    109 ({* unknown *})({$smarty.capture.pager|smarty:nodefaults})
    110 ({* unknown *})
    111 ({* unknown *})</div></div>
     52({* {{{ albumList *})
     53<div class="dparts albumList"><div class="parts">
     54<div class="partsHeading"><h3>({$target_member.nickname})({if $type == "f"})さん({/if})のアルバム</h3></div>
     55
     56({capture name=pager})({strip})
     57<div class="pagerRelative">
     58({if $is_prev})
     59<p class="prev"><a href="({t_url m=pc a=page_fh_album_list})&amp;page=({$page-1})&amp;target_c_member_id=({$target_member.c_member_id})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})">前を表示</a></p>
     60({/if})
     61<p class="number">
     62({$total_num})件中 ({$page*$page_size-$page_size+1})件~
     63({if $page_size > $album_list_count})
     64({$album_list_count+$page*$page_size-$page_size})
     65({else})
     66({$page*$page_size})
     67({/if})
     68件を表示
     69</p>
     70({if $is_next})
     71<p class="next"><a href="({t_url m=pc a=page_fh_album_list})&amp;page=({$page+1})&amp;target_c_member_id=({$target_member.c_member_id})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})">次を表示</a></p>
     72({/if})
     73</div>
     74({/strip})({/capture})
     75({$smarty.capture.pager|smarty:nodefaults})
     76
     77({foreach from=$target_album_list item=item})
     78<table>
     79<tr>
     80<td class="photo" rowspan="4">
     81<a href="({t_url m=pc a=page_fh_album})&amp;target_c_album_id=({$item.c_album_id})"><img src="({if $item.album_cover_image})({t_img_url filename=$item.album_cover_image w=180 h=180})({else})({t_img_url_skin filename=no_image w=180 h=180})({/if})" alt="" /></a>
     82</td>
     83<th>タイトル</th>
     84<td colspan="2">({$item.subject})</td>
     85</tr>
     86<tr>
     87<th>説明文</th>
     88<td colspan="2">({$item.description|t_truncate:36:"":3})</td>
     89</tr>
     90<tr>
     91<th>公開範囲</th>
     92<td colspan="2">
     93({if $item.public_flag == "public"})
     94全員に公開
     95({elseif $item.public_flag == "friend"})
     96({$WORD_MY_FRIEND})まで公開
     97({elseif $item.public_flag == "private"})
     98公開しない
     99({/if})
     100</td>
     101</tr>
     102<tr>
     103<th>作成日時</th>
     104<td>({$item.r_datetime|date_format:"%m月%d日 %H:%M"})</td>
     105<td class="operation"><a href="({t_url m=pc a=page_fh_album})&amp;target_c_album_id=({$item.c_album_id})"><img src="({t_img_url_skin filename=button_shosai})" alt="詳細を見る" /></a></td>
     106</tr>
     107</table>
     108({/foreach})
     109
     110({$smarty.capture.pager|smarty:nodefaults})
     111
     112</div></div>
     113({* }}} *})
    112114({/if})
    113115
Note: See TracChangeset for help on using the changeset viewer.