Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php
        require_once "connect2.php";
        session_start();
        
        if (!$language) {$language="DE";}
        
        if ($_POST['Ware'] && $_POST['ID']) 
        {
                $sql  =  "SELECT * FROM `Feature_to_Ware` WHERE `Ware` = ".$_POST['ID'];
                $result = mysql_query ($sql) or die (mysql_errno().": ".mysql_error()."<hr>".$sql);
                echo "Kopiere Feature von ".$_POST['ID']." auf ".$_POST['Ware']."<br>";
                while ($zeile  = mysql_fetch_assoc($result)) {
                        $sql1 = "INSERT INTO `Feature_to_Ware` ( `Ware` , `Feature` , `Feature_options` ) VALUES (".$_POST['Ware'].", '".$zeile['Feature']."', '".$zeile['Feature_options']."')";
                        $result1 = mysql_query ($sql1) or print (mysql_errno().": ".mysql_error()."<hr>".$sql1);
                }
        } else {
                $message = "<hr>Bitte eine ID eingeben, auf die, die Optionen kopiert werden sollen!<hr>";
        }
?>

<html>
<head>
<title>Redaktionssystem</title>
<link rel=stylesheet type="text/css" href="redaktion.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body {
        margin-left: 3px;
        margin-top: 3px;
        margin-right: 3px;
        margin-bottom: 3px;
        font-family:Verdana, Arial, Helvetica, sans-serif;
        font-size: x-small
}
.Stil1 {
        font-size: 9pt;
        background-color: #FFFFFF;
        border: 1px solid #000000;
}
-->
</style>
</head>

<body bgcolor="#<? echo $webs[bgcolor_rechts] ?>" text="#<? echo $webs[font_color_rechts] ?>" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<br>
<?= $message ?><br>

<form action="<?= $self ?>?ID=<? echo $_GET['ID'] ?>" method="POST">
<p><span class="Stil1">&nbsp;Ware:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<br>
  <input name="Ware" type="text" size="10" maxlength="10" style="border: 1px solid #000000; margin-top: 2px;">
</p>
<p>
  <input name="ID" type="hidden" id="ID" value="<? echo $_GET['ID'] ?>">
</p>
<p>
  <input type="submit" name="Submit" value="Abschicken"> 
  </p>
</form>
</body>
</html>