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

source: OpenPNE/branches/stable-2.10.x/webapp/modules/ktai/templates/fh_diary.tpl @ 4382

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

#1329:merged r4317, r4318, r4320

File size: 7.3 KB
Line 
1({$inc_ktai_header|smarty:nodefaults})
2
3<table width="100%"><tr><td align="center" bgcolor="#({$ktai_color_config.bg_02})">
4<font color="#({$ktai_color_config.font_05})"><a name="top">({$target_diary_writer.nickname})さんの日記</a></font><br>
5</td></tr>
6({if $c_siteadmin})
7<tr><td align="left">
8({$c_siteadmin|smarty:nodefaults})<br>
9</td></tr>
10({/if})
11<tr><td bgcolor="#({$ktai_color_config.bg_03})" align="center">
12<font color="#({$ktai_color_config.color_24})">({$target_c_diary.subject})</font><br>
13</td></tr></table>
14<a href="#({if $c_diary_comment})dc1({else})({if $is_prev || $is_next})pager({else})write({/if})({/if})"><font color="#({$ktai_color_config.font_08})">▼</font></a>({$target_c_diary.r_datetime|date_format:"%y/%m/%d %H:%M"})({if $target_diary_writer.c_member_id==$u}) [<a href="({t_url m=ktai a=page_h_diary_edit})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;({$tail})">編集</a>][<a href="({t_url m=ktai a=page_fh_diary_delete_c_diary_confirm})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;({$tail})">削除</a>]({/if})<br>
15({$target_c_diary.body|t_url2a_ktai|nl2br})
16<br>
17({if $target_c_diary.image_filename_1})
18写真1を見る:[<a href="({t_img_url filename=$target_c_diary.image_filename_1 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$target_c_diary.image_filename_1 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>
19({/if})
20({if $target_c_diary.image_filename_2})
21写真2を見る:[<a href="({t_img_url filename=$target_c_diary.image_filename_2 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$target_c_diary.image_filename_2 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>
22({/if})
23({if $target_c_diary.image_filename_3})
24写真3を見る:[<a href="({t_img_url filename=$target_c_diary.image_filename_3 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$target_c_diary.image_filename_3 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>
25({/if})
26
27(({if $target_c_diary.public_flag == "public"})全員に公開({elseif $target_c_diary.public_flag == "friend"})({$WORD_MY_FRIEND_HALF})まで公開({elseif $target_c_diary.public_flag == "private"})公開しない({/if}))
28
29({if $c_diary_id_prev || $c_diary_id_next})
30<hr color="#({$ktai_color_config.border_01})">
31<center>
32({if $c_diary_id_prev})<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$c_diary_id_prev})&amp;({$tail})">前の日記</a>({/if})
33({if $c_diary_id_prev && $c_diary_id_next})&nbsp;({/if})
34({if $c_diary_id_next})<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$c_diary_id_next})&amp;({$tail})">次の日記</a>({/if})
35</center>
36({/if})
37
38({if $c_diary_comment})
39<hr color="#({$ktai_color_config.border_01})">
40<center>
41コメント(全({$total_num})件)<br>
42({$pager.start})~({$pager.end})件目を表示
43</center>
44
45<table width="100%">
46({foreach from=$c_diary_comment name=c_diary_comment item=c_diary_comment_})
47<tr><td bgcolor="#({$ktai_color_config.bg_07})">
48<hr color="#({$ktai_color_config.border_02})">
49</td></tr>
50<tr><td bgcolor="#({cycle values="`$ktai_color_config.bg_06`,`$ktai_color_config.bg_07`"})">
51<a href="#({if $smarty.foreach.c_diary_comment.last})({if $is_prev || $is_next})pager({else})write({/if})({else})dc({$smarty.foreach.c_diary_comment.iteration+1})({/if})" name="dc({$smarty.foreach.c_diary_comment.iteration})"><font color="#({$ktai_color_config.font_08})">▼</font></a><font color="#({$ktai_color_config.font_06})">[({$c_diary_comment_.number|string_format:"%03d"})]</font> ({$c_diary_comment_.r_datetime|date_format:"%m/%d %H:%M"})
52({if $c_diary_comment_.c_member_id == $u || $target_diary_writer.c_member_id==$u})
53[<a href="({t_url m=ktai a=page_fh_diary_delete_c_diary_comment_confirm})&amp;target_c_diary_comment_id=({$c_diary_comment_.c_diary_comment_id})&amp;({$tail})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})">削除</a>]
54({/if})<br>
55({if $c_diary_comment_.nickname})<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_diary_comment_.c_member_id})&amp;({$tail})">({$c_diary_comment_.nickname})</a>({/if})
56<br>
57({$c_diary_comment_.body|t_url2a_ktai|nl2br})
58<br>
59({if $c_diary_comment_.image_filename_1})
60写真1を見る:[<a href="({t_img_url filename=$c_diary_comment_.image_filename_1 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_diary_comment_.image_filename_1 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>
61({/if})
62({if $c_diary_comment_.image_filename_2})
63写真2を見る:[<a href="({t_img_url filename=$c_diary_comment_.image_filename_2 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_diary_comment_.image_filename_2 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>
64({/if})
65({if $c_diary_comment_.image_filename_3})
66写真3を見る:[<a href="({t_img_url filename=$c_diary_comment_.image_filename_3 w=120 h=120 f=jpg})">小</a>/<a href="({t_img_url filename=$c_diary_comment_.image_filename_3 w=$smarty.const.OPENPNE_IMG_KTAI_MAX_WIDTH h=$smarty.const.OPENPNE_IMG_KTAI_MAX_HEIGHT f=jpg})">大</a>]<br>
67({/if})
68</td></tr>
69({/foreach})
70</table>
71
72({if $is_prev || $is_next})
73<center>
74<a name="pager"></a>
75({if $is_prev})<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;page=({$page-1})&amp;({$tail})" accesskey="4">[i:128]前を表示</a>({/if})
76({if $is_prev && $is_next})&nbsp;({/if})
77({if $is_next})<a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$target_c_diary.c_diary_id})&amp;page=({$page+1})&amp;({$tail})" accesskey="6">[i:130]次を表示</a>({/if})
78<br>
79</center>
80({/if})
81({/if})
82<hr color="#({$ktai_color_config.border_01})">
83<a name="write"></a>
84<font color="#({$ktai_color_config.font_06})">コメントを書く:</font>
85({t_form m=ktai a=do_fh_diary_insert_c_diary_comment})
86<input type="hidden" name="ksid" value="({$PHPSESSID})">
87<input type="hidden" name="target_c_diary_id" value="({$target_c_diary.c_diary_id})">
88({if $msg})<font color="#({$ktai_color_config.font_09})">({$msg})</font><br>({/if})
89<textarea name="body" rows="3"></textarea><br>
90<input type="submit" value="書き込む">
91</form>
92
93<hr color="#({$ktai_color_config.border_01})">
94<a name="menu"></a>
95[i:190]<a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_diary_writer.c_member_id})&amp;({$tail})">({$target_diary_writer.nickname})さんの日記リスト</a><br>
96({if $INC_NAVI_type=="f"})
97<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$target_diary_writer.c_member_id})&amp;({$tail})">({$target_diary_writer.nickname})さんのトップ</a><br>
98({/if})
99({if $target_diary_writer.c_member_id==$u})
100<table width="100%"><tr><td align="center" bgcolor="#({$ktai_color_config.bg_02})">
101<font color="#({$ktai_color_config.font_05})">日記検索</font><br>
102</td></tr>
103</table>
104({t_form _method=get m=ktai a=page_fh_diary_list})
105<input type="hidden" name="ksid" value="({$PHPSESSID})">
106<font color="#({$ktai_color_config.font_06})">キーワード:</font><br>
107<input type="text" name="keyword" value="({$keyword})"><br>
108<center><input type="submit" value="検索する"></center>
109</form>
110({/if})
111
112({$inc_ktai_footer|smarty:nodefaults})
Note: See TracBrowser for help on using the repository browser.