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

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

Last change on this file since 7203 was 7203, checked in by ogawa, 11 years ago

#2200:bizWeeklyCalendarTableを修正

File size: 10.1 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<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>
89<p class="login_time">最終ログインは<br />({$member_info.last_login})</p>
90({else})
91
92({if $smarty.const.OPENPNE_IS_POINT_ADMIN || $member_info.c_member_id != 1})
93({if ($smarty.const.OPENPNE_DISP_RANK && $rank) || ($smarty.const.OPENPNE_DISP_POINT && $point)})
94({if $smarty.const.OPENPNE_DISP_RANK && $rank})
95<p class="rank"><img src="({t_img_url filename=$rank.image_filename})" alt="({$rank.name})" /></p>
96({/if})
97({if $smarty.const.OPENPNE_DISP_POINT && $point})
98<p class="point">({$point}) Point</p>
99({/if})
100({/if})
101({/if})
102
103<div class="nickname">
104({t_form_block m=biz a=do_h_home_edit_nickname})
105<input type="text" class="input_text" name="nickname" value="({$member_info.nickname})" /><br />
106<input type="submit" class="input_submit" value="名前変更" /><br />
107({/t_form_block})
108</div>
109<ul class="moreInfo button">
110<li><input type="button" class="input_submit" onclick="location.href='({t_url m=pc a=page_h_config_image})'" value="写真を編集" /></li>
111<li><input type="button" class="input_submit" onclick="location.href='({t_url m=pc a=page_h_config_prof})'" value="プロフィール変更" /></li>
112</ul>
113({/if})
114
115({/if})
116</th>
117
118({foreach from=$calendar item=item name=calendar})
119({strip})
120<td({if $item.now}) class="today"({/if})>
121<p class="day({if $item.dayofweek == "日"}) sun({elseif $item.dayofweek == "土"}) sat({/if})({if $item.holiday}) holiday({/if})">
122({if $smarty.foreach.calendar.first || $item.day == 1})({$item.month})/({/if})({$item.day})(({$item.dayofweek}))
123({foreach from=$item.holiday item=item_holiday})
124<br />({$item_holiday})
125({/foreach})
126</p>
127
128({* スケジュール(時間有) *})
129({foreach from=$item.schedule item=item_schedule name=schedule})
130({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
131({elseif $cmd == 's_list'})
132
133({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
134({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
135({if $item_schedule.finish_time})
136({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
137({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
138({/if})
139
140<p class="time">({ext_include file="inc_biz_schedule_week_time.tpl"})</p>
141<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>
142
143({elseif $item_schedule.begin_date != $item_schedule.finish_date})  <!--バナー予定 -->
144
145({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
146({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
147({if $item_schedule.finish_time})
148({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
149({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
150({/if})
151
152<p class="time">({ext_include file="inc_biz_schedule_week_time.tpl"})</p>
153<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>
154
155({else})
156
157({assign var="begin_time_H" value=$item_schedule.begin_time|date_format:"%H"})
158({assign var="begin_time_M" value=$item_schedule.begin_time|date_format:"%M"})
159({if $item_schedule.finish_time})
160({assign var="finish_time_H" value=$item_schedule.finish_time|date_format:"%H"})
161({assign var="finish_time_M" value=$item_schedule.finish_time|date_format:"%M"})
162({else})
163({assign var="finish_time_H" value=""})
164({assign var="finish_time_M" value=""})
165({/if})
166
167<p class="time">({ext_include file="inc_biz_schedule_week_time.tpl"})</p>
168<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>
169
170({/if})
171({/foreach})
172
173</td>
174({/strip})
175({/foreach})
176</tr><tr>
177({foreach from=$calendar item=item name=calendar})
178({strip})
179<td class="sub ({if $item.now}) today({/if})">
180
181({if $cmd == 'h'})
182
183({* 誕生日 *})
184({foreach from=$item.birth item=item_birth})
185({if $item_birth.public_flag_birth_month_day != "private" || $c_member.c_member_id == $item_birth.c_member_id})
186<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>
187({/if})
188({/foreach})
189
190({* イベント *})
191({foreach from=$item.event item=item_event})
192<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>
193({/foreach})
194
195({/if})
196
197({* Todo *})
198({foreach from=$item.todo item=item_todo})
199<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>
200({/foreach})
201
202({* スケジュール(時間無) *})
203({if $item.schedule})
204({foreach from=$item.schedule item=item_schedule name=schedule})
205({if !$item_schedule.begin_time})  <!-- 時間指定なしの予定 -->
206<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>
207({/if})
208({/foreach})
209({/if})
210
211</td>
212({/strip})
213({/foreach})
214</tr>
215</table>
216
217({/if})({* /value *})
218({if $foot})
219
220({if $cmd == "h" || $cmd == "f"})
221<div class="block moreInfo">
222({t_form_block m=biz a=do_`$cmd`_home_add_biz_schedule})
223
224<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>
225
226<input type="hidden" name="target_id" value="({$target_id})" />
227<label for="title">予定</label> <input type="text" class="input_text" name="title" id="title" value="" size="30" />
228<select name="start_date">
229({foreach from=$daylist item=item})
230<option value="({$item.year})-({$item.month})-({$item.day})"({if $item.now}) selected="selected"({/if})>({$item.month})/({$item.day})(({$item.dayofweek}))</option>
231({/foreach})
232</select>
233<input type="submit" class="input_submit" value="追加" />
234
235<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>
236<a href="({t_url m=pc a=page_`$cmd`_home})({if $target_id})&amp;target_c_member_id=({$target_id})({/if})" title="今週">■</a>
237<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>
238({/t_form_block})
239</div>
240({/if})
241
242</div></div>
243
244({/if})({* /foot *})
Note: See TracBrowser for help on using the repository browser.