blob: d0c2dd0621faab29c3159dd32e77793144b73f88 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
|
<?py include('templates/base_top.html') ?>
<?py if replythread or oek_finish: ?>
[<a href="#{boards_url}#{board}/">掲示板に戻る</a>]
<?py #endif ?>
<?py if replythread: ?>
[<a href="/cgi/catalog/${board}">カタログ</a>]
[<a href="#bottom" name="top">ボトムへ行く</a>]
<div class="replymode">レス送信モード</div>
<?py #endif ?>
<a name="postbox"></a>
<div class="postarea">
<?py if allow_oekaki and not oek_finish: ?>
<center><form class="oekform" action="#{cgi_url}oekaki/paint" method="post" enctype="multipart/form-data">
<input type="hidden" name="board" value="#{board}" />
<?py if replythread: ?>
<input type="hidden" name="parent" value="#{replythread}" />
<?py #endif ?>
<select name="oek_applet">
<option value="neo">PaintBBS NEO</option>
<option value="tegaki">Tegaki</option>
<option value="wpaint">wPaint</option>
<option value="shipainter|n|n">Shi-Painter</option>
<option value="shipainter|y|n">Shi-Painter Pro</option>
</select>
<span id="oek_size"><input type="text" name="oek_x" size="4" maxlength="4" value="300" /> x <input type="text" name="oek_y" size="4" maxlength="4" value="300" /></span>
<input type="submit" value="お絵かきする" /><br /><a href="#{cgi_url}oekaki/finish/#{board}/#{replythread}">アップロード途中の画像</a>
</form></center>
<?py #endif ?>
<?py if oek_finish: ?>
<center style="margin-bottom:0.5em;"><table border=""><tr><td>
<?py if oek_finish == "no": ?>
<font size="+3">画像が見当たりません</font>
<?py else: ?>
<img src="#{boards_url}oek_temp/#{oek_finish}.png?ts=#{ts}" />
<?py #endif ?>
</td></tr></table></center>
<?py #endif ?>
<form name="postform" id="postform" action="#{cgi_url}post" method="post" enctype="multipart/form-data">
<input type="hidden" name="board" value="#{board}" />
<?py if replythread: ?>
<input type="hidden" name="parent" value="#{replythread}" />
<input type="hidden" name="default_subject" value="#{default_subject}" />
<?py #endif ?>
<div style="display:none;">Trampa: <input type="text" name="name" size="25" /> <input type="text" name="email" size="25" /></div>
<table class="postform">
<?py if not disable_name: ?>
<tr>
<td class="postblock">おなまえ</td>
<td><input type="text" name="fielda" size="25" accesskey="n" /></td>
</tr>
<?py #endif ?>
<tr>
<td class="postblock">E-mail</td>
<td>
<input type="text" name="fieldb" size="25" accesskey="e" />
<?py if disable_subject: ?>
<?py if replythread: ?>
<input type="submit" value="返信" accesskey="z" />
<?py else: ?>
<input type="submit" value="スレッドを立てる" accesskey="z" />
<?py #endif ?>
<?py #endif ?>
</td>
</tr>
<?py if not disable_subject: ?>
<tr>
<td class="postblock">題 名</td>
<td>
<input type="text" name="subject" size="35" maxlength="100" accesskey="s" />
<?py if replythread: ?>
<input type="submit" value="返信" accesskey="z" />
<?py else: ?>
<input type="submit" value="スレッドを立てる" accesskey="z" />
<?py #endif ?>
</td>
</tr>
<?py #endif ?>
<tr>
<td class="postblock">コメント</td>
<td><textarea name="message" cols="50" rows="6" accesskey="m"></textarea></td>
</tr>
<?py if not oek_finish: ?>
<?py if (replythread and allow_image_replies) or (not replythread and allow_images): ?>
<tr>
<td class="postblock">添付File</td>
<td>
<input type="file" name="file" id="file" accesskey="f" />
<span id="filepreview" style="display:none;"></span>
<?py if allow_spoilers: ?>
<label>[<input type="checkbox" name="spoil" id="spoil" />ネタバレ]</label>
<?py #endif ?>
<?py if allow_noimage and not replythread: ?>
<label>[<input type="checkbox" name="noimage" id="noimage" />画像なし]</label>
<?py #endif ?>
</td>
</tr>
<?py #endif ?>
<?py elif oek_finish != 'no': ?>
<input type="hidden" name="oek_file" value="#{oek_finish}" />
<?py #endif ?>
<tr class="pass">
<td class="postblock">削除キー</td>
<td><input type="password" name="password" size="8" accesskey="p" /> (削除用)</td>
</tr>
<tr>
<td colspan="2" id="rules">
<ul>
#{postarea_desc}
<?py if supported_filetypes: ?>
<li>添付可能:#{', '.join(supported_filetypes).upper()}. #{maxsize}KBまで. #{maxdimensions}x#{maxdimensions}以上は縮小.</li>
<?py #endif ?>
<li><a href="#{cgi_url}catalog/${board}">カタログ</a> (ソート:<a href="/cgi/catalog/${board}?sort=1">新順</a>/<a href="/cgi/catalog/${board}?sort=2">古順</a>/<a href="/cgi/catalog/${board}?sort=3">多順</a>/<a href="/cgi/catalog/${board}?sort=4">少順</a>)</li>
<?py if int(maxage) != 0: ?>
<li>スレは<b>#{maxage}</b>日間経つと自動的に消されられます.</li>
<?py #endif ?>
<li><a href="/guia.html">使い方</a> · <a href="/faq.html">よくある質問</a> · <a href="/bai/">管理人への連絡</a></li>
</ul>
</td>
</tr>
</table>
</form>
</div>
<hr />
<?py if postarea_extra: ?>
<center>#{postarea_extra}</center>
<hr />
<?py #endif ?>
<form id="delform" action="#{cgi_url}delete" method="post">
<input type="hidden" name="board" value="#{board}" />
<?py if threads: ?>
<?py for thread in threads: ?>
<div id="t#{thread['id']}" class="thread" data-length="#{thread['length']}">
<?py if not replythread: ?>
<span class="unhide" style="display:none;">スレ<a href="#{boards_url}#{board}/res/#{thread['id']}.html">#{thread['id']}</a>は隠しました. <a class="tt" href="#">スレを表示</a></span>
<?py #endif ?>
<?py for post in thread['posts']: ?>
<?py if int(post['parentid']) != 0: ?>
<table><tr><td class="ell">…</td>
<td class="reply#{' deleted' if post['IS_DELETED'] > 0 else ''}" id="p#{post['id']}">
<?py elif post['file']: ?>
<?py if post['image_width'] != '0': ?>
<div class="fs"><span>画像ファイル名:</span><a href="#{images_url}#{board}/src/#{post['file']}" class="expimg" target="_blank" data-id="#{post['id']}" data-thumb="#{images_url}#{board}/thumb/#{post['thumb']}" data-w="#{post['image_width']}" data-h="#{post['image_height']}" data-tw="#{post['thumb_width']}" data-th="#{post['thumb_height']}">#{post['file']}</a>-(#{post['file_size']} B, #{post['image_width']}x#{post['image_height']})
<?py else: ?>
<div class="fs"><span>画像ファイル名:</span><a href="#{images_url}#{board}/src/#{post['file']}" target="_blank">#{post['file']}</a>-(#{post['file_size']} B)
<?py #endif ?>
<?py if post['file'][-3:] == 'gif': ?>
<small>アニメGIF</small>
<?py elif not post['thumb'].startswith('mime'): ?>
<small>サムネ表示</small>
<?py #endif ?>
<?py if not replythread: ?>
[<a href="#" title="スレを隠す" class="tt">隠す</a>]
<?py #endif ?>
</div>
<a target="_blank" href="#{images_url}#{board}/src/#{post['file']}" id="thumb#{post['id']}">
<?py if post['thumb'].startswith('mime'): ?>
<img class="thumb" alt="#{post['id']}" src="/static/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" />
<?py elif post['file'][-3:] == 'gif': ?>
<img class="thumb" alt="#{post['id']}" src="#{images_url}#{board}/src/#{post['file']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" />
<?py else: ?>
<img class="thumb" alt="#{post['id']}" src="#{images_url}#{board}/thumb/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" />
<?py #endif ?>
</a>
<?py #endif ?>
<a name="#{post['id']}"></a>
<?py if post['IS_DELETED'] == '1': ?>
<span>No.#{post['id']}はユーザーに削除されました.</span>
<?py elif post['IS_DELETED'] == '2': ?>
<span>No.#{post['id']}は管理人に削除されました.</span>
<?py else: ?>
<div class="info"><label><input type="checkbox" name="delete" value="#{post['id']}" /><span class="subj">#{post['subject'] if post['subject'] else default_subject}</span></label>
<?py if post['email']: ?>
<?py if post['tripcode']: ?>
Name <a href="mailto:#{post['email']}"><span class="name"><b>#{post['name']}</b> #{post['tripcode']}</span></a>
<?py else: ?>
Name <a href="mailto:#{post['email']}"><span class="name"><b>#{post['name']}</b></span></a>
<?py #endif ?>
<?py else: ?>
<?py if post['tripcode']: ?>
Name <span class="name"><b>#{post['name']}</b> #{post['tripcode']}</span>
<?py else: ?>
Name <span class="name"><b>#{post['name']}</b></span>
<?py #endif ?>
<?py #endif ?>
<span class="date" data-unix="#{post['timestamp']}">#{post['timestamp_formatted']}</span>
<?py if replythread: ?>
<span class="reflink"><a href="##{post['id']}">No.</a><a href="#" class="num">#{post['id']}</a></span>
<?py else: ?>
<span class="reflink"><a href="#{boards_url}#{board}/res/#{post['parentid'] if post['parentid'] != "0" else post['id']}.html##{post['id']}">No.</a><a href="#{boards_url}#{board}/res/#{post['parentid'] if post['parentid'] != "0" else post['id']}.html#i#{post['id']}">#{post['id']}</a></span>
<?py #endif ?>
<a class="rep" href="#{cgi_url}report/#{board}/#{post['id']}" rel="nofollow">rep</a>
<?py if int(post['expires']): ?>
<small>${post['expires_formatted']}頃消えます</small>
<?py #endif ?>
<?py if int(post['parentid']) != 0: ?>
<?py if post['file']: ?>
<div class="fs">
<?py if post['image_width'] != '0': ?>
<a href="#{images_url}#{board}/src/#{post['file']}" class="expimg" target="_blank" data-id="#{post['id']}" data-thumb="#{images_url}#{board}/thumb/#{post['thumb']}" data-w="#{post['image_width']}" data-h="#{post['image_height']}" data-tw="#{post['thumb_width']}" data-th="#{post['thumb_height']}">#{post['file']}</a>-(#{post['file_size']} B, #{post['image_width']}x#{post['image_height']})
<?py else: ?>
<a href="#{images_url}#{board}/src/#{post['file']}" target="_blank">#{post['file']}</a>-(#{post['file_size']} B)
<?py #endif ?>
<?py if post['file'][-3:] == 'gif': ?>
<small>アニメGIF</small>
<?py elif not post['thumb'].startswith('mime'): ?>
<small>サムネ表示</small>
<?py #endif ?>
</div>
<a target="_blank" href="#{images_url}#{board}/src/#{post['file']}" id="thumb#{post['id']}">
<?py if post['thumb'].startswith('mime'): ?>
<img class="thumb" alt="#{post['id']}" src="/static/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" />
<?py elif post['file'][-3:] == 'gif': ?>
<img class="thumb" alt="#{post['id']}" src="#{images_url}#{board}/src/#{post['file']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" />
<?py else: ?>
<img class="thumb" alt="#{post['id']}" src="#{images_url}#{board}/thumb/#{post['thumb']}" width="#{post['thumb_width']}" height="#{post['thumb_height']}" />
<?py #endif ?>
</a>
<?py #endif ?>
<?py #endif ?>
<?py if int(post['parentid']) == 0 and not replythread: ?>
[<a href="#{boards_url}#{board}/res/#{post['id']}.html" class="hsbn">返信</a>]
<?py if post['file'] == '': ?>
[<a href="#" title="スレを隠す" class="tt">隠す</a>]
<?py #endif ?>
<?py #endif ?>
</div>
<?py if post['thumb_width'] != '0' and post['parentid'] != '0': ?>
<blockquote style="margin-left:#{int(post['thumb_width'])+40}px;">
<?py else: ?>
<blockquote>
<?py #endif ?>
#{post['message']}
</blockquote>
<?py if not replythread and post['shortened']: ?>
<blockquote class="abbrev">(投稿は長すぎ... 全部読むには<a href="#{boards_url}#{board}/res/#{post['id'] if post['parentid'] == "0" else post['parentid']}.html##{post['id']}">こっちら</a>へ)</blockquote>
<?py #endif ?>
<?py if int(post['expires_alert']): ?>
<div style="color:red;font-weight:bold">このスレは古いので、もうすぐ消えます。</div>
<?py #endif ?>
<?py #endif ?>
<?py if not post['parentid']: ?>
<?py if not replythread: ?>
<?py if thread['omitted']: ?>
<span class="omitted">レス${thread['omitted']}件省略。全て読むには返信ボタンを押してください。</span>
<?py #endif ?>
<?py #endif ?>
<?py else: ?>
</td></tr></table>
<?py #endif ?>
<?py #endfor ?>
<div class="cut"></div></div>
<?py if replythread: ?>
<hr />
<div class="nav">[<a href="#{boards_url}#{board}/">掲示板に戻る</a>]
[<a href="/cgi/catalog/${board}">カタログ</a>]
[<a href="#top" name="bottom">トップへ戻る</a>]</div>
<?py #endif ?>
<hr />
<?py #endfor ?>
<div class="userdel">
【記事削除】<label>[<input type="checkbox" name="imageonly" id="imageonly" />画像だけ消す]</label><br />
削除キー<input type="password" name="password" size="8" /> <input name="deletepost" value="削除" type="submit" />
</div>
<?py #endif ?>
</form>
<?py if pagenav: ?>
<div class="pg">#{pagenav}</div>
<?py #endif ?>
<?py include('templates/base_bottom.html') ?>
|