<?
include("dblib.inc");
include("clublib.inc");
checkAdmin();
$message = "";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Gestione Magazzino</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body bgcolor="#FFFFFF" link="#504C43" alink="#000000" vlink="#504C43" text="#000000">
<?
include("Header.php");
echo "<p align=center class=style5>Gestione quantitá articoli magazzino e modifica prezzo</p>
<p align=center>Per inserirne nuovi Articoli/Cataloghi <a href=\"Admin_tabcatalg.php\">clicca qui.</a></p>";
include ("config18.php");
mysql_connect("$hhost","$login","$pass") or die ("Problem connecting to DataBase");
$query = "SELECT * FROM $connect ";
$result = mysql_db_query("$dbname", $query);
if ($result) {
while ($r = mysql_fetch_array($result)) {
$imgpicc = $r["imgpicc"];
$imggra = $r["imggra"];
$quant = $r["quant"];
$oggnom = $r["oggnom"];
$prezog = $r["prezog"];
$periva = $r["periva"];
$descrogg = $r["descrogg"];
echo "<form method=post action=Admin_aggmagaz.php>
<table width=90% height=130 border=1 align=center cellpadding=1 cellspacing=0>
<td width=150 >$oggnom<input type=hidden name=oggnom value=$oggnom ><a href=\"/#\" onclick=\"window.open('$imggra','clock','scrollbars=yes,width=300,height=300,left='+(screen.availWidth/2-150)+',top='+(screen.availHeight/2-150)+'');return false;\"><img style=\"width: 150px; height: 112px\" height=112 src=$imgpicc width=150 border=0 /></a></td>
<td width=129 ><p>Disp. $quant <input type=hidden name=quant value=$quant ></p></td>
<td width=180 ><input type=text name=aggquant value=0 maxlength=6 size=6>Agg. Magaz.</td>
<td width=200 ><input type=text name=prezog value=$prezog maxlength=6 size=6 >iva esc. </td>
<input type=hidden name=connect value=$connect>
<input type=hidden name=oggnom value=$oggnom>
<td width=71 colspan=2 align=right nowrap >
<!-- BEGIN Button Insert --><input name=Insert type=submit value=Aggiorna ><!-- END Button Insert -->
</td>
</table>
</form>";
}
}
?>
</body>
</html>