Changeset 33
- Timestamp:
- 05/21/2003 10:16:11 PM (22 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
b2-include/b2.css (modified) (1 diff)
-
b2options.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2.css
r30 r33 128 128 font-size: 10pt; 129 129 } 130 .wrap { 131 width: 85%; 132 border: 1px solid #ccc; 133 margin: 20px auto 10px auto; 134 padding: 10px; 135 } 130 136 form { margin: 0; padding: 0; } /* thanks #mozilla */ -
trunk/b2options.php
r3 r33 1 1 <?php 2 2 $title = "Options"; 3 /* <Options> */4 3 5 4 function add_magic_quotes($array) { … … 74 73 <input type="hidden" name="action" value="update" /> 75 74 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" <?php75 <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 84 83 $i = $what_to_show; 85 84 if ($i == "days") 86 85 echo " selected"; 87 86 ?>>days</option> 88 <option value="posts" <?php87 <option value="posts" <?php 89 88 if ($i == "posts") 90 89 echo " selected"; 91 90 ?>>posts</option> 92 <option value="paged" <?php91 <option value="paged" <?php 93 92 if ($i == "paged") 94 93 echo " selected"; 95 94 ?>>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 104 102 if ($i == "daily") 105 103 echo " selected"; 106 104 ?>>daily</option> 107 <option value="weekly"<?php105 <option value="weekly"<?php 108 106 if ($i == "weekly") 109 107 echo " selected"; 110 108 ?>>weekly</option> 111 <option value="monthly"<?php109 <option value="monthly"<?php 112 110 if ($i == "monthly") 113 111 echo " selected"; 114 112 ?>>monthly</option> 115 <option value="postbypost"<?php113 <option value="postbypost"<?php 116 114 if ($i == "postbypost") 117 115 echo " selected"; 118 116 ?>>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 <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"> </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"> </td> 135 <td> <input type="submit" name="submit" value="Update" class="search"> </td> 136 </tr> 137 </table> 161 138 162 < ?php echo $tablebottom ?>139 </div> 163 140 164 141 </form> 165 142 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"> 145 About 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> 176 151 The following characters are recognized in the format string:<br /> 177 152 a - "am" or "pm"<br /> … … 207 182 Unrecognized characters in the format string will be printed as-is. 208 183 </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> 213 188 <?php 214 189 … … 216 191 } 217 192 218 /* </Options> */219 193 include($b2inc."/b2footer.php") ?>
Note: See TracChangeset
for help on using the changeset viewer.