/*** HOME INTRO ***/
$sqlquery = "SELECT statisch.inhalt, statisch.name FROM statisch WHERE statisch.name = ?";
$var = 'INTROHOME';
$result = $phpDBObject->select($sqlquery, array($var), array('%s'));
$row = $result[0];
if ($row[0] != "") {
?>
106 }
?>
/**** ANGEBOTE *****/
/*
$today = date("Y-m-d");
$sqlquery = "SELECT autoID, ueberschrift, text, bild, preis, position, bild2, rewrite FROM angebote WHERE status = 1 AND bereich = 'Angebote' AND (shopID = '$shop' OR shopID = 'alle') AND (angebote.aktionvon = '0000-00-00' || ('".$today."' BETWEEN angebote.aktionvon AND angebote.aktionbis)) ORDER BY position ASC";
$phpDBObject->queryDb($db, $sqlquery);
$i=0;
while ($row = $phpDBObject->getrow()) {
?>
if ($row[3]) {
if ($row[6]) {
$imgSize = getimagesize("upload/pictures/angebote/".$row[6]);
?>
![<?echo strip_tags($row[1])?> <?echo strip_tags($row[1])?>](upload/pictures/angebote/<? echo $row[3]; ?>)
} else {
?>
![<?echo strip_tags($row[1])?> <?echo strip_tags($row[1])?>](upload/pictures/angebote/<? echo $row[3]; ?>)
}
}
?>
€inkl. gesetzl. MwSt.
![Preise & bestellen: <?echo strip_tags($row[1])?> Preise & bestellen: <?echo strip_tags($row[1])?>](upload/material/125.gif)
$i++;
}
if ($i==0) {
?>
Zur Zeit sind keine Angebote verfügbar.
}
*/
?>
Unsere Top-Seller
/*** TOPSELLER ***/
$sqlquery = " SELECT id, name, inhalt, format FROM ff_topseller WHERE status = ? ORDER BY position ASC ";
$result = $phpDBObject->select($sqlquery, array(1), array('%i'));
foreach ($result as $row) {
$inhalt = str_replace('../upload/', 'upload/', $phpDBObject->unescapeChar($row[2]));
switch ($row[3]) {
case 0:
?>
break;
case 1:
?>
break;
case 2:
?>
break;
}
?>
}
?>
/*** LINK ALLE PRODUKTE ***/
$sqlquery999 = "SELECT statisch.inhalt, statisch.name FROM statisch WHERE statisch.name = ?";
$result = $phpDBObject->select($sqlquery999, array('LINKALLPRODUCTS'), array('%s'));
if ($row[0] != "") {
$inhalt = str_replace('<', '<', $phpDBObject->unescapeChar($result[0][0]));
$inhalt = str_replace('>', '>', $phpDBObject->unescapeChar($inhalt));
?>
}
?>
####### MELDUNGEN
$sqlquery = "SELECT autoID, ueberschrift, typ, meldung, bild, bildlink, autor, status, position, hintergrundbericht, erstellt, shopID FROM meldungen WHERE status = 'online' AND typ = 'Meldung' AND shopID = ? OR shopID = 'alle' ORDER BY position ";
$con = $phpDBObject->connect();
$stmt = $con->prepare($sqlquery);
# $var = 'LINKALLPRODUCTS';
$stmt->bind_param('s',$shop);
$stmt->execute();
$stmt->bind_result($row[0],$row[1],$row[2],$row[3],$row[4],$row[5],$row[6],$row[7],$row[8],$row[9],$row[10],$row[11]);
while ($stmt->fetch()) {
if ($row[4]) {
?>
}
?> echo $phpDBObject->unescapeChar($row[3]) . "
"; ?>
if ($row[9]) {
?>
mehr dazu
}
?>
}
$stmt->free_result();
?>