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

source: OpenPNE/branches/2.6.x/webapp_biz/modules/biz/templates/inc_biz_schedule_week.tpl @ 3305

Last change on this file since 3305 was 3305, checked in by ToshihiroK, 12 years ago

#879:BIZ:繰り返さない予定が期間どおり表示されない
2.6 修正しました

File size: 15.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_time'>
105        <option value=''>現在時
106        ({section name=i loop=$hours})
107                <option value="({if $hours[i] < 10 })0({/if})({$hours[i]})">({$hours[i]})時
108        ({/section})
109</select>
110から
111<select name='finish_time'>
112        ({section name=i loop=$mins})
113                <option value="({$mins[i]})">({$mins[i]})分後
114        ({/section})
115</select>
116まで
117<input type="submit" class="submit" value="追加">
118
119&nbsp;
120<a href="({t_url m=biz a=page_s_list})&amp;w=({$w-1})" title="前の週"><</a>
121<a href="({t_url m=biz a=page_s_list})" title="今週">■</a>
122<a href="({t_url m=biz a=page_s_list})&amp;w=({$w+1})" title="次の週">></a>
123&nbsp;
124</td>
125</tr>
126</table>
127</form>
128
129({else})
130
131<div class="border_01" style="border-left:none;border-right:none;border-bottom:none;">
132({/if})
133<table border="0" cellspacing="0" cellpadding="0" style="width:699px;">
134({/if})  <!-- END HEAD -->
135
136
137({if $value})  <!-- BEGIN VALUE -->
138({*****})
139<tr>
140<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>
141({foreach from=$calendar item=item name=calendar})
142<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">
143
144({if $item.now})<span class="b_b">({/if})
145
146({if $smarty.foreach.calendar.first || $item.day == 1})
147({$item.month_disp})/({/if})({$item.day_disp})(({$item.dayofweek}))
148
149({if $item.now})</span>({/if})
150
151</td>
152({/foreach})
153</tr>
154({*****})
155<tr>
156<td class="bg_02 border_01" style="width:131px;border-top:none;border-right:none;" align="center" valign="top" rowspan="2">
157<img src="./skin/dummy.gif" style="width:130px;height:10px;" class="dummy">
158
159<a href="({t_url m=pc a=page_f_home})&target_c_member_id=({$member_info.c_member_id})">
160({if $cmd == "s_list"})
161<img src="({t_img_url filename=$list.image_filename w=120 h=120 noimg=no_image})" class="pict" alt="写真" style="margin:2px"></a>
162({else})
163<img src="({t_img_url filename=$member_info.image_filename w=120 h=120 noimg=no_image})" class="pict" alt="写真" style="margin:2px"></a>
164({/if})
165<img src="./skin/dummy.gif" style="width:130px;height:10px;" class="dummy">
166
167({if $cmd == "s_list"})
168({if !$is_closed_shisetsu})
169<input type="button" onClick="location.href='({t_url m=biz a=page_s_edit_shisetsu})&id=({$target_id})'" value="編 集" style="width:112px;" class="submit">
170
171<img src="./skin/dummy.gif" style="width:130px;height:3px;" class="dummy">
172
173<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">
174({/if})
175<img src="./skin/dummy.gif" class="v_spacer_s">
176
177<img src="./skin/dummy.gif" class="v_spacer_s">
178
179({else})
180
181({if $cmd != "h"})
182<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>
183最終ログインは<br>({$member_info.last_login})<br>
184({else})
185<div class="border_01 bg_02" style="padding:4px 0;display:block;border-left:none;border-right:none;">
186({$stateform|smarty:nodefaults})
187</div>
188({/if})
189
190({/if})
191<img src="./skin/dummy.gif" class="v_spacer_m">
192
193({if $cmd == "h"})
194<input type="button" onClick="location.href='({t_url m=pc a=page_h_config_image})'" value="写真を編集" style="width:112px;" class="submit">
195
196<img src="./skin/dummy.gif" class="v_spacer_s">
197
198<input type="button" onClick="location.href='({t_url m=pc a=page_h_config_prof})'" value="プロフィール変更" style="width:112px;" class="submit">
199
200<img src="./skin/dummy.gif" class="v_spacer_s">
201<img src="./skin/dummy.gif" class="v_spacer_s">
202<img src="./skin/dummy.gif" class="v_spacer_s">
203({/if})
204
205</td>
206({foreach from=$calendar item=item name=calendar})
207<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">
208
209({* 祝日 *})
210<div class="padding_s">
211({foreach from=$item.holiday item=item_holiday})
212({$item_holiday})<br>
213({/foreach})
214</div>
215
216({* スケジュール(時間有) *})
217({foreach from=$item.schedule item=item_schedule name=schedule})
218        ({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
219        ({elseif $cmd == 's_list'})
220({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
221({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
222({if $item_schedule.finish_time})
223({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
224({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
225({/if})
226<a href="({t_url m=biz a=page_s_view_schedule})&amp;id=({$item_schedule.biz_shisetsu_schedule_id})">
227({ext_include file="inc_biz_schedule_week_time.tpl"})
228<div class="padding_s" style="padding-top:0;">
229({$item_schedule.c_member_name})
230</div></a>
231        ({elseif $item_schedule.begin_date < $item_schedule.finish_date})  <!--バナー予定 -->
232({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
233({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
234({if $item_schedule.finish_time})
235({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
236({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
237({/if})
238({ext_include file="inc_biz_schedule_week_time.tpl"})
239<div class="padding_s" style="padding-top:0;"> 
240<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> 
241 </div>
242        ({else})
243({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
244({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
245({if $item_schedule.finish_time})
246({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
247({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
248({/if})
249({ext_include file="inc_biz_schedule_week_time.tpl"})
250<div class="padding_s" style="padding-top:0;">
251<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>
252</div>
253        ({/if})
254({/foreach})
255
256<img src="./skin/dummy.gif" style="width:80px;height:10px;" class="dummy">
257
258</td>
259({/foreach})
260</tr>
261({*****})
262
263<tr>
264
265({foreach from=$calendar item=item name=calendar})
266<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">
267
268({if $cmd == 'h'})
269({* 誕生日 *})
270({foreach from=$item.birth item=item_birth})
271<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>
272({/foreach})
273
274({* イベント *})
275({foreach from=$item.event item=item_event})
276<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>
277({/foreach})
278
279({else})
280&nbsp;
281({/if})
282
283({* Todo *})
284({foreach from=$item.todo item=item_todo})
285<div class="padding_s">
286<img src="./skin/biz/todo_icon.gif"  class="icon">
287<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>
288({/foreach})
289
290({* スケジュール(時間無) *})
291({if $item.schedule})
292({foreach from=$item.schedule item=item_schedule name=schedule})
293        ({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
294<div class="padding_s">
295({*<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>
296</div>
297        ({else})
298&nbsp;
299        ({/if})
300({/foreach})
301({else})
302&nbsp;
303({/if})
304
305</td>
306({/foreach})
307
308</tr>
309({/if})  <!-- END VALUE -->
310
311({if $foot})  <!-- BEGIN FOOT -->
312<tr>
313<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>
314<td class="bg_02 border_01" style="border-top:none;" align="right" valign="top" colspan="7">
315
316<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
317<tr>
318<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;">
319
320({if ($cmd == "h") || ($cmd == "f")})
321<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>
322({else})
323&nbsp;
324({/if})
325
326</td>
327<td class="padding_ss" align="right" valign="middle">
328
329({if ($cmd == "h") || ($cmd == "f")})
330({t_form m=biz a=do_`$cmd`_home_add_biz_schedule})
331<input type="hidden" name="sessid" value="({$PHPSESSID})">
332<input type="hidden" name="target_id" value="({$target_id})">
333予定:
334<input type="text" class="text" name="title" value="" size="30">
335<select name="start_date">
336({foreach from=$daylist item=item})
337<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
338({/foreach})
339</select>
340<input type="submit" class="submit" value="追加">
341
342&nbsp;
343<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>
344<a href="({t_url m=pc a=page_`$cmd`_home})({if $target_id})&amp;target_c_member_id=({$target_id})({/if})" title="今週">■</a>
345<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>
346&nbsp;
347</form>
348({else})
349
350&nbsp;
351
352({/if})
353
354</td>
355</tr>
356</table>
357
358</td>
359</tr>
360</table>
361</div>
362
363<!-- ここまで:主内容 -->
364</td>
365<td class="bg_00"><img src="./skin/dummy.gif"></td>
366</tr>
367<tr>
368<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
369<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
370<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
371</tr>
372</table>
373
374</td>
375</tr>
376</table>
377<!-- ******ここまで:週間予定****** -->
378<!-- ***************************** -->
379
380<img src="./skin/dummy.gif" class="v_spacer_m">
381({/if}) <!-- END FOOT -->
Note: See TracBrowser for help on using the repository browser.