@@ -27,60 +27,30 @@ function init_table_sorting()
2727 });
2828 }
2929}
30-
31- function post_giftcard_form_submit(response)
32- {
33- if(!response.success)
34- {
35- set_feedback(response.message,'error_message',true);
36- }
37- else
38- {
39- //This is an update, just update one row
40- if(jQuery.inArray(response.giftcard_id,get_visible_checkbox_ids()) != -1)
41- {
42- update_row(response.giftcard_id,'<?php echo site_url ("$ controller_name/get_row " )?> ');
43- set_feedback(response.message,'success_message',false);
44-
45- }
46- else //refresh entire table
47- {
48- do_search(true,function()
49- {
50- //highlight new row
51- hightlight_row(response.giftcard_id);
52- set_feedback(response.message,'success_message',false);
53- });
54- }
55- }
56- }
57-
5830</script>
5931
60- <div id="title_bar">
61- <div id="title" class="float_left"><?php echo $ this ->lang ->line ('common_list_of ' ).' ' .$ this ->lang ->line ('module_ ' .$ controller_name ); ?> </div>
62- <div id="new_button">
63- <?php echo anchor ("$ controller_name/view/-1/width: $ form_width " ,
64- "<div class='big_button' style='float: left;'><span> " .$ this ->lang ->line ($ controller_name .'_new ' )."</span></div> " ,
65- array ('class ' =>'thickbox none ' ,'title ' =>$ this ->lang ->line ($ controller_name .'_new ' )));
66- ?>
67- </div>
68- </div>
69- <?php echo $ this ->pagination ->create_links ();?>
70- <div id="table_action_header">
71- <ul>
72- <li class="float_left"><span><?php echo anchor ("$ controller_name/delete " ,$ this ->lang ->line ("common_delete " ),array ('id ' =>'delete ' )); ?> </span></li>
73- <li class="float_right">
32+ <h1 id="title"><?php echo $ this ->lang ->line ('common_list_of ' ).' ' .$ this ->lang ->line ('module_ ' .$ controller_name ); ?> </h1>
33+ <hr>
34+ <div class="actions">
35+ <div class="search-box">
7436 <img src='<?php echo base_url ()?> images/spinner_small.gif' alt='spinner' id='spinner' />
7537 <?php echo form_open ("$ controller_name/search " ,array ('id ' =>'search_form ' )); ?>
7638 <input type="text" name ='search' id='search'/>
7739 </form>
78- </li>
79- </ul>
40+ </div>
41+ <div id="new_button" class="btn-group">
42+ <?php echo anchor ("$ controller_name/view/-1 " , $ this ->lang ->line ($ controller_name .'_new ' ), array ('class ' =>'btn btn-success ' ,'title ' =>$ this ->lang ->line ($ controller_name .'_new ' )));?>
43+ <?php if ($ controller_name =='customers ' ) {?>
44+ <?php echo anchor ("$ controller_name/excel_import " , "Excel Import " , array ('class ' =>'btn btn-default ' ,'title ' =>'Import Items from Excel ' ));?>
45+ <?php } ?>
46+ <?php echo anchor ("$ controller_name/delete " ,$ this ->lang ->line ("common_delete " ),array ('class ' =>'btn btn-danger ' ,'id ' =>'delete ' )); ?>
47+ </div>
48+ <br style="clear:both" />
8049</div>
8150
8251<div id="table_holder">
83- <?php echo $ manage_table ; ?>
52+ <?php echo $ manage_table ; ?>
8453</div>
54+ <?php echo $ this ->pagination ->create_links ();?>
8555<div id="feedback_bar"></div>
8656<?php $ this ->load ->view ("partial/footer " ); ?>
0 commit comments