rdsid"]]="".$langvalue['mehr_informationen']."";$link_url[$val["wordsid"]]="http://".$_SERVER["SERVER_NAME"]."/html/goto.php?h=".$_GET["grundid"]."&fromword=".$val["wordsid"]."&statistik=14&url=".encode_slash(str_replace("http://", "", $grund["www"]));}$smarty->assign('link',$link);} if($_GET["withoutright"]==1)//besucherversion { $rewrite=rewrite("html/product-program-{lang}-".$_GET["grundid"].".html",$allesprachen); //hole ukats zu den Produkten $resultukat=mysql_query("select prod_subwords.stichwort_".$_GET["lang"].",prod_subwords.subwordsid,subwords_words_grund.prodid from subwords_words_grund,prod_subwords where subwords_words_grund.herid='".$_GET["grundid"]."' and prod_subwords.stichwort_".$_GET["lang"]."!='' and subwords_words_grund.subid=prod_subwords.subwordsid",$produkt_con); while($resultukat && ($rowukat=mysql_fetch_array($resultukat))) { $UKATANZAHL[$rowukat["prodid"]]++; if($UKATANZAHL[$rowukat["prodid"]]>1) { $UKATMORE[$rowukat["prodid"]].="
"; if($UKATANZAHL[$rowukat["prodid"]]<=2){$UKATSHORT[$rowukat["prodid"]].="
";} } if($UKATANZAHL[$rowukat["prodid"]]<=2){$UKATSHORT[$rowukat["prodid"]].="".$rowukat["stichwort_".$_GET["lang"]]."
";} $UKATMORE[$rowukat["prodid"]].="".$rowukat["stichwort_".$_GET["lang"]]."
"; } //produktdisc if($grund["status"]>1){ $divanzeigenid=1; $resultdisc=mysql_query("select link_".$_GET['lang'].",info_".$_GET['lang'].",text_".$_GET['lang'].",einsatz_".$_GET['lang'].",din_".$_GET['lang'].",produktbezeichnung_".$_GET['lang'].",iso_".$_GET['lang'].",technischedaten_".$_GET['lang'].",picdisc_".$_GET['lang'].",grundid,id,wordsid,endung_".$_GET['lang']." from prod_disc where grundid='".$_GET['grundid']."'",$produkt_con); $detail=mysql_fetch_array(mysql_query("select * from her_allg,her_zahlen,her_contact where her_allg.id='".$_GET['grundid']."' AND her_zahlen.id='".$_GET['grundid']."' AND her_contact.id='".$_GET['grundid']."' limit 1",$produkt_con)); //hole produktbegriffe für default bild titel if(mysql_num_rows($resultdisc)>0 and count($stichwort)>0) { foreach($stichwort as $val){$pictitel[$val["wordsid"]]=$val["stichwort_".$_GET['lang']];} } while($resultdisc && ($rowdisc=mysql_fetch_array($resultdisc))) { if($rowdisc["picdisc_".$_GET["lang"]]!="")$picdisc=str_replace("'",'"',$rowdisc["picdisc_".$_GET["lang"]]); else $picdisc=$pictitel[$rowdisc["wordsid"]]; $picdisc=str_replace("'","",$picdisc); //old bild preview if(is_file($_HOMEPATH."produkt_db/disc/".$rowdisc["id"]."_bild.jpg")){ $bild[$rowdisc["wordsid"]]="$picdisc";$disc=true;} if(is_file($_HOMEPATH."produkt_db/disc/".$rowdisc["id"]."_bild.jpg")) { list($picwidth, $picheight, $pictype, $picattr)=getimagesize($_HOMEPATH."produkt_db/disc/".$rowdisc["id"]."_bild.jpg"); if($picwidth>500){$bild[$rowdisc["wordsid"]]="$picdisc";} else {$bild[$rowdisc["wordsid"]]="$picdisc";} $disc=true; } if(strlen($rowdisc["link_".$_GET["lang"]])>8) { if($grund["nofollow"]==0){$link[$rowdisc["wordsid"]]="".$langvalue['mehr_informationen']."";$link_url[$rowdisc["wordsid"]]="http://".str_replace("http://", "", $rowdisc["link_".$_GET['lang'].""]); } else {$link[$rowdisc["wordsid"]]="".$langvalue['mehr_informationen']."";$link_url[$rowdisc["wordsid"]]="http://".$_SERVER["SERVER_NAME"]."/html/goto.php?h=".$_GET["grundid"]."&fromword=".$rowdisc["wordsid"]."&statistik=14&url=".encode_slash(str_replace("http://", "", $rowdisc["link_".$_GET['lang'].""])); } $disc=true; } elseif(strlen($grund["www"])>8) { if($grund["nofollow"]==0){$link[$rowdisc["wordsid"]]="".$langvalue['mehr_informationen']."";$link_url[$rowdisc["wordsid"]]="http://".str_replace("http://", "", $grund["www"]); } else {$link[$rowdisc["wordsid"]]="".$langvalue['mehr_informationen']."";$link_url[$rowdisc["wordsid"]]="http://".$_SERVER["SERVER_NAME"]."/html/goto.php?h=".$_GET["grundid"]."&fromword=".$rowdisc["wordsid"]."&statistik=14&url=".encode_slash(str_replace("http://", "", $grund["www"])); } $disc=true; } if(is_file($_HOMEPATH."produkt_db/disc/".$rowdisc["id"]."_".$_GET["lang"].$rowdisc["endung_".$_GET["lang"]]."")) { if(strtolower($rowdisc["endung_".$_GET['lang']])==".pdf") { $info[$rowdisc["wordsid"]]="PDF"; } elseif(strtolower($rowdisc["endung_".$_GET['lang']])==".wmv") { $info[$rowdisc["wordsid"]]="Video"; } elseif(strtolower($rowdisc["endung_".$_GET['lang']])==".ogg"){$info[$rowdisc["wordsid"]]="";} else { $info[$rowdisc["wordsid"]]="File"; } $disc=true; } elseif($rowdisc["info_".$_GET['lang']]!="" and $rowdisc["info_".$_GET['lang']]!="http://"){ $info[$rowdisc["wordsid"]]="Produktinfo"; $disc=true;} if($rowdisc["produktbezeichnung_".$_GET['lang']]!=""){$rowdisc["text_".$_GET['lang']]="".$rowdisc["produktbezeichnung_".$_GET['lang']]."\n\n".$rowdisc["text_".$_GET['lang']]."\n";} elseif($rowdisc["text_".$_GET['lang']]!=""){$rowdisc["text_".$_GET['lang']].="\n";} if($rowdisc["technischedaten_".$_GET['lang']]!=""){$rowdisc["text_".$_GET['lang']].="\n".$langvalue["technische_daten"].":\n\n".$rowdisc["technischedaten_".$_GET['lang']]."\n";} if($rowdisc["einsatz_".$_GET['lang']]!=""){$rowdisc["text_".$_GET['lang']].="\n".$langvalue["anwendungsbereiche_einsatzgebiete"].":\n\n".$rowdisc["einsatz_".$_GET['lang']]."\n";} if($rowdisc["iso_".$_GET['lang']]!=""){$rowdisc["text_".$_GET['lang']].="\nISO:\n\n".$rowdisc["iso_".$_GET['lang']]."\n";} if($rowdisc["din_".$_GET['lang']]!=""){$rowdisc["text_".$_GET['lang']].="\nDIN:\n\n".$rowdisc["din_".$_GET['lang']]."\n";} if($rowdisc["text_".$_GET['lang']]!="") { $rowdisc["text_".$_GET["lang"]]=str_replace("\n","
",$rowdisc["text_".$_GET["lang"]]); $disc=true; if(($UKATANZAHL[$rowdisc["wordsid"]]>=1 and $UKATANZAHL[$rowdisc["wordsid"]]<=2) or $_GET["print"]==1)//zeige ohne plus {$infozeichen[$rowdisc["wordsid"]]="
info".$langvalue["produktuntergruppen"].":

".$UKATMORE[$rowdisc["wordsid"]]."
\n";} elseif($UKATANZAHL[$rowdisc["wordsid"]]>2)//zeige mit plus { $infozeichen[$rowdisc["wordsid"]]="
more infos ".$langvalue["produktuntergruppen"].":
".$UKATSHORT[$rowdisc["wordsid"]]."
"; $infozeichen[$rowdisc["wordsid"]].="
close ".$langvalue["produktuntergruppen"].":

".$UKATMORE[$rowdisc["wordsid"]]."
close
"; } if(strlen(strip_tags($rowdisc["text_".$_GET['lang']]))>350 and $_GET["print"]!=1)//zeige mit plus { $infozeichen[$rowdisc["wordsid"]].="
more infos ".substr(strip_tags(str_replace("
"," ",$rowdisc["text_".$_GET['lang']])),0,350)."...
"; $infozeichen[$rowdisc["wordsid"]].="
close ".strip_tags($rowdisc["text_".$_GET['lang']],'
  • ')."

  • close
    "; } else//zeige ohne plus {$infozeichen[$rowdisc["wordsid"]].="
    info".strip_tags($rowdisc["text_".$_GET['lang']],'
  • ')."

  • \n";} } } if($bild and $stichwort)//sortiere nach bildern { foreach($stichwort as $row) { if($bild[$row["wordsid"]]!="")$sorteinz[]=$row; else $sortzwei[]=$row; } $stichwort=FALSE; if(count($sorteinz)>0){foreach($sorteinz as $row){$stichwort[]=$row;}} if(count($sortzwei)>0){foreach($sortzwei as $row){$stichwort[]=$row;}} } $explode=explode(",",$langvalue['h_pul_kontakt_array']);//lese kontakte falls f´vorhanden $a=1; foreach($explode as $var) { $um[$a] = $var; $a++; } for($i=1;$i<=13;$i++)if($detail["m".$i."n"]!="" OR $detail["m".$i."t"]!=""){$detail['kontakt'][$i]['bezeichnung']=$um[$i];$detail['kontakt'][$i]['wert']="
    ".$detail["m".$i."n"]."".$detail["m".$i."t"]."
    ";} if(strlen(strip_tags($detail["export_".$_GET["lang"]]))>150 and $_GET["print"]!=1)//zeige mit plus { $detail["exportshort"]="
    more infos ".$langvalue["exportmaerkte"]."
    ".substr(strip_tags(str_replace("
    "," ",$detail["export_".$_GET["lang"]])),0,150)."...
    "; $detail["export_".$_GET["lang"]]=str_replace("\n","
    ",$detail["export_".$_GET["lang"]]); $detail["exportmore"]="
    close ".$langvalue["exportmaerkte"]."

    ".strip_tags($detail["export_".$_GET["lang"]],'
  • ')."

  • close
    "; } elseif($detail["export_".$_GET["lang"]]!="")//zeige ohne plus {$detail["export_".$_GET["lang"]]=str_replace("\n","
    ",$detail["export_".$_GET["lang"]]); $detail["exportmore"]="
    info".$langvalue["exportmaerkte"]."

    ".strip_tags($detail["export_".$_GET["lang"]],'
  • ')."

  • \n";} if(strlen(strip_tags($detail["wueu_".$_GET["lang"]]))>150 and $_GET["print"]!=1)//zeige mit plus { $detail["wueushort"]="
    more infos ".$langvalue["weaboutus"]."
    ".substr(strip_tags(str_replace("
    "," ",$detail["wueu_".$_GET["lang"]])),0,150)."...
    "; $detail["wueu_".$_GET["lang"]]=str_replace("\n","
    ",$detail["wueu_".$_GET["lang"]]); $detail["wueumore"]="
    close ".$langvalue["weaboutus"]."

    ".strip_tags($detail["wueu_".$_GET["lang"]],'
  • ')."

  • close
    "; } elseif($detail["wueu_".$_GET["lang"]]!="")//zeige ohne plus {$detail["wueu_".$_GET["lang"]]=str_replace("\n","
    ",$detail["wueu_".$_GET["lang"]]); $detail["wueumore"]="
    info".$langvalue["weaboutus"]."

    ".strip_tags($detail["wueu_".$_GET["lang"]],'
  • ')."

  • \n";} $bilder=get_from_produkt("select bild_id,disc".$_GET['lang']." as disc from her_bilder where id='".$_GET['grundid']."' order by bild_id"); if(count($bilder)>0) { $checkbilder=$bilder; $bilder=false; foreach($checkbilder as $row)if(is_file($_HOMEPATH."/produkt_db/produkt_bilder/".$_GET['grundid']."_".$row['bild_id'].".jpg"))$bilder[]=$row; } //if($detail['sortsitz']=="")$detail['sortsitz']="id"; //if($detail['sortsitz']=="kontinent")$detail['sortsitz']="kontinent,land"; //$zweig=get_from_produkt("select * from her_sitze,her_land where her_sitze.id='".$_GET['grundid']."' order by $detail[sortsitz]"); $zweig=get_from_produkt("select her_sitze.kontinent,her_sitze.sitze_id,her_sitze.uname,her_sitze.strasse,her_sitze.plz,her_sitze.ort,her_sitze.tel,her_sitze.fax,her_sitze.www,her_sitze.email,her_land.land_".$_GET["lang"]." as land from her_sitze,her_land where her_sitze.id=".$_GET['grundid']." and her_sitze.land_id=her_land.land_id order by her_sitze.sortid asc"); if(is_file($_HOMEPATH."produkt_db/include/".$_GET['grundid']."/include_$_GET[lang].html"))$detail['insertextra']=file_get_contents("/home/i/industrystock/produkt_db/include/".$_GET['grundid']."/include_".$_GET['lang'].".html"); if(is_file($_HOMEPATH."produkt_db/produkt_katalog/".$_GET['grundid'].".pdf"))$detail["dummypdf_1"]="/produkt_db/produkt_katalog/".$_GET['grundid'].".pdf"; if(is_file($_HOMEPATH."produkt_db/produkt_katalog/".$_GET['grundid']."_1.pdf"))$detail["dummypdf_2"]="/produkt_db/produkt_katalog/".$_GET['grundid']."_1.pdf"; $smarty->assign('disc',$disc); $smarty->assign('bild',$bild); $smarty->assign('info',$info); $smarty->assign('link',$link); $smarty->assign('link_url',$link_url); $smarty->assign('infozeichen',$infozeichen); $smarty->assign('infozeichen_mehr',$infozeichen_mehr); $smarty->assign('hidden',$hidden); $smarty->assign('detail',$detail); $smarty->assign('bilder',$bilder); $smarty->assign('zweig',$zweig); } if(count($UKATANZAHL)>0) { //prüfe nochmal die infotexte da es vorkommen kann das zwar ukat da aber kein infotext foreach($UKATANZAHL as $key=>$val) { if($infozeichen[$key]=="") { if(($UKATANZAHL[$key]>=1 and $UKATANZAHL[$key]<=2) or $_GET["print"]==1)//zeige ohne plus {$infozeichen[$key]="
    info".$langvalue["produktuntergruppen"].":

    ".$UKATMORE[$key]."
    \n";} elseif($UKATANZAHL[$key]>2)//zeige mit plus { $infozeichen[$key]="
    more infos ".$langvalue["produktuntergruppen"].":
    ".$UKATSHORT[$key]."
    "; $infozeichen[$key].="
    close ".$langvalue["produktuntergruppen"].":

    ".$UKATMORE[$key]."
    close
    "; } } } $smarty->assign('infozeichen',$infozeichen); $smarty->assign('infozeichen_mehr',$infozeichen_mehr); } $produktdetailansicht=true; include("fct/allg/verknuepfung.php"); $smarty->assign('verknuepfung4',$verknuepfung4); }//ende besucherversion else //suma version { $rewrite=rewrite("html/product-programm-{lang}-".$_GET['grundid'].".html",$allesprachen); foreach($stichwort as $key=>$row) { $sql="select her_grund.name from her_grund,her_prod_99 where her_prod_99.prodid='$row[wordsid]' and her_grund.grundid=her_prod_99.herid and her_grund.anzeigen=1 and her_prod_99.anzeigen=1"; $result=mysql_query($sql." order by her_grund.istkunde desc, her_grund.status desc, her_grund.land desc, her_grund.name asc limit 5",$produkt_con); while($werte=mysql_fetch_array($result)) { $stichwort[$key][firmen].=$werte[name].", "; } } } $smarty->assign('stichwort',$stichwort); if($stichwort){ foreach($stichwort as $row){$stichwoerter.=$row[wort].", ";}$smarty->assign('stichwoerter',substr($stichwoerter,0,-2));} //statistik $referer=getenv ("HTTP_USER_AGENT"); if(stristr($referer, 'Slurp') or stristr($referer, 'Baidu') or stristr($referer, 'bot') or stristr($referer, 'spider') or stristr($referer, 'Yandex') or stristr($referer, 'craw') or stristr($referer, 'Rambler') or stristr($referer, 'OnetSzukaj') or stristr($referer, 'Google') or stristr($referer, 'Ask')); else { if(!$produkt_stat_con){$produkt_stat_con=connect2DB("produkt_stat_con");} if($produkt_stat_con) { mysql_query("update `".date("m")."` set anzahl_detail=anzahl_detail+1,anzahl_contact=anzahl_contact+1 where herid=".$_GET["grundid"]." AND tag=".date("j")." limit 1",$produkt_stat_con); if(mysql_affected_rows($produkt_stat_con)!=1){mysql_query("insert into `".date("m")."` (herid,tag,anzahl_detail,anzahl_contact) values ('".$_GET["grundid"]."','".date("j")."','1','1')",$produkt_stat_con);} } else { $datei="/home/i/industrystock/produkt_db/stat/detail".date("jmy"); $fp = fopen($datei,"a"); $zeile = fputs($fp,$_GET['grundid'].";".date("m").";".date("y").";".str_replace (array(";"), array(":"), $referer)."\n", strlen($_GET['grundid'].";".date("m").";".date("y").";".str_replace (array(";"), array(":"), $referer)."\n")); fclose($fp); } if($produkt_con) { $result=mysql_query("update detail_detail".date("y")." set anzahl=anzahl+1 where tag=".date("j")." and monat=".date("n")." and grundid=".$_GET['grundid']." and lang='".$_GET['lang']."'",$produkt_con); if(mysql_affected_rows($produkt_con)==0){$result=mysql_query("insert into detail_detail".date("y")." (tag,monat,anzahl,grundid,lang) VALUES ('".date("j")."','".date("n")."','1','".$_GET['grundid']."','".$_GET['lang']."')",$produkt_con);} $result=mysql_query("update contact_detail".date("y")." set anzahl=anzahl+1 where tag=".date("j")." and monat=".date("n")." and grundid=".$_GET['grundid']." and lang='".$_GET['lang']."'",$produkt_con); if(mysql_affected_rows($produkt_con)==0){$result=mysql_query("insert into contact_detail".date("y")." (tag,monat,anzahl,grundid,lang) VALUES ('".date("j")."','".date("n")."','1','".$_GET['grundid']."','".$_GET['lang']."')",$produkt_con);} } } if(stristr(getenv ("HTTP_REFERER"),"/product-result-")!==FALSE)$fromword=preg_replace("#.*\/product-result-(.*)-([0-9]*)-(.*)\.html#","\\2",getenv ("HTTP_REFERER")); if(stristr(getenv ("HTTP_REFERER"),"/product-service-")!==FALSE)$fromword=preg_replace("#.*\/product-service-(cn|ru)-([0-9]*)-(.*)\.html#","\\2",getenv ("HTTP_REFERER")); if($fromword>0) { $stichwort=get_products("select prod_words.stichwort_".$_GET["lang"].",".$getuk." prod_words.wordsid,prod_words.anzahl,her_prod_99.hersteller,her_prod_99.haendler,her_prod_99.dienst,her_prod_99.zulieferer from prod_words,her_prod_99 where her_prod_99.herid=".$_GET['grundid']." and prod_words.wordsid=her_prod_99.prodid and prod_words.stichwort_".$_GET['lang']."!='' and her_prod_99.anzeigen=1 and prod_words.anzahl>0 and prod_words.wordsid='".$fromword."' and (her_prod_99.hersteller=1 or her_prod_99.haendler=1 or her_prod_99.dienst=1 or her_prod_99.zulieferer=1) and her_prod_99.improfilanzeigen=1 order by prod_words.stichwort_".$_GET['lang'].""); if($grund["status"]==0){$smarty->assign('stichwort',$stichwort);} $smarty->assign('stichwortback',$stichwort); if($produkt_con){mysql_query("insert into detail_from_words (tag,monat,jahr,grundid,lang,wordsid,timestamp) VALUES ('".date("j")."','".date("n")."','".date("Y")."','".$_GET['grundid']."','".$_GET['lang']."','$fromword','".time()."')",$produkt_con);} } require_once("fct/foot_funktionen.php"); $smarty->assign('rewrite',$rewrite); $smarty->display('produkt_detail.tpl'); ?>