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

source: OpenPNE/trunk/webapp_biz/modules/biz/templates/inc_biz_schedule_week.tpl @ 8403

Last change on this file since 8403 was 8403, checked in by nakasone, 12 years ago

#2166:BIZ:フレンドホームに「もっと写真を見る」のリンクがないのを修正

File size: 10.4 KB
Line 
1({if $head})
2<div class="dparts bizWeeklyCalendarTable"><div class="parts">
3
4({if $cmd == "g"})
5
6<div class="block moreInfo">
7({t_form_block m=biz a=do_g_home_add_biz_schedule})
8<input type="hidden" name="target_id" value="({$target_id})" />
9<a href="({t_url m=biz a=page_fh_biz_schedule_add})&amp;target_biz_group_id=({$target_id})">新規予定登録</a>
10<label for="title">予定</label>
11<input type="text" class="input_text" name="title" id="title" value="" size="30" />
12<select name="start_date">
13({foreach from=$daylist item=item})
14<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
15({/foreach})
16</select>
17<input type="submit" class="input_submit" value=" 追 加 " />
18<a href="({t_url m=biz a=page_g_home})&amp;w=({$w-1})&amp;target_c_commu_id=({$target_id})" title="前の週"><</a>
19<a href="({t_url m=biz a=page_g_home})&amp;target_c_commu_id=({$target_id})" title="今週">■</a>
20<a href="({t_url m=biz a=page_g_home})&amp;w=({$w+1})&amp;target_c_commu_id=({$target_id})" title="次の週">></a>
21({/t_form_block})
22</div>
23
24({elseif $cmd == "s_list"})
25
26<div class="partsHeading"><h3>({$list.name})</h3></div>
27
28({if $list.info})
29<div class="block">
30<p>({$list.info})</p>
31</div>
32({/if})
33
34<div class="block moreInfo">
35({t_form_block m=biz a=do_s_add_schedule})
36<input type="hidden" name="shisetsu_id" value="({$target_id})" />
37施設予約を入れる:
38<select name="start_date">
39({foreach from=$calendar item=item})
40<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
41({/foreach})
42</select>
43<select name="start_time">
44<option value="">現在時</option>
45({section name=i loop=$hours})
46<option value="({if $hours[i] < 10 })0({/if})({$hours[i]})">({$hours[i]})時</option>
47({/section})
48</select>
49から
50<select name="finish_time">
51({section name=i loop=$mins})
52<option value="({$mins[i]})">({$mins[i]})分後</option>
53({/section})
54</select>
55まで
56<input type="submit" class="input_submit" value=" 追 加 " />
57<a href="({t_url m=biz a=page_s_list})&amp;w=({$w-1})" title="前の週"><</a>
58<a href="({t_url m=biz a=page_s_list})" title="今週">■</a>
59<a href="({t_url m=biz a=page_s_list})&amp;w=({$w+1})" title="次の週">></a>
60({/t_form_block})
61</div>
62
63({/if})
64
65({/if})({* /head *})
66({if $value})
67
68<table class="calendar">
69<tr>
70
71<th rowspan="2">
72({if $cmd == "s_list"})
73<img src="({t_img_url filename=$list.image_filename w=120 h=120 noimg=no_image})" alt="" /><br />
74({else})
75<a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$member_info.c_member_id})"><img src="({t_img_url filename=$member_info.image_filename w=120 h=120 noimg=no_image})" alt="" /></a><br />
76({/if})
77
78({if $cmd == "s_list"})
79
80({if !$is_closed_shisetsu})
81<input type="button" class="input_submit" onclick="location.href='({t_url m=biz a=page_s_edit_shisetsu})&amp;id=({$target_id})'" value="編 集" />
82<input type="button" class="input_submit" onclick="location.href='({t_url m=biz a=page_s_delete_shisetsu})&amp;target_id=({$target_id})&amp;sessid=({$PHPSESSID})'" value="削 除" />
83({/if})
84
85({else})
86
87({if $cmd != "h"})
88<ul class="moreInfo button">
89<li><input type="button" class="input_submit" onclick="location.href='({t_url m=pc a=page_f_show_image})&amp;target_c_member_id=({$member_info.c_member_id})'" value="もっと写真を見る" /></li>
90</ul>
91<p class="text"><a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$member_info.c_member_id})">({$member_info.nickname})</a></p>
92<p class="login_time">最終ログインは<br />({$member_info.last_login})</p>
93({else})
94
95({if $smarty.const.OPENPNE_IS_POINT_ADMIN || $member_info.c_member_id != 1})
96({if ($smarty.const.OPENPNE_DISP_RANK && $rank) || ($smarty.const.OPENPNE_DISP_POINT && $point)})
97({if $smarty.const.OPENPNE_DISP_RANK && $rank})
98<p class="rank"><img src="({t_img_url filename=$rank.image_filename})" alt="({$rank.name})" /></p>
99({/if})
100({if $smarty.const.OPENPNE_DISP_POINT && $point})
101<p class="point">({$point}) Point</p>
102({/if})
103({/if})
104({/if})
105
106<div class="nickname">
107({t_form_block m=biz a=do_h_home_edit_nickname})
108<input type="text" class="input_text" name="nickname" value="({$member_info.nickname})" /><br />
109<input type="submit" class="input_submit" value="名前変更" /><br />
110({/t_form_block})
111</div>
112<ul class="moreInfo button">
113<li><input type="button" class="input_submit" onclick="location.href='({t_url m=pc a=page_h_config_image})'" value="写真を編集" /></li>
114<li><input type="button" class="input_submit" onclick="location.href='({t_url m=pc a=page_h_config_prof})'" value="プロフィール変更" /></li>
115</ul>
116({/if})
117
118({/if})
119</th>
120
121({foreach from=$calendar item=item name=calendar})
122({strip})
123<td({if $item.now}) class="today"({/if})>
124<p class="day({if $item.dayofweek == "日"}) sun({elseif $item.dayofweek == "土"}) sat({/if})({if $item.holiday}) holiday({/if})">
125({if $smarty.foreach.calendar.first || $item.day == 1})({$item.month})/({/if})({$item.day})(({$item.dayofweek}))
126({foreach from=$item.holiday item=item_holiday})
127<br />({$item_holiday})
128({/foreach})
129</p>
130
131({* スケジュール(時間有) *})
132({foreach from=$item.schedule item=item_schedule name=schedule})
133({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
134({elseif $cmd == 's_list'})
135
136({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
137({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
138({if $item_schedule.finish_time})
139({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
140({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
141({/if})
142
143<p class="time">({ext_include file="inc_biz_schedule_week_time.tpl"})</p>
144<p><a href="({t_url m=biz a=page_s_view_schedule})&amp;id=({$item_schedule.biz_shisetsu_schedule_id})">({$item_schedule.c_member_name})</a></p>
145
146({elseif $item_schedule.begin_date != $item_schedule.finish_date})  <!--バナー予定 -->
147
148({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
149({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
150({if $item_schedule.finish_time})
151({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
152({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
153({/if})
154
155<p class="time">({ext_include file="inc_biz_schedule_week_time.tpl"})</p>
156<p><a href="({t_url m=biz a=page_fh_biz_schedule_view})&amp;id=({$item_schedule.biz_schedule_id})({if $cmd=='f'})&amp;target_id=({$member_info.c_member_id})({/if})">({$item_schedule.title})</a></p>
157
158({else})
159
160({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
161({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
162({if $item_schedule.finish_time})
163({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
164({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
165({else})
166({assign var="finish_time_H" value=""})
167({assign var="finish_time_M" value=""})
168({/if})
169
170<p class="time">({ext_include file="inc_biz_schedule_week_time.tpl"})</p>
171<p><a href="({t_url m=biz a=page_fh_biz_schedule_view})&amp;id=({$item_schedule.biz_schedule_id})({if $cmd=='f'})&amp;target_id=({$member_info.c_member_id})({/if})">({$item_schedule.title})</a></p>
172
173({/if})
174({/foreach})
175
176</td>
177({/strip})
178({/foreach})
179</tr><tr>
180({foreach from=$calendar item=item name=calendar})
181({strip})
182<td class="sub ({if $item.now}) today({/if})">
183
184({if $cmd == 'h'})
185
186({* 誕生日 *})
187({foreach from=$item.birth item=item_birth})
188({if $item_birth.public_flag_birth_month_day != "private" || $c_member.c_member_id == $item_birth.c_member_id})
189<p><img src="({t_img_url_skin filename=icon_birthday})" alt="誕生日" /><a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item_birth.c_member_id})">({$item_birth.nickname})さん</a></p>
190({/if})
191({/foreach})
192
193({* イベント *})
194({foreach from=$item.event item=item_event})
195<p><img src="({if $item_event.is_join})({t_img_url_skin filename=icon_event_R})({else})({t_img_url_skin filename=icon_event_B})({/if})" alt="イベント" /><a href="({t_url m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=({$item_event.c_commu_topic_id})">({$item_event.name|t_truncate:20:".."})</a></p>
196({/foreach})
197
198({/if})
199
200({* Todo *})
201({foreach from=$item.todo item=item_todo})
202<p><img src="./skin/default/img/biz/todo_icon.gif" alt="Todo" /><a href="({t_url m=biz a=page_fh_home_edit_biz_todo})&amp;id=({$item_todo.biz_todo_id})&amp;target_id=({$member_info.c_member_id})">({$item_todo.memo|t_truncate:20:".."})</a></p>
203({/foreach})
204
205({* スケジュール(時間無) *})
206({if $item.schedule})
207({foreach from=$item.schedule item=item_schedule name=schedule})
208({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
209<p><img src="({t_img_url_skin filename=icon_pen})" alt="スケジュール" /><a href="({t_url m=biz a=page_fh_biz_schedule_view})&amp;id=({$item_schedule.biz_schedule_id})({if $cmd=='f'})&amp;target_id=({$member_info.c_member_id})({/if})">({$item_schedule.title})</a></p>
210({/if})
211({/foreach})
212({/if})
213
214</td>
215({/strip})
216({/foreach})
217</tr>
218</table>
219
220({/if})({* /value *})
221({if $foot})
222
223({if $cmd == "h" || $cmd == "f"})
224<div class="block moreInfo">
225({t_form_block m=biz a=do_`$cmd`_home_add_biz_schedule})
226
227<a href="({t_url m=biz a=page_fh_biz_schedule_calendar})({if $cmd == 'f'})&amp;target_id=({$member_info.c_member_id})({/if})">月間カレンダー</a>
228
229<input type="hidden" name="target_id" value="({$target_id})" />
230<label for="title">予定</label> <input type="text" class="input_text" name="title" id="title" value="" size="30" />
231<select name="start_date">
232({foreach from=$daylist item=item})
233<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
234({/foreach})
235</select>
236<input type="submit" class="input_submit" value=" 追 加 " />
237
238<a href="({t_url m=pc a=page_`$cmd`_home})&amp;w=({$w-1})({if $target_id})&amp;target_c_member_id=({$target_id})({/if})" title="前の週"><</a>
239<a href="({t_url m=pc a=page_`$cmd`_home})({if $target_id})&amp;target_c_member_id=({$target_id})({/if})" title="今週">■</a>
240<a href="({t_url m=pc a=page_`$cmd`_home})&amp;w=({$w+1})({if $target_id})&amp;target_c_member_id=({$target_id})({/if})" title="次の週">></a>
241({/t_form_block})
242</div>
243({/if})
244
245</div></div>
246
247({/if})({* /foot *})
Note: See TracBrowser for help on using the repository browser.