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

source: OpenPNE/branches/ebihara/prj_dev26_todo/webapp_biz/modules/biz/templates/inc_biz_schedule_week.tpl @ 1055

Last change on this file since 1055 was 1055, checked in by ebihara, 14 years ago

期限付きTodoをカレンダーに表示するように

File size: 14.7 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_g_biz_schedule_add})&amp;target_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" 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 == "日"}) 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_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 == "日"}) 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({foreach from=$item.schedule item=item_schedule name=schedule})
211        ({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
212        ({elseif $cmd == 's_list'})
213({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
214({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
215({if $item_schedule.finish_time})
216({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
217({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
218({/if})
219<a href="({t_url m=biz a=page_s_view_schedule})&amp;id=({$item_schedule.biz_shisetsu_schedule_id})">
220({ext_include file="inc_biz_schedule_week_time.tpl"})
221<div class="padding_s" style="padding-top:0;">
222({$item_schedule.c_member_name})
223</div></a>
224        ({elseif $item_schedule.begin_date != $item_schedule.finish_date})  <!--バナー予定 -->
225({assign var="begin_time_H" value=$item_schedule.begin_date|date_format:"%H"})
226({assign var="begin_time_M" value=$item_schedule.begin_date|date_format:"%M"})
227({if $item_schedule.finish_time})
228({assign var="finish_time_H" value=$item_schedule.finish_date|date_format:"%H"})
229({assign var="finish_time_M" value=$item_schedule.finish_date|date_format:"%M"})
230({/if})
231({ext_include file="inc_biz_schedule_week_time.tpl"})
232<div class="padding_s" style="padding-top:0;">
233<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>
234 </div>
235        ({else})
236({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
237({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
238({if $item_schedule.finish_time})
239({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
240({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
241({/if})
242({ext_include file="inc_biz_schedule_week_time.tpl"})
243<div class="padding_s" style="padding-top:0;">
244<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>
245</div>
246        ({/if})
247({/foreach})
248
249<img src="./skin/dummy.gif" style="width:80px;height:10px;" class="dummy">
250
251</td>
252({/foreach})
253</tr>
254({*****})
255
256<tr>
257
258({foreach from=$calendar item=item name=calendar})
259<td class="({if $item.now})bg_09({else})bg_02({/if}) border_01({if $item.dayofweek == "日"}) 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">
260
261({if $cmd == 'h'})
262({* 誕生日 *})
263({foreach from=$item.birth item=item_birth})
264<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>
265({/foreach})
266
267({* イベント *})
268({foreach from=$item.event item=item_event})
269<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>
270({/foreach})
271
272({* Todo *})
273({foreach from=$item.todo item=item_todo})
274<div class="padding_s">({$item_todo.memo|t_truncate:20:".."})</div>
275({/foreach})
276
277({else})
278&nbsp;
279({/if})
280
281({* スケジュール(時間無) *})
282({if $item.schedule})
283({foreach from=$item.schedule item=item_schedule name=schedule})
284        ({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
285<div class="padding_s">
286({*<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>
287</div>
288        ({else})
289&nbsp;
290        ({/if})
291({/foreach})
292({else})
293&nbsp;
294({/if})
295
296</td>
297({/foreach})
298
299</tr>
300({/if})  <!-- END VALUE -->
301
302({if $foot})  <!-- BEGIN FOOT -->
303<tr>
304<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>
305<td class="bg_02 border_01" style="border-top:none;" align="right" valign="top" colspan="7">
306
307<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
308<tr>
309<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;">
310
311({if ($cmd == "h") || ($cmd == "f")})
312<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>
313({else})
314&nbsp;
315({/if})
316
317</td>
318<td class="padding_ss" align="right" valign="middle">
319
320({if ($cmd == "h") || ($cmd == "f")})
321({t_form m=biz a=do_`$cmd`_home_add_biz_schedule})
322<input type="hidden" name="sessid" value="({$PHPSESSID})">
323<input type="hidden" name="target_id" value="({$target_id})">
324予定:
325<input type="text" name="title" value="" size="30">
326<select name="start_date">
327({foreach from=$daylist item=item})
328<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
329({/foreach})
330</select>
331<input type="submit" class="submit" value="追加">
332
333&nbsp;
334<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>
335<a href="({t_url m=pc a=page_`$cmd`_home})({if $target_id})&amp;target_c_member_id=({$target_id})({/if})" title="今週">■</a>
336<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>
337&nbsp;
338</form>
339({else})
340
341&nbsp;
342
343({/if})
344
345</td>
346</tr>
347</table>
348
349</td>
350</tr>
351</table>
352</div>
353
354<!-- ここまで:主内容 -->
355</td>
356<td class="bg_00"><img src="./skin/dummy.gif"></td>
357</tr>
358<tr>
359<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
360<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
361<td class="bg_00"><img src="./skin/dummy.gif" style="width:7px;height:7px;" class="dummy"></td>
362</tr>
363</table>
364
365</td>
366</tr>
367</table>
368<!-- ******ここまで:週間予定****** -->
369<!-- ***************************** -->
370
371<img src="./skin/dummy.gif" class="v_spacer_m">
372({/if}) <!-- END FOOT -->
Note: See TracBrowser for help on using the repository browser.