| 1 |
lars |
1 |
<?php
|
|
|
2 |
require_once "connect2.php";
|
|
|
3 |
session_start();
|
|
|
4 |
|
|
|
5 |
if (!$language) {$language="DE";}
|
|
|
6 |
|
|
|
7 |
if ($_POST['Ware'] && $_POST['ID'])
|
|
|
8 |
{
|
|
|
9 |
$sql = "SELECT * FROM `Feature_to_Ware` WHERE `Ware` = ".$_POST['ID'];
|
|
|
10 |
$result = mysql_query ($sql) or die (mysql_errno().": ".mysql_error()."<hr>".$sql);
|
|
|
11 |
echo "Kopiere Feature von ".$_POST['ID']." auf ".$_POST['Ware']."<br>";
|
|
|
12 |
while ($zeile = mysql_fetch_assoc($result)) {
|
|
|
13 |
$sql1 = "INSERT INTO `Feature_to_Ware` ( `Ware` , `Feature` , `Feature_options` ) VALUES (".$_POST['Ware'].", '".$zeile['Feature']."', '".$zeile['Feature_options']."')";
|
|
|
14 |
$result1 = mysql_query ($sql1) or print (mysql_errno().": ".mysql_error()."<hr>".$sql1);
|
|
|
15 |
}
|
|
|
16 |
} else {
|
|
|
17 |
$message = "<hr>Bitte eine ID eingeben, auf die, die Optionen kopiert werden sollen!<hr>";
|
|
|
18 |
}
|
|
|
19 |
?>
|
|
|
20 |
|
|
|
21 |
<html>
|
|
|
22 |
<head>
|
|
|
23 |
<title>Redaktionssystem</title>
|
|
|
24 |
<link rel=stylesheet type="text/css" href="redaktion.css">
|
|
|
25 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
|
|
|
26 |
<!--
|
|
|
27 |
body {
|
|
|
28 |
margin-left: 3px;
|
|
|
29 |
margin-top: 3px;
|
|
|
30 |
margin-right: 3px;
|
|
|
31 |
margin-bottom: 3px;
|
|
|
32 |
font-family:Verdana, Arial, Helvetica, sans-serif;
|
|
|
33 |
font-size: x-small
|
|
|
34 |
}
|
|
|
35 |
.Stil1 {
|
|
|
36 |
font-size: 9pt;
|
|
|
37 |
background-color: #FFFFFF;
|
|
|
38 |
border: 1px solid #000000;
|
|
|
39 |
}
|
|
|
40 |
-->
|
|
|
41 |
</style>
|
|
|
42 |
</head>
|
|
|
43 |
|
|
|
44 |
<body bgcolor="#<? echo $webs[bgcolor_rechts] ?>" text="#<? echo $webs[font_color_rechts] ?>" link="#0000FF" vlink="#0000FF" alink="#0000FF">
|
|
|
45 |
<br>
|
|
|
46 |
<?= $message ?><br>
|
|
|
47 |
|
|
|
48 |
<form action="<?= $self ?>?ID=<? echo $_GET['ID'] ?>" method="POST">
|
|
|
49 |
<p><span class="Stil1"> Ware: </span>
|
|
|
50 |
<br>
|
|
|
51 |
<input name="Ware" type="text" size="10" maxlength="10" style="border: 1px solid #000000; margin-top: 2px;">
|
|
|
52 |
</p>
|
|
|
53 |
<p>
|
|
|
54 |
<input name="ID" type="hidden" id="ID" value="<? echo $_GET['ID'] ?>">
|
|
|
55 |
</p>
|
|
|
56 |
<p>
|
|
|
57 |
<input type="submit" name="Submit" value="Abschicken">
|
|
|
58 |
</p>
|
|
|
59 |
</form>
|
|
|
60 |
</body>
|
|
|
61 |
</html>
|
|
|
62 |
|