| 1 |
lars |
1 |
<?
|
|
|
2 |
$self=basename($PHP_SELF);
|
|
|
3 |
$DB="artikel";
|
|
|
4 |
define ("modul_name", "online_shop");
|
|
|
5 |
define ("tool_name", "optionen");
|
|
|
6 |
require_once "connect2.php";
|
|
|
7 |
|
|
|
8 |
// SEBASTIAN
|
|
|
9 |
// verwendungsfilter
|
|
|
10 |
if (isset($_GET[modul])) {
|
|
|
11 |
$_SESSION[$self][verwendung] = "$_GET[modul]";
|
|
|
12 |
}
|
|
|
13 |
// prüfen, ob die spalte verwendung existiert
|
|
|
14 |
if (!isset($_SESSION[$self][spalte_verwendung_existiert])) {
|
|
|
15 |
$query = "show columns from Features like 'verwendung'";
|
|
|
16 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query."<hr>");
|
|
|
17 |
$_SESSION[$self][spalte_verwendung_existiert] = (mysql_num_rows($result) > 0);
|
|
|
18 |
}
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
if ($web_rechte[modul_name][tool_name][button_type])
|
|
|
23 |
{
|
|
|
24 |
$button_type = $web_rechte[modul_name][tool_name][button_type];
|
|
|
25 |
}
|
|
|
26 |
else
|
|
|
27 |
{
|
|
|
28 |
$button_type = "checkbox";
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
$zeile=mysql_fetch_array(mysql_query ("select * from Features where ID=$Feature"));
|
|
|
32 |
if ($zeile[Einzeloption]) {$button_type = "radio";}
|
|
|
33 |
unset($zeile);
|
|
|
34 |
|
|
|
35 |
if ($update)
|
|
|
36 |
{
|
|
|
37 |
$Feature_option=0;
|
|
|
38 |
if ($bit)
|
|
|
39 |
{
|
|
|
40 |
foreach($bit as $elem)
|
|
|
41 |
{
|
|
|
42 |
$Feature_option = $Feature_option | $elem;
|
|
|
43 |
}
|
|
|
44 |
}
|
|
|
45 |
$query="update Feature_to_Ware set Feature_options=$Feature_option where Feature=$Feature and Ware=$ID";
|
|
|
46 |
// SEBASTIAN
|
|
|
47 |
if ($_SESSION[$self][verwendung] == "Branchenbuch") {
|
|
|
48 |
$query="update Feature_to_Firma set Feature_options=$Feature_option where Feature=$Feature and Firma=$ID";
|
|
|
49 |
}
|
|
|
50 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
|
|
|
51 |
$bit=$Feature_option;
|
|
|
52 |
}
|
|
|
53 |
else
|
|
|
54 |
{
|
|
|
55 |
$query = "SELECT * FROM Feature_to_Ware where Feature=$Feature and Ware=$ID";
|
|
|
56 |
// SEBASTIAN
|
|
|
57 |
if ($_SESSION[$self][verwendung] == "Branchenbuch") {
|
|
|
58 |
$query = "SELECT * FROM Feature_to_Firma where Feature=$Feature and Firma=$ID";
|
|
|
59 |
}
|
|
|
60 |
$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());
|
|
|
61 |
$zeile=mysql_fetch_array($result);
|
|
|
62 |
$bit=$zeile[Feature_options];
|
|
|
63 |
unset($result);
|
|
|
64 |
unset($zeile);
|
|
|
65 |
}
|
|
|
66 |
?>
|
|
|
67 |
<html>
|
|
|
68 |
<head>
|
|
|
69 |
<title><? echo $webs[kunde_bezeichnung] ?>: Redaktionssystem</title>
|
|
|
70 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
71 |
<meta name="author" content="Webagentur Niewerth - www.weban.de">
|
|
|
72 |
<meta name="revisit-after" content="30 days">
|
|
|
73 |
<meta name="language" content="deutsch, de">
|
|
|
74 |
<meta name="distribution" content="global">
|
|
|
75 |
<meta name="robots" content="all">
|
|
|
76 |
<link rel=stylesheet type="text/css" href="redaktion.css">
|
|
|
77 |
<style type="text/css"><MM:BeginLock translatorClass="MM_SSI" type="ssi" orig="%3C? require_once %22redaktion.css%22; ?%3E" fileRef="redaktion.css" depFiles="file:///L|/content-management/Online-Shop/redaktion.css">A:link {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000}
|
|
|
78 |
A:visited {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #333333}
|
|
|
79 |
A:active {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #CC0000}
|
|
|
80 |
A:hover {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #669933}
|
|
|
81 |
p {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000096}
|
|
|
82 |
p.error {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000; font-weight: bold}
|
|
|
83 |
span {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
|
|
84 |
span.blue {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#0000A0; font-size: 10pt}
|
|
|
85 |
span.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none}
|
|
|
86 |
td {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
|
|
87 |
td.timeout {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FF0000;}
|
|
|
88 |
td.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
|
|
|
89 |
td.headline {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FFFFFF; font-weight: bold}
|
|
|
90 |
td.haupt {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold}
|
|
|
91 |
td.selectet_language {border: 1px outset; border-color: #CCCCCC #999999 #999999 #CCCCCC}
|
|
|
92 |
input {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
|
|
|
93 |
select {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
|
|
|
94 |
textarea {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}.button { border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; cursor: auto; width: 100%}
|
|
|
95 |
</style><MM:EndLock></style>
|
|
|
96 |
</head>
|
|
|
97 |
|
|
|
98 |
<body bgcolor="#<? echo $webs[bgcolor_rechts] ?>" text="#<? echo $webs[font_color_rechts] ?>" leftmargin="0" topmargin="0">
|
|
|
99 |
<form>
|
|
|
100 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
101 |
<?
|
|
|
102 |
$result = mysql_query ("SELECT * FROM Feature_options where Feature = $Feature order by bit") or die (mysql_errno().": ".mysql_error());
|
|
|
103 |
while($zeile=mysql_fetch_array($result))
|
|
|
104 |
{
|
|
|
105 |
?>
|
|
|
106 |
<tr>
|
|
|
107 |
<td align="center" valign="middle">
|
|
|
108 |
|
|
|
109 |
<input type="<? echo $button_type ?>" name="bit[]" onClick="this.blur();this.focus();" onChange="this.form.submit()" value="<? echo (1 << $zeile[bit]) ?>" <? if ($bit & (1 << $zeile[bit])) {echo " checked";} ?>>
|
|
|
110 |
</td>
|
|
|
111 |
<td width="100%">
|
|
|
112 |
<? echo $zeile[Value] ?>
|
|
|
113 |
</td>
|
|
|
114 |
</tr>
|
|
|
115 |
<?
|
|
|
116 |
}
|
|
|
117 |
?>
|
|
|
118 |
</table>
|
|
|
119 |
<input type="hidden" name="update" value="true">
|
|
|
120 |
<input type="hidden" name="ID" value="<? echo $ID ?>">
|
|
|
121 |
<input type="hidden" name="Feature" value="<? echo $Feature ?>">
|
|
|
122 |
</form>
|
|
|
123 |
</body>
|
|
|
124 |
</html>
|