Zapping tables.

git-svn-id: http://svn.automattic.com/wordpress/trunk@33 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-05-21 22:16:11 +00:00
parent 9fdc42eada
commit 4c04bb1407
2 changed files with 60 additions and 80 deletions

View File

@ -127,4 +127,10 @@ a.b2menutop:hover {
xmp { /* Just in case */ xmp { /* Just in case */
font-size: 10pt; font-size: 10pt;
} }
.wrap {
width: 85%;
border: 1px solid #ccc;
margin: 20px auto 10px auto;
padding: 10px;
}
form { margin: 0; padding: 0; } /* thanks #mozilla */ form { margin: 0; padding: 0; } /* thanks #mozilla */

View File

@ -1,6 +1,5 @@
<?php <?php
$title = "Options"; $title = "Options";
/* <Options> */
function add_magic_quotes($array) { function add_magic_quotes($array) {
foreach ($array as $k => $v) { foreach ($array as $k => $v) {
@ -73,106 +72,82 @@ default:
<form name="form" action="b2options.php" method="post"> <form name="form" action="b2options.php" method="post">
<input type="hidden" name="action" value="update" /> <input type="hidden" name="action" value="update" />
<?php echo $blankline ?> <div class="wrap">
<?php echo $tabletop ?>
<table width="550" cellpadding="5" cellspacing="0"> <table width="550" cellpadding="5" cellspacing="0">
<tr height="40"> <tr height="40">
<td width="150" height="40">Show:</td> <td width="150" height="40">Show:</td>
<td width="350"><input type="text" name="newposts_per_page" value="<?php echo get_settings("posts_per_page") ?>" size="3"> <td width="350"><input type="text" name="newposts_per_page" value="<?php echo get_settings("posts_per_page") ?>" size="3">
<select name="newwhat_to_show"> <select name="newwhat_to_show">
<option value="days" <?php <option value="days" <?php
$i = $what_to_show; $i = $what_to_show;
if ($i == "days") if ($i == "days")
echo " selected"; echo " selected";
?>>days</option> ?>>days</option>
<option value="posts" <?php <option value="posts" <?php
if ($i == "posts") if ($i == "posts")
echo " selected"; echo " selected";
?>>posts</option> ?>>posts</option>
<option value="paged" <?php <option value="paged" <?php
if ($i == "paged") if ($i == "paged")
echo " selected"; echo " selected";
?>>posts paged</option> ?>>posts paged</option>
</select> </select> </td>
</td> </tr>
</tr> <tr height="40">
<tr height="40"> <td height="40">Archive mode:</td>
<td height="40">Archive mode:</td> <td><select name="newarchive_mode">
<td><select name="newarchive_mode"> <?php $i = $archive_mode; ?>
<?php $i = $archive_mode; ?> <option value="daily"<?php
<option value="daily"<?php
if ($i == "daily") if ($i == "daily")
echo " selected"; echo " selected";
?>>daily</option> ?>>daily</option>
<option value="weekly"<?php <option value="weekly"<?php
if ($i == "weekly") if ($i == "weekly")
echo " selected"; echo " selected";
?>>weekly</option> ?>>weekly</option>
<option value="monthly"<?php <option value="monthly"<?php
if ($i == "monthly") if ($i == "monthly")
echo " selected"; echo " selected";
?>>monthly</option> ?>>monthly</option>
<option value="postbypost"<?php <option value="postbypost"<?php
if ($i == "postbypost") if ($i == "postbypost")
echo " selected"; echo " selected";
?>>post by post</option> ?>>post by post</option>
</select> </select> </tr>
</tr> <tr height="40">
<tr height="40"> <td height="40">Time difference:</td>
<td height="40">Time difference:</td> <td><input type="text" name="newtime_difference" value="<?php echo $time_difference ?>" size="2">
<td><input type="text" name="newtime_difference" value="<?php echo $time_difference ?>" size="2"> <i> if you're not on the timezone of your server</i> </td>
<i> if you're not on the timezone of your server</i> </tr>
</td> <tr height="40">
</tr> <td height="40">Date format:</td>
<tr height="40"> <td><input type="text" name="newdate_format" value="<?php echo $date_format ?>" size="10">
<td height="40" width="150">AutoBR:</td> <i> (<a href="#dateformat">note</a>)</i> </td>
<td><select name="newautobr"> </tr>
<option value="1" <?php <tr height="40">
if ($autobr) <td height="40">Time format:</td>
echo " selected"; <td><input type="text" name="newtime_format" value="<?php echo $time_format ?>" size="10">
?>>on</option> <i> (<a href="#dateformat">note</a>)</i> </td>
<option value="0" <?php </tr>
if (!$autobr) <tr height="40">
echo " selected"; <td height="40">&nbsp;</td>
?>>off</option> <td> <input type="submit" name="submit" value="Update" class="search"> </td>
</select> </tr>
<i>converts line-breaks into &lt;br /> tags. (<a href="#autobr">note</a>)</i> </table>
</td>
</tr>
<tr height="40">
<td height="40">Date format:</td>
<td><input type="text" name="newdate_format" value="<?php echo $date_format ?>" size="10">
<i> (<a href="#dateformat">note</a>)</i>
</td>
</tr>
<tr height="40">
<td height="40">Time format:</td>
<td><input type="text" name="newtime_format" value="<?php echo $time_format ?>" size="10">
<i> (<a href="#dateformat">note</a>)</i>
</td>
</tr>
<tr height="40">
<td height="40">&nbsp;</td>
<td>
<input type="submit" name="submit" value="Update" class="search">
</td>
</tr>
</table>
<?php echo $tablebottom ?> </div>
</form> </form>
<br /> <div class="wrap">
<h2 id="dateformat">
<?php echo $tabletop ?> About Date & Time formats:
</h2>
<a name="dateformat"></a><b>About Date & Time formats:</b><br /> <p> You can format the date & time in many ways, using the PHP syntax.<br />
<br /> As quoted from the PHP manual, here are the letters you can use:<br />
</p>
You can format the date & time in many ways, using the PHP syntax.<br /> <blockquote>
As quoted from the PHP manual, here are the letters you can use:<br />
<blockquote>
The following characters are recognized in the format string:<br /> The following characters are recognized in the format string:<br />
a - "am" or "pm"<br /> a - "am" or "pm"<br />
A - "AM" or "PM"<br /> A - "AM" or "PM"<br />
@ -206,14 +181,13 @@ default:
<br /> <br />
Unrecognized characters in the format string will be printed as-is. Unrecognized characters in the format string will be printed as-is.
</blockquote> </blockquote>
For more information and examples, check the PHP manual on <a href="http://www.php.net/manual/en/function.date.php">this page</a>.
<?php echo $tablebottom ?>
<p>For more information and examples, check the PHP manual on <a href="http://www.php.net/manual/en/function.date.php">this
page</a>.</p>
</div>
<?php <?php
break; break;
} }
/* </Options> */
include($b2inc."/b2footer.php") ?> include($b2inc."/b2footer.php") ?>