@@ -9,7 +9,7 @@ |
||
9 | 9 | @endif |
10 | 10 | |
11 | 11 | @if(CRUDBooster::canDelete() && $button_delete) |
12 | - <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?> |
|
12 | + <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?> |
|
13 | 13 | <a class='btn btn-xs btn-warning btn-delete' |
14 | 14 | title='{{cbTrans("action_delete_data")}}' href='javascript:;' |
15 | 15 | onclick='{{CRUDBooster::deleteConfirm($url)}}'>{{cbTrans("action_delete_data")}}</a> |
@@ -5,15 +5,15 @@ discard block |
||
5 | 5 | } |
6 | 6 | |
7 | 7 | $confirm_box = ''; |
8 | - if (isset($a['confirmation']) && ! empty($a['confirmation']) && $a['confirmation']) { |
|
8 | + if (isset($a['confirmation']) && !empty($a['confirmation']) && $a['confirmation']) { |
|
9 | 9 | |
10 | - $a['confirmation_title'] = ! empty($a['confirmation_title']) ? $a['confirmation_title'] : cbTrans('confirmation_title'); |
|
11 | - $a['confirmation_text'] = ! empty($a['confirmation_text']) ? $a['confirmation_text'] : cbTrans('confirmation_text'); |
|
12 | - $a['confirmation_type'] = ! empty($a['confirmation_type']) ? $a['confirmation_type'] : 'warning'; |
|
10 | + $a['confirmation_title'] = !empty($a['confirmation_title']) ? $a['confirmation_title'] : cbTrans('confirmation_title'); |
|
11 | + $a['confirmation_text'] = !empty($a['confirmation_text']) ? $a['confirmation_text'] : cbTrans('confirmation_text'); |
|
12 | + $a['confirmation_type'] = !empty($a['confirmation_type']) ? $a['confirmation_type'] : 'warning'; |
|
13 | 13 | $a['confirmation_showCancelButton'] = empty($a['confirmation_showCancelButton']) ? 'true' : 'false'; |
14 | - $a['confirmation_confirmButtonColor'] = ! empty($a['confirmation_confirmButtonColor']) ? $a['confirmation_confirmButtonColor'] : '#DD6B55'; |
|
15 | - $a['confirmation_confirmButtonText'] = ! empty($a['confirmation_confirmButtonText']) ? $a['confirmation_confirmButtonText'] : cbTrans('confirmation_yes');; |
|
16 | - $a['confirmation_cancelButtonText'] = ! empty($a['confirmation_cancelButtonText']) ? $a['confirmation_cancelButtonText'] : cbTrans('confirmation_no');; |
|
14 | + $a['confirmation_confirmButtonColor'] = !empty($a['confirmation_confirmButtonColor']) ? $a['confirmation_confirmButtonColor'] : '#DD6B55'; |
|
15 | + $a['confirmation_confirmButtonText'] = !empty($a['confirmation_confirmButtonText']) ? $a['confirmation_confirmButtonText'] : cbTrans('confirmation_yes'); ; |
|
16 | + $a['confirmation_cancelButtonText'] = !empty($a['confirmation_cancelButtonText']) ? $a['confirmation_cancelButtonText'] : cbTrans('confirmation_no'); ; |
|
17 | 17 | $a['confirmation_closeOnConfirm'] = empty($a['confirmation_closeOnConfirm']) ? 'true' : 'false'; |
18 | 18 | |
19 | 19 | $confirm_box = ' |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | |
40 | 40 | $url = $a['url']; |
41 | - if (isset($confirmation) && ! empty($confirmation)) { |
|
41 | + if (isset($confirmation) && !empty($confirmation)) { |
|
42 | 42 | $url = "javascript:;"; |
43 | 43 | } |
44 | 44 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | <form method='get' action=''> |
10 | 10 | <div class="modal-body"> |
11 | 11 | @foreach($columns as $key => $col) |
12 | - <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) continue;?> |
|
12 | + <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) continue; ?> |
|
13 | 13 | |
14 | 14 | <div class='form-group'> |
15 | 15 |
@@ -9,7 +9,10 @@ |
||
9 | 9 | <form method='get' action=''> |
10 | 10 | <div class="modal-body"> |
11 | 11 | @foreach($columns as $key => $col) |
12 | - <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) continue;?> |
|
12 | + <?php if (isset($col['image']) || isset($col['download']) || $col['visible'] === FALSE) { |
|
13 | + continue; |
|
14 | +} |
|
15 | +?> |
|
13 | 16 | |
14 | 17 | <div class='form-group'> |
15 | 18 |
@@ -119,7 +119,7 @@ |
||
119 | 119 | @foreach($html_contents['html'] as $i=>$hc) |
120 | 120 | |
121 | 121 | @if($table_row_color) |
122 | - <?php $tr_color = NULL;?> |
|
122 | + <?php $tr_color = NULL; ?> |
|
123 | 123 | @foreach($table_row_color as $trc) |
124 | 124 | <?php |
125 | 125 | $query = $trc['condition']; |
@@ -60,7 +60,9 @@ discard block |
||
60 | 60 | |
61 | 61 | <?php |
62 | 62 | foreach ($columns as $col) { |
63 | - if ($col['visible'] === FALSE) continue; |
|
63 | + if ($col['visible'] === FALSE) { |
|
64 | + continue; |
|
65 | + } |
|
64 | 66 | |
65 | 67 | $sort_column = Request::get('filter_column'); |
66 | 68 | $colname = $col['label']; |
@@ -159,7 +161,9 @@ discard block |
||
159 | 161 | |
160 | 162 | <?php |
161 | 163 | foreach ($columns as $col) { |
162 | - if ($col['visible'] === FALSE) continue; |
|
164 | + if ($col['visible'] === FALSE) { |
|
165 | + continue; |
|
166 | + } |
|
163 | 167 | $colname = $col['label']; |
164 | 168 | $width = ($col['width']) ?: "auto"; |
165 | 169 | echo "<th width='$width'>$colname</th>"; |
@@ -1,4 +1,4 @@ |
||
1 | -<?php $default = ! empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label;?> |
|
1 | +<?php $default = !empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label; ?> |
|
2 | 2 | |
3 | 3 | <?php |
4 | 4 | $options = []; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if(@$formInput['options']['query']){ |
|
2 | +if (@$formInput['options']['query']) { |
|
3 | 3 | $field_label = $formInput['options']['field_label']; |
4 | 4 | $field_value = $formInput['options']['field_value']; |
5 | 5 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | break; |
31 | 31 | } |
32 | 32 | } |
33 | - if (! $value) $value = []; |
|
33 | + if (!$value) $value = []; |
|
34 | 34 | } |
35 | 35 | } else { |
36 | 36 | $value = explode(";", $value); |
@@ -30,7 +30,9 @@ |
||
30 | 30 | break; |
31 | 31 | } |
32 | 32 | } |
33 | - if (! $value) $value = []; |
|
33 | + if (! $value) { |
|
34 | + $value = []; |
|
35 | + } |
|
34 | 36 | } |
35 | 37 | } else { |
36 | 38 | $value = explode(";", $value); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | foreach ($selects_data as $d) { |
70 | 70 | $val = $d->{$select_field_alias}; |
71 | - if ($val == '' || ! $d->id) continue; |
|
71 | + if ($val == '' || !$d->id) continue; |
|
72 | 72 | |
73 | 73 | $checked = ($value == $d->id) ? "checked" : ""; |
74 | 74 |
@@ -68,7 +68,9 @@ |
||
68 | 68 | |
69 | 69 | foreach ($selects_data as $d) { |
70 | 70 | $val = $d->{$select_field_alias}; |
71 | - if ($val == '' || ! $d->id) continue; |
|
71 | + if ($val == '' || ! $d->id) { |
|
72 | + continue; |
|
73 | + } |
|
72 | 74 | |
73 | 75 | $checked = ($value == $d->id) ? "checked" : ""; |
74 | 76 |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * @param $form |
4 | 4 | * @return array |
5 | 5 | */ |
6 | -$queryData = function ($form) |
|
6 | +$queryData = function($form) |
|
7 | 7 | { |
8 | - if (! $formInput['options']['table']) return; |
|
8 | + if (!$formInput['options']['table']) return; |
|
9 | 9 | $field_label = $formInput['options']['field_label']; |
10 | 10 | $field_value = $formInput['options']['field_value']; |
11 | 11 |
@@ -5,7 +5,9 @@ |
||
5 | 5 | */ |
6 | 6 | $queryData = function ($form) |
7 | 7 | { |
8 | - if (! $formInput['options']['table']) return; |
|
8 | + if (! $formInput['options']['table']) { |
|
9 | + return; |
|
10 | + } |
|
9 | 11 | $field_label = $formInput['options']['field_label']; |
10 | 12 | $field_value = $formInput['options']['field_value']; |
11 | 13 |