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

source: OpenPNE/trunk/webapp/modules/ktai/templates/fh_diary.tpl @ 3788

Last change on this file since 3788 was 3788, checked in by ebihara, 14 years ago

#1121:日記の公開範囲を他人が見れるように

File size: 6.5 KB
Line 
1({$inc_ktai_header|smarty:nodefaults})
2
3<table width="100%"><tr><td align="center" bgcolor="#({$ktai_color_config.bg_01})">
4<font color="#({$ktai_color_config.font_01})"><a name="top">({$target_diary_writer.nickname})さんの日記</a></font><br>
5</td></tr>
6<tr><td bgcolor="#({$ktai_color_config.bg_02})" align="center">
7({$target_c_diary.subject})<br>
8</td></tr></table>
9
10({if $c_siteadmin})
11({$c_siteadmin|smarty:nodefaults})
12({/if})
13<a href="#({if $c_diary_comment})dc1({else})menu({/if})"><font color="#({$ktai_color_config.bg_06})">▼</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>
14({$target_c_diary.body|t_url2a_ktai|nl2br})
15<br>
16({if $target_c_diary.image_filename_1})
17画像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>
18({/if})
19({if $target_c_diary.image_filename_2})
20画像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>
21({/if})
22({if $target_c_diary.image_filename_3})
23画像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>
24({/if})
25
26(({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}))
27
28({if $c_diary_comment})
29<hr color="#({$ktai_color_config.border_01})">
30<center>
31コメント(全({$total_num})件)<br>
32({$pager.start})~({$pager.end})件目を表示
33</center>
34
35<table width="100%">
36({foreach from=$c_diary_comment name=c_diary_comment item=c_diary_comment_})
37<tr><td>
38<hr color="#b3ceef">
39</td></tr>
40<tr><td bgcolor="({cycle values="#`$ktai_color_config.bg_05`,#ffffff"})">
41<a href="#({if $smarty.foreach.c_diary_comment.last})menu({else})dc({$smarty.foreach.c_diary_comment.iteration+1})({/if})" name="dc({$smarty.foreach.c_diary_comment.iteration})"><font color="#({$ktai_color_config.bg_06})">▼</font></a><font color="#({$ktai_color_config.font_02})">[({$c_diary_comment_.number|string_format:"%03d"})]</font> ({$c_diary_comment_.r_datetime|date_format:"%m/%d %H:%M"})
42({if $c_diary_comment_.c_member_id == $u || $target_diary_writer.c_member_id==$u})
43[<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>]
44({/if})<br>
45({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})
46<br>
47({$c_diary_comment_.body|t_url2a_ktai|nl2br})
48<br>
49({if $c_diary_comment_.image_filename_1})
50画像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>
51({/if})
52({if $c_diary_comment_.image_filename_2})
53画像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>
54({/if})
55({if $c_diary_comment_.image_filename_3})
56画像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>
57({/if})
58</td></tr>
59({/foreach})
60</table>
61
62({if $is_prev || $is_next})
63<center>
64({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">%%i128%%前を表示</a>({/if})
65({if $is_prev && $is_next})&nbsp;({/if})
66({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">%%i130%%次を表示</a>({/if})
67<br>
68</center>
69({/if})
70({/if})
71<hr color="#({$ktai_color_config.border_01})">
72<font color="#({$ktai_color_config.font_02})">コメントを書く:</font>
73({t_form m=ktai a=do_fh_diary_insert_c_diary_comment})
74<input type="hidden" name="ksid" value="({$PHPSESSID})">
75<input type="hidden" name="target_c_diary_id" value="({$target_c_diary.c_diary_id})">
76<font color=red>({if $msg})({$msg})<br>({/if})</font>
77<textarea name="body" rows="3"></textarea><br>
78<input type="submit" value="書き込む">
79</form>
80
81<hr color="#({$ktai_color_config.border_01})">
82<a name="menu">
83%%i1014%%<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>
84</a>
85({if $INC_NAVI_type=="f"})
86<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>
87({/if})
88({if $target_diary_writer.c_member_id==$u})
89<table width="100%"><tr><td align="center" bgcolor="#({$ktai_color_config.bg_01})">
90<font color="#({$ktai_color_config.font_01})">日記検索</font><br>
91</td></tr>
92</table>
93({t_form _method=get m=ktai a=page_fh_diary_list})
94<input type="hidden" name="ksid" value="({$PHPSESSID})">
95<font color="#({$ktai_color_config.font_02})">キーワード:</font><br>
96<input type="text" name="keyword" value="({$keyword})"><br>
97<center><input type="submit" value="検索する"></center>
98</form>
99({/if})
100
101({$inc_ktai_footer|smarty:nodefaults})
Note: See TracBrowser for help on using the repository browser.