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

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

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

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

File size: 8.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})
7
8({* {{{ topicDetailBox *})
9<div class="dparts topicDetailBox"><div class="parts">
10<div class="partsHeading"><h3>[({$c_commu.name})] トピック</h3></div>
11<dl>
12<dt>({$c_topic.r_datetime|date_format:"%Y年%m月%d日"})<br />({$c_topic.r_datetime|date_format:"%H:%M"})</dt>
13<dd>
14<div class="title">
15<p>({$c_topic.name})</p>
16</div>
17<div class="name">
18<p><a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$c_topic.c_member_id})">({$c_topic.nickname})</a></p>
19</div>
20<div class="body">
21({if $c_topic.image_filename1||$c_topic.image_filename2||$c_topic.image_filename3})
22<ul class="photo">
23({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})
24({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})
25({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})
26</ul>
27({/if})
28<p class="text">
29({$c_topic.body|nl2br|t_url2cmd:'community'|t_cmd:'community'})
30</p>
31</div>
32({if $c_topic.filename && $smarty.const.OPENPNE_USE_FILEUPLOAD})
33<div class="block attachFile"><ul>
34<li><a href="({t_url m=pc a=do_c_file_download})&amp;target_c_commu_topic_id=({$c_topic.c_commu_topic_id})&amp;sessid=({$PHPSESSID})">({$c_topic.original_filename})</a></li>
35</ul></div>
36({/if})
37</dd>
38</dl>
39({if $is_c_topic_admin || $is_c_commu_admin})
40({if ($c_commu.topic_authority == 'public')||($c_commu.topic_authority == 'admin_only' && $is_c_commu_admin)})
41<div class="operation">
42({t_form_block _method=get m=pc a=page_c_topic_edit})
43<input type="hidden" name="target_c_commu_topic_id" value="({$c_topic.c_commu_topic_id})" />
44<ul class="moreInfo button">
45<li><input type="submit" class="input_submit" value="編集" /></li>
46</ul>
47({/t_form_block})
48</div>
49({/if})
50({/if})
51</div></div>
52({* }}} *})
53
54({if $c_topic_write})
55({* {{{ commentList *})
56<div class="dparts commentList"><div class="parts">
57<div class="partsHeading"><h3>書き込み</h3></div>
58
59({if $pager.total_num > 20 || $pager.total_page_num > 1})
60({strip})
61<div class="pagerRelative">
62
63({if $pager.total_num > 20})
64({if $requests.page_size == 100})
65<p><a href="({t_url m=pc a=page_c_topic_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>
66({else})
67<p><a href="({t_url m=pc a=page_c_topic_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>
68({/if})
69({/if})
70
71({if $pager.total_page_num > 1})
72({if $requests.order == 'asc'})
73<p><a href="({t_url m=pc a=page_c_topic_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>
74({else})
75<p><a href="({t_url m=pc a=page_c_topic_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>
76({/if})
77({/if})
78
79</div>
80({/strip})
81({/if})
82
83({capture name=pager})({strip})
84<div class="pagerRelative">
85({if $pager.page_prev})<p class="prev"><a href="({t_url m=pc a=page_c_topic_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})">前を表示</a></p>({/if})
86<p class="number">({$pager.start_num})番~({$pager.end_num})番を表示</p>
87({if $pager.page_next})<p class="next"><a href="({t_url m=pc a=page_c_topic_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})">次を表示</a></p>({/if})
88</div>
89({/strip})({/capture})
90({$smarty.capture.pager|smarty:nodefaults})
91
92({foreach from=$c_topic_write item=item})
93<dl>
94<dt>({$item.r_datetime|date_format:"%Y年<br />%m月%d日<br />%H:%M"})</dt>
95<dd>
96<div class="title">
97<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_topic_write_delete_confirm})&amp;target_c_commu_topic_comment_id=({$item.c_commu_topic_comment_id})">削除</a>({/if})</p>
98</div>
99<div class="body">
100({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3})
101<ul class="photo">
102({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})
103({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})
104({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})
105</ul>
106({/if})
107<p class="text">({$item.body|nl2br|t_url2cmd:'community'|t_cmd:'community'})</p>
108</div>
109({if $item.filename && $smarty.const.OPENPNE_USE_FILEUPLOAD})
110<div class="block attachFile"><ul>
111<li><a href="({t_url m=pc a=do_c_file_download})&amp;target_c_commu_topic_comment_id=({$item.c_commu_topic_comment_id})&amp;sessid=({$PHPSESSID})">({$item.original_filename})</a></li>
112</ul></div>
113({/if})
114</dd>
115</dl>
116({/foreach})
117
118({$smarty.capture.pager|smarty:nodefaults})
119
120</div></div>
121({* }}} *})
122({/if})
123
124({/if})
125
126({if $is_c_commu_member})
127({if $is_writable_comment})
128({* {{{ formTable *})
129<div class="dparts formTable" id="commentForm"><div class="parts">
130<div class="partsHeading"><h3>新しく書き込む</h3></div>
131({t_form_block _enctype=file m=pc a=page_c_topic_write_confirm})
132<input type="hidden" name="target_c_commu_topic_id" value="({$c_topic.c_commu_topic_id})" />
133<table>
134<tr>
135<th>本文</th>
136<td><textarea name="body" rows="10" cols="50">({$body})</textarea></td>
137</tr>
138<tr>
139<th>写真1</th>
140<td><input type="file" class="input_file" name="image_filename1" size="40" /></td>
141</tr>
142<tr>
143<th>写真2</th>
144<td><input type="file" class="input_file" name="image_filename2" size="40" /></td>
145</tr>
146<tr>
147<th>写真3</th>
148<td><input type="file" class="input_file" name="image_filename3" size="40" /></td>
149</tr>
150({if $smarty.const.OPENPNE_USE_FILEUPLOAD})
151<tr>
152<th>ファイル</th>
153<td>
154<input type="file" class="input_file" name="uploadfile" size="40" />
155<p class="caution">※ファイルサイズは({$smarty.const.FILE_MAX_FILESIZE})KB以内({if $allowed_extensions})、ファイルの種類は(({$allowed_extensions}))({/if})のファイルがアップロードできます。</p>
156</td>
157</tr>
158({/if})
159</table>
160<div class="operation">
161<ul class="moreInfo button">
162<li><input type="submit" class="input_submit" value="確認画面" /></li>
163</ul>
164</div>
165({/t_form_block})
166</div></div>
167({* }}} *})
168({else})
169({* {{{ simpleBox *})
170<div class="dparts simpleBox"><div class="parts">
171<div class="partsHeading"><h3>コメントを書く</h3></div>
172<div class="block">
173<p>コメントが1000番に達したので、このトピックにはコメントできません。</p>
174</div>
175</div></div>
176({* }}} *})
177({/if})
178({/if})
179
180({* {{{ linkLine *})
181<div class="parts linkLine"><ul class="moreInfo">
182<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>
183</ul></div>
184({* }}} *})
185
186</div><!-- Center -->
187</div><!-- LayoutC -->
Note: See TracBrowser for help on using the repository browser.