From: Nicolas Boisselier Date: Wed, 20 Apr 2016 23:18:08 +0000 (+0100) Subject: Bed X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=abdd502af703720483326f71e8c86184032b9073;p=nb.git Bed --- diff --git a/lib/php/db/wp.php b/lib/php/db/wp.php index 608b00d1..24b362d2 100644 --- a/lib/php/db/wp.php +++ b/lib/php/db/wp.php @@ -11,9 +11,34 @@ class html_table extends WP_List_Table { #$fields = $this->get_columns(); #debug($sort); $this->_column_headers = array($this->get_columns(), array(), $this->get_sortable_columns()); + $_REQUEST['s'] = ' '; + $this->search_box(); return; } + public function search_box( $text='Search', $input_id='db' ) { + if ( empty( $_REQUEST['s'] ) && !$this->has_items() ) + return; + + echo ''; + /* + + + */ + } protected function column_default( $item, $column_name ) { echo $item[$column_name]; } public function get_columns() {