Location: PHPKode > projects > GECO > Admin_gestmagaz.php
<?

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"); 
?>
<p align=center><a href=canccat.php>Cancella Categoria   </a> | <a href=cancartcat.php>Cancella Articoli</a></p>
<form method="post" action="Admin_gestmagartbar.php" >

<!-- flag di invio del modulo -->
<input type="Hidden" name="actionflag" value="Invia">

<div align="center"><font class="FacetFormHeaderFont">Cerca Articolo da aggiornare con Codice a Barre </font></div>

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

  <!-- BEGIN Error -->

  <tr>

    <td colspan="2" class="FacetDataTD">



	</td>

  </tr>

  <!-- END Error -->


  <tr><td>Scegli Catalogo</td>
   <td><select name="form[connect]">
  <option value="Nessuno" selected>Selezionare Prego</option>
<? include ("Admin_gestcatag.php"); ?>
   </select></td>
  </tr>
   <tr><td>Codice a barre</td>
   <td><input name="form[idart]" type="text" size="13" maxlength="13" ></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>

<?
echo "<p align=center>Articolo $oggnom aggiornato nuova quantità $tot nuovo prezzo $prezog</p>
<p align=center class=\"FacetFormHeaderFont\">Seleziona la categoria dell'articolo da aggiornare:</p>";
include ("config18.php");
echo"<table width=200 align=center  border=1 cellspacing=0 cellpadding=1>";
mysql_connect("$hhost","$login","$pass") or die ("Problem connecting to DataBase"); 
$query = "SELECT * FROM sd_cataloghi "; 
$result = mysql_db_query("$dbname", $query); 
if ($result) {
while ($r = mysql_fetch_array($result)) {
$Idcat = $r["Idcat"];
$agggr = $r["agggr"];

  
echo "<form method=\"post\" action=\"Admin_gestmagart.php\">
<input type=\"hidden\" name=\"connect\" value=\"$agggr\">

<tr><td align= center bgcolor=#D9DAE7><input name=\"submit\" type=\"submit\" value=\"$agggr\"></td></tr>

</form>";
} 
 
} 
echo"
</table>";


?>
</body>
</html>
Return current item: GECO