Fix some layout problems, and caching issues.
This commit is contained in:
+5
-16
@@ -20,33 +20,29 @@ if (count($validate) !== 0) {
|
||||
|
||||
?>
|
||||
|
||||
<form method="post" enctype="multipart/form-data" onsubmit="return review()" action="">
|
||||
|
||||
<form id="write" method="post" enctype="multipart/form-data" onsubmit="return review()" action="">
|
||||
<div>
|
||||
<label<?= isset($validate['title']) ? ' class="red"' : '' ?> for="title">Title:</label>
|
||||
<input type="text" id="title" name="title" maxlength="150" value="<?= isset($title) ? $title : '' ?>" />
|
||||
<span class="required"> *</span>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label<?= isset($validate['author']) ? ' class="red"' : '' ?> for="author">Author:</label>
|
||||
<input type="text" name="author" id="author" value="<?= isset($author) ? $author : '' ?>" maxlength="150" />
|
||||
<span class="required"> *</span>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label<?= isset($validate['email']) ? ' class="red"' : '' ?> for="email">Email address:</label>
|
||||
<input type="text" name="email" id="email" maxlength="150" value="<?= isset($email) ? $email : ''?>" />
|
||||
<br class="clear" />
|
||||
<br />
|
||||
<div class="note">(An email address where editors can reach the author.)</div>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
|
||||
<div class="tab<?= isset($validate['story']) ? ' red' : '' ?>" onclick="showHide('text');">Text:</div>
|
||||
<div class="tab<?= isset($validate['upload']) ? ' red' : '' ?>" onclick="showHide('upload');">Image:</div>
|
||||
<div id="wordcounter" class="counter" style="display: none;">0 words</div>
|
||||
<span class="tab<?= isset($validate['story']) ? ' red' : '' ?>" onclick="showHide('text');">Text:</span>
|
||||
<span class="tab<?= isset($validate['upload']) ? ' red' : '' ?>" onclick="showHide('upload');">Image:</span>
|
||||
<span id="wordcounter" class="counter" style="display: none;">0 words</span>
|
||||
|
||||
<div class="textarea">
|
||||
<div id="textparent">
|
||||
@@ -55,7 +51,6 @@ if (count($validate) !== 0) {
|
||||
echo (isset($story) ? $story : '')
|
||||
?>
|
||||
</textarea>
|
||||
<br class="clear" />
|
||||
<div class="note">(To get line-breaks—as in poetry—instead of paragraph breaks, hit shift-enter instead of enter.)</div>
|
||||
</div>
|
||||
<div class="upload" id="uploadparent" style="display: none;"><div>
|
||||
@@ -71,9 +66,7 @@ if (isset($file_src) || isset($img)) {
|
||||
echo ' <div class="in-note">You may upload an image of 100,000 pixels instead of text:</div>';
|
||||
}
|
||||
?>
|
||||
<br class="clear" />
|
||||
<input type="file" name="upload" id="upload" />
|
||||
<br class="clear" />
|
||||
<?
|
||||
if (isset($file_src) || isset($img)) {
|
||||
echo ' <div>';
|
||||
@@ -88,14 +81,12 @@ if (isset($file_src) || isset($img)) {
|
||||
}
|
||||
?>
|
||||
</div></div>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
|
||||
<? if ($is_admin) { ?>
|
||||
<div>
|
||||
<label<? isset($validate['comments']) ? ' class="red"' : '' ?> for="comments">Comments:</label>
|
||||
<input type="text" name="comments" id="comments" maxlength="150" value="<?= isset($comments) ? $comments : '' ?>" />
|
||||
<br class="clear" />
|
||||
</div>
|
||||
<input type="hidden" id="editor" name="editor" value="<?= $username ?>" />
|
||||
<? } else { ?>
|
||||
@@ -109,7 +100,6 @@ if (isset($file_src) || isset($img)) {
|
||||
|
||||
<?
|
||||
if (!$is_admin && (($action == "") || isset($validate['captcha']))) {
|
||||
echo '<div><br class="clear" /></div>';
|
||||
echo '<div class="g-recaptcha" data-sitekey="'.htmlspecialchars(config('RECAPTCHA_SITE_KEY')).'"></div>';
|
||||
}
|
||||
|
||||
@@ -118,7 +108,6 @@ if (isset($file_src) || isset($img)) {
|
||||
echo '<div>';
|
||||
echo '<label'.(isset($validate['hidden']) ? ' class="red"' : '').' for="hidden">Hidden:</label>';
|
||||
echo '<input type="checkbox" name="hidden" id="hidden"'.$checked.' />';
|
||||
echo '<br class="clear" />';
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user