Browse code

blocks/shoutbox/admin.php: Formatting changes

Clarissa Walker authored on 2026/09/24 10:59:56
Showing 1 changed files
... ...
@@ -51,17 +51,17 @@ else include_once("blocks/shoutbox/en.php");
51 51
 		save_blocks($blocks);
52 52
 	}
53 53
 	$defaults = array("m/d/y h:i a", "d/m/y G:i:s", "m-d-y h:i a", "d-m-y G:i:s", "m.d.y h:i a", "d.m.y G:i:s", "M j, Y h:i a", "M j, Y G:i:s", "d M, Y h:i a", "d M, Y G:i:s");
54
-	$output .= "<form name='shoutopts' method='POST' id='settingsform' action='admin.php?action=blocks&amp;admin=shoutbox'>\n
55
-<div><label for='shoutdate'>"._SHOUTDATE.":</label><select name='shoutdate' id='shoutdate'><option value=\"\">"._SELECTONE."</option>";
54
+	$output .= "<form name='shoutopts' method='POST' id='settingsform' style=\"width: 38em;\" action='admin.php?action=blocks&amp;admin=shoutbox'>\n
55
+<div><label style=\"margin-top: 0.5em;\" for='shoutdate'>"._SHOUTDATE.":</label><select name='shoutdate' id='shoutdate'><option value=\"\">"._SELECTONE."</option>";
56 56
 		foreach($defaults as $d) {
57 57
 			$output .= "<option value='$d'".($blocks['shoutbox']['shoutdate'] == $d ? " selected" : "").">".date("$d")."</option>";
58 58
 		}
59 59
 		$output .= "</select> "._OR." <input type='text' name='customshoutdate' class='textbox' value='".(isset($blocks['shoutbox']['shoutdate']) && !in_array($blocks['shoutbox']['shoutdate'], $defaults) ? $blocks['shoutbox']['shoutdate'] : "")."'> <A HREF='#' class='pophelp'>[?]<span>"._HELP_SHOUTDATEFORMAT."</span></A></div>
60
-<div><label for='shoutlimit'>"._SHOUTLIMIT.":</label><input type='text' name='shoutlimit' size='1' value='".(isset($blocks['shoutbox']['shoutlimit']) ? $blocks['shoutbox']['shoutlimit'] : "")."'></div>
61
-<div class='fieldset'><span class='label'>"._GUESTSHOUTS.":</span>\n
60
+<div><label style=\"margin-top: 0.06em;\" for='shoutlimit'>"._SHOUTLIMIT.":</label><input type='text' name='shoutlimit' size='1' value='".(isset($blocks['shoutbox']['shoutlimit']) ? $blocks['shoutbox']['shoutlimit'] : "")."'></div>
61
+<div class='fieldset'><span style=\"width: 12em; margin-right: -0.8em;\" class='label'><label for='guestshouts'>"._GUESTSHOUTS.":</label></span>\n
62 62
 <input type='radio' name='guestshouts' id='guestshouts"._YES."' value='"._YES."'".(!empty($blocks['shoutbox']['guestshouts'])  ? " checked='checked'" : "")."> <label for='guestshouts"._YES."'>"._YES."</label>\n
63 63
 <input type='radio' name='guestshouts' id='guestshouts"._YES."' value='"._NO."'".(empty($blocks['shoutbox']['guestshouts'])  ? " checked='checked'" : "")."> <label for='guestshouts"._NO."'>"._NO."</label>\n</div>\n
64
-<input type='submit' class='button' name='submitopts' id='submit' value='"._SUBMIT."'></form>";
64
+<input type='submit' style=\"margin-left: 31.8%; margin-top: 0.3em;\"class='button' name='submitopts' id='submit' value='"._SUBMIT."'></form>";
65 65
 $shouts = dbquery("SELECT shouts.*, "._PENNAMEFIELD." as penname FROM ".TABLEPREFIX."fanfiction_shoutbox as shouts LEFT JOIN "._AUTHORTABLE." ON "._UIDFIELD." = shouts.shout_name ORDER BY shout_datestamp DESC");
66 66
 $totalshouts = dbnumrows($shouts);
67 67
 $shouts = dbquery("SELECT shouts.*, "._PENNAMEFIELD." as penname FROM ".TABLEPREFIX."fanfiction_shoutbox as shouts LEFT JOIN "._AUTHORTABLE." ON "._UIDFIELD." = shouts.shout_name ORDER BY shout_datestamp DESC LIMIT $offset, $itemsperpage");
... ...
@@ -92,4 +92,4 @@ if($totalshouts > 0) {
92 92
 }
93 93
 else $output .= write_message(_NOSHOUTS);
94 94
 
95
-?>
96 95
\ No newline at end of file
96
+?>