| 1 |
lars |
1 |
<?
|
|
|
2 |
$self=basename($PHP_SELF);
|
|
|
3 |
$DB="artikel";
|
|
|
4 |
define ("modul_name", "online_shop");
|
|
|
5 |
define ("tool_name", "artikel");
|
|
|
6 |
require_once "connect2.php";
|
|
|
7 |
|
|
|
8 |
session_start();
|
|
|
9 |
if (!$language) {$language="DE";}
|
|
|
10 |
|
|
|
11 |
// $charset laden um die jeweiligen ISO-Zeichensätzte zu laden.
|
|
|
12 |
require_once "charset.php";
|
|
|
13 |
|
|
|
14 |
if ($action == remove)
|
|
|
15 |
{
|
|
|
16 |
$result = mysql_query ("delete from shop_link_table where Father = $Father and ID = $ID and Verwendung = '$Verwendung'") or die (mysql_errno().": ".mysql_error());
|
|
|
17 |
?>
|
|
|
18 |
<script language="Javascript">
|
|
|
19 |
with (opener.parent.tree.location)
|
|
|
20 |
{
|
|
|
21 |
href=href+hash;
|
|
|
22 |
}
|
|
|
23 |
window.close();
|
|
|
24 |
</script><?
|
|
|
25 |
}
|
|
|
26 |
?>
|
|
|
27 |
<html>
|
|
|
28 |
<head>
|
|
|
29 |
<title>remove</title>
|
|
|
30 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
31 |
<link rel="stylesheet" href="redaktion.css" type="text/css">
|
|
|
32 |
</head>
|
|
|
33 |
|
|
|
34 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
|
|
35 |
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
|
36 |
<?
|
|
|
37 |
// Zubehör auf deutsch holen
|
|
|
38 |
$result_zubehoer = mysql_query ("SELECT * FROM artikel,shop_link_table where shop_link_table.Father = $Father[ID] and artikel.ID = shop_link_table.ID and Language='DE' order by Kennung") or die (mysql_errno().": ".mysql_error());
|
|
|
39 |
$zubehoer_count = mysql_num_rows($result_zubehoer);
|
|
|
40 |
|
|
|
41 |
while ($zeile_zubehoer = mysql_fetch_array($result_zubehoer))
|
|
|
42 |
{
|
|
|
43 |
if ($language != "DE")
|
|
|
44 |
{
|
|
|
45 |
$query_zubehoer_language="SELECT * FROM artikel where ID = $zeile_zubehoer[ID] and shop_link_table.Father = $Father[ID] and artikel.ID = shop_link_table.ID and Language = '$language'";
|
|
|
46 |
$result_zubehoer_language = mysql_query ($query_zubehoer_language) or die (mysql_errno().": ".mysql_error()."<hr>$query_zubehoer_language<hr>");
|
|
|
47 |
if (mysql_num_rows($result_zubehoer_language) > 0)
|
|
|
48 |
{
|
|
|
49 |
$zeile_zubehoer=mysql_fetch_array($result_zubehoer_language);
|
|
|
50 |
}
|
|
|
51 |
}
|
|
|
52 |
if ($bgcolor == "#EEEEEE") {$bgcolor = "#FFFFFF";} else {$bgcolor = "#EEEEEE";}
|
|
|
53 |
?>
|
|
|
54 |
<tr>
|
|
|
55 |
<td width="100%" bgcolor="<? echo $bgcolor ?>" valign="middle" ><a href="<? echo $self ?>?action=remove&Verwendung=<? echo $zeile_zubehoer[Verwendung] ?>&Father=<? echo $zeile_zubehoer[Father] ?>&ID=<? echo $zeile_zubehoer[ID] ?>" onClick="return confirm('Möchten Sie diese Verbindung wirklich lösen ?')"><img src="../editor/images/delete.gif" border="0"></a>
|
|
|
56 |
<? if (substr($zeile_zubehoer[Verwendung],0,1) == 'a') { ?>
|
|
|
57 |
<img src="../images/Online-Shop/directory/file.gif">
|
|
|
58 |
<? } else { ?>
|
|
|
59 |
<img src="../images/Online-Shop/directory/ordner.gif">
|
|
|
60 |
<? } ?>
|
|
|
61 |
<? if ($zeile_zubehoer[kurzbezeichnung]) {echo $zeile_zubehoer[kurzbezeichnung];} else {echo $zeile_zubehoer[kennung];} ?>
|
|
|
62 |
</td>
|
|
|
63 |
</tr>
|
|
|
64 |
<?
|
|
|
65 |
} // end of zubehör
|
|
|
66 |
?>
|
|
|
67 |
</table>
|
|
|
68 |
</body>
|
|
|
69 |
</html>
|