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

source: OpenPNE/branches/work/yoshimura/2.6/webapp_biz/modules/biz/templates/inc_biz_schedule_week.tpl @ 3513

Last change on this file since 3513 was 3513, checked in by yoshimura, 12 years ago

施設予約時間のUI変更に伴う変更

File size: 16.1 KB
Line 
1({if $head})<!-- HEADER_BEGIN -->
2<img src="./skin/dummy.gif" class="v_spacer_m">
3
4<!-- ***************************** -->
5<!-- ******ここから:週間予定****** -->
6<table border="0" cellspacing="0" cellpadding="0" style="width:720px;">
7<tr>
8<td style="width:5px;"><img src="./skin/dummy.gif" style="width:5px;height:7px;" class="dummy"></td>
9<td style="width:713px;" class="bg_02">
10
11<table border="0" cellspacing="0" cellpadding="0" style="width:713px;margin:0px;" class="border_07">
12<tr>
13<td style="width:7px;" class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
14<td style="width:699px;" class="bg_00"><img src="./skin/dummy.gif" style="width:699px;height:7px;" class="dummy"></td>
15<td style="width:7px;" class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
16</tr>
17<tr>
18<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
19<td class="bg_02">
20<!-- ここから:主内容 -->
21
22({if $msg})
23<div class="border_01 bg_02">
24
25<div class="padding_s" align="left">
26<span class="caution">({$msg})</span>
27</div>
28
29</div>
30({/if})
31
32({if $cmd == "g"})
33({t_form m=biz a=do_g_home_add_biz_schedule})
34<input type="hidden" name="sessid" value="({$PHPSESSID})">
35<input type="hidden" name="target_id" value="({$target_id})">
36
37<table border="0" cellspacing="0" cellpadding="0" style="width:699px;">
38<tr>
39<td class="border_01 bg_02" align="right" style="width:130px;border-right:none;"><img src="./skin/dummy.gif" style="width:129px;height:10px;" class="dummy"></td>
40<td class="border_01 bg_02 padding_ss" align="left" style="width:100px;border-right:none;">
41
42<a href="({t_url m=biz a=page_fh_biz_schedule_add})&amp;target_biz_group_id=({$target_id})">新規予定登録</a>
43
44</td>
45<td class="border_01 bg_02 padding_ss" style="border-left:none;" align="right">
46
47予定:
48<input type="text" class="text" name="title" value="" size="30">
49<select name="start_date">
50({foreach from=$daylist item=item})
51<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
52({/foreach})
53</select>
54<input type="submit" class="submit" value="追加">
55
56&nbsp;
57<a href="({t_url m=biz a=page_`$cmd`_home})&amp;w=({$w-1})&amp;target_c_commu_id=({$target_id})" title="前の週"><</a>
58<a href="({t_url m=biz a=page_`$cmd`_home})&amp;target_c_commu_id=({$target_id})" title="今週">■</a>
59<a href="({t_url m=biz a=page_`$cmd`_home})&amp;w=({$w+1})&amp;target_c_commu_id=({$target_id})" title="次の週">></a>
60&nbsp;
61
62</td>
63</tr>
64</table>
65</form>
66
67<div>
68({elseif $cmd == "s_list"})
69
70({t_form m=biz a=do_s_add_schedule})
71<input type="hidden" name="sessid" value="({$PHPSESSID})">
72<input type="hidden" name="shisetsu_id" value="({$target_id})">
73
74<div class="border_01">
75<table border="0" cellspacing="0" cellpadding="0" style="width:697px;">
76<tr>
77<td style="width:36px;" class="bg_06"><img src="./skin/content_header_1.gif" style="width:30px;height:20px;" class="dummy"></td>
78<td style="width:666px;padding:2px 0px;" class="bg_06"><span class="b_b c_00">({$list.name})</span></td>
79</tr>
80({if $list.info})
81<tr>
82<td class="border_01 bg_02" align="left" style="width:10px;border-right:none;"><img src="./skin/dummy.gif" style="width:9px;height:10px;" class="dummy"></td>
83<td class="border_01 bg_02 padding_ss" style="border-left:none;" align="left">
84({$list.info})
85</td>
86</tr>
87({/if})
88</table>
89</div>
90
91<table border="0" cellspacing="0" cellpadding="0" style="width:699px;">
92<tr>
93<td class="border_01 bg_02" align="right" style="width:130px;border-right:none;"><img src="./skin/dummy.gif" style="width:129px;height:10px;" class="dummy"></td>
94<td class="border_01 bg_02 padding_ss" style="border-left:none;" align="right">
95
96施設予約を入れる:
97
98<select name="start_date">
99({foreach from=$calendar item=item})
100<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
101({/foreach})
102</select>
103
104<select name='start_hour'>
105        <option value=''({if $selected_s_hour == null}) selected="selected"({/if})>--時
106        ({section name=i loop=$s_hours})
107                <option value="({if $s_hours[i] < 10 })0({/if})({$s_hours[i]})"({if $selected_s_hour != null && $selected_s_hour == $s_hours[i]}) selected="selected"({/if})>({$s_hours[i]})時
108        ({/section})
109</select>
110<select name='start_min'>
111        <option value=''({if $selected_s_min == null}) selected="selected"({/if})>--分
112        ({section name=i loop=$s_mins})
113                <option value="({if $s_mins[i] < 10 })0({/if})({$s_mins[i]})"({if $selected_s_min != null && $selected_s_min == $s_mins[i]}) selected="selected"({/if})>({$s_mins[i]})分
114        ({/section})
115</select>
116
117
118<select name='end_hour'>
119        <option value=''({if $selected_e_hour == null}) selected="selected"({/if})>--時
120        ({section name=i loop=$e_hours})
121                <option value="({if $e_hours[i] < 10 })0({/if})({$e_hours[i]})"({if $selected_e_hour != null && $selected_e_hour == $e_hours[i]}) selected="selected"({/if})>({$e_hours[i]})時
122        ({/section})
123</select>
124<select name='end_min'>
125        <option value=''({if $selected_e_min == null}) selected="selected"({/if})>--分
126        ({section name=i loop=$e_mins})
127                <option value="({if $e_mins[i] < 10 })0({/if})({$e_mins[i]})"({if $selected_e_min != null && $selected_e_min == $s_mins[i]}) selected="selected"({/if})>({$e_mins[i]})分
128        ({/section})
129</select>
130
131<input type="submit" class="submit" value="追加">
132
133&nbsp;
134<a href="({t_url m=biz a=page_s_list})&amp;w=({$w-1})" title="前の週"><</a>
135<a href="({t_url m=biz a=page_s_list})" title="今週">■</a>
136<a href="({t_url m=biz a=page_s_list})&amp;w=({$w+1})" title="次の週">></a>
137&nbsp;
138</td>
139</tr>
140</table>
141</form>
142
143({else})
144
145<div class="border_01" style="border-left:none;border-right:none;border-bottom:none;">
146({/if})
147<table border="0" cellspacing="0" cellpadding="0" style="width:699px;">
148({/if})  <!-- END HEAD -->
149
150
151({if $value})  <!-- BEGIN VALUE -->
152({*****})
153<tr>
154<td class="bg_05 border_01" style="width:131px;border-top:none;border-right:none;" align="center" valign="top"><img src="./skin/dummy.gif" style="width:130px;height:10px;" class="dummy"></td>
155({foreach from=$calendar item=item name=calendar})
156<td class="({if $item.now})bg_09({else})bg_05({/if}) padding_ss border_01({if $item.dayofweek == "日" || $item.holiday}) c_02({elseif $item.dayofweek == "土"}) c_03({else})({/if})" style="width:81px;border-top:none;({if !$smarty.foreach.calendar.last}) border-right:none;({/if})" align="center">
157
158({if $item.now})<span class="b_b">({/if})
159
160({if $smarty.foreach.calendar.first || $item.day == 1})
161({$item.month_disp})/({/if})({$item.day_disp})(({$item.dayofweek}))
162
163({if $item.now})</span>({/if})
164
165</td>
166({/foreach})
167</tr>
168({*****})
169<tr>
170<td class="bg_02 border_01" style="width:131px;border-top:none;border-right:none;" align="center" valign="top" rowspan="2">
171<img src="./skin/dummy.gif" style="width:130px;height:10px;" class="dummy">
172
173<a href="({t_url m=pc a=page_f_home})&target_c_member_id=({$member_info.c_member_id})">
174({if $cmd == "s_list"})
175<img src="({t_img_url filename=$list.image_filename w=120 h=120 noimg=no_image})" class="pict" alt="写真" style="margin:2px"></a>
176({else})
177<img src="({t_img_url filename=$member_info.image_filename w=120 h=120 noimg=no_image})" class="pict" alt="写真" style="margin:2px"></a>
178({/if})
179<img src="./skin/dummy.gif" style="width:130px;height:10px;" class="dummy">
180
181({if $cmd == "s_list"})
182({if !$is_closed_shisetsu})
183<input type="button" onClick="location.href='({t_url m=biz a=page_s_edit_shisetsu})&id=({$target_id})'" value="編 集" style="width:112px;" class="submit">
184
185<img src="./skin/dummy.gif" style="width:130px;height:3px;" class="dummy">
186
187<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">
188({/if})
189<img src="./skin/dummy.gif" class="v_spacer_s">
190
191<img src="./skin/dummy.gif" class="v_spacer_s">
192
193({else})
194
195({if $cmd != "h"})
196<a href="({t_url m=pc a=page_f_home})&target_c_member_id=({$member_info.c_member_id})" class="border_01 bg_02" style="padding:4px 0;display:block;border-left:none;border-right:none;">({$member_info.nickname})</a>
197最終ログインは<br>({$member_info.last_login})<br>
198({else})
199<div class="border_01 bg_02" style="padding:4px 0;display:block;border-left:none;border-right:none;">
200({$stateform|smarty:nodefaults})
201</div>
202({/if})
203
204({/if})
205<img src="./skin/dummy.gif" class="v_spacer_m">
206
207({if $cmd == "h"})
208<input type="button" onClick="location.href='({t_url m=pc a=page_h_config_image})'" value="写真を編集" style="width:112px;" class="submit">
209
210<img src="./skin/dummy.gif" class="v_spacer_s">
211
212<input type="button" onClick="location.href='({t_url m=pc a=page_h_config_prof})'" value="プロフィール変更" style="width:112px;" class="submit">
213
214<img src="./skin/dummy.gif" class="v_spacer_s">
215<img src="./skin/dummy.gif" class="v_spacer_s">
216<img src="./skin/dummy.gif" class="v_spacer_s">
217({/if})
218
219</td>
220({foreach from=$calendar item=item name=calendar})
221<td class="({if $item.now})bg_09({else})bg_02({/if}) border_01({if $item.dayofweek == "日" || $item.holiday}) c_02({elseif $item.dayofweek == "土"}) c_03({else})({/if})" style="width:81px;border-top:none;({if !$smarty.foreach.calendar.last}) border-right:none;({/if}) border-bottom:none;" align="left" valign="top">
222
223({* 祝日 *})
224<div class="padding_s">
225({foreach from=$item.holiday item=item_holiday})
226({$item_holiday})<br>
227({/foreach})
228</div>
229
230({* スケジュール(時間有) *})
231({foreach from=$item.schedule item=item_schedule name=schedule})
232        ({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
233        ({elseif $cmd == 's_list'})
234({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
235({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
236({if $item_schedule.finish_time})
237({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
238({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
239({/if})
240<a href="({t_url m=biz a=page_s_view_schedule})&amp;id=({$item_schedule.biz_shisetsu_schedule_id})">
241({ext_include file="inc_biz_schedule_week_time.tpl"})
242<div class="padding_s" style="padding-top:0;">
243({$item_schedule.c_member_name})
244</div></a>
245        ({elseif $item_schedule.begin_date < $item_schedule.finish_date})  <!--バナー予定 -->
246({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
247({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
248({if $item_schedule.finish_time})
249({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
250({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
251({/if})
252({ext_include file="inc_biz_schedule_week_time.tpl"})
253<div class="padding_s" style="padding-top:0;"> 
254<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> 
255 </div>
256        ({else})
257({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
258({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
259({if $item_schedule.finish_time})
260({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
261({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
262({/if})
263({ext_include file="inc_biz_schedule_week_time.tpl"})
264<div class="padding_s" style="padding-top:0;">
265<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>
266</div>
267        ({/if})
268({/foreach})
269
270<img src="./skin/dummy.gif" style="width:80px;height:10px;" class="dummy">
271
272</td>
273({/foreach})
274</tr>
275({*****})
276
277<tr>
278
279({foreach from=$calendar item=item name=calendar})
280<td class="({if $item.now})bg_09({else})bg_02({/if}) border_01({if $item.dayofweek == "日" || $item.holiday}) c_02({elseif $item.dayofweek == "土"}) c_03({else})({/if})" style="width:81px;border-top:none;({if !$smarty.foreach.calendar.last}) border-right:none;({/if})" align="left" valign="top">
281
282({if $cmd == 'h'})
283({* 誕生日 *})
284({foreach from=$item.birth item=item_birth})
285<div class="padding_s"><img src="./skin/icon_birthday.gif" class="icon"><a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item_birth.c_member_id})">({$item_birth.nickname})さん</a></div>
286({/foreach})
287
288({* イベント *})
289({foreach from=$item.event item=item_event})
290<div class="padding_s"><img src="./skin/icon_event_({if $item_event.is_join})R({else})B({/if}).gif" class="icon"><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></div>
291({/foreach})
292
293({else})
294&nbsp;
295({/if})
296
297({* Todo *})
298({foreach from=$item.todo item=item_todo})
299<div class="padding_s">
300<img src="./skin/biz/todo_icon.gif"  class="icon">
301<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>
302({/foreach})
303
304({* スケジュール(時間無) *})
305({if $item.schedule})
306({foreach from=$item.schedule item=item_schedule name=schedule})
307        ({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
308<div class="padding_s">
309({*<img src="./skin/icon_pen.gif" class="icon">*})<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>
310</div>
311        ({else})
312&nbsp;
313        ({/if})
314({/foreach})
315({else})
316&nbsp;
317({/if})
318
319</td>
320({/foreach})
321
322</tr>
323({/if})  <!-- END VALUE -->
324
325({if $foot})  <!-- BEGIN FOOT -->
326<tr>
327<td class="bg_02 border_01" style="border-top:none;border-right:none;" align="center" valign="top"><img src="./skin/dummy.gif" style="width:130px;height:10px;" class="dummy"></td>
328<td class="bg_02 border_01" style="border-top:none;" align="right" valign="top" colspan="7">
329
330<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
331<tr>
332<td class="({if $cmd != "g"})border_01 ({/if})padding_ss" align="left" valign="middle" style="border-left:none;border-top:none;border-bottom:none;border-right:none;">
333
334({if ($cmd == "h") || ($cmd == "f")})
335<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>
336({else})
337&nbsp;
338({/if})
339
340</td>
341<td class="padding_ss" align="right" valign="middle">
342
343({if ($cmd == "h") || ($cmd == "f")})
344({t_form m=biz a=do_`$cmd`_home_add_biz_schedule})
345<input type="hidden" name="sessid" value="({$PHPSESSID})">
346<input type="hidden" name="target_id" value="({$target_id})">
347予定:
348<input type="text" class="text" name="title" value="" size="30">
349<select name="start_date">
350({foreach from=$daylist item=item})
351<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
352({/foreach})
353</select>
354<input type="submit" class="submit" value="追加">
355
356&nbsp;
357<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>
358<a href="({t_url m=pc a=page_`$cmd`_home})({if $target_id})&amp;target_c_member_id=({$target_id})({/if})" title="今週">■</a>
359<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>
360&nbsp;
361</form>
362({else})
363
364&nbsp;
365
366({/if})
367
368</td>
369</tr>
370</table>
371
372</td>
373</tr>
374</table>
375</div>
376
377<!-- ここまで:主内容 -->
378</td>
379<td class="bg_00"><img src="./skin/dummy.gif"></td>
380</tr>
381<tr>
382<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
383<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
384<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
385</tr>
386</table>
387
388</td>
389</tr>
390</table>
391<!-- ******ここまで:週間予定****** -->
392<!-- ***************************** -->
393
394<img src="./skin/dummy.gif" class="v_spacer_m">
395({/if}) <!-- END FOOT -->
Note: See TracBrowser for help on using the repository browser.