Restore search boxes. CSS to-do. Props Viper007Bond. see #7552

git-svn-id: http://svn.automattic.com/wordpress/trunk@9069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-02 18:03:45 +00:00
parent f854bdf2c0
commit 64fe249bb7
8 changed files with 56 additions and 0 deletions

View File

@ -140,6 +140,13 @@ endif; ?>
<div class="wrap"> <div class="wrap">
<form id="posts-filter" action="" method="get"> <form id="posts-filter" action="" method="get">
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
</p>
<div class="tablenav"> <div class="tablenav">
<?php <?php

View File

@ -173,6 +173,16 @@ unset($status_links);
</form> </form>
</div> </div>
<form id="posts-filter" action="" method="get">
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo $search; ?>" />
<input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" />
</p>
</form>
<?php <?php
$comments_per_page = apply_filters('comments_per_page', 20, $comment_status); $comments_per_page = apply_filters('comments_per_page', 20, $comment_status);

View File

@ -76,6 +76,13 @@ endif; ?>
<div class="wrap"> <div class="wrap">
<form id="posts-filter" action="" method="get"> <form id="posts-filter" action="" method="get">
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
</p>
<div class="tablenav"> <div class="tablenav">
<?php <?php

View File

@ -165,6 +165,12 @@ endif;
<form id="posts-filter" action="" method="get"> <form id="posts-filter" action="" method="get">
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button" />
</p>
<?php if ( isset($_GET['post_status'] ) ) : ?> <?php if ( isset($_GET['post_status'] ) ) : ?>
<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" /> <input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" />
<?php endif; ?> <?php endif; ?>

View File

@ -143,6 +143,13 @@ endif; ?>
<div class="wrap"> <div class="wrap">
<form id="posts-filter" action="" method="get"> <form id="posts-filter" action="" method="get">
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button" />
</p>
<div class="tablenav"> <div class="tablenav">
<?php <?php

View File

@ -204,6 +204,12 @@ do_action('restrict_manage_posts');
<form id="posts-filter" action="" method="get"> <form id="posts-filter" action="" method="get">
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button" />
</p>
<?php if ( isset($_GET['post_status'] ) ) : ?> <?php if ( isset($_GET['post_status'] ) ) : ?>
<input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" /> <input type="hidden" name="post_status" value="<?php echo attribute_escape($_GET['post_status']) ?>" />
<?php endif; ?> <?php endif; ?>

View File

@ -120,6 +120,13 @@ echo $select_order;
</form> </form>
<form id="posts-filter" action="" method="get"> <form id="posts-filter" action="" method="get">
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" />
</p>
<div class="tablenav"> <div class="tablenav">
<div class="alignleft"> <div class="alignleft">

View File

@ -254,6 +254,12 @@ foreach ($arc_result as $arc_row) {
<form id="posts-filter" action="" method="get"> <form id="posts-filter" action="" method="get">
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label>
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button" />
</p>
<div class="tablenav"> <div class="tablenav">
<?php <?php
if ( ! isset($page_links_total) ) if ( ! isset($page_links_total) )