Better admin search boxes.

git-svn-id: http://svn.automattic.com/wordpress/trunk@8827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-09-05 23:19:08 +00:00
parent a2da0c0e99
commit 475c4eecaa
17 changed files with 42 additions and 48 deletions

View File

@ -128,9 +128,9 @@ endif; ?>
<form id="posts-filter" action="" method="get">
<h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
<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'])); ?>" />
<p id="category-search" class="search-box">
<label class="hidden" for="category-search-input"><?php _e('Search Categories'); ?>:</label>
<input type="text" id="category-search-input" class="search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
</p>

View File

@ -73,8 +73,8 @@ strong .post-com-count span {
}
#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,
#quicktags, #login form .submit input, #post-search .button,
#post-search-prep .button, #ed_reply_toolbar {
#quicktags, #login form .submit input, .search-box .button,
#ed_reply_toolbar {
background-color: #8ebddc !important;
}

View File

@ -73,8 +73,8 @@ strong .post-com-count span {
}
#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,
#quicktags, #login form .submit input, #post-search .button,
#post-search-prep .button, #ed_reply_toolbar {
#quicktags, #login form .submit input, .search-box .button,
#ed_reply_toolbar {
background-color: #cee1ef !important;
}
@ -139,7 +139,7 @@ ul#widget-list li.widget-list-item h4.widget-title {
border-color: #c00 !important;
}
.form-table input, .form-table textarea, #post-search-input {
.form-table input, .form-table textarea, .search-input {
border-color: #c6d9e9;
}

View File

@ -57,7 +57,7 @@ ul.view-switch li {
form#posts-filter {
position:static;
}
#post-search {
.search-box {
display:none;
}
#submenu {

View File

@ -117,7 +117,7 @@ table.ie-fixed {
table-layout: fixed;
}
#post-search .button, #widget-search .button {
.search-box .button, #widget-search .button {
padding: 1px;
}

View File

@ -121,9 +121,9 @@ unset($status_links);
?>
</ul>
<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; ?>" />
<p id="comment-search" class="search-box">
<label class="hidden" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>
<input type="text" id="comment-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" />
</p>

View File

@ -67,9 +67,9 @@ endif; ?>
<form id="posts-filter" action="" method="get">
<h2><?php printf( current_user_can('manage_categories') ? __('Link Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
<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'])); ?>" />
<p id="link-category-search" class="search-box">
<label class="hidden" for="link-category-search-input"><?php _e( 'Search Categories' ); ?>:</label>
<input type="text" id="link-category-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
</p>

View File

@ -123,10 +123,9 @@ if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET
endif;
?>
<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 id="page-search" class="search-box">
<label class="hidden" for="page-search-input"><?php _e( 'Search Pages' ); ?>:</label>
<input type="text" id="page-search-input" name="s" value="<?php the_search_query(); ?>" />
</p>
<div class="tablenav">

View File

@ -135,9 +135,9 @@ endif; ?>
<form id="posts-filter" action="" method="get">
<h2><?php printf( current_user_can('manage_categories') ? __('Tags (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addtag' ); ?></h2>
<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'])); ?>" />
<p id="tag-search" class="search-box">
<label class="hidden" for="tag-search-input"><?php _e( 'Search Tags' ); ?>:</label>
<input type="text" id="tag-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button" />
</p>

View File

@ -138,9 +138,9 @@ if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET
endif;
?>
<p id="post-search">
<p id="post-search" class="search-box">
<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="text" id="post-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button" />
</p>

View File

@ -1210,11 +1210,11 @@ function media_upload_library_form($errors) {
<input type="hidden" name="post_id" value="<?php echo (int) $post_id; ?>" />
<input type="hidden" name="post_mime_type" value="<?php echo attribute_escape( $_GET['post_mime_type'] ); ?>" />
<div id="search-filter">
<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(); ?>" />
<p id="media-search" class="search-box">
<label class="hidden" for="media-search-input"><?php _e('Search Media');?>:</label>
<input type="text" id="media-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php echo attribute_escape( __( 'Search Media' ) ); ?>" class="button" />
</div>
</p>
<ul class="subsubsub">
<?php

View File

@ -61,11 +61,6 @@ jQuery( function($) {
jQuery('#dashmenu li.wp-has-submenu').bind( 'mouseenter mouseleave', function() { return menuToggle( jQuery(this).children('ul'), 'toggle' ); } );
// Temp
if ( !$('#post-search, #widget-search').size() ) {
$('#wphead').append( '<p id="post-search-prep"><input id="post-search-input" type="text" /><input class="button" type="button" value="Search" /></p>' );
}
} );
//jQuery(function(){jQuery('#media-buttons a').tTips();});

View File

@ -83,12 +83,12 @@ if ( isset($_GET['deleted']) ) {
<div class="wrap">
<form id="posts-filter" action="" method="get">
<form id="links-filter" action="" method="get">
<h2><?php printf( __('Links (<a href="%s">Add New</a>)' ), 'link-add.php' ); ?></h2>
<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 ( isset( $_GET['s'] ) ? attribute_escape(stripslashes($_GET['s'])) : ''); ?>" />
<p id="link-search" class="search-box">
<label class="hidden" for="link-search-input"><?php _e( 'Search Links' ); ?>:</label>
<input type="text" id="link-search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" />
</p>

View File

@ -306,7 +306,7 @@ div.ui-tabs-panel {
margin-left:0;
margin-right: 18px;
}
p#tag-search, p#post-search {
p#tag-search, p.search-box {
right:auto;
left:0;
}

View File

@ -138,9 +138,9 @@ if (isset($_GET['message'])) : ?>
endif;
?>
<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(); ?>" />
<p id="media-search" class="search-box" >
<label class="hidden" for="media-search-input"><?php _e( 'Search Media' ); ?>:</label>
<input type="text" id="media-search-input" class="search-input" name="s" value="<?php the_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button" />
</p>

View File

@ -300,9 +300,9 @@ unset($role_links);
?>
</ul>
<p id="post-search">
<label class="hidden" for="post-search-input"><?php _e( 'Search Users' ); ?>:</label>
<input type="text" id="post-search-input" name="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" />
<p id="user-search" class="search-box">
<label class="hidden" for="user-search-input"><?php _e( 'Search Users' ); ?>:</label>
<input type="text" id="user-search-input" class="search-input" name="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" />
<input type="submit" value="<?php _e( 'Search Users' ); ?>" class="button" />
</p>

View File

@ -1545,19 +1545,19 @@ p#big-add-button .button {
padding: 3px 30px;
}
p#post-search {
p.search-box {
position: absolute;
right: 0;
top: -64px;
margin: 0;
}
#post-search .button, #widget-search .button {
p.search-box .button, #widget-search .button {
padding: 3px;
font-size: 13px;
}
#post-search-input {
.search-input {
margin-right: 2px;
border-width: 1px;
border-style: solid;