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

source: OpenPNE/trunk/webapp/modules/pc/templates/c_event_detail.tpl @ 7224

Last change on this file since 7224 was 7224, checked in by ebihara, 12 years ago

#2318:コミュニティトピック・コミュニティイベント・日記コメントが1000番を超えた場合、それ以上のコメントの投稿ができないようにした

File size: 10.0 KB
Line 
1<div id="LayoutC">
2({ext_include file="inc_c_com_topic_find.tpl"})
3
4<div id="Center">
5
6({if !$err_msg || !$is_writable_comment})
7
8({* {{{ infoBox *})
9<div class="dparts infoBox"><div class="parts">
10<p>このイベントを({$WORD_MY_FRIEND})に教える</p>
11<ul class="moreInfo">
12<li><a href="({t_url m=pc a=page_c_event_invite})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})">イベントお知らせメッセージ</a></li>
13</ul>
14</div></div>
15({* }}} *})
16
17({* {{{ eventDetailBox *})
18<div class="dparts eventDetailBox"><div class="parts">
19<div class="partsHeading"><h3>[({$c_commu.name})] イベント</h3></div>
20
21<dl>
22<dt>({$c_topic.r_datetime|date_format:"%Y年%m月%d日<br />%H:%M"})</dt>
23<dd>
24({if $c_topic.image_filename1||$c_topic.image_filename2||$c_topic.image_filename3})
25<ul class="photo">
26({if $c_topic.image_filename1})<li><a href="({t_img_url filename=$c_topic.image_filename1})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename1 w=120 h=120})" alt="" /></a></li>({/if})
27({if $c_topic.image_filename2})<li><a href="({t_img_url filename=$c_topic.image_filename2})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename2 w=120 h=120})" alt="" /></a></li>({/if})
28({if $c_topic.image_filename3})<li><a href="({t_img_url filename=$c_topic.image_filename3})" target="_blank"><img src="({t_img_url filename=$c_topic.image_filename3 w=120 h=120})" alt="" /></a></li>({/if})
29</ul>
30({/if})
31<table><tr>
32<th>タイトル</th>
33<td>({$c_topic.name})</td>
34</tr><tr>
35<th>作成者</th>
36<td><a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$c_topic.c_member_id})">({$c_topic.nickname})</a></td>
37</tr><tr>
38<th>開催日時</th>
39<td>({$c_topic.open_date})&nbsp;({$c_topic.open_date_comment})</td>
40</tr><tr>
41<th>開催場所</th>
42<td>({$c_topic.pref})({$c_topic.open_pref_comment})</td>
43</tr><tr>
44<th>関連({$WORD_COMMUNITY})</th>
45<td><a href="({t_url m=pc a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})">({$c_commu.name})</a></td>
46</tr><tr>
47<th>詳細</th>
48<td>({$c_topic.body|nl2br|t_url2cmd:'community'|t_cmd:'community'})</td>
49</tr><tr>
50<th>募集期限</th>
51<td>({if $c_topic.invite_period != "0000-00-00"})({$c_topic.invite_period})({else})指定なし({/if})</td>
52</tr><tr>
53<th>募集人数</th>
54<td>({if $c_topic.capacity})({$c_topic.capacity})人({else})無制限({/if})</td>
55</tr><tr>
56<th>参加者</th>
57<td>({$c_topic.member_num})人
58({if $c_topic.member_num})
59<ul class="moreInfo"><li><a href="({t_url m=pc a=page_c_event_member_list})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})">参加者一覧を見る</a></li></ul>
60({/if})
61</td>
62</tr>
63({if $is_c_event_admin || $is_c_commu_admin})
64<tr>
65<th>一括メッセージ</th>
66<td>イベント参加者に一括メッセージを送ります。
67<ul class="moreInfo"><li><a href="({t_url m=pc a=page_c_event_mail})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})">一括メッセージを送る</a></li></ul>
68</td>
69</tr>
70({/if})
71</table>
72</dd>
73</dl>
74
75({if $is_c_event_admin || $is_c_commu_admin})
76<div class="operation">
77({t_form_block m=pc a=page_c_event_edit})
78<input type="hidden" name="target_c_commu_topic_id" value="({$c_topic.c_commu_topic_id})" />
79<ul class="moreInfo button">
80<li><input type="submit" class="input_submit" value="編集" /></li>
81</ul>
82({/t_form_block})
83</div>
84({/if})
85</div></div>
86({* }}} *})
87
88({if $c_topic_write.0})
89({* {{{ commentList *})
90<div class="dparts commentList" id="commentList"><div class="parts">
91<div class="partsHeading"><h3>書き込み</h3></div>
92
93({if $pager.total_num > 20 || $pager.total_page_num > 1})
94({strip})
95<div class="pagerRelative">
96
97({if $pager.total_num > 20})
98({if $requests.page_size == 100})
99<p><a href="({t_url m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.order == 'asc'})&amp;order=asc({/if})#commentList">20件ずつ表示</a></p>
100({else})
101<p><a href="({t_url m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.order == 'asc'})&amp;order=asc({/if})&amp;page_size=100#commentList">100件ずつ表示</a></p>
102({/if})
103({/if})
104
105({if $pager.total_page_num > 1})
106({if $requests.order == 'asc'})
107<p><a href="({t_url m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.page_size == 100})&amp;page_size=100({/if})#commentList">最新を表示</a></p>
108({else})
109<p><a href="({t_url m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.page_size == 100})&amp;page_size=100({/if})&amp;order=asc#commentList">最初から表示</a></p>
110({/if})
111({/if})
112
113</div>
114({/strip})
115({/if})
116
117({capture name=pager})({strip})
118<div class="pagerRelative">
119({if $pager.page_prev})<p class="prev"><a href="({t_url m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.page_size == 100})&amp;page_size=100({/if})({if $requests.order == 'asc'})&amp;order=asc({/if})&amp;page=({$pager.page_prev})#commentList">前を表示</a></p>({/if})
120<p class="number">({$pager.start_num})番~({$pager.end_num})番を表示</p>
121({if $pager.page_next})<p class="next"><a href="({t_url m=pc a=page_c_event_detail})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.page_size == 100})&amp;page_size=100({/if})({if $requests.order == 'asc'})&amp;order=asc({/if})&amp;page=({$pager.page_next})#commentList">次を表示</a></p>({/if})
122</div>
123({/strip})({/capture})
124({$smarty.capture.pager|smarty:nodefaults})
125
126({foreach from=$c_topic_write item=item})
127<dl>
128<dt>({$item.r_datetime|date_format:"%Y年<br />%m月%d日<br />%H:%M"})</dt>
129<dd>
130<div class="title">
131<p class="heading"><strong>({$item.number})</strong>: <a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item.c_member_id})">({$item.nickname})</a>({if $c_member_id == $item.c_member_id || $c_member_id == $c_commu.c_member_id_admin || $c_member_id == $c_commu.c_member_id_sub_admin}) <a href="({t_url m=pc a=page_c_event_write_delete_confirm})&amp;target_c_commu_topic_comment_id=({$item.c_commu_topic_comment_id})">削除</a>({/if})</p>
132</div>
133<div class="body">
134({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3})
135<ul class="photo">
136({if $item.image_filename1})<li><a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})" alt="" /></a></li>({/if})
137({if $item.image_filename2})<li><a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})" alt="" /></a></li>({/if})
138({if $item.image_filename3})<li><a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})" alt="" /></a></li>({/if})
139</ul>
140({/if})
141<p class="text">({$item.body|nl2br|t_url2cmd:'community'|t_cmd:'community'})</p>
142</div>
143</dd>
144</dl>
145({/foreach})
146
147({$smarty.capture.pager|smarty:nodefaults})
148</div></div>
149({* }}} *})
150({/if})
151
152({/if})
153
154({if $is_c_commu_member})
155({if $is_writable_comment})
156({* {{{ formTable *})
157<div class="dparts formTable" id="commentForm"><div class="parts">
158<div class="partsHeading"><h3>新しく書き込む</h3></div>
159({t_form_block _enctype=file m=pc a=page_c_event_write_confirm})
160<input type="hidden" name="target_c_commu_topic_id" value="({$c_topic.c_commu_topic_id})" />
161<table>
162<tr><th>本文</th><td><textarea name="body" rows="10" cols="50">({$body})</textarea></td></tr>
163<tr><th>写真1</th><td><input type="file" class="input_file" name="image_filename1" size="40" /></td></tr>
164<tr><th>写真2</th><td><input type="file" class="input_file" name="image_filename2" size="40" /></td></tr>
165<tr><th>写真3</th><td><input type="file" class="input_file" name="image_filename3" size="40" /></td></tr>
166</table>
167<div class="operation">
168<ul class="moreInfo button">
169({strip})
170({if $is_event_join_date})
171    ({if $is_c_event_member})
172        <li><input type="submit" class="input_submit" name="button" value="参加をキャンセルする" /></li>
173    ({elseif $is_event_join_capacity})
174        <li><input type="submit" class="input_submit" name="button" value="イベントに参加する" /></li>
175    ({/if})
176({/if})
177({/strip})
178<li><input type="submit" class="input_submit" name="button" value="コメントのみ書き込む" /></li>
179</ul>
180</div>
181({/t_form_block})
182</div></div>
183({* }}} *})
184({else})
185({* {{{ alertLine *})
186<div class="parts alertLine">
187<p>コメントが1000番に達したので、このイベントにはコメントできません。</p>
188</div>
189({* }}} *})
190
191({if $is_event_join_date})
192({if $is_c_event_member})
193({* {{{ infoButtonBox *})
194<div class="dparts infoButtonBox"><div class="parts">
195<div class="partsHeading"><h3>参加をキャンセルする</h3></div>
196<div class="block">
197
198<p>イベント「({$c_topic.name})」の参加をキャンセルしますか?</p>
199
200({t_form_block m=pc a=do_c_event_drop_c_commu_event})
201<input type="hidden" name="target_c_commu_topic_id" value="({$c_topic.c_commu_topic_id})" />
202<ul class="moreInfo button">
203<li><input type="submit" class="input_submit" value="参加をキャンセルする" /></li>
204</ul>
205({/t_form_block})
206</div>
207</div></div>
208({* }}} *})
209({elseif $is_event_join_capacity})
210({* {{{ infoButtonBox *})
211<div class="dparts infoButtonBox"><div class="parts">
212<div class="partsHeading"><h3>このイベントに参加</h3></div>
213<div class="block">
214
215<p>イベント「({$c_topic.name})」に参加しますか?</p>
216
217({t_form_block m=pc a=do_c_event_join_c_commu_event})
218<input type="hidden" name="target_c_commu_topic_id" value="({$c_topic.c_commu_topic_id})" />
219<ul class="moreInfo button">
220<li><input type="submit" class="input_submit" value="イベントに参加する" /></li>
221</ul>
222({/t_form_block})
223</div>
224</div></div>
225({* }}} *})
226({/if})
227({/if})
228
229({/if})
230({/if})
231
232({* {{{ linkLine *})
233<div class="parts linkLine"><ul class="moreInfo">
234<li><a href="({t_url m=pc a=page_c_home})&amp;target_c_commu_id=({$c_commu.c_commu_id})">[({$c_commu.name})]({$WORD_COMMUNITY})トップへ</a></li>
235</ul></div>
236({* }}} *})
237
238</div><!-- Center -->
239</div><!-- LayoutC -->
Note: See TracBrowser for help on using the repository browser.