<?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 </th><th class="FacetFieldCaptionTD">Indirizzo </th>
<th class="FacetFieldCaptionTD">Agenzia </th><th class="FacetFieldCaptionTD">CIN </th><th class="FacetFieldCaptionTD">Abi </th><th class="FacetFieldCaptionTD">Cab </th><th class="FacetFieldCaptionTD">Numero Conto </th>
<th class="FacetFieldCaptionTD">Movimenti </th> <th class="FacetFieldCaptionTD">Cancella </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"]." </td>";
else
print "<td class=\"FacetDataTD\"><a href=\"Admin_Upd_Banca.php?ID_Banca=".$a_row["ID_Banca"]."\">".$a_row["Banca"]."</a> </td>";
print "<td class=\"FacetDataTD\">".$a_row["Indirizzo"]." </td><td class=\"FacetDataTD\">".$a_row["Agenzia"]." </td>\n";
print "<td class=\"FacetDataTD\">".$a_row["iban"]." </td>\n";
//<td class=\"FacetDataTD\">".$a_row["Abi"]." </td><td class=\"FacetDataTD\">".$a_row["Cab"]." </td><td class=\"FacetDataTD\">".$a_row["Conto"]." </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\"> </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>