Changeset 173
- Timestamp:
- 06/05/2003 09:47:18 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/b2edit.showposts.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/b2edit.showposts.php
r149 r173 4 4 require_once('../b2config.php'); 5 5 6 if (!$ posts) {6 if (!$showposts) { 7 7 if ($posts_per_page) { 8 $ posts=$posts_per_page;8 $showposts=$posts_per_page; 9 9 } else { 10 $ posts=10;11 $posts_per_page=$ posts;10 $showposts=10; 11 $posts_per_page=$showposts; 12 12 } 13 13 } … … 21 21 if (!$poststart) { 22 22 $poststart=0; 23 $postend=$ posts;23 $postend=$showposts; 24 24 } 25 25 26 26 $nextXstart=$postend; 27 $nextXend=$postend+$ posts;28 29 $previousXstart=($poststart-$ posts);27 $nextXend=$postend+$showposts; 28 29 $previousXstart=($poststart-$showposts); 30 30 $previousXend=$poststart; 31 31 if ($previousXstart < 0) { 32 32 $previousXstart=0; 33 $previousXend=$ posts;33 $previousXend=$showposts; 34 34 } 35 35 … … 51 51 <input type="hidden" name="poststart" value="<?php echo $previousXstart; ?>" /> 52 52 <input type="hidden" name="postend" value="<?php echo $previousXend; ?>" /> 53 <input type="submit" name="submitprevious" class="search" value="< <?php echo $ posts ?>" />53 <input type="submit" name="submitprevious" class="search" value="< <?php echo $showposts ?>" /> 54 54 <?php 55 55 } … … 61 61 <input type="hidden" name="poststart" value="<?php echo $nextXstart; ?>" /> 62 62 <input type="hidden" name="postend" value="<?php echo $nextXend; ?>" /> 63 <input type="submit" name="submitnext" class="search" value="<?php echo $ posts ?> >" />63 <input type="submit" name="submitnext" class="search" value="<?php echo $showposts ?> >" /> 64 64 </form> 65 65 </td> … … 71 71 <td valign="top" width="200"><!-- show X first/last posts --> 72 72 <form name="showXfirstlastposts" method="get" action=""> 73 <input type="text" name="posts" value="<?php echo $ posts ?>" style="width:40px;" /?>73 <input type="text" name="posts" value="<?php echo $showposts ?>" style="width:40px;" /?> 74 74 <?php 75 75 if (!isset($order)) … … 337 337 <input type="hidden" name="poststart" value="<?php echo $previousXstart; ?>" /> 338 338 <input type="hidden" name="postend" value="<?php echo $previousXend; ?>" /> 339 <input type="submit" name="submitprevious" class="search" value="< Previous <?php echo $ posts ?>" /><?php339 <input type="submit" name="submitprevious" class="search" value="< Previous <?php echo $showposts ?>" /><?php 340 340 } 341 341 ?> … … 346 346 <input type="hidden" name="poststart" value="<?php echo $nextXstart; ?>" /> 347 347 <input type="hidden" name="postend" value="<?php echo $nextXend; ?>" /> 348 <input type="submit" name="submitnext" class="search" value="Next <?php echo $ posts ?> >" />348 <input type="submit" name="submitnext" class="search" value="Next <?php echo $showposts ?> >" /> 349 349 </form> 350 350 </td> … … 356 356 <td valign="top" width="200"><!-- show X first/last posts --> 357 357 <form name="showXfirstlastposts" method="get"> 358 <input type="text" name="posts" value="<?php echo $ posts ?>" style="width:40px;" /?>358 <input type="text" name="posts" value="<?php echo $showposts ?>" style="width:40px;" /?> 359 359 <select name="order"> <option value="DESC" <?php 360 360 $i = $order;
Note: See TracChangeset
for help on using the changeset viewer.