예제 #1
0
 echo "</div>";
 echo "<div id='shippingcountries'>";
 echo "<i class='icon-truck' style='color:#0088cc;'></i> Versand nach: ";
 if ($articleData[0]['shippingcountries'] == "Germany") {
     echo "<strong>Deutschland</strong> <br>";
 } else {
     echo "<strong>weltweit</strong><br>";
 }
 echo "</div>";
 if (isset($_SESSION['userID']) && $_SESSION['userID'] != $articleData[0]['userID'] || !isset($_SESSION['userID'])) {
     echo "<div id='contactseller'>";
     echo "<i class='icon-envelope' style='color:#0088cc;'></i>\r\n                  <a href='../messages/sendmessage.php?a=" . $articleID . "&u=" . $articleData[0]['userID'] . "'>\r\n                  <u>Verkäufer kontaktieren</u></a>";
     echo "</div>";
 }
 if ($loggedIn == true) {
     $follow->printFollowBtn($userID, $articleID);
 } else {
     $follow->printLogInAsFollowBtn();
 }
 echo "<div id='payment'>";
 if ($articleData[0]['payment'] != "not specified") {
     $payments = explode(",", $articleData[0]['payment']);
     foreach ($payments as $payment) {
         $payment = trim($payment);
         if ($payment == "prepayment") {
             echo "<img class='payimg' src='../../images/payments/moneyorder.png' alt='Vorüberweisung' height='30' width='50'>";
         }
         if ($payment == "sofort") {
             echo "<img class='payimg' src='../../images/payments/sofortueberweisung.png' alt='paypal' height='30' width='50'>";
         }
         if ($payment == "paypal") {