Fix minori

This commit is contained in:
Luca 2022-03-10 17:29:24 +01:00
parent 59e87252cc
commit 1f0c4e694f
2 changed files with 22 additions and 14 deletions

View File

@ -174,16 +174,18 @@ foreach ($settings as $name => $values) {
}
// MySQL
$db = [
if ($database->isInstalled()){
$db = [
'mysql_version' => [
'type' => 'mysql',
'description' => '5.7.x - 8.0.x',
'minimum' => '5.7.0',
'maximum' => '8.0.99',
],
'mysql_version' => [
'type' => 'mysql',
'description' => '5.7.x - 8.0.x',
'minimum' => '5.7.0',
'maximum' => '8.0.99',
],
];
];
}
foreach ($db as $name => $values) {
$description = $values['description'];
@ -222,6 +224,7 @@ foreach ($dirs as $name => $description) {
];
}
$requirements = [
tr('Apache') => $apache,
tr('PHP (_VERSION_ _SUPPORTED_)', [
@ -232,6 +235,10 @@ $requirements = [
tr('Percorsi di servizio') => $directories,
];
if (!$database->isInstalled() || empty($mysql)){
unset($requirements['MySQL']);
}
// Tabelle di riepilogo
foreach ($requirements as $key => $values) {

View File

@ -56,19 +56,20 @@ include_once __DIR__.'/../../core.php';
<div class="col-md-2">
<br>
<div class="btn-group">
<span class="btn btn-info" style="cursor:default;" ><i class="fa fa-chevron-left"></i> <?php echo tr('Più fatture collegate'); ?></span>
<a type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?php echo tr('Più fatture collegate'); ?>... <span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</a>
</button>
<ul class="dropdown-menu">
<?php
for ($i = 0; $i < sizeof($rs_doc); ++$i) {
$rs = $dbo->fetchArray('SELECT dir FROM co_tipidocumento INNER JOIN co_documenti ON co_tipidocumento.id=co_documenti.idtipodocumento WHERE co_documenti.id='.prepare($rs_doc[$i]['iddocumento']));
$modulo = ($rs[0]['dir'] == 'entrata') ? 'Fatture di vendita' : 'Fatture di acquisto'; ?>
<li><a href="<?php echo base_path(); ?>/editor.php?id_module=<?php echo Modules::get($modulo)['id']; ?>&id_record=<?php echo $rs_doc[$i]['iddocumento']; ?>" class="dropdown-item"><?php echo tr('Vai alla fattura n. '.$rs_doc[$i]['numero']); ?></a></li>
<li><a href="<?php echo base_path(); ?>/editor.php?id_module=<?php echo Modules::get($modulo)['id']; ?>&id_record=<?php echo $rs_doc[$i]['iddocumento']; ?>" class="dropdown-item"><i class="fa fa-chevron-left"></i> <?php echo tr('Vai alla fattura n. '.$rs_doc[$i]['numero']); ?></a></li>
<?php
} ?>
</ul>