Browse code

More admin settings layout changes - table centering and site submissions consistency

Clarissa Walker authored on 2026/08/22 20:16:20
Showing 1 changed files
... ...
@@ -310,10 +310,10 @@ else if(isset($_POST['submit'])) {
310 310
 		$$var = stripslashes($val );
311 311
 	}
312 312
 
313
-	$output .= "<form method='POST' class='tblborder' style='' enctype='multipart/form-data' action='".((isset($action) && $action == "settings") ? "admin.php?action=settings" : $_SERVER['PHP_SELF']."?step=".$_GET['step'])."&amp;sect=$sect'>";
313
+	$output .= "<br><form method='POST' class='tblborder' style='width: 45%; margin: 0 auto;' enctype='multipart/form-data' action='".((isset($action) && $action == "settings") ? "admin.php?action=settings" : $_SERVER['PHP_SELF']."?step=".$_GET['step'])."&amp;sect=$sect'>";
314 314
 	if($sect == "main") {
315 315
 		$output .= "<div class='sectionheader'>"._SITEINFO."</div>
316
-		<table class='acp'>
316
+		<table class='acp' style='margin: 0 auto;'>
317 317
 			<tr>
318 318
 				<td><label for='newsitekey'>"._SITEKEY.":</label></td><td><input type='text' class='textbox' name='newsitekey' value='".SITEKEY."'> <a href='#' class='pophelp'>[?]<span>"._HELP_SITEKEY."</span></a></td>
319 319
 			</tr>
... ...
@@ -356,7 +356,7 @@ else if(isset($_POST['submit'])) {
356 356
 	}
357 357
 	else if($sect == "submissions") {
358 358
 		$output .= "<div class='sectionheader'>"._SUBMISSIONSETTINGS."</div>
359
-		<table class='acp'>
359
+		<table class='acp' style='margin: 0 auto;'>
360 360
 			<tr>
361 361
 				<td><label for='newsubmissionsoff'>"._NOSUBS.":</label></td><td><select name='newsubmissionsoff'>
362 362
 				<option value='1'".($submissionsoff == "1" ? " selected" : "").">"._YES."</option>
... ...
@@ -396,8 +396,8 @@ else if(isset($_POST['submit'])) {
396 396
 			</tr>
397 397
 			<tr>
398 398
 				<td colspan='2'><fieldset style='margin: 0 auto;'><legend>"._IMAGESIZE." <a href='#' class='pophelp'>[?]<span>"._HELP_IMAGESIZE."</span></a></legend>
399
-				<label for='newimageheight'>"._MAXHEIGHT.":</label> <input  type='text' class='textbox=' name='newimageheight' value='$imageheight' size='5'> <br />
400
-				<label for='newimagewidth'>"._MAXWIDTH.":</label> <input  type='text' class='textbox=' name='newimagewidth' value='$imagewidth' size='5'></fieldset></td>
399
+				<label for='newimageheight'>"._MAXHEIGHT.":</label> <span style='padding-left: 24.3%;'> <input  type='text' class='textbox=' name='newimageheight' value='$imageheight' size='5'> <br />
400
+				<label for='newimagewidth'>"._MAXWIDTH.":</label> <span style='padding-left: 25.3%;'> <input  type='text' class='textbox=' name='newimagewidth' value='$imagewidth' size='5'></fieldset></td>
401 401
 			</tr>
402 402
 			<tr>
403 403
 				<td><label for='newstore'>"._HOWSTORE.":</label></td><td><select name='newstore' onChange='if (this.disabled) this.selectedIndex=0' disabled>
... ...
@@ -409,13 +409,13 @@ else if(isset($_POST['submit'])) {
409 409
 				<td><label for='newstoriespath'>"._STORIESPATH.":</label></td><td><input type='text' class='textbox=' name='newstoriespath' value='$storiespath'> <a href='#' class='pophelp'>[?]<span>"._HELP_STORIESPATH."</span></a></td>
410 410
 			</tr>
411 411
 			<tr>
412
-				<td colspan='2'><fieldset style='margin: 0 auto;'><legend>"._MAXMINWORDS."<a href='#' class='pophelp'>[?]<span>"._HELP_MINMAXWORDS."</span></a></legend>
413
-				<label for='newminwords'>"._MIN.":</label> <input  type='text' class='textbox=' name='newminwords' value='$minwords' size='5'> <br />
414
-				<label for='newmaxwords'>"._MAX.":</label> <input  type='text' class='textbox=' name='newmaxwords' value='$maxwords' size='7'></fieldset></td></tr>";
412
+				<td colspan='2'><fieldset style='margin: 0 auto;'><legend>"._MAXMINWORDS." <a href='#' class='pophelp'>[?]<span>"._HELP_MINMAXWORDS."</span></a></legend>
413
+				<label for='newminwords'>"._MIN.":</label> <span style='padding-left: 38.44%;'> <input  type='text' class='textbox=' name='newminwords' value='$minwords' size='5'> <br />
414
+				<label for='newmaxwords'>"._MAX.":</label> <span style='padding-left: 37.7%;'> <input  type='text' class='textbox=' name='newmaxwords' value='$maxwords' size='7'></fieldset></td></tr>";
415 415
 	}
416 416
 	else if($sect == "sitesettings") {
417 417
 		$output .= "<div class='sectionheader'>"._SITESETTINGS."</div>
418
-		<table class='acp'>
418
+		<table class='acp' style='margin: 0 auto;'>
419 419
 			<tr>
420 420
 				<td><label for='newtinyMCE'>"._USETINYMCE. ": </label></td><td><select name='newtinyMCE'>
421 421
 				<option value=\"2\"" . ($tinyMCE == 2 ? " selected" : "") . ">TinyMce4</option>
... ...
@@ -475,7 +475,7 @@ else if(isset($_POST['submit'])) {
475 475
 				"d.m.y", "Y.m.d", "m.d.Y", "d-m-y", "m-d-y", "M d Y", "M d, Y", "F d Y", "F d, Y");
476 476
 		$defaulttimes = array("h:i a", "h:i A", "H:i", "g:i a", "g:i A", "G:i", "h:i:s a", "H:i:s", "g:i:s a", "g:i:s A", "G:i:s");
477 477
 		$output .= "<div class='sectionheader'>"._DISPLAYSETTINGS."</div>
478
-		<table class='acp'>
478
+		<table class='acp' style='margin: 0 auto;'>
479 479
 			<tr>
480 480
 				<td><label for='newdateformat'>"._DATEFORMAT.":</label></td><td><select name='newdateformat'><option value=''>"._SELECTONE."</option>";
481 481
 		foreach($defaultdates as $date) {
... ...
@@ -536,7 +536,7 @@ else if(isset($_POST['submit'])) {
536 536
 	}
537 537
 	else if($sect == "reviews") {
538 538
 		$output .= "<div class='sectionheader'>"._REVIEWSETTINGS."</div>
539
-		<table class='acp'>
539
+		<table class='acp' style='margin: 0 auto;'>
540 540
 			<tr>
541 541
 				<td><label for='newreviewsallowed'>"._ONREVIEWS.":</label></td><td><select name='newreviewsallowed'>
542 542
 				<option value='1'".($reviewsallowed == "1" ? " selected" : "").">"._YES."</option>
... ...
@@ -572,7 +572,7 @@ else if(isset($_POST['submit'])) {
572 572
 	}
573 573
 	else if($sect == "useropts") {
574 574
 		$output .= "<div class='sectionheader'>"._USERSETTINGS."</div>
575
-		<table class='acp'>
575
+		<table class='acp' style='margin: 0 auto;'>
576 576
 			<tr>
577 577
 				<td><label for='newalertson'>"._ALERTSON.":</label></td><td><select name='newalertson'>
578 578
 				<option value='1'".($alertson == "1" ? " selected" : "").">"._YES."</option>
... ...
@@ -599,7 +599,7 @@ else if(isset($_POST['submit'])) {
599 599
 	}
600 600
 	else if($sect == "email") {
601 601
 		$output .= "<div class='sectionheader'>"._EMAILSETTINGS."</div>
602
-		<table class='acp'>
602
+		<table class='acp' style='margin: 0 auto;'>
603 603
 			<tr>
604 604
 				<td><label for='newsmtp_host'>"._SMTPHOST.":</label></td><td><input name='newsmtp_host' type='text' value='$smtp_host'> <a href='#' class='pophelp'>[?]<span>"._HELP_SMTPHOST."</span></a></td>
605 605
 		</tr>