Blame | Letzte Änderung | Log anzeigen | RSS feed
<?php//$Id: button.php 754 2011-10-12 07:53:03Z tiefland $/*** @author Lars Tiefland <tiefland@weban.de>* @copyright 2009 Webagentur Niewerth* @package neu.pick2pay.nl* @version $Rev: 754 $* @license propietary* @filesource**//**** @author Lars Tiefland <tiefland@weban.de>* @copyright 2009 Webagentur Niewerth* @package neu.pick2pay.nl*/function button( $Feld, $button_name ){global $user_rechte;$self = "tree.php";if ( isset( $user_rechte[modul_name][tool_name][$Feld] ) ){// initif ( !isset( $_SESSION[$self]["options"][$Feld] ) ){$_SESSION[$self]["options"][$Feld] = false;}if ( $_GET[$Feld] ){$_SESSION[$self]["options"][$Feld] = $_GET[$Feld];}?><td><a href="javascript:switcher('<?php echo $Feld?>','<?php if ( $_SESSION[$self]["options"][$Feld] ){?>0<?php }else{?>1<?php }?>')"><img src="../images/Online-Shop/directory/bt_<?php echo $button_name?><?php if ( $_SESSION[$self]["options"][$Feld] ){?>_f2<?php }?>.gif" border="0"></a></td><?php}else{$_SESSION[$self]["options"]["artikel_kein_preis1_anzeigen"] ="true";}}$Feld = array( "gesperrt_zeigen" => "x", "sortierfunktion" => "horu","zubehoer_anzeigen_artikel" => "la", "artikel_kein_preis1_anzeigen" =>"l0", );foreach ( array_keys( $Feld ) as $Feld_value ){if ( !isset( $user_rechte[modul_name][tool_name][$Feld_value] ) ){unset( $Feld[$Feld_value] );}}if ( $Feld ){$text ='<div id="control" style="position:absolute;left:0px;top:0px;width:100%;height:27px;z-index:1;background-color:#CCCCCC;"><table border="1" cellspacing="4" cellpadding="0" style="bordercolor:#CCCCCC" bgcolor="#CCCCCC"><tr>';foreach ( $Feld as $Feld_value ){$text .= button( $Feld_value, $Feld[$Feld_value] );}$text .= '</tr></table></div><br><br>';}echo $text;?>