@@ -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 }?> |
@@ -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 |
@@ -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,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"> |
@@ -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> |
@@ -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> |
@@ -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> |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | - $column_width = (int)(80/count($columns)); |
|
3 | + $column_width = (int)(80/count($columns)); |
|
4 | 4 | |
5 | - if(!empty($list)){ |
|
5 | + if(!empty($list)){ |
|
6 | 6 | ?><div class="bDiv" > |
7 | 7 | <table cellspacing="0" cellpadding="0" border="0" id="flex1" class="sortable"> |
8 | 8 | <thead> |
@@ -47,19 +47,19 @@ discard block |
||
47 | 47 | <a href='<?php echo $row->read_url?>' title='<?php echo $this->l('list_view')?> <?php echo $subject?>' class="edit_button"><span class='read-icon'></span></a> |
48 | 48 | <?php }?> |
49 | 49 | <?php |
50 | - if(!empty($row->action_urls)){ |
|
51 | - foreach($row->action_urls as $action_unique_id => $action_url){ |
|
52 | - $action = $actions[$action_unique_id]; |
|
53 | - ?> |
|
50 | + if(!empty($row->action_urls)){ |
|
51 | + foreach($row->action_urls as $action_unique_id => $action_url){ |
|
52 | + $action = $actions[$action_unique_id]; |
|
53 | + ?> |
|
54 | 54 | <a href="<?php echo $action_url; ?>" class="<?php echo $action->css_class; ?> crud-action" title="<?php echo $action->label?>"><?php |
55 | - if(!empty($action->image_url)) |
|
56 | - { |
|
57 | - ?><img src="<?php echo $action->image_url; ?>" alt="<?php echo $action->label?>" /><?php |
|
58 | - } |
|
59 | - ?></a> |
|
55 | + if(!empty($action->image_url)) |
|
56 | + { |
|
57 | + ?><img src="<?php echo $action->image_url; ?>" alt="<?php echo $action->label?>" /><?php |
|
58 | + } |
|
59 | + ?></a> |
|
60 | 60 | <?php } |
61 | - } |
|
62 | - ?> |
|
61 | + } |
|
62 | + ?> |
|
63 | 63 | <div class='clear'></div> |
64 | 64 | </div> |
65 | 65 | </td> |
@@ -1,30 +1,30 @@ discard block |
||
1 | 1 | <?php |
2 | - $this->set_css($this->default_theme_path.'/dashboard/css/style.css'); |
|
3 | - $this->set_js_lib($this->default_javascript_path.'/'.grocery_CRUD::JQUERY); |
|
2 | + $this->set_css($this->default_theme_path.'/dashboard/css/style.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'> |
@@ -108,9 +108,9 @@ discard block |
||
108 | 108 | <?php $paging_ends_to = "<span id='page-ends-to' class='page-ends-to'>". ($total_results < $default_per_page ? $total_results : $default_per_page) ."</span>"; ?> |
109 | 109 | <?php $paging_total_results = "<span id='total_items' class='total_items'>$total_results</span>"?> |
110 | 110 | <?php echo str_replace( array('{start}','{end}','{results}'), |
111 | - array($paging_starts_from, $paging_ends_to, $paging_total_results), |
|
112 | - $this->l('list_displaying') |
|
113 | - ); ?> |
|
111 | + array($paging_starts_from, $paging_ends_to, $paging_total_results), |
|
112 | + $this->l('list_displaying') |
|
113 | + ); ?> |
|
114 | 114 | </span> |
115 | 115 | </div> |
116 | 116 | <div class="pDiv"> |