Passed
Push — master ( 621938...b835f6 )
by William
03:27
created
dashboard/assets/grocery_crud/themes/datatables/views/list.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,47 +1,47 @@  discard block
 block discarded – undo
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">&nbsp;<?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">&nbsp;<?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">&nbsp;<?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">&nbsp;<?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
 block discarded – undo
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">&nbsp;</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 }?>
Please login to merge, or discard this patch.
dashboard/assets/grocery_crud/themes/datatables/views/list_template.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
dashboard/assets/grocery_crud/themes/datatables/views/edit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,18 +18,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
dashboard/assets/grocery_crud/themes/datatables/views/read.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,18 +17,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 				?>
Please login to merge, or discard this patch.
dashboard/assets/grocery_crud/themes/datatables/views/add.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,18 +17,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
dashboard/assets/grocery_crud/themes/datatables/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,2 +1,2 @@
 block discarded – undo
1 1
 <?php
2
-$config['crud_paging'] 			= false;
3 2
\ No newline at end of file
3
+$config['crud_paging'] = false;
4 4
\ No newline at end of file
Please login to merge, or discard this patch.
dashboard/assets/grocery_crud/themes/dashboard/views/list.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@  discard block
 block discarded – undo
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>
9 9
 			<tr class='hDiv'>
10
-				<?php foreach($columns as $column){?>
10
+				<?php foreach ($columns as $column) {?>
11 11
 				<th width='<?php echo $column_width?>%'>
12
-					<div class="text-left field-sorting <?php if(isset($order_by[0]) &&  $column->field_name == $order_by[0]){?><?php echo $order_by[1]?><?php }?>" 
12
+					<div class="text-left field-sorting <?php if (isset($order_by[0]) && $column->field_name == $order_by[0]) {?><?php echo $order_by[1]?><?php }?>" 
13 13
 						rel='<?php echo $column->field_name?>'>
14 14
 						<?php echo $column->display_as?>
15 15
 					</div>
16 16
 				</th>
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
 				<th align="left" abbr="tools" axis="col1" class="" width='20%'>
20 20
 					<div class="text-right">
21 21
 						<?php echo $this->l('list_actions'); ?>
@@ -25,34 +25,34 @@  discard block
 block discarded – undo
25 25
 			</tr>
26 26
 		</thead>		
27 27
 		<tbody>
28
-<?php foreach($list as $num_row => $row){ ?>        
29
-		<tr  <?php if($num_row % 2 == 1){?>class="erow"<?php }?>>
30
-			<?php foreach($columns as $column){?>
31
-			<td width='<?php echo $column_width?>%' class='<?php if(isset($order_by[0]) &&  $column->field_name == $order_by[0]){?>sorted<?php }?>'>
32
-				<div class='text-left'><?php echo $row->{$column->field_name} != '' ? $row->{$column->field_name} : '&nbsp;' ; ?></div>
28
+<?php foreach ($list as $num_row => $row) { ?>        
29
+		<tr  <?php if ($num_row % 2 == 1) {?>class="erow"<?php }?>>
30
+			<?php foreach ($columns as $column) {?>
31
+			<td width='<?php echo $column_width?>%' class='<?php if (isset($order_by[0]) && $column->field_name == $order_by[0]) {?>sorted<?php }?>'>
32
+				<div class='text-left'><?php echo $row->{$column->field_name} != '' ? $row->{$column->field_name} : '&nbsp;'; ?></div>
33 33
 			</td>
34 34
 			<?php }?>
35
-			<?php if(!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)){?>
35
+			<?php if (!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)) {?>
36 36
 			<td align="left" width='20%'>
37 37
 				<div class='tools'>				
38
-					<?php if(!$unset_delete){?>
38
+					<?php if (!$unset_delete) {?>
39 39
                     	<a href='<?php echo $row->delete_url?>' title='<?php echo $this->l('list_delete')?> <?php echo $subject?>' class="delete-row" >
40 40
                     			<span class='delete-icon'></span>
41 41
                     	</a>
42 42
                     <?php }?>
43
-                    <?php if(!$unset_edit){?>
43
+                    <?php if (!$unset_edit) {?>
44 44
 						<a href='<?php echo $row->edit_url?>' title='<?php echo $this->l('list_edit')?> <?php echo $subject?>' class="edit_button"><span class='edit-icon'></span></a>
45 45
 					<?php }?>
46
-					<?php if(!$unset_read){?>
46
+					<?php if (!$unset_read) {?>
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){ 
50
+					if (!empty($row->action_urls)) {
51
+						foreach ($row->action_urls as $action_unique_id => $action_url) { 
52 52
 							$action = $actions[$action_unique_id];
53 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))
55
+								if (!empty($action->image_url))
56 56
 								{
57 57
 									?><img src="<?php echo $action->image_url; ?>" alt="<?php echo $action->label?>" /><?php 	
58 58
 								}
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 		</tbody>
70 70
 		</table>
71 71
 	</div>
72
-<?php }else{?>
72
+<?php } else {?>
73 73
 	<br/>
74 74
 	&nbsp;&nbsp;&nbsp;&nbsp; <?php echo $this->l('list_no_items'); ?>
75 75
 	<br/>
Please login to merge, or discard this patch.
dashboard/assets/grocery_crud/themes/dashboard/views/list_template.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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,20 +38,20 @@  discard block
 block discarded – undo
38 38
 
39 39
 </script>
40 40
 <div id='list-report-error' class='report-div error'></div>
41
-<div  <?php if($success_message !== null){?>class="alert alert-success" role="alert" style="display:block;"<?php }?>><?php
42
-if($success_message !== null){?>
41
+<div  <?php if ($success_message !== null) {?>class="alert alert-success" role="alert" style="display:block;"<?php }?>><?php
42
+if ($success_message !== null) {?>
43 43
     <p style=" margin-top: -0px;"><?php echo $success_message; ?></p>
44 44
 <?php }
45 45
 ?></div>
46 46
 <div class="flexigrid" style='width: 100%;' data-unique-hash="<?php echo $unique_hash; ?>">
47 47
     
48
-	<?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.'"'); ?>
48
+	<?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.'"'); ?>
49 49
 	
50 50
 	<div id='main-table-box' class="main-table-box">
51 51
 
52
-	<?php if(!$unset_add || !$unset_export || !$unset_print){?>
52
+	<?php if (!$unset_add || !$unset_export || !$unset_print) {?>
53 53
 	<div class="tDiv">
54
-		<?php if(!$unset_add){?>
54
+		<?php if (!$unset_add) {?>
55 55
 		<div class="tDiv2">
56 56
                     <div class="displayadd">
57 57
                         <a href='<?php echo $add_url?>' title='<?php echo $this->l('list_add'); ?> <?php echo $subject?>' class='add-anchor add_button'>
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
                 </div>
65 65
 		<?php }?>
66 66
 		<div class="tDiv3">
67
-			<?php if(!$unset_export) { ?>
67
+			<?php if (!$unset_export) { ?>
68 68
         	<a class="export-anchor" href="<?php echo $export_url; ?>" target="_blank">
69 69
 				<div class="fbutton">
70 70
 					<div>
71
-						<span class="export"><?php echo $this->l('list_export');?></span>
71
+						<span class="export"><?php echo $this->l('list_export'); ?></span>
72 72
 					</div>
73 73
 				</div>
74 74
             </a>
@@ -84,18 +84,18 @@  discard block
 block discarded – undo
84 84
 					<?php list($show_lang_string, $entries_lang_string) = explode('{paging}', $this->l('list_show_entries')); ?>
85 85
 					<?php echo $show_lang_string; ?>
86 86
 					<select name="per_page" id='per_page' class="per_page">
87
-						<?php foreach($paging_options as $option){?>
88
-							<option value="<?php echo $option; ?>" <?php if($option == $default_per_page){?>selected="selected"<?php }?>><?php echo $option; ?>&nbsp;&nbsp;</option>
87
+						<?php foreach ($paging_options as $option) {?>
88
+							<option value="<?php echo $option; ?>" <?php if ($option == $default_per_page) {?>selected="selected"<?php }?>><?php echo $option; ?>&nbsp;&nbsp;</option>
89 89
 						<?php }?>
90 90
 					</select>
91 91
 					<?php echo $entries_lang_string; ?>
92
-					<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 }?>' />
93
-					<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 }?>'/>
92
+					<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 }?>' />
93
+					<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 }?>'/>
94 94
 				</span>
95 95
 			</div>
96 96
             <div class="displaysearch">
97
-			<?php echo $this->l('list_search');?>: <input type="text" class="qsbsearch_fieldox search_text" name="search_text" size="30" id='search_text'>
98
-                    <input type="button" value="<?php echo $this->l('list_search');?>" class="btn btn-default">
97
+			<?php echo $this->l('list_search'); ?>: <input type="text" class="qsbsearch_fieldox search_text" name="search_text" size="30" id='search_text'>
98
+                    <input type="button" value="<?php echo $this->l('list_search'); ?>" class="btn btn-default">
99 99
 		</div>
100 100
 
101 101
 	<div id='ajax_list' class="ajax_list">
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
                         <div class="displayshowing" style="margin-top: 10px;">
106 106
 				<span class="pPageStat">
107 107
 					<?php $paging_starts_from = "<span id='page-starts-from' class='page-starts-from'>1</span>"; ?>
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>"; ?>
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
-					<?php echo str_replace( array('{start}','{end}','{results}'),
110
+					<?php echo str_replace(array('{start}', '{end}', '{results}'),
111 111
 											array($paging_starts_from, $paging_ends_to, $paging_total_results),
112 112
 											$this->l('list_displaying')
113 113
 										   ); ?>
Please login to merge, or discard this patch.
dashboard/assets/grocery_crud/texteditor/ckeditor/ckeditor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
  * @endcode
24 24
  */
25 25
 
26
-if ( !function_exists('version_compare') || version_compare( phpversion(), '5', '<' ) )
27
-	include_once( 'ckeditor_php4.php' ) ;
26
+if (!function_exists('version_compare') || version_compare(phpversion(), '5', '<'))
27
+	include_once('ckeditor_php4.php');
28 28
 else
29
-	include_once( 'ckeditor_php5.php' ) ;
29
+	include_once('ckeditor_php5.php');
Please login to merge, or discard this patch.