From: Joey Schulze Date: Fri, 1 Dec 2000 21:36:21 +0000 (+0000) Subject: Aktuelle Version des Shops X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Finfocon.infodrom.org;a=commitdiff_plain;h=d26d3e406539dd7a306c2ab1bc486a130214b524 Aktuelle Version des Shops --- diff --git a/src/shop/index.wml b/src/shop/index.wml new file mode 100644 index 0000000..2c65549 --- /dev/null +++ b/src/shop/index.wml @@ -0,0 +1,62 @@ +#include +#include + + + +

Online-Shop

+ +

 Bitte beachten Sie unsere Bestimmungen zur Mindestabnahme + +

+  + +"; +# $ch = "#5dbbf9"; +# $cd = "#9bd4fa"; +# $ch = "#85c5f0"; +# $cd = "#abdcfc"; + $ch = "#abdcfc"; + $cd = "#eff0f1"; + + $dbh = dbconnect(); + + // WHERE spool > 0 + $sth = dbquery ($dbh, "SELECT article,name FROM article ORDER BY article"); + + for ($i=0; $i < pg_NumRows ($sth); $i++) { + $row = pg_fetch_array ($sth, $i); + echo ($la); + + echo ("
"; + $le = "
"); + printf ("", + $ch, $row['article'], $row['name']); + + $sthi = dbquery ($dbh, sprintf ("SELECT name,price,articleid FROM offer WHERE article = '%s'ORDER BY articleid", + $row['article'])); + for ($ii=0; $ii < pg_NumRows ($sthi); $ii++) { + $rowi = pg_fetch_array ($sthi, $ii); + printf ("", $cd, $rowi['name']); + printf ("", $rowi['price']); + printf ("", $rowi['articleid']); + } + echo ("
" + ."%s
%s%6.2f DM" + ."
"); + echo ($le); + } + +?> + + +

.
+

+ + +# Local variables: +# mode: indented-text +# mode: auto-fill +# mode-: iso-accents +# end: diff --git a/src/shop/min.wml b/src/shop/min.wml new file mode 100644 index 0000000..7e295ad --- /dev/null +++ b/src/shop/min.wml @@ -0,0 +1,42 @@ +#include + + + +

Mindestabnahme im Online-Shop

+ +

Bitte haben Sie Verständnis dafür, daß wir keine beliebigen Mengen +Ware verschicken können. Der Aufwand und die Kosten für die +Verpackung und Sicherung wären teilweise zu hoch. Die Preise der +Waren sind absichtlich knapp kalkuliert, damit sie keine Hemmschwelle +für den Kauf darstellen. + +

Aufgrund der Zerbrechlichkeit von z.B. Tassen können diese nur als +Gebinde (6 Stück) oder zusammen mit vier T-Shirts oder Sweatshirts +(gepolstert) verschickt werden. Pins können daher nur im 10er-Pack +oder zusammen mit anderen Artikeln bestellt werden. + +

Richtlinien

+ +Im folgenden unsere Richtlinien: + +
    + +
  • min. 2 T-Shirts +oder
  • min. 1 Sweatshirt +oder
  • min. 4 T-Shirts oder 4 Sweatshirts und 1 Tasse +oder
  • Vielfaches von 6 Tassen (nur Gebinde-weise) +oder
  • eines der obigen und beliebig viele Pins +oder
  • min. 10 Pins + +
+ +

Wir sind ein kleines Unternehmen, das diesen Dienst hauptsächlich +aufgebaut hat, um der Community auch seltene Fan-Produkte aus dem +Bereich Freie Software bieten zu können, die ein großes Geschäft +aufgrund der geringen Stückzahl nicht anbieten würde. + + +# Local variables: +# mode: indented-text +# mode: iso-accents +# end: diff --git a/src/shop/show.wml b/src/shop/show.wml new file mode 100644 index 0000000..5b52362 --- /dev/null +++ b/src/shop/show.wml @@ -0,0 +1,96 @@ +#include +#include + + + +

Online-Shop

+ +  + +"; + $ch = "#abdcfc"; + $cd = "#eff0f1"; + + $dbh = dbconnect(); + + # FIXME: kill ' from $article + $sth = dbquery ($dbh, "SELECT * FROM article WHERE article = '$article'"); + + if (pg_NumRows ($sth) == 0) { + echo ($la); + echo ("
"; + $le = "
"); + printf ("", + $ch); + echo ("
" + ."Kein Artikel gefunden.
"); + echo ($le); + } else { + $row = pg_fetch_array ($sth, 0); + echo ($la); + + echo (""); + printf ("", + $ch, $row['name']); + + if (strlen ($row['url_path']) > 0) { + $img = sprintf ("src=\"%s\" width=\"%d\" height=\"%d\" alt=\"[Artikel #%s]\"", + $row['url_path'], $row['url_width'], $row['url_height'], $row['article']); + } else { + $img = "src=\"Pics/nopix.png\" width=\"158\" height=\"183\" alt=\"[Kein Bild vorhanden]\""; + } + + # Sub-Query + $sthi = dbquery ($dbh, sprintf ("SELECT name,price,articleid FROM offer WHERE article = '%s'ORDER BY articleid", + $row['article'])); + if (pg_NumRows ($sthi) > 0) { + + $table = "
" + ."%s
"; + + for ($ii=0; $ii < pg_NumRows ($sthi); $ii++) { + $rowi = pg_fetch_array ($sthi, $ii); + $table .= sprintf ("", + $rowi['name']); + $table .= sprintf ("", + $rowi['price']); + } + $table .= "
 %s%6.2f DM 
"; + } else { + $table = ""; + } + # /Sub-Query + + + printf ("" + ."

%s" + ." ", + $row['description'], $img); + + printf ("%s", $table); + +# $sthi = dbquery ($dbh, sprintf ("SELECT name,price,articleid FROM offer WHERE article = '%s'ORDER BY articleid", +# $row['article'])); +# for ($ii=0; $ii < pg_NumRows ($sthi); $ii++) { +# $rowi = pg_fetch_array ($sthi, $ii); +# printf (" %s", $cd, $rowi['name']); +# printf ("%6.2f DM ", $rowi['price']); +# } +# + echo (""); + echo ($le); + } +?> + + + +

Preise freibleibend. Alle Preise verstehen sich inklusive gesetzlich vorgeschriebener Mehrwertsteuer. + + +# Local variables: +# mode: indented-text +# mode: auto-fill +# mode-: iso-accents +# end: diff --git a/src/shop/submenu.inc b/src/shop/submenu.inc new file mode 100644 index 0000000..850b7cc --- /dev/null +++ b/src/shop/submenu.inc @@ -0,0 +1,11 @@ + Basics
+ +  "index" + Übersicht + Übersicht +>
+ +  "min" + Mindestmengen + Mindestmengen +>