Changed the modpost form a bit

This commit is contained in:
tslocum 2011-01-07 17:54:03 -08:00
parent 730ddf47db
commit b9c02d466e

View File

@ -153,7 +153,7 @@ EOF;
$unique_posts_html = ''; $unique_posts_html = '';
$unique_posts = uniquePosts(); $unique_posts = uniquePosts();
if ($unique_posts > 0) { if ($unique_posts > 0) {
$unique_posts_html = "<li>Currently $unique_posts unique user posts.</li>"; $unique_posts_html = "<li>Currently $unique_posts unique user posts.</li>";
} }
$body = <<<EOF $body = <<<EOF
@ -477,14 +477,18 @@ function manageModpostForm() {
<input type="password" name="password" size="8" accesskey="p">&nbsp;(for post and file deletion) <input type="password" name="password" size="8" accesskey="p">&nbsp;(for post and file deletion)
</td> </td>
</tr> </tr>
<tr>
<td colspan="2" class="rules">
<ul>
<li>All text entered in the "Message" field will be posted AS-IS with absolutely no formatting applied.</li>
<li>This means for all line-breaks you must enter the text "&lt;br&gt;".</li>
</ul>
</td>
</tr>
</tbody> </tbody>
</table> </table>
</form> </form>
</div> </div>
<div style="text-align: center;">
All text entered in the "Message" field will be posted AS-IS with absolutely no formatting applied.<br>This means for all line-breaks you must enter the text "&lt;br&gt;".
</div>
<br>
EOF; EOF;
} }
@ -494,13 +498,14 @@ function manageModeratePost($post) {
$ban_disabled = (!$ban && $isadmin) ? '' : ' disabled'; $ban_disabled = (!$ban && $isadmin) ? '' : ' disabled';
$ban_disabled_info = (!$ban) ? '' : (' A ban record already exists for ' . $post['ip']); $ban_disabled_info = (!$ban) ? '' : (' A ban record already exists for ' . $post['ip']);
$post_html = buildPost($post, true); $post_html = buildPost($post, true);
$post_or_thread = ($post['parent'] == 0) ? 'Thread' : 'Post';
return <<<EOF return <<<EOF
<fieldset> <fieldset>
<legend>Moderating post No.${post['id']}</legend> <legend>Moderating post No.${post['id']}</legend>
<div class="floatpost"> <div class="floatpost">
<fieldset> <fieldset>
<legend>Post</legend> <legend>$post_or_thread</legend>
$post_html $post_html
</fieldset> </fieldset>
</div> </div>
@ -510,7 +515,7 @@ function manageModeratePost($post) {
<form method="get" action="?"> <form method="get" action="?">
<input type="hidden" name="manage" value=""> <input type="hidden" name="manage" value="">
<input type="hidden" name="delete" value="${post['id']}"> <input type="hidden" name="delete" value="${post['id']}">
<input type="submit" value="Delete Post" class="managebutton"> <input type="submit" value="Delete $post_or_thread" class="managebutton">
</form> </form>
<br> <br>
<form method="get" action="?"> <form method="get" action="?">