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

source: OpenPNE/branches/stable-2.10.x/webapp_biz/modules/ktai/templates/inc_f_home_h_prof.tpl @ 4392

Last change on this file since 4392 was 4392, checked in by ebihara, 13 years ago

#1411:年齢・誕生日が入力されてない場合でもフレンドホームに項目が表示されていたのを修正

File size: 10.0 KB
Line 
1({$inc_ktai_header|smarty:nodefaults})
2
3({if $inc_ktai_entry_point[1]})
4({$inc_ktai_entry_point[1]|smarty:nodefaults})
5({/if})
6<table width="100%"><tr><td align="center" bgcolor="#({$ktai_color_config.bg_02})">
7<font color="#({$ktai_color_config.font_05})"><a name="top">({$target_c_member.nickname})さん</a></font><br>
8</td></tr>
9<tr><td bgcolor="#({$ktai_color_config.bg_03})" align="center">
10<font color="#({$ktai_color_config.color_24})">最終ログインは({$target_c_member.last_login})</font><br>
11</td></tr></table>
12({if $c_siteadmin})
13({$c_siteadmin|smarty:nodefaults})<br>
14({/if})
15({if $inc_ktai_entry_point[2]})
16({$inc_ktai_entry_point[2]|smarty:nodefaults})
17({/if})
18
19({if $relation.wait==1})
20<font color="#({$ktai_color_config.font_09})">※現在、({$WORD_FRIEND_HALF})承認待ちです</font><br>
21({/if})
22
23({if $is_h_prof == 1})
24<font color="#({$ktai_color_config.font_09})">※他のメンバーから見たあなたのページはこのようになります。<br>プロフィールを変更する場合は <a href="({t_url m=ktai a=page_h_config_prof})&amp;({$tail})">「プロフィール変更」 </a>よりおこなえます。</font><br>
25({/if})
26
27<table width="100%" bgcolor="#({$ktai_color_config.bg_04})">
28({if !$is_h_prof})
29({if ($is_friend || $friend_path)})
30<tr><td colspan="2" align="center">
31({if $friend_path})<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$friend_path.c_member_id})&amp;({$tail})">({$friend_path.nickname})</a>さんの({$WORD_FRIEND_HALF})({/if})
32({if $is_friend})({$WORD_MY_FRIEND_HALF})({/if})
33<hr color="#({$ktai_color_config.border_02})">
34</td></tr>
35({/if})
36({if $days_birthday == 0})({* 誕生日当日 *})
37<tr><td colspan="2" align="center">
38<a href="({t_url m=ktai a=page_f_message_send})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">☆Happy Birthday☆<br>
39お誕生日にメッセージを送りましょう</a>
40<hr color="#({$ktai_color_config.border_02})">
41</td></tr>
42({elseif $days_birthday <= 3})({* 誕生日3日以内 *})
43<tr><td colspan="2" align="center">
44<a href="({t_url m=ktai a=page_f_message_send})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">☆もうすぐ誕生日です!☆<br>
45お誕生日にはメッセージを送りましょう</a>
46<hr color="#({$ktai_color_config.border_02})">
47</td></tr>
48({/if})
49({/if})
50<tr><td colspan="2" align="center">
51[i:69]<a href="({t_url m=ktai_biz a=page_fh_biz_todo_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">Todoリスト</a>/[i:176]<a href="({t_url m=ktai_biz a=page_fh_calendar_week})&amp;target_id=({$target_c_member.c_member_id})&amp;({$tail})">週間カレンダー</a><br>
52<hr color="#({$ktai_color_config.border_02})">
53</td></tr>
54
55<tr><td align="center" width="50%" valign="top">
56<img src="({t_img_url filename=$target_c_member.image_filename w=120 h=120 f=jpg noimg=no_image})" alt="({$target_c_member.nickname})さん"><br>
57({if $is_h_prof == 1})
58<a href="({t_url m=ktai a=page_h_config_image})&amp;({$tail})">写真を編集</a><br>
59({else})
60({if $target_c_member.image_filename})
61<a href="({t_url m=ktai a=page_f_show_image})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">写真を見る</a><br>
62({/if})
63({/if})
64</td>
65<td valign="top">
66({strip})
67<font color="#({$ktai_color_config.font_06})">ID:</font><br>({$target_c_member.c_member_id})<br>
68
69({capture name="birth"})
70({if $target_c_member.age !== NULL && ($target_c_member.public_flag_birth_year == 'public' || ($target_c_member.public_flag_birth_year == 'friend' && $is_friend))})<font color="#({$ktai_color_config.font_06})">年齢:</font><br>({$target_c_member.age})歳<br>
71({if $is_h_prof && $target_c_member.public_flag_birth_year == 'friend'})<font color="#({$ktai_color_config.font_09})">※({$WORD_MY_FRIEND_HALF})まで公開</font><br>({/if})
72({/if})
73({if $target_c_member.birth_month && $target_c_member.birth_day})
74<font color="#({$ktai_color_config.font_06})">誕生日:</font><br>({$target_c_member.birth_month})月({$target_c_member.birth_day})日<br>
75({/if})
76({/capture})
77
78({foreach from=$target_c_member.profile key=key item=item})
79({if $item.public_flag != "private" && ($item.public_flag == "public" || ($item.public_flag == "friend" && $is_friend))})
80({if $item.form_type != 'textarea'})
81
82({if !$_cnt_birth && $profile_list[$key].sort_order >= $smarty.const.SORT_ORDER_BIRTH})
83({counter assign="_cnt_birth"})
84({$smarty.capture.birth|smarty:nodefaults})
85({/if})
86
87<font color="#({$ktai_color_config.font_06})">({$item.caption}):</font><br>
88({if $item.form_type == 'checkbox'})
89    ({$item.value|@t_implode:", "})
90({elseif $item.form_type == 'text' || $item.form_type == 'textlong'})
91    ({$item.value|t_truncate:30:""})
92({else})
93    ({$item.value})
94({/if})
95<br>
96({if $is_h_prof && $item.public_flag == 'friend'})<font color="#({$ktai_color_config.font_09})">※({$WORD_MY_FRIEND_HALF})まで公開</font><br>({/if})
97
98({/if})
99({/if})
100({/foreach})
101
102({if !$_cnt_birth})({$smarty.capture.birth|smarty:nodefaults})({/if})
103({/strip})
104</td></tr>
105<tr><td colspan="2">
106({foreach from=$target_c_member.profile key=key item=item})
107({if $item.form_type == 'textarea'})
108<font color="#({$ktai_color_config.font_06})">({$item.caption}):</font><br>
109({$item.value|t_truncate:108:""})<br>
110({/if})
111({/foreach})
112</td></tr>
113<tr><td align="right" colspan="2">
114<font color="#({$ktai_color_config.font_07})">⇒</font><a href="({t_url m=ktai a=page_fh_profile_detail})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">もっと見る</a>
115<hr color="#({$ktai_color_config.border_01})"></td></tr></table>
116({if $is_h_prof})
117[i:76]<a href="({t_url m=ktai a=page_fh_intro})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">紹介文を読む</a>
118({else})
119[i:110]<a href="({t_url m=ktai a=page_f_message_send})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">メッセージを送る</a><br>
120({if $relation.friend==0})
121({if $relation.wait==0})
122[i:140]<a href="({t_url m=ktai a=page_f_link_request})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">({$WORD_MY_FRIEND_HALF})に加える</a><br>
123({/if})
124({/if})
125[i:136]<a href="({t_url m=ktai a=do_f_bookmark_add_insert_c_bookmark})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">お気に入りに追加</a><br>
126[i:76]<a href="({t_url m=ktai a=page_fh_intro})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">紹介文を読む</a>
127({if $relation.friend})
128 / <a href="({t_url m=ktai a=page_f_intro_edit})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">書く</a><br>
129({/if})
130({/if})
131({if $inc_ktai_entry_point[3]})
132({$inc_ktai_entry_point[3]|smarty:nodefaults})
133({/if})
134<br>
135<table width="100%">
136<tr><td bgcolor="#({$ktai_color_config.bg_05})">
137<a accesskey="1" name="a1" href="#a1">[i:125]</a><font color="#({$ktai_color_config.color_25})">新着日記</font><br>
138</td></tr>
139({if $c_diary_list})
140({foreach from=$c_diary_list item=c_diary})
141<tr><td bgcolor="#({cycle values="`$ktai_color_config.bg_06`,`$ktai_color_config.bg_07`"})">
142<font color="#({$ktai_color_config.font_06})">[({$c_diary.r_date|date_format:"%m/%d"})]</font><a href="({t_url m=ktai a=page_fh_diary})&amp;target_c_diary_id=({$c_diary.c_diary_id})&amp;({$tail})">({$c_diary.subject|t_truncate:22:""})(({$c_diary.comment_count}))</a>
143({if $c_diary.image_filename_1 || $c_diary.image_filename_2 || $c_diary.image_filename_3})
144[i:68]
145({/if})
146<br>
147({if $is_h_prof && $item.public_flag == 'friend'})<font color="#({$ktai_color_config.font_09})">※({$WORD_MY_FRIEND_HALF})まで公開</font><br>({/if})
148</td></tr>
149<tr><td bgcolor="#({$ktai_color_config.bg_07})">
150<hr color="#({$ktai_color_config.border_02})">
151</td></tr>
152({/foreach})
153<tr><td align="right">
154<font color="#({$ktai_color_config.font_07})">⇒</font><a href="({t_url m=ktai a=page_fh_diary_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">もっと見る</a><br>
155</td></tr>
156({/if})
157</table>
158<br>
159<table width="100%">
160<tr><td bgcolor="#({$ktai_color_config.bg_08})">
161<a accesskey="2" name="a2" href="#a2">[i:126]</a><font color="#({$ktai_color_config.color_26})">({$WORD_FRIEND_HALF})リスト</font><br>
162</td></tr>
163({foreach from=$c_friend_list item=c_friend})
164<tr><td bgcolor="#({cycle values="`$ktai_color_config.bg_09`,`$ktai_color_config.bg_07`"})">
165<a href="({t_url m=ktai a=page_f_home})&amp;target_c_member_id=({$c_friend.c_member_id_to})&amp;({$tail})">({$c_friend.nickname|t_truncate:30:""})(({$c_friend.count_friend}))</a><br>
166</td></tr>
167<tr><td bgcolor="#({$ktai_color_config.bg_10})">
168<hr color="#({$ktai_color_config.border_03})">
169</td></tr>
170({/foreach})
171<tr><td align="right">
172<font color="#({$ktai_color_config.font_07})">⇒</font><a href="({t_url m=ktai a=page_fh_friend_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">もっと見る</a><br>
173</td></tr></table>
174
175<br>
176
177<table width="100%">
178<tr><td bgcolor="#({$ktai_color_config.bg_05})"><a accesskey="3" name="a3" href="#a3">[i:127]</a><font color="#({$ktai_color_config.color_25})">参加コミュニティ</font><br>
179</td></tr>
180({foreach from=$c_commu_list item=c_commu})
181<tr><td bgcolor="#({cycle values="`$ktai_color_config.bg_06`,`$ktai_color_config.bg_07`"})">
182<a href="({t_url m=ktai a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})&amp;({$tail})">({$c_commu.name|t_truncate:30:""})(({$c_commu.count_members}))</a><br>
183</td></tr>
184<tr><td  bgcolor="#({$ktai_color_config.bg_07})">
185<hr color="#({$ktai_color_config.border_02})">
186</td></tr>
187({/foreach})
188<tr><td align="right">
189<font color="#({$ktai_color_config.font_07})">⇒</font><a href="({t_url m=ktai a=page_fh_com_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">もっと見る</a><br>
190({if $common_commu_count})
191<font color="#({$ktai_color_config.font_07})">⇒</font><a href="({t_url m=ktai a=page_f_com_list_common})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">共通コミュニティ</a><br>
192({/if})
193</td></tr></table>
194
195({$inc_ktai_footer|smarty:nodefaults})
Note: See TracBrowser for help on using the repository browser.