Current Path : /web/htdocs/www.entinoprofit.org/home/database/cofapi/
Upload File :
Current File : /web/htdocs/www.entinoprofit.org/home/database/cofapi/Admin_Note.php

<?php


include("dblib.inc");



include("clublib.inc");



checkAdmin();



$message = "";



?>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">



<html>

<head>

<?php 


include("Header.php"); 

include("venditanav.php");
echo "<p><br></p>";
include("venditafunz.php");

?>


<p><div align="center"><font class="FacetFormHeaderFont">Note Credito Emesse</font>&nbsp;&nbsp; <a href="noteCreditoReport.php" alt="Stampa"><img src="images/printer.gif" border="0"></a></div>


<?php

$recordnav = new recordnav($credit_notes_table, "Data_Nota like '%".$_SESSION['anno_ref']."%'", $_SESSION['limit'], $_SESSION['passo']);

$recordnav -> output();

?>

<table border="0" cellpadding="3" cellspacing="1" class="FacetFormTABLE" align="center">



  <!-- BEGIN Error -->



   <tr>



    <td colspan="4" class="FacetDataTD"><?php print $message ?></td></tr>



   <tr>

<?php

	$headers_note = array(

		"N. Nota" => "ID_Nota",

		"Cliente" => "Ragione_Sociale",

		"Data Nota" => "Data_Nota",

		"Iva" => "Iva",

		"Totale" => "Totale",

		"Stampa" => ""

		);

	$headerNote = new linkHeaders($headers_note);

	$headerNote -> output();	

?>

 

   </tr>



<?php





$result = dynQuery('*' ,$credit_notes_table, "Data_Nota like '%".$_SESSION['anno_ref']."%'", $orderby, $_SESSION['limit'], $_SESSION['passo']);





while ($a_row = dbms_fetch_array($result))



	{

	

	print "<tr>";



	print "<td class=\"FacetDataTD\"><a href=\"Admin_Upd_Nota.php?ID_Nota=".$a_row['ID_Nota']."\">".$a_row["Prog_Nota_Annuo"]."</a> &nbsp;</td>";

	print "<td class=\"FacetDataTD\">".$a_row["Ragione_Sociale"]." &nbsp;</td>

	<td class=\"FacetDataTD\">".formatDate($a_row["Data_Nota"])." &nbsp;</td>

	<td class=\"FacetDataTD\">".$a_row['Iva']."% &nbsp;</td>

	<td class=\"FacetDataTD\">".$a_row['Totale'] ."&nbsp;</td>";

	print "<td class=\"FacetDataTD\" align='center'><a href=\"#\" onClick=\"window.open('Admin_Stampa_Nota.php?ID_Nota=".$a_row['ID_Nota']."','miaFinestra','width=500,height=700 ,toolbar=no, location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');\"><img src='images/print.gif' border='0'></a> &nbsp;</td>";



	print "</tr>";



	}   



   ?>



 </table>





<?php include ("footer.php");?>

</body>



</html>