include "lib/config.php";
$customerInstance = phpCustomer::instance();
$productInstance = phpProduct::instance($typ, $shop);
$sqlquery = "SELECT autoID, ueberschrift, text, bild, preis, upload, optionentext,textplain,aktionvon,aktionbis,gutscheinbis,verwendbar,rabatteuro,rabattprozent FROM angebote WHERE status = 1 AND autoID = ?";
$result = $phpDBObject->select($sqlquery, array($orderID), array('%i'));
$row = $result[0];
$sql2 = "SELECT DISTINCT gutscheinnummer.angebotID FROM gutscheinnummer WHERE gutscheinnummer.angebotID=?";
$result2 = $phpDBObject->select($sql2, array($orderID), array('%i'));
$rowGutscheinnummer = $result2[0];
$druckkosten = $row[4];
$mwst = 0;
$brutto = $mwst + $druckkosten;
$typ = $row[1];
$anmerkungen2 = $row[2];
$sqlquery3 = "SELECT * FROM angeboteoption WHERE angebotID = ?";
$result3 = $phpDBObject->select($sqlquery3, array($row[0]), array('%i'));
if (($row[5]=="0") && (!$row3)) {
include "content/produkt/orderstep1.txt";
} else {
if (!isset($sess)) {
$sess = getmicrotime();
}
$uploadoutput = '
Hier klicken oder Dateien hereinziehen
';
?>
$search3 = "/<(.*?)>/im";
$rep3 = "";
$typ = preg_replace($search3, $rep3, $typ);
?>
}
?>