Home Warenkorb Zur Kasse Sitemap Email

Warengruppen

Mit dem leistungsfähigen Content Managment verwalten Sie die Texte und sonstige Inhalte Ihrer Shopseiten selbst.

Über die Standard-Contents 1-8 können Sie die Inhalte für Ihre Shopseiten festlegen.

Standard-Content 1 und 2 erscheinen unterhalb der Warengruppenlinks, Standard-Content 3- 4 bzw. Standard-Content 5-6 werden oberhalb bzw. unterhalb der Artikel abgebildet, Standard-Content 7-8 erscheinen unterhalb von NEWS.

Definieren Sie beliebig viele Contents. Jeder einzelnen Warengruppe können acht verschiedene - beliebig umfangreiche - Contents zugeordnet werden.

EINFACH PER DRAG AND DROP!
Dies ist Standard-Content2!
= 4.1.0 * - compatible to PHP 5 */ class productgroups { var $xml_parser; var $xml_file; var $html_file; var $html; var $producthtml; var $open_tag ; var $close_tag ; var $search; var $currency; var $found; var $hits; var $itemcount; var $groupname; var $productnumber; var $productname; var $counter; var $searchlogic; //"and" or "or" var $searchwords; //array for words to search for var $wordscount; //number of words to search for var $foundwords; //number of found words var $tagname; var $tagnameClose; var $tempProductname; //Class Constructor function productgroups() { $this->xml_parser = ""; $this->xml_file = ""; $this->html_file = ""; $this->html = ""; $this->producthtml = ""; $this->search = ""; $this->currency = ""; $this->found = false; $this->hits = 0; $this->tagname = ""; // actual open tag $this->tagnameClose = ""; //actual closing tag $this->itemcount = ""; $this->groupname = ""; $this->productnumber = ""; $this->productname = ""; $this->counter = ""; $this->tempProductname = ""; $this->open_tag = array( "PRODUCTGROUP" => "", "GROUPNAME" => "", "PRODUCTS" => "", "PRODUCT" => "
 %%counter%% %%productname%%
", "PRODUCTPICTURE" => " "", "PRODUCTNAME" => "", "PRODUCTDESCRIPTION" => "", "PRODUCTDETAILTEXT1" => "
", "PRODUCTDETAILTEXT2" => "
", "PRICE" => "
 ", "STPRICE1" => "
 ", "STQTY1" => ":", "STPRICE2" => "
 ", "STQTY2" => ":", "STPRICE3" => "
 ", "STQTY3" => ":", "STPRICE4" => "
 ", "STQTY4" => ":", "PRODUCTVATRATE" => "", "ITEMCOUNT" => "", "NEWLINE" => "
" ); $this->close_tag = array( 'PRODUCTGROUP' => '', 'GROUPNAME' => '', 'PRODUCTS' => '', 'PRODUCTPICTURE' => '\">', 'PRODUCTNUMBER' => '', 'PRODUCTNAME' => '', 'PRODUCTDESCRIPTION' => '', 'PRODUCTDETAILTEXT1' => '', 'PRODUCTDETAILTEXT2' => '', 'PRODUCT' => '
zzgl. MwSt. zzgl. Versandkosten

', 'PRODUCTVATRATE' => '', 'ITEMCOUNT' => '', 'NEWLINE' => '
' ); } //Class Destructor function destroy() { // $this->hits = 0; xml_parser_free($this->xml_parser); } //Class Members function concat($str) { $this->html .= $str; } function startElement($parser, $name, $attrs) { $this->tagname = $name; $format = $this->open_tag[$name]; if (!empty($format)) { if ($name == "PRODUCTGROUP" || $name == "GROUPNAME"){ $this->html .= $format; } else { $this->producthtml .= $format; } } } function endElement($parser, $name) { global $counter; $this->tagnameClose = $name; if ($format = $this->close_tag[$name]) { if ($name == "PRODUCTGROUP" || $name == "GROUPNAME") { $this->html .= $format; } else { if ($name == "PRICE") $this->producthtml .= $this->currency; // Tag end $this->producthtml .= $format; if ($name =="PRODUCT") { if ($this->found) { $this->producthtml = ereg_replace("%%productnumber%%", $this->productnumber, $this->producthtml); $this->producthtml = ereg_replace("%%productname%%", $this->productname, $this->producthtml); $this->producthtml = ereg_replace("%%counter%%", $counter.".", $this->producthtml); ++$counter; $this->producthtml = ereg_replace("%%itemcount%%", $this->itemcount, $this->producthtml); $this->producthtml = ereg_replace("%%groupname%%", $this->groupname, $this->producthtml); $this->html .= $this->producthtml; } $this->itemcount = ""; $this->productnumber = ""; $this->productname = ""; $this->producthtml = ""; $this->found = false; } } } } function characterData($parser, $data) { if ($this->tagname == "PRODUCTGROUP" || $this->tagname == "GROUPNAME") { if ($this->tagname == "GROUPNAME") { $data = trim($data); if (!empty($data) && $this->groupname == "") $this->groupname = "html_file."\">".$data.""; } } elseif (($this->tagname != "PRODUCTVATRATE") && ($this->tagname != "ITEMCOUNT")) { //set productnumber if ($this->tagname == "PRODUCTNUMBER") { $data = trim($data); if (!empty($data) && ($this->productnumber == "")) $this->productnumber = $data; } else { if ($this->tagname == "PRODUCTNAME") { $data = trim($data); //if the closing tag is not equal to opening tag (here: PRODUCTNAME) //concat the $data-strings. //this has to be done, because the parser fires multiple events //if a text contains an Umlaut or special character if ($this->tagnameClose != $this->tagname) { $this->tempProductname .= $data; } else { $data = $this->tempProductname; //empty temp product name $this->tempProductname = ""; if (!empty($data) && ($this->productname == "")) { $this->productname = "productname .= $this->html_file; $this->productname .= "%%itemcount%%"; $this->productname .= "\">"; // Alle Treffer fett und rot markieren $chdata = $data; foreach($this->searchwords as $srw) { $chdata = preg_replace("/($srw)/i", '$1', $chdata); } $this->productname .= $chdata; $this->productname .= ""; } } } else { // Alle Treffer fett und rot markieren $chdata = $data; // Fehlerkorrektur UR 1.12.2005: // Die Bilder dürfen nicht umbenannt werden, sonst keine Anzeige. if ($this->tagname != "PRODUCTPICTURE") { foreach($this->searchwords as $srw) { $chdata = preg_replace("/($srw)/i", '$1', $chdata); } } $this->producthtml .= $chdata; } if ($this->wordscount <= 1) { if (stristr($data, $this->search)) { // Search results found in this field if (!$this->found) $this->hits++; $this->found = true; } } else { $this->foundwords = 0; foreach($this->searchwords as $srw) { if (stristr($data, $srw)) { if($this->searchlogic=="or") { if (! $this->found) $this->hits++; $this->found = true; } else { $this->foundwords++; } } } if (($this->searchlogic == "and") and ($this->foundwords==$this->wordscount)) { if (! $this->found) $this->hits++; $this->found = true; } } } } elseif ($this->tagname == "ITEMCOUNT") { $data = trim($data); if (!empty($data) && $this->itemcount == "") { $this->itemcount = "#" . $data; } } } function parse() { $this->xml_parser = xml_parser_create("ISO-8859-1"); xml_set_object($this->xml_parser, $this); // use case-folding so we are sure to find the tag in $map_array xml_parser_set_option($this->xml_parser, XML_OPTION_CASE_FOLDING, true); xml_set_element_handler($this->xml_parser, "startElement", "endElement"); xml_set_character_data_handler($this->xml_parser, "characterData"); //xml_set_processing_instruction_handler($this->xml_parser, "PIHandler"); if (!($fp = @fopen($this->xml_file, "r"))) { // die("could not open XML input"); } else { while ($data = fread($fp, 4096)) { if (!xml_parse($this->xml_parser, $data, feof($fp))) { die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($this->xml_parser)), xml_get_current_line_number($this->xml_parser))); } } } } } ###################################################### //for index.xml function startIndexElement($parser, $name, $attrs) { global $grouppageflag; if ($name == "GROUPPAGENAME") $grouppageflag = 1; else $grouppageflag = 0; } //for index.xml function endIndexElement($parser, $name) { } //for index.xml function indexCharacterData($parser, $data) { global $grouppageflag; global $xmlfiles; $data = trim($data); if (!empty($data)) { if ($grouppageflag == 1) { $xmlfiles[] = $data; } } } function startSettingsElement($parser, $name, $attrs) { global $tagname; $tagname=$name; } function endSettingsElement($parser, $name) { } function settingsCharacterData($parser, $data) { global $currency; global $tagname; $data = trim ($data); if (!empty($data) && ($tagname == "CURRENCY")) { $currency = $data; } } function print_header() { print ("\n"); print ("

"); } function print_footer() { } ################################################################################ // Please enter a word to search for! $search = strip_tags(trim($_REQUEST["search"])); // Searchlogic (AND/OR) $searchlogic = $_REQUEST["searchlogic"]; if ($searchlogic == "") { $searchlogic = "or"; } if ($search == "") { print_header(); echo "Bitte einen Suchbegriff eingeben!

"; print_footer(); } if($search != "") { $file = "xml/index.xml"; $xmlfiles = array(); //Create parser for index.xml $xml_parser = xml_parser_create("ISO-8859-1"); xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true); xml_set_element_handler($xml_parser, "startIndexElement", "endIndexElement"); xml_set_character_data_handler($xml_parser, "indexCharacterData"); //open index.xml if (!($fp = fopen($file, "r"))) { die("Could not open index.xml."); } //read data while ($data = fread($fp, 4096)) { if (!xml_parse($xml_parser, $data, feof($fp))) { die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } } #var_dump($xmlfiles); xml_parser_free($xml_parser); /***********************/ /*** parse settings ****/ /***********************/ $file = "xml/settings.xml"; //Create parser for index.xml $xml_parser = xml_parser_create("ISO-8859-1"); xml_set_element_handler($xml_parser, "startSettingsElement", "endSettingsElement"); xml_set_character_data_handler($xml_parser, "settingsCharacterData"); if (!($fp = fopen($file, "r"))) { die("Could not open settings.xml."); } while ($data = fread($fp, 4096)) { if (!xml_parse($xml_parser, $data, feof($fp))) { die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } } xml_parser_free($xml_parser); /******************************/ /**** parse product groups ****/ /******************************/ $istreffer = false; $totalhits = 0; $groupcount = 0; global $counter; $counter = 1; // Print HTML head print_header(); //for every product group for ($i = 0; $i < sizeof($xmlfiles); $i++) { // New XML product parser class $group = new productgroups(); // Hyper link $group->html_file = $xmlfiles[$i]; // Create XML files names $htmpos = strrpos($xmlfiles[$i], ".php"); $xmlfile = substr($xmlfiles[$i], 0, $htmpos); $xmlfiles[$i] = $xmlfile.".xml"; // Search in XML files $group->xml_file = "xml/".$xmlfiles[$i]; // Assign Search word $group->search = $search; // Assign Search logic $group->searchlogic = $searchlogic; // Create search list $group->searchwords = explode(" ",$search); $group->wordscount = count($group->searchwords); // Assign currency $group->currency = $currency; //parse, if filename is not empty if (strlen($xmlfile) > 0) { $group->parse(); // Search results found? if ($group->hits > 0) { $istreffer = true; // Output of HTML block search results print ($group->html); $totalhits += $group->hits; ++$groupcount; } $group->destroy(); } } // No hits? if (! $istreffer) { print ("\"".$search."\" "); print (" "); print ("nicht gefunden!"); } else { print (""); print ($totalhits); print (" Artikel - "); print ($groupcount); print (" Warengruppe(n) "); print (""); } // Create HTML footer print_footer(); } ?>

  |     |   gssb5earth.gif
Eimalschutzartikel (7)
************ alle Preise beziehen sich auf 1.000 St.. Bei 100 St. Preise Versandeinheiten pro Artikel erfragen, da günstiger; Abweichungen werden angezeigt.********************
MUCAMBO-GUMMI Matthias Jacoby tel.: 06236.2275 oder 01577 154 35 97 mucambo-gummi@t-online.de
laut Berufsgenossenschaft : "Gepuderte" Latexhandschuhe sollten nicht mehr verwendet werden da hohes Allergierisiko besteht!
Jeder kann bestellen: Privat, Selbständige, Firmen etc., Wiederverkäufer bitte Preise erfragen
"Wir wünschen Ihnen eine schöne und gesunde Zeit" Ihr Mucambo-Team
*****************ACHTUNG************* z.ZT. werden bis zu drei (3) Versandeinheiten gepackt (d.h. meistens 3 Pakete a` 1000 St. zu 7,50 € netto versand. Weitere werden wiederum bis zu 3 versandt, also zusätzlich 7,50 €. Dieses System kennt nur 7,50 €, egal wieviel bestellt wird, daher werden die Versandkosten an die tatsächliche Menge von uns angepasst. ******************************************** //////////////Achtung\\\\\\\\\\\\\ Preisreduktion u.A. bei OP-Handschuhen