<?
include("dblib.inc");
include("clublib.inc");
checkAdmin();
$message = "";
if (isset($actionflag))
{
// controllo che abbia selezionato un cliente
if (!isset($ID_Fornitore) || $ID_Fornitore == "")
{
$message = "Devi selezionare il Fornitore !";
}
if (isset ($ID_Fornitore) && !($ID_Fornitore == ""))
{
// trasformo il parametro ID_Fornitore in var di sessione
$session['ID_Fornitore'] = $ID_Fornitore;
header("Location: Admin_Nuova_Fattura_Fornitore.php");
exit;
}
}
$ID_Fornitore = "";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Nuova Fattura Fornitore</title>
<link rel="stylesheet" type="text/css" href="Style.css">
</head>
<body bgcolor="#FFFFFF" link="#504C43" alink="#000000" vlink="#504C43" text="#000000">
<?
include("Header.php");
?>
<form method="post" action="<? print $PHP_SELF ?>" >
<input type="Hidden" name="actionflag" value="Invia">
<div align="center"><font class="FacetFormHeaderFont">Nuova Fattura Fornitore</font></div>
<table border="0" cellpadding="3" cellspacing="1" class="FacetFormTABLE" align="center">
<tr>
<td colspan="2" class="FacetDataTD">
<?php
if (! $message == "")
{
print $message;
}
?>
</td>
</tr>
<!-- END Error -->
<tr>
<td class="FacetFieldCaptionTD">Fornitore </td>
<td class="FacetDataTD">
<?
// inserisco il select box per i fornitori
$select_fornitore = new selectFornitore("ID_Fornitore");
$select_fornitore -> addSelected($ID_Fornitore);
$select_fornitore -> output();
print $ID_Fornitore;
?>
</td>
</tr>
<td colspan="2" align="right" nowrap class="FacetFooterTD">
<!-- BEGIN Button Insert --><input name="Insert" type="submit" value="Prosegui" class="FacetButton"><!-- END Button Insert -->
</td>
</table>
</form>
</body>
</html>