This commit is contained in:
Luca 2018-04-06 17:39:56 +02:00
parent b5d437fc63
commit aaf31822fd
3 changed files with 5 additions and 4 deletions

View File

@ -68,7 +68,8 @@ if (file_exists($docroot.'/include/custom/top.php')) {
// Controllo se è una beta e in caso mostro un warning
if (str_contains($version, 'beta')) {
echo '
<div class="alert alert-warning alert-dismissable pull-right fade in">
<div class="clearfix" >&nbsp;</div>
<div class="alert alert-warning alert-dismissable col-md-6 col-md-push-3 text-center fade in">
<i class="fa fa-warning"></i> <b>'.tr('Attenzione!').'</b> '.tr('Stai utilizzando una versione <b>non stabile</b> di OSM.').'
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>

View File

@ -14,7 +14,7 @@ if (!isset($_SESSION['dashboard']['idtecnici'])) {
}
if (!isset($_SESSION['dashboard']['idstatiintervento'])) {
$rs = $dbo->fetchArray('SELECT idstatointervento AS id, descrizione FROM in_statiintervento');
$rs = $dbo->fetchArray('SELECT idstatointervento AS id, descrizione FROM in_statiintervento WHERE deleted = 0');
$_SESSION['dashboard']['idstatiintervento'] = ["'-1'"];
@ -51,7 +51,7 @@ $checks = '';
$count = 0;
$total = 0;
$rs = $dbo->fetchArray('SELECT idstatointervento AS id, descrizione, colore FROM in_statiintervento ORDER BY descrizione ASC');
$rs = $dbo->fetchArray('SELECT idstatointervento AS id, descrizione, colore FROM in_statiintervento WHERE deleted = 0 ORDER BY descrizione ASC');
$total = count($rs);
$allchecksstati = '';

View File

@ -22,7 +22,7 @@ class Prints
if (empty(self::$prints)) {
$database = Database::getConnection();
$results = $database->fetchArray('SELECT * FROM zz_prints');
$results = $database->fetchArray('SELECT * FROM zz_prints WHERE enabled = 1');
$prints = [];