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

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

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

#2186:BIZの週間カレンダーをweeklyCalendarTableを使って書きなおした。再度BIZ用に修正する予定。

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