|
...
|
...
|
@@ -50,7 +50,7 @@ function updatePanelOrder( ) {
|
|
50
|
50
|
}
|
|
51
|
51
|
|
|
52
|
52
|
if($action == "settings") {
|
|
53
|
|
-$output .= "<h1>"._SETTINGS."</h1><div style='text-align: center;'>
|
|
|
53
|
+$output .= "<div id='pagetitle'>"._SETTINGS."</div><div style='text-align: center;'>
|
|
54
|
54
|
<a href='admin.php?action=settings&sect=main'>"._MAINSETTINGS."</a> |
|
|
55
|
55
|
<a href='admin.php?action=settings&sect=submissions'>"._SUBMISSIONSETTINGS."</a> |
|
|
56
|
56
|
<a href='admin.php?action=settings&sect=sitesettings'>"._SITESETTINGS."</a> |
|
|
...
|
...
|
@@ -310,9 +310,9 @@ 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'])."&sect=$sect'>";
|
|
|
313
|
+ $output .= "<form method='POST' class='tblborder' style='width:30%; margin:0 auto' enctype='multipart/form-data' action='".((isset($action) && $action == "settings") ? "admin.php?action=settings" : $_SERVER['PHP_SELF']."?step=".$_GET['step'])."&sect=$sect'>";
|
|
314
|
314
|
if($sect == "main") {
|
|
315
|
|
- $output .= "<h2>"._SITEINFO."</h2>
|
|
|
315
|
+ $output .= "<div class='sectionheader'>"._SITEINFO."</div>
|
|
316
|
316
|
<table class='acp'>
|
|
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>
|
|
...
|
...
|
@@ -355,7 +355,7 @@ else if(isset($_POST['submit'])) {
|
|
355
|
355
|
$output .= "</select> <a href='#' class='pophelp'>[?]<span>"._HELP_LANGUAGE."</span></a></td></tr>";
|
|
356
|
356
|
}
|
|
357
|
357
|
else if($sect == "submissions") {
|
|
358
|
|
- $output .= "<h2>"._SUBMISSIONSETTINGS."</h2>
|
|
|
358
|
+ $output .= "<div class='sectionheader'>"._SUBMISSIONSETTINGS."</div>
|
|
359
|
359
|
<table class='acp'>
|
|
360
|
360
|
<tr>
|
|
361
|
361
|
<td><label for='newsubmissionsoff'>"._NOSUBS.":</label></td><td><select name='newsubmissionsoff'>
|
|
...
|
...
|
@@ -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> <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>
|
|
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>
|
|
...
|
...
|
@@ -410,11 +410,11 @@ else if(isset($_POST['submit'])) {
|
|
410
|
410
|
</tr>
|
|
411
|
411
|
<tr>
|
|
412
|
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>";
|
|
|
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>";
|
|
415
|
415
|
}
|
|
416
|
416
|
else if($sect == "sitesettings") {
|
|
417
|
|
- $output .= "<h2>"._SITESETTINGS."</h2>
|
|
|
417
|
+ $output .= "<div class='sectionheader'>"._SITESETTINGS."</div>
|
|
418
|
418
|
<table class='acp'>
|
|
419
|
419
|
<tr>
|
|
420
|
420
|
<td><label for='newtinyMCE'>"._USETINYMCE. ": </label></td><td><select name='newtinyMCE'>
|
|
...
|
...
|
@@ -474,7 +474,7 @@ else if(isset($_POST['submit'])) {
|
|
474
|
474
|
$defaultdates = array("m/d/y", "m/d/Y", "m/d/Y", "d/m/Y", "d/m/y", "d M Y",
|
|
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
|
|
- $output .= "<h2>"._DISPLAYSETTINGS."</h2>
|
|
|
477
|
+ $output .= "<div class='sectionheader'>"._DISPLAYSETTINGS."</div>
|
|
478
|
478
|
<table class='acp'>
|
|
479
|
479
|
<tr>
|
|
480
|
480
|
<td><label for='newdateformat'>"._DATEFORMAT.":</label></td><td><select name='newdateformat'><option value=''>"._SELECTONE."</option>";
|
|
...
|
...
|
@@ -535,7 +535,7 @@ else if(isset($_POST['submit'])) {
|
|
535
|
535
|
<td><label for='newlinkrange'>"._LINKRANGE.":</label></td><td><input type='text' class='textbox=' name='newlinkrange' size='3' value='$linkrange'> <a href='#' class='pophelp'>[?]<span>"._HELP_LINKRANGE."</span></a></td></tr>";
|
|
536
|
536
|
}
|
|
537
|
537
|
else if($sect == "reviews") {
|
|
538
|
|
- $output .= "<h2>"._REVIEWSETTINGS."</h2>
|
|
|
538
|
+ $output .= "<div class='sectionheader'>"._REVIEWSETTINGS."</div>
|
|
539
|
539
|
<table class='acp'>
|
|
540
|
540
|
<tr>
|
|
541
|
541
|
<td><label for='newreviewsallowed'>"._ONREVIEWS.":</label></td><td><select name='newreviewsallowed'>
|
|
...
|
...
|
@@ -571,7 +571,7 @@ else if(isset($_POST['submit'])) {
|
|
571
|
571
|
</select> <a href='#' class='pophelp'>[?]<span>"._HELP_RATEONLY."</span></a></td></tr>";
|
|
572
|
572
|
}
|
|
573
|
573
|
else if($sect == "useropts") {
|
|
574
|
|
- $output .= "<h2>"._USERSETTINGS."</h2>
|
|
|
574
|
+ $output .= "<div class='sectionheader'>"._USERSETTINGS."</div>
|
|
575
|
575
|
<table class='acp'>
|
|
576
|
576
|
<tr>
|
|
577
|
577
|
<td><label for='newalertson'>"._ALERTSON.":</label></td><td><select name='newalertson'>
|
|
...
|
...
|
@@ -598,7 +598,7 @@ else if(isset($_POST['submit'])) {
|
|
598
|
598
|
</select> <a href='#' class='pophelp'>[?]<span>"._HELP_PWD."</span></a></td></tr>";
|
|
599
|
599
|
}
|
|
600
|
600
|
else if($sect == "email") {
|
|
601
|
|
- $output .= "<h2>"._EMAILSETTINGS."</h2>
|
|
|
601
|
+ $output .= "<div class='sectionheader'>"._EMAILSETTINGS."</div>
|
|
602
|
602
|
<table class='acp'>
|
|
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>
|
|
...
|
...
|
@@ -625,7 +625,7 @@ else if(isset($_POST['submit'])) {
|
|
625
|
625
|
// link -- so the outbound SMTP connection can't be triggered by a plain link
|
|
626
|
626
|
// or a browser prefetch. The existing testsmtp handler posts to the same URL.
|
|
627
|
627
|
if($sect == "email") {
|
|
628
|
|
- $output .= "<h2>"._TESTSMTP_HEADER."</h2>
|
|
|
628
|
+ $output .= "<div class='sectionheader'>"._TESTSMTP_HEADER."</div>
|
|
629
|
629
|
<ul>
|
|
630
|
630
|
<li>
|
|
631
|
631
|
<form method='POST' action='admin.php?action=settings&sect=email' style='display:inline'>
|