Formattazione codice
This commit is contained in:
parent
75a01bfbde
commit
1a339fd773
|
@ -208,11 +208,11 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || !
|
||||||
|
|
||||||
<tbody>';
|
<tbody>';
|
||||||
|
|
||||||
foreach ($foreign_keys as $name => $diff) {
|
foreach ($foreign_keys as $name => $diff) {
|
||||||
echo '
|
echo '
|
||||||
<tr class="bg-warning" >
|
<tr class="bg-warning" >
|
||||||
<td>
|
<td>
|
||||||
'.($name?:$diff['expected']['title']).'
|
'.($name ?: $diff['expected']['title']).'
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
QUERY DA ESEGUIRE:<br>
|
QUERY DA ESEGUIRE:<br>
|
||||||
|
@ -229,7 +229,6 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || !
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($results_added)) {
|
if (!empty($results_added)) {
|
||||||
|
|
||||||
foreach ($results_added as $table => $errors) {
|
foreach ($results_added as $table => $errors) {
|
||||||
echo '
|
echo '
|
||||||
<h3>'.$table.'</h3>';
|
<h3>'.$table.'</h3>';
|
||||||
|
@ -284,7 +283,7 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || !
|
||||||
|
|
||||||
<tbody>';
|
<tbody>';
|
||||||
|
|
||||||
foreach ($foreign_keys as $name => $diff) {
|
foreach ($foreign_keys as $name => $diff) {
|
||||||
echo '
|
echo '
|
||||||
<tr class="bg-info" >
|
<tr class="bg-info" >
|
||||||
<td>
|
<td>
|
||||||
|
|
|
@ -118,7 +118,6 @@ switch (filter('op')) {
|
||||||
|
|
||||||
$dbo->update('zz_group_module', $array, ['id' => $id]);
|
$dbo->update('zz_group_module', $array, ['id' => $id]);
|
||||||
$dbo->update('zz_group_module_lang', ['title' => $array['name']], ['id_record' => $id, 'id_lang' => Models\Locale::getDefault()->id]);
|
$dbo->update('zz_group_module_lang', ['title' => $array['name']], ['id_record' => $id, 'id_lang' => Models\Locale::getDefault()->id]);
|
||||||
|
|
||||||
} elseif (!empty($query)) {
|
} elseif (!empty($query)) {
|
||||||
$dbo->insert('zz_group_module', $array);
|
$dbo->insert('zz_group_module', $array);
|
||||||
$dbo->insert('zz_group_module_lang', ['id_record' => $dbo->lastInsertedID(), 'id_lang' => Models\Locale::getDefault()->id, 'title' => $array['name']]);
|
$dbo->insert('zz_group_module_lang', ['id_record' => $dbo->lastInsertedID(), 'id_lang' => Models\Locale::getDefault()->id, 'title' => $array['name']]);
|
||||||
|
|
Loading…
Reference in New Issue