2 require_once('admin.php');
4 $parent_file = 'edit.php';
6 require_once('admin-header.php');
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'); ?> »</a></p>
13 <form name="searchform" action="" method="get">
15 <legend><?php _e('Search Pages…') ?></legend>
16 <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo wp_specialchars($_GET['s'], 1); ?>" size="17" />
17 <input type="submit" name="submit" value="<?php _e('Search') ?>" />
23 $show_post_type = 'page';
25 if ( isset($_GET['s']) )
28 $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static'");
32 <table id="the-list-x" width="100%" cellpadding="3" cellspacing="3">
34 <th scope="col"><?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>
43 if ( isset($_GET['s']) ) {
44 foreach ( $posts as $post ) :
45 $class = ('alternate' != $class) ? 'alternate' : ''; ?>
46 <tr id='page-<?php echo $post->ID; ?>' class='<?php echo $class; ?>'>
47 <th scope="row"><?php echo $post->ID; ?></th>
49 <?php echo $pad; ?><?php the_title() ?>
51 <td><?php the_author() ?></td>
52 <td><?php echo mysql2date('Y-m-d g:i a', $post->post_modified); ?></td>
53 <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e('View'); ?></a></td>
54 <td><?php if ( current_user_can('edit_pages') ) { echo "<a href='post.php?action=edit&post=$post->ID' class='edit'>" . __('Edit') . "</a>"; } ?></td>
55 <td><?php if ( current_user_can('edit_pages') ) { echo "<a href='post.php?action=delete&post=$post->ID' class='delete' onclick=\"return deleteSomething( 'page', " . $id . ", '" . sprintf(__("You are about to delete the "%s" page.\\n"OK" to delete, "Cancel" to stop."), wp_specialchars(get_the_title('','',0), 1)) . "' );\">" . __('Delete') . "</a>"; } ?></td>
65 <div id="ajax-response"></div>
70 <p><?php _e('No pages yet.') ?></p>
75 <h3><a href="page-new.php"><?php _e('Create New Page'); ?> »</a></h3>
79 <?php include('admin-footer.php'); ?>