),
'test' => array(
- 'sql' => 'SELECT 1',
+ 'sql' => "SELECT 'Test sql table'",
),
'rent' => array(
),
);
-$CONF['rent'] = array (
+$CONF['rent-sqlite'] = array (
'order' => 5,
'pdo' => 'sqlite:/opt/rent/rent.db',
'_import' => '_rent',
public function __construct($table) {
parent::__construct();
+
$this->_table = $table;
-#debug($table);
- #$fields = $this->get_columns();
- #debug($sort);
$this->_column_headers = array($this->get_columns(), array(), $this->get_sortable_columns());
- #$this->items = ['zaza'];
$this->search_box('Search','search');
- #echo 'zaza;'.(int)$this->has_items();
return;
}
,$a
);},[10,50,100,500]))
.'</select>'
-/*
-*/
- .get_submit_button( __( 'Search' ), 'button', '', false, array('id' => 'search-submit') )
- .'<a class="page-title-action" href="/wp-admin/post-new.php?post_type=page&action=edit&table='.($this->_table->db()->p('table')).'">Add New</a>'
+ .get_submit_button( __( $text ), 'button', '', false, array('id' => 'search-submit') )
+ .'<a class="page-title-action" href="/wp-admin/post-new.php?post_type=page&action=edit&table='.($this->_table->db()->p('table')).'">'.__('Add New').'</a>'
#.'</h1>'
;
echo '<p id="search" class="search-box">';
$size = ($field->size() and is_scalar($field->size())) ? $field->size() : 0;
}
echo '<span>';
- echo '<label for="'.$input_id.'-'.$k.'">'.$v.': ';
- echo '</label>';
+ echo '<label for="'.$input_id.'-'.$k.'">'.$v.': </label>';
echo '<input type="text" id="'.$input_id.'-'.$k.'" name="'.$k.'" value="' .( isset($_REQUEST[$k]) ? esc_attr( $_REQUEST[$k] ) : '' ). '"'
.( $size ? ' size="'.$size.'"' : '')
. ' />';