File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function index()
1515 $ config ['per_page ' ] = '20 ' ;
1616 $ config ["uri_segment " ] = 3 ;
1717 $ this ->pagination ->initialize ($ config );
18-
18+ $ data [ ' search ' ] = '' ;
1919 $ data ['controller_name ' ]=strtolower (get_class ());
2020 $ data ['form_width ' ]=$ this ->get_form_width ();
2121 $ page = ($ this ->uri ->segment (3 )) ? $ this ->uri ->segment (3 ) : 0 ;
@@ -49,7 +49,7 @@ function search()
4949 {
5050 $ search =$ this ->input ->post ('search ' );
5151 $ data ['controller_name ' ]=strtolower (get_class ());
52- $ data ['form_width ' ]= $ this -> get_form_width () ;
52+ $ data ['search ' ] = $ search ;
5353 $ data ['manage_table ' ]=get_items_manage_table ($ this ->Item ->search ($ search ),$ this );
5454 $ this ->load ->view ('items/manage ' ,$ data );
5555 }
Original file line number Diff line number Diff line change 4848 <div class="search-box">
4949 <img src='<?php echo base_url ()?> images/spinner_small.gif' alt='spinner' id='spinner' />
5050 <?php echo form_open ("$ controller_name/search " ,array ('id ' =>'search_form ' )); ?>
51- <input type="text" name ='search' id='search'/>
51+ <input type="text" name ='search' value=" <?php echo $ search ; ?> " id='search'/>
5252 </form>
5353 </div>
5454 <div id="new_button" class="btn-group">
You can’t perform that action at this time.
0 commit comments