Blame | Letzte Änderung | Log anzeigen | RSS feed
<?$self=basename($PHP_SELF);$DB="artikel";define ("modul_name", "online_shop");define ("tool_name", "optionen");require_once "connect2.php";// SEBASTIAN// verwendungsfilterif (isset($_GET[modul])) {$_SESSION[$self][verwendung] = "$_GET[modul]";}// prüfen, ob die spalte verwendung existiertif (!isset($_SESSION[$self][spalte_verwendung_existiert])) {$query = "show columns from Features like 'verwendung'";$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query."<hr>");$_SESSION[$self][spalte_verwendung_existiert] = (mysql_num_rows($result) > 0);}if ($web_rechte[modul_name][tool_name][button_type]){$button_type = $web_rechte[modul_name][tool_name][button_type];}else{$button_type = "checkbox";}$zeile=mysql_fetch_array(mysql_query ("select * from Features where ID=$Feature"));if ($zeile[Einzeloption]) {$button_type = "radio";}unset($zeile);if ($update){$Feature_option=0;if ($bit){foreach($bit as $elem){$Feature_option = $Feature_option | $elem;}}$query="update Feature_to_Ware set Feature_options=$Feature_option where Feature=$Feature and Ware=$ID";// SEBASTIANif ($_SESSION[$self][verwendung] == "Branchenbuch") {$query="update Feature_to_Firma set Feature_options=$Feature_option where Feature=$Feature and Firma=$ID";}$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());$bit=$Feature_option;}else{$query = "SELECT * FROM Feature_to_Ware where Feature=$Feature and Ware=$ID";// SEBASTIANif ($_SESSION[$self][verwendung] == "Branchenbuch") {$query = "SELECT * FROM Feature_to_Firma where Feature=$Feature and Firma=$ID";}$result = mysql_query ($query) or die (mysql_errno().": ".mysql_error());$zeile=mysql_fetch_array($result);$bit=$zeile[Feature_options];unset($result);unset($zeile);}?><html><head><title><? echo $webs[kunde_bezeichnung] ?>: Redaktionssystem</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta name="author" content="Webagentur Niewerth - www.weban.de"><meta name="revisit-after" content="30 days"><meta name="language" content="deutsch, de"><meta name="distribution" content="global"><meta name="robots" content="all"><link rel=stylesheet type="text/css" href="redaktion.css"><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}A:visited {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #333333}A:active {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #CC0000}A:hover {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #669933}p {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000096}p.error {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000; font-weight: bold}span {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}span.blue {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#0000A0; font-size: 10pt}span.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none}td {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}td.timeout {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FF0000;}td.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}td.headline {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FFFFFF; font-weight: bold}td.haupt {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold}td.selectet_language {border: 1px outset; border-color: #CCCCCC #999999 #999999 #CCCCCC}input {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}select {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}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%}</style><MM:EndLock></style></head><body bgcolor="#<? echo $webs[bgcolor_rechts] ?>" text="#<? echo $webs[font_color_rechts] ?>" leftmargin="0" topmargin="0"><form><table width="100%" border="0" cellspacing="0" cellpadding="0"><?$result = mysql_query ("SELECT * FROM Feature_options where Feature = $Feature order by bit") or die (mysql_errno().": ".mysql_error());while($zeile=mysql_fetch_array($result)){?><tr><td align="center" valign="middle"><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";} ?>></td><td width="100%"><? echo $zeile[Value] ?></td></tr><?}?></table><input type="hidden" name="update" value="true"><input type="hidden" name="ID" value="<? echo $ID ?>"><input type="hidden" name="Feature" value="<? echo $Feature ?>"></form></body></html>