Beispiel #1
0
    } else {
        $saldo = "-" . formatEuro($a_row["Uscite"]);
    }
    print "<tr>";
    $href = "Admin_Upd_Movimento.php?ID_Movimento=";
    //print "<td class=\"FacetDataTD\"><a href=\"$href".$a_row["ID_Movimento"]."\">".formatDate($a_row["Data_Valuta"])."</a> &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . $a_row["ID_Movimento"] . " &nbsp;</td>";
    print "<td class=\"FacetDataTD\" valign=\"center\"><a href=\"{$href}" . $a_row["ID_Movimento"] . "\">" . $a_row["Data_Valuta"] . "</a> &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . $a_row["Data_Competenza"] . " &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . $a_row["Anno_Bilancio"] . " &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . $a_row["Tipo_Pagamento"] . " &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . $a_row["Cognome"] . " " . $a_row["Nome"] . " " . $a_row["Ragione_Sociale"] . " &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . $a_row["voce"] . " &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . $a_row["Descrizione"] . " &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . formatEuro($a_row["Entrate"]) . " &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . formatEuro($a_row["Uscite"]) . " &nbsp;</td>";
    print "<td class=\"FacetDataTD\">" . $banca['Banca'] . " &nbsp;</td>";
    if ($saldo <= 0) {
        $color = "Red";
    } else {
        $color = "";
    }
    print "<td class=\"FacetDataTD\" style=\"color: {$color};\">" . $saldo . "</td>";
    print "<td class=\"FacetDataTD\"><a href=\"Admin_Del_Movimento.php?ID_Movimento=" . $a_row["ID_Movimento"] . "\"><img src=\"images/x.gif\" alt=\"Cancella\" border=\"0\"></a></td>";
    print "</tr>";
}
?>

</table></body></html>

 align="right">
 <tr>
	<td>Totale Imponibile</td><td align="right">&#128; <?php 
print $form['Imponibile'];
?>
</td>
 </tr>		
 <tr>
	<td >Totale IVA</td><td align="right">&#128; <?php 
print $form['Iva'];
?>
</td>
 </tr>		
 <tr>
	<td>Totale </td><td align="right">&#128; <?php 
print formatEuro($nota['Totale']);
?>
</td>
 </tr>		
</table>
<!-- fine corpo fattura -->
<br><br><br><br><br><br>
<table cellpadding="10" border=<?php 
echo $border;
?>
>

	<tr>

		<td>
            $saldo_cliente[$a_row['ID_Cliente']] = $saldo_cliente[$a_row['ID_Cliente']] - $a_row['Entrate'] + $a_row['Uscite'];
        }
    }
    if (!empty($a_row['ID_Fornitore'])) {
        // $monte_fornitore[$a_row['ID_Fornitore']] =  $monte_fornitore[$a_row['ID_Fornitore']]  + $a_row['Entrate'] - $a_row['Uscite'];
        $saldo_fornitore[$a_row['ID_Fornitore']] = $saldo_fornitore[$a_row['ID_Fornitore']] - $a_row['Entrate'] + $a_row['Uscite'];
    }
}
// stampo i totali entrate e uscite
print "<tr>";
print "</tr>";
print "<tr>";
print "<td colspan=\"4\" align=\"right\" class=\"FacetDataTD\"> TOTALI  &nbsp;</td>";
print "<td class=\"FacetDataTD\">" . formatEuro($entrate) . " &nbsp;</td>";
print "<td class=\"FacetDataTD\">" . formatEuro($uscite) . " &nbsp;</td>";
print "<td class=\"FacetDataTD\">" . formatEuro($entrate - $uscite) . " &nbsp;</td>";
print "</tr>";
?>

 </table>







</body>

</html>
 align="right">
 <tr>
	<td>Totale Imponibile</td><td align="right">&#128; <?php 
print $form['Imponibile'];
?>
</td>
 </tr>		
 <tr>
	<td >Totale IVA</td><td align="right">&#128; <?php 
print $form['Iva'];
?>
</td>
 </tr>		
 <tr>
	<td>Totale Fattura</td><td align="right">&#128; <?php 
print formatEuro($fattura['Totale']);
?>
</td>
 </tr>		
</table>
<!-- fine corpo fattura -->
<br><br><br><br><br><br>
<table cellpadding="10" width="100%" border=<?php 
echo $border;
?>
>
	<tr>
		<td>Scadenza Fattura: <?php 
print formatDate($fattura['Scadenza']);
?>
</td>