@@ -13,7 +13,7 @@ |
||
13 | 13 | @endif |
14 | 14 | |
15 | 15 | @if(CRUDBooster::canDelete() && $button_delete) |
16 | -<?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?> |
|
16 | +<?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?> |
|
17 | 17 | <a class='btn btn-xs btn-warning btn-delete' title='{{cbTrans("action_delete_data")}}' href='javascript:;' |
18 | 18 | onclick='{{CRUDBooster::deleteConfirm($url)}}'> |
19 | 19 | {!! CB::icon('trash') !!} |
@@ -13,7 +13,7 @@ |
||
13 | 13 | @endif |
14 | 14 | |
15 | 15 | @if(CRUDBooster::canDelete() && $button_delete) |
16 | - <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?> |
|
16 | + <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?> |
|
17 | 17 | <a class='btn btn-xs btn-warning btn-delete' title='{{cbTrans("action_delete_data")}}' href='javascript:;' |
18 | 18 | onclick='{{CRUDBooster::deleteConfirm($url)}}'> |
19 | 19 | {!! CB::icon('trash') !!} |
@@ -53,7 +53,7 @@ |
||
53 | 53 | @endif |
54 | 54 | |
55 | 55 | @if(CRUDBooster::canDelete() && $button_delete) |
56 | - <?php $url = CRUDBooster::mainpath("delete/".$row->$pk);?> |
|
56 | + <?php $url = CRUDBooster::mainpath("delete/".$row->$pk); ?> |
|
57 | 57 | <li><a class='btn-delete' title='{{cbTrans("action_delete_data")}}' href='javascript:;' |
58 | 58 | onclick='{{CRUDBooster::deleteConfirm($url)}}'> |
59 | 59 | {!! CB::icon('trash') !!} |
@@ -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 |