1 | <div id="LayoutC"> |
---|
2 | ({ext_include file="inc_c_com_topic_find.tpl"}) |
---|
3 | |
---|
4 | <div id="Center"> |
---|
5 | |
---|
6 | ({if !$err_msg}) |
---|
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})&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})&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}) ({$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})&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})&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})&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})&target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.order == 'asc'})&order=asc({/if})#commentList">20件ずつ表示</a></p> |
---|
100 | ({else}) |
---|
101 | <p><a href="({t_url m=pc a=page_c_event_detail})&target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.order == 'asc'})&order=asc({/if})&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})&target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.page_size == 100})&page_size=100({/if})#commentList">最新を表示</a></p> |
---|
108 | ({else}) |
---|
109 | <p><a href="({t_url m=pc a=page_c_event_detail})&target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.page_size == 100})&page_size=100({/if})&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})&target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.page_size == 100})&page_size=100({/if})({if $requests.order == 'asc'})&order=asc({/if})&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})&target_c_commu_topic_id=({$c_topic.c_commu_topic_id})({if $requests.page_size == 100})&page_size=100({/if})({if $requests.order == 'asc'})&order=asc({/if})&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})&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})&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 | ({* {{{ formTable *}) |
---|
156 | <div class="dparts formTable" id="commentForm"><div class="parts"> |
---|
157 | <div class="partsHeading"><h3>新しく書き込む</h3></div> |
---|
158 | ({t_form_block _enctype=file m=pc a=page_c_event_write_confirm}) |
---|
159 | <input type="hidden" name="target_c_commu_topic_id" value="({$c_topic.c_commu_topic_id})" /> |
---|
160 | <table> |
---|
161 | <tr><th>本文</th><td><textarea name="body" rows="10" cols="50">({$body})</textarea></td></tr> |
---|
162 | <tr><th>写真1</th><td><input type="file" class="input_file" name="image_filename1" size="40" /></td></tr> |
---|
163 | <tr><th>写真2</th><td><input type="file" class="input_file" name="image_filename2" size="40" /></td></tr> |
---|
164 | <tr><th>写真3</th><td><input type="file" class="input_file" name="image_filename3" size="40" /></td></tr> |
---|
165 | </table> |
---|
166 | <div class="operation"> |
---|
167 | <ul class="moreInfo button"> |
---|
168 | ({strip}) |
---|
169 | ({if $is_event_join_date}) |
---|
170 | ({if $is_c_event_member}) |
---|
171 | <li><input type="submit" class="input_submit" name="button" value="参加をキャンセルする" /></li> |
---|
172 | ({elseif !$c_topic.capacity || ($c_topic.capacity > $c_topic.member_num)}) |
---|
173 | <li><input type="submit" class="input_submit" name="button" value="イベントに参加する" /></li> |
---|
174 | ({/if}) |
---|
175 | ({/if}) |
---|
176 | ({/strip}) |
---|
177 | <li><input type="submit" class="input_submit" name="button" value="コメントのみ書き込む" /></li> |
---|
178 | </ul> |
---|
179 | </div> |
---|
180 | ({/t_form_block}) |
---|
181 | </div></div> |
---|
182 | ({* }}} *}) |
---|
183 | ({/if}) |
---|
184 | |
---|
185 | ({* {{{ linkLine *}) |
---|
186 | <div class="parts linkLine"><ul class="moreInfo"> |
---|
187 | <li><a href="({t_url m=pc a=page_c_home})&target_c_commu_id=({$c_commu.c_commu_id})">[({$c_commu.name})]({$WORD_COMMUNITY})トップへ</a></li> |
---|
188 | </ul></div> |
---|
189 | ({* }}} *}) |
---|
190 | |
---|
191 | </div><!-- Center --> |
---|
192 | </div><!-- LayoutC --> |
---|