| 1 |
lars |
1 |
<?
|
|
|
2 |
require_once "../Online-Shop/connect2.php";
|
|
|
3 |
?>
|
|
|
4 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
5 |
<html>
|
|
|
6 |
<head>
|
|
|
7 |
<title>Unbenanntes Dokument</title>
|
|
|
8 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
9 |
</head>
|
|
|
10 |
<script language=javascript>
|
|
|
11 |
window.resizeTo(500, 500);
|
|
|
12 |
window.menubar.visible = false;
|
|
|
13 |
window.locationbar.visible = false;
|
|
|
14 |
</script>
|
|
|
15 |
<body>
|
|
|
16 |
<?
|
|
|
17 |
// database vom shop holen
|
|
|
18 |
$query = "select shops.database from shops where ID = " . $_GET['shop'];
|
|
|
19 |
|
|
|
20 |
$result = mysql_query($query);
|
|
|
21 |
$r = mysql_fetch_array($result);
|
|
|
22 |
$database = $r['database'];
|
|
|
23 |
// artikel holen
|
|
|
24 |
$query = "select ID, kurzbezeichnung, preis1 from $database.artikel where ID = " .$_GET['ID'];
|
|
|
25 |
$result = mysql_query($query);
|
|
|
26 |
$r = mysql_fetch_array($result);
|
|
|
27 |
$artikel_ID = $r['ID'];
|
|
|
28 |
$artikel_kurzbezeichnung = $r['kurzbezeichnung'];
|
|
|
29 |
$artikel_preis = $r['preis1'];
|
|
|
30 |
// options holen
|
|
|
31 |
$options = getOptions($artikel_ID);
|
|
|
32 |
// ausgabe
|
|
|
33 |
echo '<b>' . $artikel_kurzbezeichnung . '</b><br><br>';
|
|
|
34 |
echo 'Optionen:<br><br>';
|
|
|
35 |
echo '<form method="post" action="best_manu.php" onSubmit="window.setTimeout(\'this.close()\',10);" name="form_options" target="tool"><table>';
|
|
|
36 |
foreach($options as $key => $value) {
|
|
|
37 |
// für jede option des artikels
|
|
|
38 |
echo '<tr><td>' . $key . '</td><td>' . $value['featureName'] . '</td><td>';
|
|
|
39 |
echo '<select name="' . $key . '">';
|
|
|
40 |
foreach($options[$key]['options'] as $key2 => $value2) {
|
|
|
41 |
// für jeden wert der option
|
|
|
42 |
echo '<option value="' . $value2['optionName'] . '">' . $value2['optionName'] . '</option>';
|
|
|
43 |
}
|
|
|
44 |
echo '</select>';
|
|
|
45 |
echo '</td></tr>';
|
|
|
46 |
}
|
|
|
47 |
echo '</table>';
|
|
|
48 |
echo '<br><input type="hidden" name="ID" value="' . $artikel_ID . '" />
|
|
|
49 |
<input type="hidden" name="preis" value="' . $artikel_preis . '" />
|
|
|
50 |
<input type="hidden" name="kurzbezeichnung" value="' . $artikel_kurzbezeichnung . '" />
|
|
|
51 |
<input type="submit" name="submit_options" value="Änderung übernehmen" /></form>';
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
?>
|
|
|
56 |
|
|
|
57 |
</body>
|
|
|
58 |
</html>
|