- - |
|||||||||
Sie befinden sich hier: Startseite > > -0.html"> > if ($breadcrumpparentname != "") { echo($breadcrumpparentname." > "); } ?>
| |||||||||
IF ($picture != "")
{
?>
');?>
} else {
?>
//vier produkte pro kategorie if ($modul_produkte == "1") { $sqlshop2 = "SELECT SQL_CACHE * FROM `klangundkleid`,`hits` where `klangundkleid`.`ProduktId` = `hits`.`ID` AND ProduktName LIKE '%".$linkname."%' ORDER BY hits DESC LIMIT 0, 4"; $resultL2 = mysql_query($sqlshop2); while($dataL2 = mysql_fetch_array($resultL2)) { $name[] = $dataL2['ProduktName']; $beschr[] = $dataL2['Beschreibung']; $bildurl[] = "images/produkte/thumb/".$dataL2['bild_klein']; $subkategorie[] = $dataL2['Subkategorie']; $kategorie[] = $dataL2['Kategorie']; $produktexp[] = $dataL2['ProduktEXP']; $kategorieexp[] = $dataL2['KategorieEXP']; $preis[] = $dataL2['Preis']; $image = getimagesize("images/produkte/thumb/".$dataL2['bild_klein']); $breite = $image[0]; $hoehe = $image[1]; $bildurlh[] = $hoehe; $bildurlw[] = $breite; } ?> if (($name[0] != "") AND ($name[1] != "")) { ?>
} ?> } ?> /* */ ?> $queryP = "SELECT SQL_CACHE * FROM content WHERE parentid = '".mysql_real_escape_string($produktid)."' ORDER BY HEADLINE"; $resultP = mysql_query($queryP); if (mysql_num_rows($resultP) >= 1) { echo(" Produkte zu ".$produktname.""); while($dataP = mysql_fetch_array($resultP)) { echo(""); } } ?> $queryP = "SELECT SQL_CACHE * FROM download WHERE pid = '".mysql_real_escape_string($produktid)."' ORDER BY name"; $resultP = mysql_query($queryP); if (mysql_num_rows($resultP) >= 1) { echo("Downloads, Dokumente zu ".$produktname.""); while($dataP = mysql_fetch_array($resultP)) { echo("
Um die PDF-Dateien zu speichern, mit der rechten Maustaste klick und \"Speichern unter...\" wählen. "); } ?> $result_comment =MYSQL_QUERY( "SELECT SQL_CACHE count(id) as totaln FROM comments where ID = '".mysql_real_escape_string($produktid)."' AND status='1' "); while($rowtn = mysql_fetch_row($result_comment)) { $totaln = $rowtn[0]; } if ($totaln >= 1) { ?> echo($totaln);?> Kommentar 1) { echo("e"); } ?> zu
$result_comment2 = MYSQL_QUERY( "SELECT SQL_CACHE * FROM comments where ID = '".mysql_real_escape_string($produktid)."' AND status='1' ORDER BY `TIMESTAMP` DESC ");
while($rowc2 = mysql_fetch_row($result_comment2))
{
?>
Kommentar schreiben
if ($_POST['comment_post_ID'] != "")
{
if (($_POST['email'] != "") AND ($_POST['author'] != "") AND ($_POST['comment'] != ""))
{
if (isset($_SESSION['captcha_spam']) AND $_POST["sicherheitscode"] == $_SESSION['captcha_spam'])
{
$author = $_REQUEST['author'];
$email = $_REQUEST['email'];
$url = $_REQUEST['url'];
$comment = $_REQUEST['comment'];
unset($_SESSION['captcha_spam']);
echo("Vielen Dank! Ihr Eintrag wurde gespeichert und wird in Kürze geprüft! Eine Freischaltung behalten wir uns vor. "); $messages = "Vielen Dank! Ihr Eintrag wird überprüft."; if ($_REQUEST['comment_rating'] == "1") { $ratingwert = "1"; } else if ($_REQUEST['comment_rating'] == "2") { $ratingwert = "2"; } else if ($_REQUEST['comment_rating'] == "3") { $ratingwert = "3"; } else if ($_REQUEST['comment_rating'] == "4") { $ratingwert = "4"; } else if ($_REQUEST['comment_rating'] == "5") { $ratingwert = "5"; } else { $ratingwert = "0"; } $sqlinsert = "INSERT INTO comments set ID = '".strip_tags($produktid)."', Kommentar = '".mysql_real_escape_string(strip_tags(($_REQUEST['comment'])))."', Rezensent = '".mysql_real_escape_string(strip_tags(($_REQUEST['author'])))."', EMail = '".mysql_real_escape_string(strip_tags(($_REQUEST['email'])))."', Homepage = '".mysql_real_escape_string(strip_tags(($_REQUEST['url'])))."',status='0',rating='".$ratingwert."' "; MYSQL_QUERY($sqlinsert); $fd = popen("/usr/sbin/sendmail -t ","w"); fputs($fd, "To: ".$domainemail."\n"); fputs($fd, "From: ".$domainemail."\n"); fputs($fd, "Reply-To: ".$domainemail."\n"); fputs($fd, "Subject: ".$domainurl.": Kommentar: ".utf8_decode($produktname)."\n\n"); fputs($fd, "Kommentar von Webseite:\n\n"); fputs($fd, utf8_decode($comment)."\n\n"); fputs($fd, $domainurl."".$_SERVER['REQUEST_URI']."\n\n"); pclose($fd); $author = ""; $email = ""; $url = ""; $comment = ""; } else { echo("Der Sicherheitscode ist falsch! "); $messages = "Der Sicherheitscode ist falsch!"; } } else { echo("Bitte geben Sie einen Namen, die E-Mail Adresse und ein Kommentar ein. "); $messages = "Bitte geben Sie einen Namen, die E-Mail Adresse und ein Kommentar ein."; } } ?> } ?>if ($modul_produkte == "1") { ?> und :
$queryL = "SELECT SQL_CACHE * FROM klangundkleid ORDER BY rand() limit 0,5";
$resultL = mysql_query($queryL);
while($dataL = mysql_fetch_array($resultL))
{
echo("
");
if ($dataL['bild_klein'] != "")
{
$image = getimagesize("images/produkte/thumb/".$dataL['bild_klein']);
$breite = $image[0];
$hoehe = $image[1];
$neuhoehediv = $hoehe+20;
echo('');
}
//kommentare zählen
$bewertungausgabe="";
$rating_wert="";
$rating_comments="";
$sqlrating = "SELECT SQL_CACHE avg(rating) as rating, count(ID) as idzaehler FROM `comments` WHERE ID='".mysql_real_escape_string($dataL['ProduktID'])."' ";
$resultR = mysql_query($sqlrating);
while($dataR = mysql_fetch_array($resultR))
{
$rating_wert = $dataR['rating'];
if (($rating_wert != "") AND ($rating_wert != "0"))
{
$star1a = $rating_wert+1;
for($count = 1; $count < $star1a; $count++)
{
$bewertungausgabe .= ' ");
echo("![]() ![]() ".($dataL['ProduktName'])."EUR ".number_format($dataL['Preis'],2)." ".(cut_string(strip_tags($dataL['Beschreibung']),150))." ...".$rating_comments." ");
if ($dataL['Iconurl'] != "")
{
echo("");
}
echo("» mehr zu ".($dataL['ProduktName'])."");
if ($dataL['Iconurl'] != "")
{
echo(" ");
}
echo("");
echo(""); } ?> } ?> Weitere Informationen:
|
|||||||||
... if (strlen($rowc2[2]) > 150) { ?>[mehr]}?>
.. um : Uhr
if (($rowc2[10] != "") AND ($rowc2[10] != "0")) { echo("bewertet mit: "); $star1a = $rowc2[10]+1; for($count = 1; $count < $star1a; $count++) { echo('