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

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

Last change on this file since 11679 was 11679, checked in by shintani, 11 years ago

#2088におけるr11667をtrunkにマージしました

File size: 8.6 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({* {{{ 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':$c_topic.c_member_id|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 ($c_commu.is_topic == 'admin_only' && $is_c_commu_admin) || ($c_commu.is_topic == 'member' && $is_c_topic_admin) || ($c_commu.is_topic == 'public' && $is_c_topic_admin)})
40<div class="operation">
41({t_form_block _method=get m=pc a=page_c_topic_edit})
42<input type="hidden" name="target_c_commu_topic_id" value="({$c_topic.c_commu_topic_id})" />
43<ul class="moreInfo button">
44<li><input type="submit" class="input_submit" value=" 編 集 " /></li>
45</ul>
46({/t_form_block})
47</div>
48({/if})
49</div></div>
50({* }}} *})
51
52({if $c_topic_write})
53({* {{{ commentList *})
54<div class="dparts commentList"><div class="parts">
55<div class="partsHeading"><h3>書き込み</h3></div>
56
57({if $pager.total_num > 20 || $pager.total_page_num > 1})
58({strip})
59<div class="pagerRelative">
60
61({if $pager.total_num > 20})
62({if $requests.page_size == 100})
63<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>
64({else})
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})&amp;page_size=100#commentList">100件ずつ表示</a></p>
66({/if})
67({/if})
68
69({if $pager.total_page_num > 1})
70({if $requests.order == 'asc'})
71<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>
72({else})
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})&amp;order=asc#commentList">最初から表示</a></p>
74({/if})
75({/if})
76
77</div>
78({/strip})
79({/if})
80
81({capture name=pager})({strip})
82<div class="pagerRelative">
83({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})
84<p class="number">({$pager.start_num})番~({$pager.end_num})番を表示</p>
85({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})
86</div>
87({/strip})({/capture})
88({$smarty.capture.pager|smarty:nodefaults})
89
90({if $smarty.const.USE_RESPONSE_COMMENT})
91<script type="text/javascript" src="./js/comment.js"></script>
92({/if})
93({foreach from=$c_topic_write item=item})
94<dl>
95<dt>({$item.r_datetime|date_format:"%Y年<br />%m月%d日<br />%H:%M"})</dt>
96<dd>
97<div class="title">
98<p class="heading"><strong>({$item.number})</strong>:
99 <a href="({t_url m=pc a=page_f_home})&amp;target_c_member_id=({$item.c_member_id})">({$item.nickname})</a>
100({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})
101({if $is_c_commu_member && $is_writable_comment && $smarty.const.USE_RESPONSE_COMMENT}) <a href="javascript:void(0);" onclick="response_comment_format('({$item.nickname})', '({$item.number})', 'comment_box');return false;" ><img src="./skin/default/img/button_comment.gif" alt="コメント返信ボタン" /></a>({/if})
102</p>
103</div>
104<div class="body">
105({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3})
106<ul class="photo">
107({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})
108({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})
109({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})
110</ul>
111({/if})
112<p class="text">({$item.body|nl2br|t_url2cmd:'community':$item.c_member_id|t_cmd:'community'})</p>
113</div>
114({if $item.filename && $smarty.const.OPENPNE_USE_FILEUPLOAD})
115<div class="block attachFile"><ul>
116<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>
117</ul></div>
118({/if})
119</dd>
120</dl>
121({/foreach})
122
123({$smarty.capture.pager|smarty:nodefaults})
124
125</div></div>
126({* }}} *})
127({/if})
128
129({/if})
130
131({if $is_c_commu_member || ($c_commu.is_comment == 'public')})
132({if $is_writable_comment})
133({* {{{ formTable *})
134<div class="dparts formTable" id="commentForm"><div class="parts">
135<div class="partsHeading"><h3>新しく書き込む</h3></div>
136({t_form_block _enctype=file m=pc a=page_c_topic_write_confirm})
137<input type="hidden" name="target_c_commu_topic_id" value="({$c_topic.c_commu_topic_id})" />
138<table>
139<tr>
140<th>本文</th>
141<td><textarea name="body" id="comment_box" rows="10" cols="50">({$body})</textarea></td>
142</tr>
143<tr>
144<th>写真1</th>
145<td><input type="file" class="input_file" name="image_filename1" size="40" /></td>
146</tr>
147<tr>
148<th>写真2</th>
149<td><input type="file" class="input_file" name="image_filename2" size="40" /></td>
150</tr>
151<tr>
152<th>写真3</th>
153<td><input type="file" class="input_file" name="image_filename3" size="40" /></td>
154</tr>
155({if $smarty.const.OPENPNE_USE_FILEUPLOAD})
156<tr>
157<th>ファイル</th>
158<td>
159<input type="file" class="input_file" name="uploadfile" size="40" />
160<p class="caution">※ファイルサイズは({$smarty.const.FILE_MAX_FILESIZE})KB以内({if $allowed_extensions})、ファイルの種類は(({$allowed_extensions}))({/if})のファイルがアップロードできます。</p>
161</td>
162</tr>
163({/if})
164</table>
165<div class="operation">
166<ul class="moreInfo button">
167<li><input type="submit" class="input_submit" value="確認画面" /></li>
168</ul>
169</div>
170({/t_form_block})
171</div></div>
172({* }}} *})
173({else})
174({* {{{ simpleBox *})
175<div class="dparts simpleBox"><div class="parts">
176<div class="partsHeading"><h3>コメントを書く</h3></div>
177<div class="block">
178<p>コメントが1000番に達したので、このトピックにはコメントできません。</p>
179</div>
180</div></div>
181({* }}} *})
182({/if})
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})&amp;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 -->
Note: See TracBrowser for help on using the repository browser.