Make WordPress Core

Changeset 33


Ignore:
Timestamp:
05/21/2003 10:16:11 PM (22 years ago)
Author:
saxmatt
Message:

Zapping tables.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2.css

    r30 r33  
    128128    font-size: 10pt;
    129129}
     130.wrap {
     131    width: 85%;
     132    border: 1px solid #ccc;
     133    margin: 20px auto 10px auto;
     134    padding: 10px;
     135}
    130136form { margin: 0; padding: 0; } /* thanks #mozilla */
  • trunk/b2options.php

    r3 r33  
    11<?php
    22$title = "Options";
    3 /* <Options> */
    43
    54function add_magic_quotes($array) {
     
    7473            <input type="hidden" name="action" value="update" />
    7574   
    76 <?php echo $blankline ?>
    77 <?php echo $tabletop ?>
    78             <table width="550" cellpadding="5" cellspacing="0">
    79             <tr height="40">
    80                 <td width="150" height="40">Show:</td>
    81                 <td width="350"><input type="text" name="newposts_per_page" value="<?php echo get_settings("posts_per_page") ?>" size="3">
    82                 <select name="newwhat_to_show">
    83                 <option value="days" <?php
     75<div class="wrap">
     76           
     77  <table width="550" cellpadding="5" cellspacing="0">
     78    <tr height="40">
     79      <td width="150" height="40">Show:</td>
     80      <td width="350"><input type="text" name="newposts_per_page" value="<?php echo get_settings("posts_per_page") ?>" size="3">
     81        <select name="newwhat_to_show">
     82          <option value="days" <?php
    8483                $i = $what_to_show;
    8584                if ($i == "days")
    8685                echo " selected";
    8786                ?>>days</option>
    88                 <option value="posts" <?php
     87          <option value="posts" <?php
    8988                if ($i == "posts")
    9089                echo " selected";
    9190                ?>>posts</option>
    92                 <option value="paged" <?php
     91          <option value="paged" <?php
    9392                if ($i == "paged")
    9493                echo " selected";
    9594                ?>>posts paged</option>
    96                 </select>
    97                 </td>
    98             </tr>
    99             <tr height="40">
    100                 <td height="40">Archive mode:</td>
    101                 <td><select name="newarchive_mode">
    102                 <?php $i = $archive_mode; ?>
    103                 <option value="daily"<?php
     95        </select> </td>
     96    </tr>
     97    <tr height="40">
     98      <td height="40">Archive mode:</td>
     99      <td><select name="newarchive_mode">
     100          <?php $i = $archive_mode; ?>
     101          <option value="daily"<?php
    104102                if ($i == "daily")
    105103                echo " selected";
    106104                ?>>daily</option>
    107                 <option value="weekly"<?php
     105          <option value="weekly"<?php
    108106                if ($i == "weekly")
    109107                echo " selected";
    110108                ?>>weekly</option>
    111                 <option value="monthly"<?php
     109          <option value="monthly"<?php
    112110                if ($i == "monthly")
    113111                echo " selected";
    114112                ?>>monthly</option>
    115                 <option value="postbypost"<?php
     113          <option value="postbypost"<?php
    116114                if ($i == "postbypost")
    117115                echo " selected";
    118116                ?>>post by post</option>
    119                 </select>
    120             </tr>
    121             <tr height="40">
    122                 <td height="40">Time difference:</td>
    123                 <td><input type="text" name="newtime_difference" value="<?php echo $time_difference ?>" size="2">
    124                 <i> if you're not on the timezone of your server</i>
    125                 </td>
    126             </tr>
    127             <tr height="40">
    128                 <td height="40" width="150">AutoBR:</td>
    129                 <td><select name="newautobr">
    130                 <option value="1" <?php
    131                 if ($autobr)
    132                 echo " selected";
    133                 ?>>on</option>
    134                 <option value="0" <?php
    135                 if (!$autobr)
    136                 echo " selected";
    137                 ?>>off</option>
    138                 </select>
    139                 <i>converts line-breaks into &lt;br /> tags. (<a href="#autobr">note</a>)</i>
    140                 </td>
    141             </tr>
    142             <tr height="40">
    143                 <td height="40">Date format:</td>
    144                 <td><input type="text" name="newdate_format" value="<?php echo $date_format ?>" size="10">
    145                 <i> (<a href="#dateformat">note</a>)</i>
    146                 </td>
    147             </tr>
    148             <tr height="40">
    149                 <td height="40">Time format:</td>
    150                 <td><input type="text" name="newtime_format" value="<?php echo $time_format ?>" size="10">
    151                 <i> (<a href="#dateformat">note</a>)</i>
    152                 </td>
    153             </tr>
    154             <tr height="40">
    155                 <td height="40">&nbsp;</td>
    156                 <td>
    157                 <input type="submit" name="submit" value="Update" class="search">
    158                 </td>
    159             </tr>
    160         </table>
     117        </select> </tr>
     118    <tr height="40">
     119      <td height="40">Time difference:</td>
     120      <td><input type="text" name="newtime_difference" value="<?php echo $time_difference ?>" size="2">
     121        <i> if you're not on the timezone of your server</i> </td>
     122    </tr>
     123    <tr height="40">
     124      <td height="40">Date format:</td>
     125      <td><input type="text" name="newdate_format" value="<?php echo $date_format ?>" size="10">
     126        <i> (<a href="#dateformat">note</a>)</i> </td>
     127    </tr>
     128    <tr height="40">
     129      <td height="40">Time format:</td>
     130      <td><input type="text" name="newtime_format" value="<?php echo $time_format ?>" size="10">
     131        <i> (<a href="#dateformat">note</a>)</i> </td>
     132    </tr>
     133    <tr height="40">
     134      <td height="40">&nbsp;</td>
     135      <td> <input type="submit" name="submit" value="Update" class="search"> </td>
     136    </tr>
     137  </table>
    161138
    162 <?php echo $tablebottom ?>
     139</div>
    163140   
    164141        </form>
    165142
    166         <br />
    167 
    168 <?php echo $tabletop ?>
    169        
    170         <a name="dateformat"></a><b>About Date & Time formats:</b><br />
    171         <br />
    172        
    173         You can format the date & time in many ways, using the PHP syntax.<br />
    174         As quoted from the PHP manual, here are the letters you can use:<br />
    175         <blockquote>
     143<div class="wrap">
     144<h2 id="dateformat">
     145About Date & Time formats:
     146</h2>
     147<p> You can format the date & time in many ways, using the PHP syntax.<br />
     148  As quoted from the PHP manual, here are the letters you can use:<br />
     149</p>
     150<blockquote>
    176151        The following characters are recognized in the format string:<br />
    177152        a - "am" or "pm"<br />
     
    207182        Unrecognized characters in the format string will be printed as-is.
    208183        </blockquote>
    209         For more information and examples, check the PHP manual on <a href="http://www.php.net/manual/en/function.date.php">this page</a>.
    210 
    211 <?php echo $tablebottom ?>
    212 
     184       
     185<p>For more information and examples, check the PHP manual on <a href="http://www.php.net/manual/en/function.date.php">this
     186  page</a>.</p>
     187  </div>
    213188<?php
    214189
     
    216191}
    217192
    218 /* </Options> */
    219193include($b2inc."/b2footer.php") ?>
Note: See TracChangeset for help on using the changeset viewer.