mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Better admin search boxes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2da0c0e99
commit
475c4eecaa
@ -128,9 +128,9 @@ endif; ?>
|
|||||||
<form id="posts-filter" action="" method="get">
|
<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>
|
<h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
|
||||||
|
|
||||||
<p id="post-search">
|
<p id="category-search" class="search-box">
|
||||||
<label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label>
|
<label class="hidden" for="category-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="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" />
|
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -73,8 +73,8 @@ strong .post-com-count span {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,
|
#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,
|
||||||
#quicktags, #login form .submit input, #post-search .button,
|
#quicktags, #login form .submit input, .search-box .button,
|
||||||
#post-search-prep .button, #ed_reply_toolbar {
|
#ed_reply_toolbar {
|
||||||
background-color: #8ebddc !important;
|
background-color: #8ebddc !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,8 +73,8 @@ strong .post-com-count span {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,
|
#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary,
|
||||||
#quicktags, #login form .submit input, #post-search .button,
|
#quicktags, #login form .submit input, .search-box .button,
|
||||||
#post-search-prep .button, #ed_reply_toolbar {
|
#ed_reply_toolbar {
|
||||||
background-color: #cee1ef !important;
|
background-color: #cee1ef !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ ul#widget-list li.widget-list-item h4.widget-title {
|
|||||||
border-color: #c00 !important;
|
border-color: #c00 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-table input, .form-table textarea, #post-search-input {
|
.form-table input, .form-table textarea, .search-input {
|
||||||
border-color: #c6d9e9;
|
border-color: #c6d9e9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ ul.view-switch li {
|
|||||||
form#posts-filter {
|
form#posts-filter {
|
||||||
position:static;
|
position:static;
|
||||||
}
|
}
|
||||||
#post-search {
|
.search-box {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
#submenu {
|
#submenu {
|
||||||
|
@ -117,7 +117,7 @@ table.ie-fixed {
|
|||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
#post-search .button, #widget-search .button {
|
.search-box .button, #widget-search .button {
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,9 +121,9 @@ unset($status_links);
|
|||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p id="post-search">
|
<p id="comment-search" class="search-box">
|
||||||
<label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label>
|
<label class="hidden" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>
|
||||||
<input type="text" id="post-search-input" name="s" value="<?php echo $search; ?>" />
|
<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" />
|
<input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -67,9 +67,9 @@ endif; ?>
|
|||||||
<form id="posts-filter" action="" method="get">
|
<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>
|
<h2><?php printf( current_user_can('manage_categories') ? __('Link Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
|
||||||
|
|
||||||
<p id="post-search">
|
<p id="link-category-search" class="search-box">
|
||||||
<label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label>
|
<label class="hidden" for="link-category-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="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" />
|
<input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -123,10 +123,9 @@ if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET
|
|||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p id="post-search">
|
<p id="page-search" class="search-box">
|
||||||
<label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label>
|
<label class="hidden" for="page-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="text" id="page-search-input" name="s" value="<?php the_search_query(); ?>" />
|
||||||
<input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button" />
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="tablenav">
|
<div class="tablenav">
|
||||||
|
@ -135,9 +135,9 @@ endif; ?>
|
|||||||
<form id="posts-filter" action="" method="get">
|
<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>
|
<h2><?php printf( current_user_can('manage_categories') ? __('Tags (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addtag' ); ?></h2>
|
||||||
|
|
||||||
<p id="post-search">
|
<p id="tag-search" class="search-box">
|
||||||
<label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label>
|
<label class="hidden" for="tag-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="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" />
|
<input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -138,9 +138,9 @@ if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET
|
|||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p id="post-search">
|
<p id="post-search" class="search-box">
|
||||||
<label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
|
<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" />
|
<input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -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_id" value="<?php echo (int) $post_id; ?>" />
|
||||||
<input type="hidden" name="post_mime_type" value="<?php echo attribute_escape( $_GET['post_mime_type'] ); ?>" />
|
<input type="hidden" name="post_mime_type" value="<?php echo attribute_escape( $_GET['post_mime_type'] ); ?>" />
|
||||||
|
|
||||||
<div id="search-filter">
|
<p id="media-search" class="search-box">
|
||||||
<label class="hidden" for="post-search-input"><?php _e('Search Media');?>:</label>
|
<label class="hidden" for="media-search-input"><?php _e('Search Media');?>:</label>
|
||||||
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
|
<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" />
|
<input type="submit" value="<?php echo attribute_escape( __( 'Search Media' ) ); ?>" class="button" />
|
||||||
</div>
|
</p>
|
||||||
|
|
||||||
<ul class="subsubsub">
|
<ul class="subsubsub">
|
||||||
<?php
|
<?php
|
||||||
|
@ -61,11 +61,6 @@ jQuery( function($) {
|
|||||||
|
|
||||||
jQuery('#dashmenu li.wp-has-submenu').bind( 'mouseenter mouseleave', function() { return menuToggle( jQuery(this).children('ul'), 'toggle' ); } );
|
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();});
|
//jQuery(function(){jQuery('#media-buttons a').tTips();});
|
||||||
|
@ -83,12 +83,12 @@ if ( isset($_GET['deleted']) ) {
|
|||||||
|
|
||||||
<div class="wrap">
|
<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>
|
<h2><?php printf( __('Links (<a href="%s">Add New</a>)' ), 'link-add.php' ); ?></h2>
|
||||||
|
|
||||||
<p id="post-search">
|
<p id="link-search" class="search-box">
|
||||||
<label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label>
|
<label class="hidden" for="link-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'])) : ''); ?>" />
|
<input type="text" id="link-search-input" name="s" value="<?php the_search_query(); ?>" />
|
||||||
<input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" />
|
<input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -306,7 +306,7 @@ div.ui-tabs-panel {
|
|||||||
margin-left:0;
|
margin-left:0;
|
||||||
margin-right: 18px;
|
margin-right: 18px;
|
||||||
}
|
}
|
||||||
p#tag-search, p#post-search {
|
p#tag-search, p.search-box {
|
||||||
right:auto;
|
right:auto;
|
||||||
left:0;
|
left:0;
|
||||||
}
|
}
|
||||||
|
@ -138,9 +138,9 @@ if (isset($_GET['message'])) : ?>
|
|||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p id="post-search">
|
<p id="media-search" class="search-box" >
|
||||||
<label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label>
|
<label class="hidden" for="media-search-input"><?php _e( 'Search Media' ); ?>:</label>
|
||||||
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
|
<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" />
|
<input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -300,9 +300,9 @@ unset($role_links);
|
|||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p id="post-search">
|
<p id="user-search" class="search-box">
|
||||||
<label class="hidden" for="post-search-input"><?php _e( 'Search Users' ); ?>:</label>
|
<label class="hidden" for="user-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); ?>" />
|
<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" />
|
<input type="submit" value="<?php _e( 'Search Users' ); ?>" class="button" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -1545,19 +1545,19 @@ p#big-add-button .button {
|
|||||||
padding: 3px 30px;
|
padding: 3px 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p#post-search {
|
p.search-box {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: -64px;
|
top: -64px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#post-search .button, #widget-search .button {
|
p.search-box .button, #widget-search .button {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#post-search-input {
|
.search-input {
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
|
Loading…
Reference in New Issue
Block a user