Blame | Letzte Änderung | Log anzeigen | RSS feed
<?require_once "../Online-Shop/connect2.php";?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Unbenanntes Dokument</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><script language=javascript>window.resizeTo(500, 500);window.menubar.visible = false;window.locationbar.visible = false;</script><body><?// database vom shop holen$query = "select shops.database from shops where ID = " . $_GET['shop'];$result = mysql_query($query);$r = mysql_fetch_array($result);$database = $r['database'];// artikel holen$query = "select ID, kurzbezeichnung, preis1 from $database.artikel where ID = " .$_GET['ID'];$result = mysql_query($query);$r = mysql_fetch_array($result);$artikel_ID = $r['ID'];$artikel_kurzbezeichnung = $r['kurzbezeichnung'];$artikel_preis = $r['preis1'];// options holen$options = getOptions($artikel_ID);// ausgabeecho '<b>' . $artikel_kurzbezeichnung . '</b><br><br>';echo 'Optionen:<br><br>';echo '<form method="post" action="best_manu.php" onSubmit="window.setTimeout(\'this.close()\',10);" name="form_options" target="tool"><table>';foreach($options as $key => $value) {// für jede option des artikelsecho '<tr><td>' . $key . '</td><td>' . $value['featureName'] . '</td><td>';echo '<select name="' . $key . '">';foreach($options[$key]['options'] as $key2 => $value2) {// für jeden wert der optionecho '<option value="' . $value2['optionName'] . '">' . $value2['optionName'] . '</option>';}echo '</select>';echo '</td></tr>';}echo '</table>';echo '<br><input type="hidden" name="ID" value="' . $artikel_ID . '" /><input type="hidden" name="preis" value="' . $artikel_preis . '" /><input type="hidden" name="kurzbezeichnung" value="' . $artikel_kurzbezeichnung . '" /><input type="submit" name="submit_options" value="Änderung übernehmen" /></form>';?></body></html>