root/branches/2.1/wp-admin/edit-pages.php

Revision 4914, 1.6 kB (checked in by ryan, 2 years ago)

Show pages in ascending order in Edit->Pages. Props Xander. fixes #3760

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 require_once('admin.php');
3 $title = __('Pages');
4 $parent_file = 'edit.php';
5 wp_enqueue_script( 'listman' );
6 require_once('admin-header.php');
7 ?>
8
9 <div class="wrap">
10 <h2><?php _e('Page Management'); ?></h2>
11 <p><?php _e('Pages are like posts except they live outside of the normal blog chronology and can be hierarchical. You can use pages to organize and manage any amount of content.'); ?> <a href="page-new.php"><?php _e('Create a new page &raquo;'); ?></a></p>
12
13 <form name="searchform" action="" method="get">
14     <fieldset>
15     <legend><?php _e('Search Pages&hellip;') ?></legend>
16     <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo attribute_escape($_GET['s']); ?>" size="17" />
17     <input type="submit" name="submit" value="<?php _e('Search') ?>"  />
18     </fieldset>
19 </form>
20
21 <?php
22 wp('post_type=page&orderby=menu_order&what_to_show=posts&posts_per_page=-1&posts_per_archive_page=-1&order=asc');
23
24 if ( $_GET['s'] )
25     $all = false;
26 else
27     $all = true;
28
29 if ($posts) {
30 ?>
31 <table class="widefat">
32   <thead>
33   <tr>
34     <th scope="col" style="text-align: center"><?php _e('ID') ?></th>
35     <th scope="col"><?php _e('Title') ?></th>
36     <th scope="col"><?php _e('Owner') ?></th>
37     <th scope="col"><?php _e('Updated') ?></th>
38     <th scope="col" colspan="3" style="text-align: center"><?php _e('Action'); ?></th>
39   </tr>
40   </thead>
41   <tbody id="the-list">
42 <?php
43 page_rows(0, 0, $posts, $all);
44 ?>
45   </tbody>
46 </table>
47
48 <div id="ajax-response"></div>
49
50 <?php
51 } else {
52 ?>
53 <p><?php _e('No pages yet.') ?></p>
54 <?php
55 } // end if ($posts)
56 ?>
57
58 <h3><a href="page-new.php"><?php _e('Create New Page &raquo;'); ?></a></h3>
59
60 </div>
61
62 <?php include('admin-footer.php'); ?>
63
Note: See TracBrowser for help on using the browser.