Current Path : /web/htdocs/www.entinoprofit.org/home/database/cofapi/
Upload File :
Current File : /web/htdocs/www.entinoprofit.org/home/database/cofapi/Admin_Banche.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("confignav.php");

?>

<p><br></p>

<p><div align="center"><font class="FacetFormHeaderFont"><a href="Admin_Nuova_Banca.php">Inserisci Nuova Banca</a></font></div>



<p><div align="center"><font class="FacetFormHeaderFont">Banche</font></div>

<?php

$recordnav = new recordnav($bank_table, $_SESSION['where'], $_SESSION['limit'], $_SESSION['passo']);

$recordnav -> output();

?>

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



  <!-- BEGIN Error -->



   <tr>



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



   <tr>


   <?php

	$headers_clienti = array(

		"Banca" => "Banca",
		"Indirizzo" => "Indirizzo",
		"Agenzia" => "Agenzia",
		"IBAN" => "IBAN",
		"Movimenti" => "",
		"Cancella" => ""
		);

	$headerFatture = new linkHeaders($headers_clienti);

	$headerFatture -> output();	

?>

   <!--<th class="FacetFieldCaptionTD">Banca &nbsp;</th><th class="FacetFieldCaptionTD">Indirizzo &nbsp;</th>
   <th class="FacetFieldCaptionTD">Agenzia &nbsp;</th><th class="FacetFieldCaptionTD">CIN &nbsp;</th><th class="FacetFieldCaptionTD">Abi &nbsp;</th><th class="FacetFieldCaptionTD">Cab &nbsp;</th><th class="FacetFieldCaptionTD">Numero Conto &nbsp;</th>
   <th class="FacetFieldCaptionTD">Movimenti &nbsp;</th>   <th class="FacetFieldCaptionTD">Cancella &nbsp;</th>-->

   </tr>



<?php





$result = dynQuery ('*', $bank_table,addslashes($_SESSION['where']), $orderby, $_SESSION['limit'], $_SESSION['passo']);



while ($a_row = dbms_fetch_array($result))



	{



	print "<tr>";


  if ($a_row["Banca"]=='Cassa')
	print "<td class=\"FacetDataTD\">".$a_row["Banca"]."&nbsp;</td>";
  else
	print "<td class=\"FacetDataTD\"><a href=\"Admin_Upd_Banca.php?ID_Banca=".$a_row["ID_Banca"]."\">".$a_row["Banca"]."</a> &nbsp;</td>";

	print "<td class=\"FacetDataTD\">".$a_row["Indirizzo"]." &nbsp;</td><td class=\"FacetDataTD\">".$a_row["Agenzia"]." &nbsp;</td>\n";
	print "<td class=\"FacetDataTD\">".$a_row["iban"]." &nbsp;</td>\n";
	//<td class=\"FacetDataTD\">".$a_row["Abi"]." &nbsp;</td><td class=\"FacetDataTD\">".$a_row["Cab"]." &nbsp;</td><td class=\"FacetDataTD\">".$a_row["Conto"]." &nbsp;</td>";

	print "<td class=\"FacetDataTD\" align='center'><a href=\"Admin_Mov_Banche.php?ID_Banca=".$a_row["ID_Banca"]."\"><img src=\"images/report.gif\" alt=\"Lista movimenti e saldo\" border=\"0\"></a></td>";
  //la 'cassa' non deve essere cancellata
  if ($a_row["Banca"]=='Cassa')
    print "<td class=\"FacetDataTD\">&nbsp;</td>";
  else
    print "<td class=\"FacetDataTD\"><a href=\"Admin_Del_Banca.php?ID_Banca=".$a_row["ID_Banca"]."\"><img src=\"images/x.gif\" alt=\"Cancella\" border=\"0\"></a></td>";

	print "</tr>";



	}   



   ?>



 </table>







</body>



</html>