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

source: OpenPNE/branches/prj/xhtmlcss/OpenPNE-2.11.4/webapp/modules/pc/templates/fh_diary_list.tpl @ 5983

Last change on this file since 5983 was 5983, checked in by ogawa, 13 years ago

#1955:fh_diary_list,h_diary_list_allのrecentList(最新書き込みリスト)をXHTML+CSS化

File size: 8.4 KB
Line 
1<div id="LayoutB">
2
3({if $type == 'h'})
4({* {{{ searchFormLine *})
5<div class="parts searchFormLine">
6({t_form_block _method=get m=pc a=page_fh_diary_list})
7<ul>
8<li><img src="({t_img_url_skin filename=icon_search})" alt="search" /></li>
9<li><input type="text" class="input_text" name="keyword" value="({$keyword})" size="30" /></li>
10<li><input type="submit" class="input_submit" value="日記検索" /></li>
11</ul>
12({/t_form_block})
13</div>
14({* }}} *})
15({/if})
16
17<div id="Left">
18
19({* {{{ sideNav *})
20<div class="parts sideNav">
21<div class="item calendar">
22<div class="partsHeading"><h3>
23({if $ym.prev_month})<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;year=({$ym.prev_year})&amp;month=({$ym.prev_month})"><</a>({/if})
24({$date_val.month})月のカレンダー
25({if $ym.next_month})<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;year=({$ym.next_year})&amp;month=({$ym.next_month})">></a>({/if})
26</h3></div>
27<table class="calendar">
28<tr>
29<th class="sun">日</th>
30<th class="mon">月</th>
31<th class="tue">火</th>
32<th class="wed">水</th>
33<th class="thu">木</th>
34<th class="fri">金</th>
35<th class="sat">土</th>
36</tr>({foreach from=$calendar item=week})<tr>
37({foreach from=$week item=item name="calendar_days"})
38<td>({strip})
39({if $item.day})
40({if $item.is_diary})
41<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;year=({$date_val.year})&amp;month=({$date_val.month})&amp;day=({$item.day})">({$item.day})</a>
42({else})
43({$item.day})
44({/if})
45({else})
46({/if})
47({/strip})</td>
48({/foreach})
49</tr>
50({/foreach})
51</table>
52</div>
53
54<div class="item recentlyComment">
55<div class="partsHeading"><h3>最近のコメント</h3></div>
56<ul class="list">
57<li><a href="({t_url m=pc a=page_fh_comment_list})&amp;target_c_member_id=({$target_member.c_member_id})">一覧を見る</a></li>
58</ul>
59</div>
60
61({if $date_list})
62<div class="item monthlyDiary">
63<div class="partsHeading"><h3>各月の日記</h3></div>
64<ul class="list">
65({foreach from=$date_list item=date})
66<li><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;year=({$date.year})&amp;month=({$date.month})">({$date.year})年({$date.month})月の一覧</a></li>
67({/foreach})
68</ul>
69</div>
70({/if})
71
72({if $category_list})
73<div class="item listCategory">
74<div class="partsHeading"><h3>カテゴリ一覧</h3></div>
75<ul class="list">
76({foreach from=$category_list item=category})
77<li><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;category_id=({$category.c_diary_category_id})">({$category.category_name})</a></li>
78({/foreach})
79</ul>
80</div>
81({/if})
82</div>
83({* }}} *})
84
85</div><!-- Left -->
86<div id="Center">
87
88({if $type == "h"})
89({* {{{ infoButtonBox *})
90<div class="dparts infoButtonBox"><div class="parts">
91<div class="partsHeading"><h3>日記を書く</h3></div>
92<div class="block">
93({t_form_block _method=get m=pc a=page_h_diary_add})
94<ul class="moreInfo button">
95<li><input type="submit" class="input_submit" value="日記を書く" /></li>
96</ul>
97({/t_form_block})
98</div>
99</div></div>
100({* }}} *})
101({/if})
102
103({if $target_diary_list})
104({* {{{ commentList *})
105<div class="dparts commentList"><div class="parts">
106<div class="partsHeading"><h3>({$target_member.nickname})({if $type == "f"})さん({/if})の日記({if !$all})({if !$category}) ({$date_val.year})年({$date_val.month})月({if $date_val.day})({$date_val.day})日({/if})({/if})({$category_name})({/if})</h3></div>
107<div class="pagerRelative">
108({if $is_prev})
109<p class="prev"><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=-1&amp;page=({$page})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})({if $category_id})&amp;category_id=({$category_id})({elseif !$all})({if $date_val.year})&amp;year=({$date_val.year})({/if})({if $date_val.month})&amp;month=({$date_val.month})({/if})({if $date_val.day})&amp;day=({$date_val.day})({/if})({/if})">前を表示</a></p>
110({/if})
111<p class="number">
112({$total_num})件中
113({strip})
114({$page*$page_size-$page_size+1})件~
115({if $page_size > $diary_list_count})
116({$diary_list_count+$page*$page_size-$page_size})
117({else})
118({$page*$page_size})
119({/if})
120件を表示
121({/strip})
122</p>
123({if $is_next})
124<p class="next"><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=1&amp;page=({$page})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})({if $category_id})&amp;category_id=({$category_id})({elseif !$all})({if $date_val.year})&amp;year=({$date_val.year})({/if})({if $date_val.month})&amp;month=({$date_val.month})({/if})({if $date_val.day})&amp;day=({$date_val.day})({/if})({/if})">次を表示</a></p>
125({/if})
126</div>
127({foreach from=$target_diary_list item=item})
128<dl>
129<dt>({$item.r_datetime|date_format:"%m月%d日<br />%H:%M"})</dt>
130<dd>
131<div class="title">
132<p class="heading">({$item.subject})</p>
133<p class="public">
134({if $item.public_flag == "public"})
135(全員に公開)
136({elseif $item.public_flag == "friend"})
137(({$WORD_MY_FRIEND})まで公開)
138({elseif $item.public_flag == "private"})
139(公開しない)
140({/if})
141</p>
142</div>
143<div class="body">
144({if $item.image_filename_1||$item.image_filename_2||$item.image_filename_3})
145<ul class="photo">
146({if $item.image_filename_1})<li><a href="({t_img_url filename=$item.image_filename_1})" target="_blank"><img src="({t_img_url filename=$item.image_filename_1 w=120 h=120})" alt="" /></a></li>({/if})
147({if $item.image_filename_2})<li><a href="({t_img_url filename=$item.image_filename_2})" target="_blank"><img src="({t_img_url filename=$item.image_filename_2 w=120 h=120})" alt="" /></a></li>({/if})
148({if $item.image_filename_3})<li><a href="({t_img_url filename=$item.image_filename_3})" target="_blank"><img src="({t_img_url filename=$item.image_filename_3 w=120 h=120})" alt="" /></a></li>({/if})
149</ul>
150({/if})
151<p class="text">({$item.body|t_truncate:48:"":3})</p>
152</div>
153<div class="footer">
154<p><a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$item.c_diary_id})&amp;comment_count=({$item.num_comment})">コメント(({$item.num_comment}))</a>
155 | <a href="({t_url m=pc a=page_fh_diary})&amp;target_c_diary_id=({$item.c_diary_id})">もっと読む</a>
156({if $type == "h"})
157 | <a href="({t_url m=pc a=page_h_diary_edit})&amp;target_c_diary_id=({$item.c_diary_id})&amp;target_c_member_id=({$target_member.c_member_id})">編集</a>
158({/if})
159</p>
160</div>
161</dd>
162</dl>
163({/foreach})
164<div class="pagerRelative">
165({if $is_prev})
166<p class="prev"><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=-1&amp;page=({$page})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})({if $category_id})&amp;category_id=({$category_id})({elseif !$all})({if $date_val.year})&amp;year=({$date_val.year})({/if})({if $date_val.month})&amp;month=({$date_val.month})({/if})({if $date_val.day})&amp;day=({$date_val.day})({/if})({/if})">前を表示</a></p>
167({/if})
168<p class="number">
169({$total_num})件中
170({strip})
171({$page*$page_size-$page_size+1})件~
172({if $page_size > $diary_list_count})
173({$diary_list_count+$page*$page_size-$page_size})
174({else})
175({$page*$page_size})
176({/if})
177件を表示
178({/strip})
179</p>
180({if $is_next})
181<p class="next"><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;direc=1&amp;page=({$page})({if $url_keyword})&amp;keyword=({$url_keyword})({/if})({if $category_id})&amp;category_id=({$category_id})({elseif !$all})({if $date_val.year})&amp;year=({$date_val.year})({/if})({if $date_val.month})&amp;month=({$date_val.month})({/if})({if $date_val.day})&amp;day=({$date_val.day})({/if})({/if})">次を表示</a></p>
182({/if})
183</div>
184</div></div>
185({* }}} *})
186({/if})
187
188({if $c_rss_cache_list})
189({* {{{ recentList *})
190<div class="dparts recentList" id="blog"><div class="parts">
191<div class="partsHeading"><h3>({strip})
192({if !$all})
193({$target_member.nickname})({if $type == "f"})さん({/if})({$date_val.year})年({$date_val.month})月({if $date_val.day})({$date_val.day})日({/if})のBlog
194({else})
195({$target_member.nickname})({if $type == "f"})さん({/if})のBlog
196({/if})
197({/strip})</h3></div>
198({foreach from=$c_rss_cache_list item=item})
199<dl>
200<dt>({$item.r_datetime|date_format:"%m月%d日 %H:%M"})</dt>
201<dd><a href="({$item.link})" target="_blank">({$item.subject})</a></dd>
202</dl>
203({/foreach})
204</div></div>
205({* }}} *})
206({/if})
207
208</div><!-- Center -->
209</div><!-- LayoutB -->
Note: See TracBrowser for help on using the repository browser.