<!-- <section> --> <div id="page-content-wrapper"> <!-- HIE CHUNTS DS VERDAMMTE LOGIN INDE WUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU --> <?php session_start(); include_once 'controller/warenkorbcontroller.php'; include_once 'model/warenkorb.php'; include_once 'controller/antiquitaetcontroller.php'; include_once 'model/antiquitaet.php'; include_once 'controller/accountcontroller.php'; include_once 'model/account.php'; $accocont = new AccountController(); $acco = $accocont->LoadAcc($_SESSION['id']); $cartcont = new WarenkorbController(); $cart = $cartcont->GetByAccount($acco); echo $cart->getPrice(); echo '<table>'; foreach ($cart->getAntiquitaet() as $anti) { $starter = '<tr class="article"><td><img class="smallpreview" width="200" height="200" alt="Artikelbild" src="'; $middle = '" alt="Artikelbild"></td><td>'; $end = '</td></tr>'; foreach ($list as $element) { echo $starter . $anti->getImage() . $middle . $anti->getName() . ': ' . $anti->getDescription() . '<br>' . $anti->getPrice() . $end; } } exit; ?> </div>
<div id='paypal'> <!-- Link zu paypal checkout--> <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <!--übergabe der Emailadresse vom Shop an paypal--> <input type="hidden" name="business" value="*****@*****.**"/> <!--Aufruf des PaypalWarenkorbs --> <input type="hidden" name="cmd" value="_cart"/> <input type="hidden" name="upload" value="1"/> <?php //Instanziierung von WarenkorbController, sodass alle relevanten Daten für die Bestellung bereit stehen require_once '../app/controller/WarenkorbController.php'; $getWaren = new WarenkorbController(); $warenArray = $getWaren->getArtikelBez(); $loop = 0; //Schleife durchläuft alle Waren des Warenkorbs foreach ($_SESSION['warenkorb'] as $produkt) { //Anzahl und ID des Produkts aus dem Warenkorb $produktAnzahl = $produkt["anzahl"]; $produktID = $produkt["produktNummer"]; ?> <!--Zuweisung der Werte aus der Datenbank für jedes Produkt an paypal warenkorb--> <input type="hidden" name="item_name_<?php echo $loop + 1; ?> " value="<?php
echo $this->title; ?> </title> <meta charset="UTF-8"> <link rel="stylesheet" href="style.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <header> <h1><?php echo $this->head; ?> </h1> </header> <div> <?php echo $this->content; ?> <aside id="warenkorb"> <?php $warenkorb = new WarenkorbController(); $warenkorb->get(); ?> </aside> </div> <footer> © 2015 by Enrico Buchs </footer> </body> </html>