@@ -1,30 +1,30 @@ discard block |
||
1 | 1 | <?php |
2 | - $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
3 | - $this->set_js_lib($this->default_javascript_path.'/'.grocery_CRUD::JQUERY); |
|
2 | + $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
3 | + $this->set_js_lib($this->default_javascript_path.'/'.grocery_CRUD::JQUERY); |
|
4 | 4 | |
5 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
6 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
7 | - $this->set_js_lib($this->default_javascript_path.'/common/lazyload-min.js'); |
|
5 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
6 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
7 | + $this->set_js_lib($this->default_javascript_path.'/common/lazyload-min.js'); |
|
8 | 8 | |
9 | - if (!$this->is_IE7()) { |
|
10 | - $this->set_js_lib($this->default_javascript_path.'/common/list.js'); |
|
11 | - } |
|
9 | + if (!$this->is_IE7()) { |
|
10 | + $this->set_js_lib($this->default_javascript_path.'/common/list.js'); |
|
11 | + } |
|
12 | 12 | |
13 | - $this->set_js($this->default_theme_path.'/flexigrid/js/cookies.js'); |
|
14 | - $this->set_js($this->default_theme_path.'/flexigrid/js/flexigrid.js'); |
|
13 | + $this->set_js($this->default_theme_path.'/flexigrid/js/cookies.js'); |
|
14 | + $this->set_js($this->default_theme_path.'/flexigrid/js/flexigrid.js'); |
|
15 | 15 | |
16 | 16 | $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.form.min.js'); |
17 | 17 | |
18 | - $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.numeric.min.js'); |
|
19 | - $this->set_js($this->default_theme_path.'/flexigrid/js/jquery.printElement.min.js'); |
|
18 | + $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.numeric.min.js'); |
|
19 | + $this->set_js($this->default_theme_path.'/flexigrid/js/jquery.printElement.min.js'); |
|
20 | 20 | |
21 | - /** Fancybox */ |
|
22 | - $this->set_css($this->default_css_path.'/jquery_plugins/fancybox/jquery.fancybox.css'); |
|
23 | - $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.fancybox-1.3.4.js'); |
|
24 | - $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.easing-1.3.pack.js'); |
|
21 | + /** Fancybox */ |
|
22 | + $this->set_css($this->default_css_path.'/jquery_plugins/fancybox/jquery.fancybox.css'); |
|
23 | + $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.fancybox-1.3.4.js'); |
|
24 | + $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.easing-1.3.pack.js'); |
|
25 | 25 | |
26 | - /** Jquery UI */ |
|
27 | - $this->load_js_jqueryui(); |
|
26 | + /** Jquery UI */ |
|
27 | + $this->load_js_jqueryui(); |
|
28 | 28 | |
29 | 29 | ?> |
30 | 30 | <script type='text/javascript'> |
@@ -173,9 +173,9 @@ discard block |
||
173 | 173 | <?php $paging_ends_to = "<span id='page-ends-to' class='page-ends-to'>". ($total_results < $default_per_page ? $total_results : $default_per_page) ."</span>"; ?> |
174 | 174 | <?php $paging_total_results = "<span id='total_items' class='total_items'>$total_results</span>"?> |
175 | 175 | <?php echo str_replace( array('{start}','{end}','{results}'), |
176 | - array($paging_starts_from, $paging_ends_to, $paging_total_results), |
|
177 | - $this->l('list_displaying') |
|
178 | - ); ?> |
|
176 | + array($paging_starts_from, $paging_ends_to, $paging_total_results), |
|
177 | + $this->l('list_displaying') |
|
178 | + ); ?> |
|
179 | 179 | </span> |
180 | 180 | </div> |
181 | 181 | </div> |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | ?> |
30 | 30 | <script type='text/javascript'> |
31 | - var base_url = '<?php echo base_url();?>'; |
|
31 | + var base_url = '<?php echo base_url(); ?>'; |
|
32 | 32 | |
33 | 33 | var subject = '<?php echo addslashes($subject); ?>'; |
34 | 34 | var ajax_list_info_url = '<?php echo $ajax_list_info_url; ?>'; |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | |
39 | 39 | </script> |
40 | 40 | <div id='list-report-error' class='report-div error'></div> |
41 | -<div id='list-report-success' class='report-div success report-list' <?php if($success_message !== null){?>style="display:block"<?php }?>><?php |
|
42 | -if($success_message !== null){?> |
|
41 | +<div id='list-report-success' class='report-div success report-list' <?php if ($success_message !== null) {?>style="display:block"<?php }?>><?php |
|
42 | +if ($success_message !== null) {?> |
|
43 | 43 | <p><?php echo $success_message; ?></p> |
44 | 44 | <?php } |
45 | 45 | ?></div> |
@@ -49,15 +49,15 @@ discard block |
||
49 | 49 | <div class="ftitle"> |
50 | 50 | |
51 | 51 | </div> |
52 | - <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle"> |
|
52 | + <div title="<?php echo $this->l('minimize_maximize'); ?>" class="ptogtitle"> |
|
53 | 53 | <span></span> |
54 | 54 | </div> |
55 | 55 | </div> |
56 | 56 | <div id='main-table-box' class="main-table-box"> |
57 | 57 | |
58 | - <?php if(!$unset_add || !$unset_export || !$unset_print){?> |
|
58 | + <?php if (!$unset_add || !$unset_export || !$unset_print) {?> |
|
59 | 59 | <div class="tDiv"> |
60 | - <?php if(!$unset_add){?> |
|
60 | + <?php if (!$unset_add) {?> |
|
61 | 61 | <div class="tDiv2"> |
62 | 62 | <a href='<?php echo $add_url?>' title='<?php echo $this->l('list_add'); ?> <?php echo $subject?>' class='add-anchor add_button'> |
63 | 63 | <div class="fbutton"> |
@@ -71,21 +71,21 @@ discard block |
||
71 | 71 | </div> |
72 | 72 | <?php }?> |
73 | 73 | <div class="tDiv3"> |
74 | - <?php if(!$unset_export) { ?> |
|
74 | + <?php if (!$unset_export) { ?> |
|
75 | 75 | <a class="export-anchor" data-url="<?php echo $export_url; ?>" target="_blank"> |
76 | 76 | <div class="fbutton"> |
77 | 77 | <div> |
78 | - <span class="export"><?php echo $this->l('list_export');?></span> |
|
78 | + <span class="export"><?php echo $this->l('list_export'); ?></span> |
|
79 | 79 | </div> |
80 | 80 | </div> |
81 | 81 | </a> |
82 | 82 | <div class="btnseparator"></div> |
83 | 83 | <?php } ?> |
84 | - <?php if(!$unset_print) { ?> |
|
84 | + <?php if (!$unset_print) { ?> |
|
85 | 85 | <a class="print-anchor" data-url="<?php echo $print_url; ?>"> |
86 | 86 | <div class="fbutton"> |
87 | 87 | <div> |
88 | - <span class="print"><?php echo $this->l('list_print');?></span> |
|
88 | + <span class="print"><?php echo $this->l('list_print'); ?></span> |
|
89 | 89 | </div> |
90 | 90 | </div> |
91 | 91 | </a> |
@@ -99,20 +99,20 @@ discard block |
||
99 | 99 | <div id='ajax_list' class="ajax_list"> |
100 | 100 | <?php echo $list_view?> |
101 | 101 | </div> |
102 | - <?php echo form_open( $ajax_list_url, 'method="post" id="filtering_form" class="filtering_form" autocomplete = "off" data-ajax-list-info-url="'.$ajax_list_info_url.'"'); ?> |
|
102 | + <?php echo form_open($ajax_list_url, 'method="post" id="filtering_form" class="filtering_form" autocomplete = "off" data-ajax-list-info-url="'.$ajax_list_info_url.'"'); ?> |
|
103 | 103 | <div class="sDiv quickSearchBox" id='quickSearchBox'> |
104 | 104 | <div class="sDiv2"> |
105 | - <?php echo $this->l('list_search');?>: <input type="text" class="qsbsearch_fieldox search_text" name="search_text" size="30" id='search_text'> |
|
105 | + <?php echo $this->l('list_search'); ?>: <input type="text" class="qsbsearch_fieldox search_text" name="search_text" size="30" id='search_text'> |
|
106 | 106 | <select name="search_field" id="search_field"> |
107 | - <option value=""><?php echo $this->l('list_search_all');?></option> |
|
108 | - <?php foreach($columns as $column){?> |
|
107 | + <option value=""><?php echo $this->l('list_search_all'); ?></option> |
|
108 | + <?php foreach ($columns as $column) {?> |
|
109 | 109 | <option value="<?php echo $column->field_name?>"><?php echo $column->display_as?> </option> |
110 | 110 | <?php }?> |
111 | 111 | </select> |
112 | - <input type="button" value="<?php echo $this->l('list_search');?>" class="crud_search" id='crud_search'> |
|
112 | + <input type="button" value="<?php echo $this->l('list_search'); ?>" class="crud_search" id='crud_search'> |
|
113 | 113 | </div> |
114 | 114 | <div class='search-div-clear-button'> |
115 | - <input type="button" value="<?php echo $this->l('list_clear_filtering');?>" id='search_clear' class="search_clear"> |
|
115 | + <input type="button" value="<?php echo $this->l('list_clear_filtering'); ?>" id='search_clear' class="search_clear"> |
|
116 | 116 | </div> |
117 | 117 | </div> |
118 | 118 | <div class="pDiv"> |
@@ -122,13 +122,13 @@ discard block |
||
122 | 122 | <?php list($show_lang_string, $entries_lang_string) = explode('{paging}', $this->l('list_show_entries')); ?> |
123 | 123 | <?php echo $show_lang_string; ?> |
124 | 124 | <select name="per_page" id='per_page' class="per_page"> |
125 | - <?php foreach($paging_options as $option){?> |
|
126 | - <option value="<?php echo $option; ?>" <?php if($option == $default_per_page){?>selected="selected"<?php }?>><?php echo $option; ?> </option> |
|
125 | + <?php foreach ($paging_options as $option) {?> |
|
126 | + <option value="<?php echo $option; ?>" <?php if ($option == $default_per_page) {?>selected="selected"<?php }?>><?php echo $option; ?> </option> |
|
127 | 127 | <?php }?> |
128 | 128 | </select> |
129 | 129 | <?php echo $entries_lang_string; ?> |
130 | - <input type='hidden' name='order_by[0]' id='hidden-sorting' class='hidden-sorting' value='<?php if(!empty($order_by[0])){?><?php echo $order_by[0]?><?php }?>' /> |
|
131 | - <input type='hidden' name='order_by[1]' id='hidden-ordering' class='hidden-ordering' value='<?php if(!empty($order_by[1])){?><?php echo $order_by[1]?><?php }?>'/> |
|
130 | + <input type='hidden' name='order_by[0]' id='hidden-sorting' class='hidden-sorting' value='<?php if (!empty($order_by[0])) {?><?php echo $order_by[0]?><?php }?>' /> |
|
131 | + <input type='hidden' name='order_by[1]' id='hidden-ordering' class='hidden-ordering' value='<?php if (!empty($order_by[1])) {?><?php echo $order_by[1]?><?php }?>'/> |
|
132 | 132 | </span> |
133 | 133 | </div> |
134 | 134 | <div class="btnseparator"> |
@@ -170,9 +170,9 @@ discard block |
||
170 | 170 | <div class="pGroup"> |
171 | 171 | <span class="pPageStat"> |
172 | 172 | <?php $paging_starts_from = "<span id='page-starts-from' class='page-starts-from'>1</span>"; ?> |
173 | - <?php $paging_ends_to = "<span id='page-ends-to' class='page-ends-to'>". ($total_results < $default_per_page ? $total_results : $default_per_page) ."</span>"; ?> |
|
173 | + <?php $paging_ends_to = "<span id='page-ends-to' class='page-ends-to'>".($total_results < $default_per_page ? $total_results : $default_per_page)."</span>"; ?> |
|
174 | 174 | <?php $paging_total_results = "<span id='total_items' class='total_items'>$total_results</span>"?> |
175 | - <?php echo str_replace( array('{start}','{end}','{results}'), |
|
175 | + <?php echo str_replace(array('{start}', '{end}', '{results}'), |
|
176 | 176 | array($paging_starts_from, $paging_ends_to, $paging_total_results), |
177 | 177 | $this->l('list_displaying') |
178 | 178 | ); ?> |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | - $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
3 | + $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
4 | 4 | |
5 | 5 | $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.form.min.js'); |
6 | - $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-edit.js'); |
|
6 | + $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-edit.js'); |
|
7 | 7 | |
8 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
9 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
8 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
9 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
10 | 10 | ?> |
11 | 11 | <div class="flexigrid crud-form" style='width: 100%;' data-unique-hash="<?php echo $unique_hash; ?>"> |
12 | 12 | <div class="mDiv"> |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | <?php echo form_open( $update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
25 | 25 | <div class='form-div'> |
26 | 26 | <?php |
27 | - $counter = 0; |
|
28 | - foreach($fields as $field) |
|
29 | - { |
|
30 | - $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
31 | - $counter++; |
|
32 | - ?> |
|
27 | + $counter = 0; |
|
28 | + foreach($fields as $field) |
|
29 | + { |
|
30 | + $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
31 | + $counter++; |
|
32 | + ?> |
|
33 | 33 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
34 | 34 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
35 | 35 | <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | <?php if(!empty($hidden_fields)){?> |
44 | 44 | <!-- Start of hidden inputs --> |
45 | 45 | <?php |
46 | - foreach($hidden_fields as $hidden_field){ |
|
47 | - echo $hidden_field->input; |
|
48 | - } |
|
49 | - ?> |
|
46 | + foreach($hidden_fields as $hidden_field){ |
|
47 | + echo $hidden_field->input; |
|
48 | + } |
|
49 | + ?> |
|
50 | 50 | <!-- End of hidden inputs --> |
51 | 51 | <?php }?> |
52 | 52 | <?php if ($is_ajax) { ?><input type="hidden" name="is_ajax" value="true" /><?php }?> |
@@ -16,23 +16,23 @@ discard block |
||
16 | 16 | </div> |
17 | 17 | <div class='clear'></div> |
18 | 18 | </div> |
19 | - <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle"> |
|
19 | + <div title="<?php echo $this->l('minimize_maximize'); ?>" class="ptogtitle"> |
|
20 | 20 | <span></span> |
21 | 21 | </div> |
22 | 22 | </div> |
23 | 23 | <div id='main-table-box'> |
24 | - <?php echo form_open( $update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
24 | + <?php echo form_open($update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
25 | 25 | <div class='form-div'> |
26 | 26 | <?php |
27 | 27 | $counter = 0; |
28 | - foreach($fields as $field) |
|
28 | + foreach ($fields as $field) |
|
29 | 29 | { |
30 | 30 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
31 | 31 | $counter++; |
32 | 32 | ?> |
33 | 33 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
34 | 34 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
35 | - <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
|
35 | + <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""?> : |
|
36 | 36 | </div> |
37 | 37 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
38 | 38 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -40,10 +40,10 @@ discard block |
||
40 | 40 | <div class='clear'></div> |
41 | 41 | </div> |
42 | 42 | <?php }?> |
43 | - <?php if(!empty($hidden_fields)){?> |
|
43 | + <?php if (!empty($hidden_fields)) {?> |
|
44 | 44 | <!-- Start of hidden inputs --> |
45 | 45 | <?php |
46 | - foreach($hidden_fields as $hidden_field){ |
|
46 | + foreach ($hidden_fields as $hidden_field) { |
|
47 | 47 | echo $hidden_field->input; |
48 | 48 | } |
49 | 49 | ?> |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | <div class='form-button-box'> |
58 | 58 | <input id="form-button-save" type='submit' value='<?php echo $this->l('form_update_changes'); ?>' class="btn btn-large"/> |
59 | 59 | </div> |
60 | -<?php if(!$this->unset_back_to_list) { ?> |
|
60 | +<?php if (!$this->unset_back_to_list) { ?> |
|
61 | 61 | <div class='form-button-box'> |
62 | 62 | <input type='button' value='<?php echo $this->l('form_update_and_go_back'); ?>' id="save-and-go-back-button" class="btn btn-large"/> |
63 | 63 | </div> |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | - $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
4 | - $this->set_js_lib($this->default_theme_path.'/flexigrid/js/jquery.form.js'); |
|
5 | - $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-edit.js'); |
|
3 | + $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
4 | + $this->set_js_lib($this->default_theme_path.'/flexigrid/js/jquery.form.js'); |
|
5 | + $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-edit.js'); |
|
6 | 6 | |
7 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
8 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
7 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
8 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
9 | 9 | ?> |
10 | 10 | <div class="flexigrid crud-form" style='width: 100%;' data-unique-hash="<?php echo $unique_hash; ?>"> |
11 | 11 | <div class="mDiv"> |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | <?php echo form_open( $read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
24 | 24 | <div class='form-div'> |
25 | 25 | <?php |
26 | - $counter = 0; |
|
27 | - foreach($fields as $field) |
|
28 | - { |
|
29 | - $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
30 | - $counter++; |
|
31 | - ?> |
|
26 | + $counter = 0; |
|
27 | + foreach($fields as $field) |
|
28 | + { |
|
29 | + $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
30 | + $counter++; |
|
31 | + ?> |
|
32 | 32 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
33 | 33 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
34 | 34 | <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
@@ -42,10 +42,10 @@ discard block |
||
42 | 42 | <?php if(!empty($hidden_fields)){?> |
43 | 43 | <!-- Start of hidden inputs --> |
44 | 44 | <?php |
45 | - foreach($hidden_fields as $hidden_field){ |
|
46 | - echo $hidden_field->input; |
|
47 | - } |
|
48 | - ?> |
|
45 | + foreach($hidden_fields as $hidden_field){ |
|
46 | + echo $hidden_field->input; |
|
47 | + } |
|
48 | + ?> |
|
49 | 49 | <!-- End of hidden inputs --> |
50 | 50 | <?php }?> |
51 | 51 | <?php if ($is_ajax) { ?><input type="hidden" name="is_ajax" value="true" /><?php }?> |
@@ -15,23 +15,23 @@ discard block |
||
15 | 15 | </div> |
16 | 16 | <div class='clear'></div> |
17 | 17 | </div> |
18 | - <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle"> |
|
18 | + <div title="<?php echo $this->l('minimize_maximize'); ?>" class="ptogtitle"> |
|
19 | 19 | <span></span> |
20 | 20 | </div> |
21 | 21 | </div> |
22 | 22 | <div id='main-table-box'> |
23 | - <?php echo form_open( $read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
23 | + <?php echo form_open($read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
24 | 24 | <div class='form-div'> |
25 | 25 | <?php |
26 | 26 | $counter = 0; |
27 | - foreach($fields as $field) |
|
27 | + foreach ($fields as $field) |
|
28 | 28 | { |
29 | 29 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
30 | 30 | $counter++; |
31 | 31 | ?> |
32 | 32 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
33 | 33 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
34 | - <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
|
34 | + <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""?> : |
|
35 | 35 | </div> |
36 | 36 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
37 | 37 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -39,10 +39,10 @@ discard block |
||
39 | 39 | <div class='clear'></div> |
40 | 40 | </div> |
41 | 41 | <?php }?> |
42 | - <?php if(!empty($hidden_fields)){?> |
|
42 | + <?php if (!empty($hidden_fields)) {?> |
|
43 | 43 | <!-- Start of hidden inputs --> |
44 | 44 | <?php |
45 | - foreach($hidden_fields as $hidden_field){ |
|
45 | + foreach ($hidden_fields as $hidden_field) { |
|
46 | 46 | echo $hidden_field->input; |
47 | 47 | } |
48 | 48 | ?> |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | - $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
4 | - $this->set_js_lib($this->default_theme_path.'/flexigrid/js/jquery.form.js'); |
|
3 | + $this->set_css($this->default_theme_path.'/flexigrid/css/flexigrid.css'); |
|
4 | + $this->set_js_lib($this->default_theme_path.'/flexigrid/js/jquery.form.js'); |
|
5 | 5 | $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.form.min.js'); |
6 | - $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-add.js'); |
|
6 | + $this->set_js_config($this->default_theme_path.'/flexigrid/js/flexigrid-add.js'); |
|
7 | 7 | |
8 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
9 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
8 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
9 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
10 | 10 | ?> |
11 | 11 | <div class="flexigrid crud-form" style='width: 100%;' data-unique-hash="<?php echo $unique_hash; ?>"> |
12 | 12 | <div class="mDiv"> |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | <?php echo form_open( $insert_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
25 | 25 | <div class='form-div'> |
26 | 26 | <?php |
27 | - $counter = 0; |
|
28 | - foreach($fields as $field) |
|
29 | - { |
|
30 | - $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
31 | - $counter++; |
|
32 | - ?> |
|
27 | + $counter = 0; |
|
28 | + foreach($fields as $field) |
|
29 | + { |
|
30 | + $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
31 | + $counter++; |
|
32 | + ?> |
|
33 | 33 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
34 | 34 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
35 | 35 | <?php echo $input_fields[$field->field_name]->display_as; ?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""; ?> : |
@@ -42,10 +42,10 @@ discard block |
||
42 | 42 | <?php }?> |
43 | 43 | <!-- Start of hidden inputs --> |
44 | 44 | <?php |
45 | - foreach($hidden_fields as $hidden_field){ |
|
46 | - echo $hidden_field->input; |
|
47 | - } |
|
48 | - ?> |
|
45 | + foreach($hidden_fields as $hidden_field){ |
|
46 | + echo $hidden_field->input; |
|
47 | + } |
|
48 | + ?> |
|
49 | 49 | <!-- End of hidden inputs --> |
50 | 50 | <?php if ($is_ajax) { ?><input type="hidden" name="is_ajax" value="true" /><?php }?> |
51 | 51 |
@@ -16,23 +16,23 @@ discard block |
||
16 | 16 | </div> |
17 | 17 | <div class='clear'></div> |
18 | 18 | </div> |
19 | - <div title="<?php echo $this->l('minimize_maximize');?>" class="ptogtitle"> |
|
19 | + <div title="<?php echo $this->l('minimize_maximize'); ?>" class="ptogtitle"> |
|
20 | 20 | <span></span> |
21 | 21 | </div> |
22 | 22 | </div> |
23 | 23 | <div id='main-table-box'> |
24 | - <?php echo form_open( $insert_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
24 | + <?php echo form_open($insert_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
25 | 25 | <div class='form-div'> |
26 | 26 | <?php |
27 | 27 | $counter = 0; |
28 | - foreach($fields as $field) |
|
28 | + foreach ($fields as $field) |
|
29 | 29 | { |
30 | 30 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
31 | 31 | $counter++; |
32 | 32 | ?> |
33 | 33 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
34 | 34 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
35 | - <?php echo $input_fields[$field->field_name]->display_as; ?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""; ?> : |
|
35 | + <?php echo $input_fields[$field->field_name]->display_as; ?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""; ?> : |
|
36 | 36 | </div> |
37 | 37 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
38 | 38 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | <?php }?> |
43 | 43 | <!-- Start of hidden inputs --> |
44 | 44 | <?php |
45 | - foreach($hidden_fields as $hidden_field){ |
|
45 | + foreach ($hidden_fields as $hidden_field) { |
|
46 | 46 | echo $hidden_field->input; |
47 | 47 | } |
48 | 48 | ?> |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | <div class='form-button-box'> |
57 | 57 | <input id="form-button-save" type='submit' value='<?php echo $this->l('form_save'); ?>' class="btn btn-large"/> |
58 | 58 | </div> |
59 | -<?php if(!$this->unset_back_to_list) { ?> |
|
59 | +<?php if (!$this->unset_back_to_list) { ?> |
|
60 | 60 | <div class='form-button-box'> |
61 | 61 | <input type='button' value='<?php echo $this->l('form_save_and_go_back'); ?>' id="save-and-go-back-button" class="btn btn-large"/> |
62 | 62 | </div> |
@@ -18,16 +18,16 @@ |
||
18 | 18 | <?php if(!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)){?> |
19 | 19 | <td class='actions'> |
20 | 20 | <?php |
21 | - if(!empty($row->action_urls)){ |
|
22 | - foreach($row->action_urls as $action_unique_id => $action_url){ |
|
23 | - $action = $actions[$action_unique_id]; |
|
24 | - ?> |
|
21 | + if(!empty($row->action_urls)){ |
|
22 | + foreach($row->action_urls as $action_unique_id => $action_url){ |
|
23 | + $action = $actions[$action_unique_id]; |
|
24 | + ?> |
|
25 | 25 | <a href="<?php echo $action_url; ?>" class="edit_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" role="button"> |
26 | 26 | <span class="ui-button-icon-primary ui-icon <?php echo $action->css_class; ?> <?php echo $action_unique_id;?>"></span><span class="ui-button-text"> <?php echo $action->label?></span> |
27 | 27 | </a> |
28 | 28 | <?php } |
29 | - } |
|
30 | - ?> |
|
29 | + } |
|
30 | + ?> |
|
31 | 31 | <?php if(!$unset_read){?> |
32 | 32 | <a href="<?php echo $row->read_url?>" class="edit_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" role="button"> |
33 | 33 | <span class="ui-button-icon-primary ui-icon ui-icon-document"></span> |
@@ -1,47 +1,47 @@ discard block |
||
1 | 1 | <table cellpadding="0" cellspacing="0" border="0" class="sortable display groceryCrudTable" id="<?php echo uniqid(); ?>"> |
2 | 2 | <thead> |
3 | 3 | <tr> |
4 | - <?php foreach($columns as $column){?> |
|
4 | + <?php foreach ($columns as $column) {?> |
|
5 | 5 | <th><?php echo $column->display_as; ?></th> |
6 | 6 | <?php }?> |
7 | - <?php if(!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)){?> |
|
7 | + <?php if (!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)) {?> |
|
8 | 8 | <th class='actions'><?php echo $this->l('list_actions'); ?></th> |
9 | 9 | <?php }?> |
10 | 10 | </tr> |
11 | 11 | </thead> |
12 | 12 | <tbody> |
13 | - <?php foreach($list as $num_row => $row){ ?> |
|
13 | + <?php foreach ($list as $num_row => $row) { ?> |
|
14 | 14 | <tr id='row-<?php echo $num_row?>'> |
15 | - <?php foreach($columns as $column){?> |
|
15 | + <?php foreach ($columns as $column) {?> |
|
16 | 16 | <td><?php echo $row->{$column->field_name}?></td> |
17 | 17 | <?php }?> |
18 | - <?php if(!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)){?> |
|
18 | + <?php if (!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)) {?> |
|
19 | 19 | <td class='actions'> |
20 | 20 | <?php |
21 | - if(!empty($row->action_urls)){ |
|
22 | - foreach($row->action_urls as $action_unique_id => $action_url){ |
|
21 | + if (!empty($row->action_urls)) { |
|
22 | + foreach ($row->action_urls as $action_unique_id => $action_url) { |
|
23 | 23 | $action = $actions[$action_unique_id]; |
24 | 24 | ?> |
25 | 25 | <a href="<?php echo $action_url; ?>" class="edit_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" role="button"> |
26 | - <span class="ui-button-icon-primary ui-icon <?php echo $action->css_class; ?> <?php echo $action_unique_id;?>"></span><span class="ui-button-text"> <?php echo $action->label?></span> |
|
26 | + <span class="ui-button-icon-primary ui-icon <?php echo $action->css_class; ?> <?php echo $action_unique_id; ?>"></span><span class="ui-button-text"> <?php echo $action->label?></span> |
|
27 | 27 | </a> |
28 | 28 | <?php } |
29 | 29 | } |
30 | 30 | ?> |
31 | - <?php if(!$unset_read){?> |
|
31 | + <?php if (!$unset_read) {?> |
|
32 | 32 | <a href="<?php echo $row->read_url?>" class="edit_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" role="button"> |
33 | 33 | <span class="ui-button-icon-primary ui-icon ui-icon-document"></span> |
34 | 34 | <span class="ui-button-text"> <?php echo $this->l('list_view'); ?></span> |
35 | 35 | </a> |
36 | 36 | <?php }?> |
37 | 37 | |
38 | - <?php if(!$unset_edit){?> |
|
38 | + <?php if (!$unset_edit) {?> |
|
39 | 39 | <a href="<?php echo $row->edit_url?>" class="edit_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" role="button"> |
40 | 40 | <span class="ui-button-icon-primary ui-icon ui-icon-pencil"></span> |
41 | 41 | <span class="ui-button-text"> <?php echo $this->l('list_edit'); ?></span> |
42 | 42 | </a> |
43 | 43 | <?php }?> |
44 | - <?php if(!$unset_delete){?> |
|
44 | + <?php if (!$unset_delete) {?> |
|
45 | 45 | <a onclick = "javascript: return delete_row('<?php echo $row->delete_url?>', '<?php echo $num_row?>')" |
46 | 46 | href="javascript:void(0)" class="delete_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" role="button"> |
47 | 47 | <span class="ui-button-icon-primary ui-icon ui-icon-circle-minus"></span> |
@@ -55,17 +55,17 @@ discard block |
||
55 | 55 | </tbody> |
56 | 56 | <tfoot> |
57 | 57 | <tr> |
58 | - <?php foreach($columns as $column){?> |
|
58 | + <?php foreach ($columns as $column) {?> |
|
59 | 59 | <th><input type="text" name="<?php echo $column->field_name; ?>" placeholder="<?php echo $this->l('list_search').' '.$column->display_as; ?>" class="search_<?php echo $column->field_name; ?>" /></th> |
60 | 60 | <?php }?> |
61 | - <?php if(!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)){?> |
|
61 | + <?php if (!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)) {?> |
|
62 | 62 | <th> |
63 | 63 | <button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only floatR refresh-data" role="button" data-url="<?php echo $ajax_list_url; ?>"> |
64 | 64 | <span class="ui-button-icon-primary ui-icon ui-icon-refresh"></span><span class="ui-button-text"> </span> |
65 | 65 | </button> |
66 | 66 | <a href="javascript:void(0)" role="button" class="clear-filtering ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary floatR"> |
67 | 67 | <span class="ui-button-icon-primary ui-icon ui-icon-arrowrefresh-1-e"></span> |
68 | - <span class="ui-button-text"><?php echo $this->l('list_clear_filtering');?></span> |
|
68 | + <span class="ui-button-text"><?php echo $this->l('list_clear_filtering'); ?></span> |
|
69 | 69 | </a> |
70 | 70 | </th> |
71 | 71 | <?php }?> |
@@ -1,31 +1,31 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | - $this->set_css($this->default_theme_path.'/datatables/css/demo_table_jui.css'); |
|
4 | - $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); |
|
5 | - $this->set_css($this->default_theme_path.'/datatables/css/datatables.css'); |
|
6 | - $this->set_css($this->default_theme_path.'/datatables/css/jquery.dataTables.css'); |
|
7 | - $this->set_css($this->default_theme_path.'/datatables/extras/TableTools/media/css/TableTools.css'); |
|
8 | - $this->set_js_lib($this->default_javascript_path.'/'.grocery_CRUD::JQUERY); |
|
9 | - |
|
10 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
11 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
12 | - $this->set_js_lib($this->default_javascript_path.'/common/lazyload-min.js'); |
|
13 | - |
|
14 | - if (!$this->is_IE7()) { |
|
15 | - $this->set_js_lib($this->default_javascript_path.'/common/list.js'); |
|
16 | - } |
|
17 | - |
|
18 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); |
|
19 | - $this->set_js_lib($this->default_theme_path.'/datatables/js/jquery.dataTables.min.js'); |
|
20 | - $this->set_js($this->default_theme_path.'/datatables/js/datatables-extras.js'); |
|
21 | - $this->set_js($this->default_theme_path.'/datatables/js/datatables.js'); |
|
22 | - $this->set_js($this->default_theme_path.'/datatables/extras/TableTools/media/js/ZeroClipboard.js'); |
|
23 | - $this->set_js($this->default_theme_path.'/datatables/extras/TableTools/media/js/TableTools.min.js'); |
|
24 | - |
|
25 | - /** Fancybox */ |
|
26 | - $this->set_css($this->default_css_path.'/jquery_plugins/fancybox/jquery.fancybox.css'); |
|
27 | - $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.fancybox-1.3.4.js'); |
|
28 | - $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.easing-1.3.pack.js'); |
|
3 | + $this->set_css($this->default_theme_path.'/datatables/css/demo_table_jui.css'); |
|
4 | + $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); |
|
5 | + $this->set_css($this->default_theme_path.'/datatables/css/datatables.css'); |
|
6 | + $this->set_css($this->default_theme_path.'/datatables/css/jquery.dataTables.css'); |
|
7 | + $this->set_css($this->default_theme_path.'/datatables/extras/TableTools/media/css/TableTools.css'); |
|
8 | + $this->set_js_lib($this->default_javascript_path.'/'.grocery_CRUD::JQUERY); |
|
9 | + |
|
10 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
11 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
12 | + $this->set_js_lib($this->default_javascript_path.'/common/lazyload-min.js'); |
|
13 | + |
|
14 | + if (!$this->is_IE7()) { |
|
15 | + $this->set_js_lib($this->default_javascript_path.'/common/list.js'); |
|
16 | + } |
|
17 | + |
|
18 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); |
|
19 | + $this->set_js_lib($this->default_theme_path.'/datatables/js/jquery.dataTables.min.js'); |
|
20 | + $this->set_js($this->default_theme_path.'/datatables/js/datatables-extras.js'); |
|
21 | + $this->set_js($this->default_theme_path.'/datatables/js/datatables.js'); |
|
22 | + $this->set_js($this->default_theme_path.'/datatables/extras/TableTools/media/js/ZeroClipboard.js'); |
|
23 | + $this->set_js($this->default_theme_path.'/datatables/extras/TableTools/media/js/TableTools.min.js'); |
|
24 | + |
|
25 | + /** Fancybox */ |
|
26 | + $this->set_css($this->default_css_path.'/jquery_plugins/fancybox/jquery.fancybox.css'); |
|
27 | + $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.fancybox-1.3.4.js'); |
|
28 | + $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.easing-1.3.pack.js'); |
|
29 | 29 | ?> |
30 | 30 | <script type='text/javascript'> |
31 | 31 | var base_url = '<?php echo base_url();?>'; |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | var unique_hash = '<?php echo $unique_hash; ?>'; |
35 | 35 | |
36 | 36 | var displaying_paging_string = "<?php echo str_replace( array('{start}','{end}','{results}'), |
37 | - array('_START_', '_END_', '_TOTAL_'), |
|
38 | - $this->l('list_displaying') |
|
39 | - ); ?>"; |
|
37 | + array('_START_', '_END_', '_TOTAL_'), |
|
38 | + $this->l('list_displaying') |
|
39 | + ); ?>"; |
|
40 | 40 | var filtered_from_string = "<?php echo str_replace('{total_results}','_MAX_',$this->l('list_filtered_from') ); ?>"; |
41 | 41 | var show_entries_string = "<?php echo str_replace('{paging}','_MENU_',$this->l('list_show_entries') ); ?>"; |
42 | 42 | var search_string = "<?php echo $this->l('list_search'); ?>"; |
@@ -61,26 +61,26 @@ discard block |
||
61 | 61 | var print_text = '<?php echo $this->l('list_print');?>'; |
62 | 62 | |
63 | 63 | <?php |
64 | - //A work around for method order_by that doesn't work correctly on datatables theme |
|
65 | - //@todo remove PHP logic from the view to the basic library |
|
66 | - $ordering = 0; |
|
67 | - $sorting = 'asc'; |
|
68 | - if(!empty($order_by)) |
|
69 | - { |
|
70 | - foreach($columns as $num => $column) { |
|
71 | - if($column->field_name == $order_by[0]) { |
|
72 | - $ordering = $num; |
|
73 | - $sorting = isset($order_by[1]) && $order_by[1] == 'asc' || $order_by[1] == 'desc' ? $order_by[1] : $sorting ; |
|
74 | - } |
|
75 | - } |
|
76 | - } |
|
77 | - ?> |
|
64 | + //A work around for method order_by that doesn't work correctly on datatables theme |
|
65 | + //@todo remove PHP logic from the view to the basic library |
|
66 | + $ordering = 0; |
|
67 | + $sorting = 'asc'; |
|
68 | + if(!empty($order_by)) |
|
69 | + { |
|
70 | + foreach($columns as $num => $column) { |
|
71 | + if($column->field_name == $order_by[0]) { |
|
72 | + $ordering = $num; |
|
73 | + $sorting = isset($order_by[1]) && $order_by[1] == 'asc' || $order_by[1] == 'desc' ? $order_by[1] : $sorting ; |
|
74 | + } |
|
75 | + } |
|
76 | + } |
|
77 | + ?> |
|
78 | 78 | |
79 | 79 | var datatables_aaSorting = [[ <?php echo $ordering; ?>, "<?php echo $sorting;?>" ]]; |
80 | 80 | |
81 | 81 | </script> |
82 | 82 | <?php |
83 | - if(!empty($actions)){ |
|
83 | + if(!empty($actions)){ |
|
84 | 84 | ?> |
85 | 85 | <style type="text/css"> |
86 | 86 | <?php foreach($actions as $action_unique_id => $action){?> |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | <?php }?> |
93 | 93 | </style> |
94 | 94 | <?php |
95 | - } |
|
95 | + } |
|
96 | 96 | ?> |
97 | 97 | <?php if($unset_export && $unset_print){?> |
98 | 98 | <style type="text/css"> |
@@ -106,10 +106,10 @@ discard block |
||
106 | 106 | |
107 | 107 | <div id='list-report-error' class='report-div error report-list'></div> |
108 | 108 | <div id='list-report-success' class='report-div success report-list' <?php if($success_message !== null){?>style="display:block"<?php }?>><?php |
109 | - if($success_message !== null){?> |
|
109 | + if($success_message !== null){?> |
|
110 | 110 | <p><?php echo $success_message; ?></p> |
111 | 111 | <?php } |
112 | - ?></div> |
|
112 | + ?></div> |
|
113 | 113 | <div class="dataTablesContainer"> |
114 | 114 | <?php if(!$unset_add){?> |
115 | 115 | <div class="datatables-add-button"> |
@@ -28,17 +28,17 @@ discard block |
||
28 | 28 | $this->set_js($this->default_javascript_path.'/jquery_plugins/jquery.easing-1.3.pack.js'); |
29 | 29 | ?> |
30 | 30 | <script type='text/javascript'> |
31 | - var base_url = '<?php echo base_url();?>'; |
|
31 | + var base_url = '<?php echo base_url(); ?>'; |
|
32 | 32 | var subject = '<?php echo addslashes($subject); ?>'; |
33 | 33 | |
34 | 34 | var unique_hash = '<?php echo $unique_hash; ?>'; |
35 | 35 | |
36 | - var displaying_paging_string = "<?php echo str_replace( array('{start}','{end}','{results}'), |
|
36 | + var displaying_paging_string = "<?php echo str_replace(array('{start}', '{end}', '{results}'), |
|
37 | 37 | array('_START_', '_END_', '_TOTAL_'), |
38 | 38 | $this->l('list_displaying') |
39 | 39 | ); ?>"; |
40 | - var filtered_from_string = "<?php echo str_replace('{total_results}','_MAX_',$this->l('list_filtered_from') ); ?>"; |
|
41 | - var show_entries_string = "<?php echo str_replace('{paging}','_MENU_',$this->l('list_show_entries') ); ?>"; |
|
40 | + var filtered_from_string = "<?php echo str_replace('{total_results}', '_MAX_', $this->l('list_filtered_from')); ?>"; |
|
41 | + var show_entries_string = "<?php echo str_replace('{paging}', '_MENU_', $this->l('list_show_entries')); ?>"; |
|
42 | 42 | var search_string = "<?php echo $this->l('list_search'); ?>"; |
43 | 43 | var list_no_items = "<?php echo $this->l('list_no_items'); ?>"; |
44 | 44 | var list_zero_entries = "<?php echo $this->l('list_zero_entries'); ?>"; |
@@ -52,39 +52,39 @@ discard block |
||
52 | 52 | |
53 | 53 | var message_alert_delete = "<?php echo $this->l('alert_delete'); ?>"; |
54 | 54 | |
55 | - var default_per_page = <?php echo $default_per_page;?>; |
|
55 | + var default_per_page = <?php echo $default_per_page; ?>; |
|
56 | 56 | |
57 | 57 | var unset_export = <?php echo ($unset_export ? 'true' : 'false'); ?>; |
58 | 58 | var unset_print = <?php echo ($unset_print ? 'true' : 'false'); ?>; |
59 | 59 | |
60 | - var export_text = '<?php echo $this->l('list_export');?>'; |
|
61 | - var print_text = '<?php echo $this->l('list_print');?>'; |
|
60 | + var export_text = '<?php echo $this->l('list_export'); ?>'; |
|
61 | + var print_text = '<?php echo $this->l('list_print'); ?>'; |
|
62 | 62 | |
63 | 63 | <?php |
64 | 64 | //A work around for method order_by that doesn't work correctly on datatables theme |
65 | 65 | //@todo remove PHP logic from the view to the basic library |
66 | 66 | $ordering = 0; |
67 | 67 | $sorting = 'asc'; |
68 | - if(!empty($order_by)) |
|
68 | + if (!empty($order_by)) |
|
69 | 69 | { |
70 | - foreach($columns as $num => $column) { |
|
71 | - if($column->field_name == $order_by[0]) { |
|
70 | + foreach ($columns as $num => $column) { |
|
71 | + if ($column->field_name == $order_by[0]) { |
|
72 | 72 | $ordering = $num; |
73 | - $sorting = isset($order_by[1]) && $order_by[1] == 'asc' || $order_by[1] == 'desc' ? $order_by[1] : $sorting ; |
|
73 | + $sorting = isset($order_by[1]) && $order_by[1] == 'asc' || $order_by[1] == 'desc' ? $order_by[1] : $sorting; |
|
74 | 74 | } |
75 | 75 | } |
76 | 76 | } |
77 | 77 | ?> |
78 | 78 | |
79 | - var datatables_aaSorting = [[ <?php echo $ordering; ?>, "<?php echo $sorting;?>" ]]; |
|
79 | + var datatables_aaSorting = [[ <?php echo $ordering; ?>, "<?php echo $sorting; ?>" ]]; |
|
80 | 80 | |
81 | 81 | </script> |
82 | 82 | <?php |
83 | - if(!empty($actions)){ |
|
83 | + if (!empty($actions)) { |
|
84 | 84 | ?> |
85 | 85 | <style type="text/css"> |
86 | - <?php foreach($actions as $action_unique_id => $action){?> |
|
87 | - <?php if(!empty($action->image_url)){ ?> |
|
86 | + <?php foreach ($actions as $action_unique_id => $action) {?> |
|
87 | + <?php if (!empty($action->image_url)) { ?> |
|
88 | 88 | .<?php echo $action_unique_id; ?>{ |
89 | 89 | background: url('<?php echo $action->image_url; ?>') !important; |
90 | 90 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | <?php |
95 | 95 | } |
96 | 96 | ?> |
97 | -<?php if($unset_export && $unset_print){?> |
|
97 | +<?php if ($unset_export && $unset_print) {?> |
|
98 | 98 | <style type="text/css"> |
99 | 99 | .datatables-add-button |
100 | 100 | { |
@@ -105,13 +105,13 @@ discard block |
||
105 | 105 | <div class="grocerycrud-container"> |
106 | 106 | |
107 | 107 | <div id='list-report-error' class='report-div error report-list'></div> |
108 | - <div id='list-report-success' class='report-div success report-list' <?php if($success_message !== null){?>style="display:block"<?php }?>><?php |
|
109 | - if($success_message !== null){?> |
|
108 | + <div id='list-report-success' class='report-div success report-list' <?php if ($success_message !== null) {?>style="display:block"<?php }?>><?php |
|
109 | + if ($success_message !== null) {?> |
|
110 | 110 | <p><?php echo $success_message; ?></p> |
111 | 111 | <?php } |
112 | 112 | ?></div> |
113 | 113 | <div class="dataTablesContainer"> |
114 | - <?php if(!$unset_add){?> |
|
114 | + <?php if (!$unset_add) {?> |
|
115 | 115 | <div class="datatables-add-button"> |
116 | 116 | <a role="button" class="add_button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" href="<?php echo $add_url?>"> |
117 | 117 | <span class="ui-button-icon-primary ui-icon ui-icon-circle-plus"></span> |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | - $this->set_css($this->default_theme_path.'/datatables/css/datatables.css'); |
|
3 | + $this->set_css($this->default_theme_path.'/datatables/css/datatables.css'); |
|
4 | 4 | |
5 | 5 | $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.form.min.js'); |
6 | - $this->set_js_config($this->default_theme_path.'/datatables/js/datatables-edit.js'); |
|
7 | - $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); |
|
8 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); |
|
6 | + $this->set_js_config($this->default_theme_path.'/datatables/js/datatables-edit.js'); |
|
7 | + $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); |
|
8 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); |
|
9 | 9 | |
10 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
11 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
10 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
11 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
12 | 12 | ?> |
13 | 13 | <div class='ui-widget-content ui-corner-all datatables'> |
14 | 14 | <h3 class="ui-accordion-header ui-helper-reset ui-state-default form-title"> |
@@ -21,12 +21,12 @@ discard block |
||
21 | 21 | <?php echo form_open( $update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
22 | 22 | <div> |
23 | 23 | <?php |
24 | - $counter = 0; |
|
25 | - foreach($fields as $field) |
|
26 | - { |
|
27 | - $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
28 | - $counter++; |
|
29 | - ?> |
|
24 | + $counter = 0; |
|
25 | + foreach($fields as $field) |
|
26 | + { |
|
27 | + $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
28 | + $counter++; |
|
29 | + ?> |
|
30 | 30 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
31 | 31 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
32 | 32 | <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
@@ -39,10 +39,10 @@ discard block |
||
39 | 39 | <?php }?> |
40 | 40 | <!-- Start of hidden inputs --> |
41 | 41 | <?php |
42 | - foreach($hidden_fields as $hidden_field){ |
|
43 | - echo $hidden_field->input; |
|
44 | - } |
|
45 | - ?> |
|
42 | + foreach($hidden_fields as $hidden_field){ |
|
43 | + echo $hidden_field->input; |
|
44 | + } |
|
45 | + ?> |
|
46 | 46 | <!-- End of hidden inputs --> |
47 | 47 | <?php if ($is_ajax) { ?><input type="hidden" name="is_ajax" value="true" /><?php }?> |
48 | 48 | <div class='line-1px'></div> |
@@ -18,18 +18,18 @@ discard block |
||
18 | 18 | <div class='clear'></div> |
19 | 19 | </h3> |
20 | 20 | <div class='form-content form-div'> |
21 | - <?php echo form_open( $update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
21 | + <?php echo form_open($update_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
22 | 22 | <div> |
23 | 23 | <?php |
24 | 24 | $counter = 0; |
25 | - foreach($fields as $field) |
|
25 | + foreach ($fields as $field) |
|
26 | 26 | { |
27 | 27 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
28 | 28 | $counter++; |
29 | 29 | ?> |
30 | 30 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
31 | 31 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
32 | - <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
|
32 | + <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""?> : |
|
33 | 33 | </div> |
34 | 34 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
35 | 35 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | <?php }?> |
40 | 40 | <!-- Start of hidden inputs --> |
41 | 41 | <?php |
42 | - foreach($hidden_fields as $hidden_field){ |
|
42 | + foreach ($hidden_fields as $hidden_field) { |
|
43 | 43 | echo $hidden_field->input; |
44 | 44 | } |
45 | 45 | ?> |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | <div class='form-button-box'> |
54 | 54 | <input id="form-button-save" type='submit' value='<?php echo $this->l('form_update_changes'); ?>' class='ui-input-button' /> |
55 | 55 | </div> |
56 | - <?php if(!$this->unset_back_to_list) { ?> |
|
56 | + <?php if (!$this->unset_back_to_list) { ?> |
|
57 | 57 | <div class='form-button-box'> |
58 | 58 | <input type='button' value='<?php echo $this->l('form_update_and_go_back'); ?>' class='ui-input-button' id="save-and-go-back-button"/> |
59 | 59 | </div> |
@@ -1,13 +1,13 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | - $this->set_css($this->default_theme_path.'/datatables/css/datatables.css'); |
|
4 | - $this->set_js_lib($this->default_theme_path.'/flexigrid/js/jquery.form.js'); |
|
5 | - $this->set_js_config($this->default_theme_path.'/datatables/js/datatables-edit.js'); |
|
6 | - $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); |
|
7 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); |
|
3 | + $this->set_css($this->default_theme_path.'/datatables/css/datatables.css'); |
|
4 | + $this->set_js_lib($this->default_theme_path.'/flexigrid/js/jquery.form.js'); |
|
5 | + $this->set_js_config($this->default_theme_path.'/datatables/js/datatables-edit.js'); |
|
6 | + $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); |
|
7 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); |
|
8 | 8 | |
9 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
10 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
9 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
10 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
11 | 11 | ?> |
12 | 12 | <div class='ui-widget-content ui-corner-all datatables'> |
13 | 13 | <h3 class="ui-accordion-header ui-helper-reset ui-state-default form-title"> |
@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | <?php echo form_open( $read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
21 | 21 | <div> |
22 | 22 | <?php |
23 | - $counter = 0; |
|
24 | - foreach($fields as $field) |
|
25 | - { |
|
26 | - $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
27 | - $counter++; |
|
28 | - ?> |
|
23 | + $counter = 0; |
|
24 | + foreach($fields as $field) |
|
25 | + { |
|
26 | + $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
27 | + $counter++; |
|
28 | + ?> |
|
29 | 29 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
30 | 30 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
31 | 31 | <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | <?php }?> |
39 | 39 | <!-- Start of hidden inputs --> |
40 | 40 | <?php |
41 | - foreach($hidden_fields as $hidden_field){ |
|
42 | - echo $hidden_field->input; |
|
43 | - } |
|
44 | - ?> |
|
41 | + foreach($hidden_fields as $hidden_field){ |
|
42 | + echo $hidden_field->input; |
|
43 | + } |
|
44 | + ?> |
|
45 | 45 | <!-- End of hidden inputs --> |
46 | 46 | <?php if ($is_ajax) { ?><input type="hidden" name="is_ajax" value="true" /><?php }?> |
47 | 47 | <div class='line-1px'></div> |
@@ -17,18 +17,18 @@ discard block |
||
17 | 17 | <div class='clear'></div> |
18 | 18 | </h3> |
19 | 19 | <div class='form-content form-div'> |
20 | - <?php echo form_open( $read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
20 | + <?php echo form_open($read_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
21 | 21 | <div> |
22 | 22 | <?php |
23 | 23 | $counter = 0; |
24 | - foreach($fields as $field) |
|
24 | + foreach ($fields as $field) |
|
25 | 25 | { |
26 | 26 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
27 | 27 | $counter++; |
28 | 28 | ?> |
29 | 29 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
30 | 30 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
31 | - <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
|
31 | + <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""?> : |
|
32 | 32 | </div> |
33 | 33 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
34 | 34 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | <?php }?> |
39 | 39 | <!-- Start of hidden inputs --> |
40 | 40 | <?php |
41 | - foreach($hidden_fields as $hidden_field){ |
|
41 | + foreach ($hidden_fields as $hidden_field) { |
|
42 | 42 | echo $hidden_field->input; |
43 | 43 | } |
44 | 44 | ?> |
@@ -1,13 +1,13 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | - $this->set_css($this->default_theme_path.'/datatables/css/datatables.css'); |
|
3 | + $this->set_css($this->default_theme_path.'/datatables/css/datatables.css'); |
|
4 | 4 | $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.form.min.js'); |
5 | - $this->set_js_config($this->default_theme_path.'/datatables/js/datatables-add.js'); |
|
6 | - $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); |
|
7 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); |
|
5 | + $this->set_js_config($this->default_theme_path.'/datatables/js/datatables-add.js'); |
|
6 | + $this->set_css($this->default_css_path.'/ui/simple/'.grocery_CRUD::JQUERY_UI_CSS); |
|
7 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/ui/'.grocery_CRUD::JQUERY_UI_JS); |
|
8 | 8 | |
9 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
10 | - $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
9 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/jquery.noty.js'); |
|
10 | + $this->set_js_lib($this->default_javascript_path.'/jquery_plugins/config/jquery.noty.config.js'); |
|
11 | 11 | ?> |
12 | 12 | <div class='ui-widget-content ui-corner-all datatables'> |
13 | 13 | <h3 class="ui-accordion-header ui-helper-reset ui-state-default form-title"> |
@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | <?php echo form_open( $insert_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
21 | 21 | <div> |
22 | 22 | <?php |
23 | - $counter = 0; |
|
24 | - foreach($fields as $field) |
|
25 | - { |
|
26 | - $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
27 | - $counter++; |
|
28 | - ?> |
|
23 | + $counter = 0; |
|
24 | + foreach($fields as $field) |
|
25 | + { |
|
26 | + $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
|
27 | + $counter++; |
|
28 | + ?> |
|
29 | 29 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
30 | 30 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
31 | 31 | <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | <?php }?> |
39 | 39 | <!-- Start of hidden inputs --> |
40 | 40 | <?php |
41 | - foreach($hidden_fields as $hidden_field){ |
|
42 | - echo $hidden_field->input; |
|
43 | - } |
|
44 | - ?> |
|
41 | + foreach($hidden_fields as $hidden_field){ |
|
42 | + echo $hidden_field->input; |
|
43 | + } |
|
44 | + ?> |
|
45 | 45 | <!-- End of hidden inputs --> |
46 | 46 | <?php if ($is_ajax) { ?><input type="hidden" name="is_ajax" value="true" /><?php }?> |
47 | 47 | <div class='line-1px'></div> |
@@ -17,18 +17,18 @@ discard block |
||
17 | 17 | <div class='clear'></div> |
18 | 18 | </h3> |
19 | 19 | <div class='form-content form-div'> |
20 | - <?php echo form_open( $insert_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
20 | + <?php echo form_open($insert_url, 'method="post" id="crudForm" enctype="multipart/form-data"'); ?> |
|
21 | 21 | <div> |
22 | 22 | <?php |
23 | 23 | $counter = 0; |
24 | - foreach($fields as $field) |
|
24 | + foreach ($fields as $field) |
|
25 | 25 | { |
26 | 26 | $even_odd = $counter % 2 == 0 ? 'odd' : 'even'; |
27 | 27 | $counter++; |
28 | 28 | ?> |
29 | 29 | <div class='form-field-box <?php echo $even_odd?>' id="<?php echo $field->field_name; ?>_field_box"> |
30 | 30 | <div class='form-display-as-box' id="<?php echo $field->field_name; ?>_display_as_box"> |
31 | - <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required)? "<span class='required'>*</span> " : ""?> : |
|
31 | + <?php echo $input_fields[$field->field_name]->display_as?><?php echo ($input_fields[$field->field_name]->required) ? "<span class='required'>*</span> " : ""?> : |
|
32 | 32 | </div> |
33 | 33 | <div class='form-input-box' id="<?php echo $field->field_name; ?>_input_box"> |
34 | 34 | <?php echo $input_fields[$field->field_name]->input?> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | <?php }?> |
39 | 39 | <!-- Start of hidden inputs --> |
40 | 40 | <?php |
41 | - foreach($hidden_fields as $hidden_field){ |
|
41 | + foreach ($hidden_fields as $hidden_field) { |
|
42 | 42 | echo $hidden_field->input; |
43 | 43 | } |
44 | 44 | ?> |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | <div class='form-button-box'> |
53 | 53 | <input id="form-button-save" type='submit' value='<?php echo $this->l('form_save'); ?>' class='ui-input-button'/> |
54 | 54 | </div> |
55 | -<?php if(!$this->unset_back_to_list) { ?> |
|
55 | +<?php if (!$this->unset_back_to_list) { ?> |
|
56 | 56 | <div class='form-button-box'> |
57 | 57 | <input type='button' value='<?php echo $this->l('form_save_and_go_back'); ?>' class='ui-input-button' id="save-and-go-back-button"/> |
58 | 58 | </div> |