mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Miglioramento della selezione principale per le notifiche
This commit is contained in:
@@ -42,6 +42,9 @@ foreach ($recepits as $nome) {
|
|||||||
$pieces = explode('_', $filename);
|
$pieces = explode('_', $filename);
|
||||||
$codice_stato = $pieces[2];
|
$codice_stato = $pieces[2];
|
||||||
|
|
||||||
|
// Informazioni sullo stato indicato
|
||||||
|
$stato_fe = $database->fetchOne('SELECT * FROM fe_stati_documento WHERE codice = '.prepare($codice_stato));
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<tr data-name="'.$nome.'">
|
<tr data-name="'.$nome.'">
|
||||||
<td>'.$nome.'</td>
|
<td>'.$nome.'</td>
|
||||||
@@ -67,10 +70,17 @@ foreach ($recepits as $nome) {
|
|||||||
</button>';
|
</button>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($upload) || $upload->id != $documento->id_ricevuta_principale) {
|
||||||
echo '
|
echo '
|
||||||
<button type="button" class="btn btn-success btn-sm" onclick="impostaRicevuta(this)">
|
<button type="button" class="btn btn-warning btn-sm" onclick="impostaRicevuta(this)">
|
||||||
<i class="fa fa-check-circle"></i>
|
<i class="fa fa-check-circle"></i>
|
||||||
</button>';
|
</button>';
|
||||||
|
} elseif ($upload->id == $documento->id_ricevuta_principale) {
|
||||||
|
echo '
|
||||||
|
<button type="button" class="btn btn-success btn-sm disabled">
|
||||||
|
<i class="fa fa-check-circle"></i>
|
||||||
|
</button>';
|
||||||
|
}
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</td>
|
</td>
|
||||||
|
Reference in New Issue
Block a user