?> <label class="err"> assistenze attualmente in corso.</label> </th> </tr> <tr><th colspan="5"><br /></th></tr> <tr> <th>Rag. Sociale:</th> <th>Inizio:</th> <th>Trascorsi:</th> <th>Utente:</th> <th></th> </tr> <tr><th colspan="5"><hr /></th></tr> <?php foreach ($InCorso as $key => $field) { $inizio = Inverti_DataTime($field['inizio']); $diff = DateTimeDiff($field['inizio'], date("Y-m-d H:i:s")); ?> <tr> <td><?php echo $field['ragione_sociale']; ?> </td> <td><?php echo $inizio; ?> </td> <td><label class="err"><?php echo $diff, " ore"; ?> </label></td>
<th>Data:</th> <th>Totale:</th> <th>Cliente:</th> <th>Utente:</th> <th></th> <th></th> <th></th> <th></th> </tr> <tr><th colspan="8"><hr /></th></tr> <?php foreach ($Offerte as $key => $field) { ?> <tr> <td><?php echo Inverti_DataTime($field['data']); ?> </td> <td><?php echo $field['tot']; ?> </td> <td> <?php if ($field['id_cliente'] == 0) { echo "-"; } else { $anag = GetRows("tab_anagrafica", "id_anag = '" . $field['id_cliente'] . "'", "", $db); echo $anag[0]['ragione_sociale']; } ?>