From 7270d0e7a0125730175c40f0b8ce914c6353ecc4 Mon Sep 17 00:00:00 2001 From: nicoulas Date: Sun, 12 Feb 2012 22:38:58 +0000 Subject: [PATCH] forms for the CLT bus and hotel reservations svn path=/trunk/; revision=22368 --- cgi-bin/clt-bus.en.xml | 20 ++++ cgi-bin/clt-bus.pl | 74 ++++++++++++++ cgi-bin/clt-hotel.en.xml | 20 ++++ cgi-bin/clt-hotel.pl | 110 ++++++++++++++++++++ events/clt/clt-bus.de.xhtml | 140 +++++++++++++++++++++++++ events/clt/clt-hotel.de.xhtml | 185 ++++++++++++++++++++++++++++++++++ 6 files changed, 549 insertions(+) create mode 100644 cgi-bin/clt-bus.en.xml create mode 100755 cgi-bin/clt-bus.pl create mode 100644 cgi-bin/clt-hotel.en.xml create mode 100755 cgi-bin/clt-hotel.pl create mode 100644 events/clt/clt-bus.de.xhtml create mode 100644 events/clt/clt-hotel.de.xhtml diff --git a/cgi-bin/clt-bus.en.xml b/cgi-bin/clt-bus.en.xml new file mode 100644 index 0000000000..2963ea7aca --- /dev/null +++ b/cgi-bin/clt-bus.en.xml @@ -0,0 +1,20 @@ + + + + + An error occured when attempting to send your + message. + Please specify your name. + Please specify your e-mail. + Please specify your phone number. + This e-mail is not valid. + The invoice is too long. + The comment is too long. + + + + Your reservation was successful! + You will recieve a confirmation per email soon. + + + \ No newline at end of file diff --git a/cgi-bin/clt-bus.pl b/cgi-bin/clt-bus.pl new file mode 100755 index 0000000000..cf1d694828 --- /dev/null +++ b/cgi-bin/clt-bus.pl @@ -0,0 +1,74 @@ +#!/usr/bin/perl + +use utf8; +use strict; +use warnings; + +use File::Basename; +use Cwd "abs_path"; +use CGI; +use POSIX qw(strftime); +use Text::Wrap; +$Text::Wrap::columns = 72; + +our $base_directory; +BEGIN { $base_directory = dirname(abs_path("../tools/WebBuild")); } +use lib $base_directory; + +use WebBuild::FormValidation; +use WebBuild::DynamicContent; + +my $form = WebBuild::FormValidation->new; +my $content = WebBuild::DynamicContent->new; +my $query = new CGI; + +$form->validates_presence_of("first_name"); +$form->validates_presence_of("family_name"); +$form->validates_presence_of("tel_gsm"); +$form->validates_format_of("email", type => "email"); + +$content->layout("../events/clt/clt-bus.de.html"); + +if ($form->has_errors) { + $content->content($form->get_errors); + $content->render; + exit; +} + +my $date = strftime "%Y-%m-%d", localtime; +my $time = strftime "%s", localtime; + +open(MAIL, "|/usr/lib/sendmail -t -f birgit.huesken\@fsfe.org"); +print MAIL "Reply-To: " . $query->param("email") . "\n"; +print MAIL "From: office\@fsfeurope.org\n"; +print MAIL "To: birgit.huesken\@fsfe.org\n"; + +my $subject = "New reservation for the CLT Bus from " . $query->param("first_name") . " " . $query->param("family_name"); + +print MAIL "Subject: $subject" . "\n"; +print MAIL "Content-Type: text/plain; charset=UTF-8\n\n"; +print MAIL "We have received a new reservation for the CLT Bus.\n\n"; +print MAIL "Name: " . $query->param("first_name") . " " . $query->param("family_name") . "\n"; +print MAIL "Phone: " . $query->param("tel_gsm") . "\n"; +print MAIL "E-mail: " . $query->param("email") . "\n\n"; +print MAIL "Station: " . $query->param("station") . "\n\n"; +print MAIL "---\nInvoice address:\n"; +print MAIL wrap('','',$query->param("invoice_address")) . "\n"; +print MAIL "---\nComment:\n"; +print MAIL wrap('','',$query->param("comment")) . "\n"; +print MAIL "---\n\n"; + +my $output = < +

+ Your message was sent, and we will get in touch with you very + soon. +

+ + +ENDHTML + +$content->content($output); +$content->render; + diff --git a/cgi-bin/clt-hotel.en.xml b/cgi-bin/clt-hotel.en.xml new file mode 100644 index 0000000000..2963ea7aca --- /dev/null +++ b/cgi-bin/clt-hotel.en.xml @@ -0,0 +1,20 @@ + + + + + An error occured when attempting to send your + message. + Please specify your name. + Please specify your e-mail. + Please specify your phone number. + This e-mail is not valid. + The invoice is too long. + The comment is too long. + + + + Your reservation was successful! + You will recieve a confirmation per email soon. + + + \ No newline at end of file diff --git a/cgi-bin/clt-hotel.pl b/cgi-bin/clt-hotel.pl new file mode 100755 index 0000000000..ffee30b1d7 --- /dev/null +++ b/cgi-bin/clt-hotel.pl @@ -0,0 +1,110 @@ +#!/usr/bin/perl + +use utf8; +use strict; +use warnings; + +use File::Basename; +use Cwd "abs_path"; +use CGI; +use POSIX qw(strftime); +use Text::Wrap; +$Text::Wrap::columns = 72; + +our $base_directory; +BEGIN { $base_directory = dirname(abs_path("../tools/WebBuild")); } +use lib $base_directory; + +use WebBuild::FormValidation; +use WebBuild::DynamicContent; + +my $form = WebBuild::FormValidation->new; +my $content = WebBuild::DynamicContent->new; +my $query = new CGI; + +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# +# + +$form->validates_presence_of("first_name"); +$form->validates_presence_of("family_name"); +$form->validates_format_of("email", type => "email"); + +$content->layout("../events/clt/clt-hotel.de.html"); + +if ($form->has_errors) { + $content->content($form->get_errors); + $content->render; + exit; +} + +my $date = strftime "%Y-%m-%d", localtime; +my $time = strftime "%s", localtime; + +open(MAIL, "|/usr/lib/sendmail -t -f birgit.huesken\@fsfe.org"); +print MAIL "Reply-To: " . $query->param("email") . "\n"; +print MAIL "From: office\@fsfeurope.org\n"; +print MAIL "To: birgit.huesken\@fsfe.org\n"; + +my $subject = "New reservation for the CLT Hotel from " . $query->param("first_name") . " " . $query->param("family_name"); + +print MAIL "Subject: $subject" . "\n"; +print MAIL "Content-Type: text/plain; charset=UTF-8\n\n"; +print MAIL "We have received a new reservation for the CLT Hotel.\n\n"; +print MAIL "Name: " . $query->param("first_name") . " " . $query->param("family_name") . "(Fellowhsip Nummer: " . $query->param("fellowship_no") . ")\n"; +print MAIL "Phone: " . $query->param("tel_gsm") . "\n"; +print MAIL "E-mail: " . $query->param("email") . "\n\n"; +print MAIL "Room: " . $query->param("room") . "\n"; +print MAIL "---\nDoppelzimmer?\n"; +print MAIL "Second bed name: " . $query->param("second_bed_name") . "\n"; +print MAIL "Like to share?: " . $query->param("like_to_share") . "\n"; +print MAIL "Sponsor second bed: " . $query->param("sponsor_second_bed") . "\n"; +print MAIL "Breakfast Samstag?: " . $query->param("breakfast_sa") . "\n"; +print MAIL "Breakfast Samstag number: " . $query->param("breakfast_sa_no") . "\n"; +print MAIL "Breakfast Samstag?: " . $query->param("breakfast_su") . "\n"; +print MAIL "Breakfast Samstag?: " . $query->param("breakfast_su_no") . "\n"; +print MAIL "---\nInvoice address:\n"; +print MAIL wrap('','',$query->param("invoice_address")) . "\n"; +print MAIL "---\nComment:\n"; +print MAIL wrap('','',$query->param("invoice_address")) . "\n"; +print MAIL "---\n\n"; + +my $output = < +

+ Your message was sent, and we will get in touch with you very + soon. +

+ + +ENDHTML + +$content->content($output); +$content->render; + diff --git a/events/clt/clt-bus.de.xhtml b/events/clt/clt-bus.de.xhtml new file mode 100644 index 0000000000..8f1bb02094 --- /dev/null +++ b/events/clt/clt-bus.de.xhtml @@ -0,0 +1,140 @@ + + + + + Contact - FSFE + + + + + +

+ CLT 2012 +
+ Reservierung für den Bus nach Chemnitz +

+ +

+ Anmeldungen möglich bis 10.03.2012. +

+ +

+ Wenn Du im Bus von Düsseldorf nach Chemnitz (via Essen, Soest und Haaren) mitfahren möchtest, dann melde Dich bitte über nachstehendes Formular an.

+ +

+ Die erhobenen Daten werden nicht weitergegeben. + Sie werden für die Kontaktaufnahme im Rahmen der Busfahrt genutzt. + Wir werden Deinen Namen und Deine E-Mail-Adresse jedoch speichern, um Dich ggf. im nächsten Jahr über den Bus zu den CLT 2013 zu informieren. +

+ +

+ Die Busfahrt kostet hin und zurück 70,- € pro Person. +

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Vorname +
Pflichtangabe +
+ +
+ Nachname +
Pflichtangabe +
+ +
+ Mobilfunknummer +
Pflichtangabe +
+ +
+ E-Mail-Adresse +
Pflichtangabe +
+ +
+ Einstiegsort: +
Pflichtangabe +
+ + Düsseldorf, Staufenplatz checked(Karte bei OpenStreetMap) +
+ + Düsseldorf, Talstr. (FSFE Office) (Karte bei OpenStreetMap) +
+ + Essen Hbf, Busbahnhof Freiheit (Karte bei OpenStreetMap) +
+ + A44, Ausfahrt 57 Soest-Ost, Burger King Overweg (Karte bei OpenStreetMap) +
+ + Haaren, P&R-Parkplatz Bürener Straße/B480 (Karte bei OpenStreetMap) +
+
+ Ich benötige eine Quittung über den Fahrpreis. Vollständige Anschrift: + + +
+ Fragen? Anregungen? Kommentare? +
+ +
+ +
+ +

Wie geht es weiter?

+ +

+ Du erhältst eine E-Mail mit den Zahlungsinformationen. + Sobald der Geldeingang verbucht ist, gilt Deine Anmeldung als bestätigt. +

+ +

Du benötigst noch eine Unterkunft in Chemnitz?

+

+ Du kannst über die FSFE ein Zimmer im Hotel Europark reservieren. +

+ + + + $Date: 2011-11-18 14:07:15 +0100 (ven. 18 nov. 2011) $ $Author: hugo $ + + \ No newline at end of file diff --git a/events/clt/clt-hotel.de.xhtml b/events/clt/clt-hotel.de.xhtml new file mode 100644 index 0000000000..f115298813 --- /dev/null +++ b/events/clt/clt-hotel.de.xhtml @@ -0,0 +1,185 @@ + + + + + Contact - FSFE + + + + + +

+ CLT 2012 +
+ Zimmerreservierung für Hotel Europark +

+ +

+ Anmeldungen möglich bis 10.03.2012 (bzw. so lange Zimmer zur Verfügung stehen). +

+ +

+ Für die Reservierung eines Zimmers während der CLT 2012, fülle bitte das nachstehende Formular aus. +

+ +

+ Die FSFE stellt lediglich den Kontakt zum Hotel Europark her. + Die Zahlung des Zimmerpreises erfolgt vor Ort im Hotel Europark. + Evtl. anfallende Stornierungskosten gehen zu Deinen Lasten. +

+ +

+ Der FSFE-Bus wird samstags und sonntags morgens um ca. 8:30h vom Hotel zum Veranstaltungsort fahren. + Am Samstag Abend wird es eine Fahrt vom Veranstaltungsort zum Hotel geben. Die Uhrzeit wird mit dem Busfahrer vor Ort abgesprochen. +

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Vorname +
Pflichtangabe +
+ +
+ Nachname +
Pflichtangabe +
+ +
+ Fellowship Nr. + + +
+ Ich benötige +
Pflichtangabe +
+ +
+ Die Beschreibungen der Zimmerkategorien sind beim Hotel Europark nachzulesen. +
+ Preise pro Zimmer pro Nacht, ohne Frühstück +
+ + [Bei Doppelzimmern] +
Name des zweiten Gastes im Doppelzimmer +
+ +
Für den zweiten Gast muß das Formular nicht erneut ausgefüllt werden. +
+
+ + Ich möchte das Zimmer mit einer anderen Person teilen. Bitte stellt den Kontakt zu Interessierten her! +
+
+ + Ich möchte das zweite Bett einem weiteren Besucher zur Verfügung stellen, der es benötigt. Bitte stellt den Kontakt zu Interessierten her! +
+ Ich möchte das Frühstück im Hotel dazubuchen. +
+ 6,- € pro Person pro Frühstück +
+
+
+ + Frühstück am Samstag. + Personenzahl: +
+
+ + Frühstück am Sonntag. + Personenzahl: +
+ Ich benötige eine Quittung über den Zimmerpreis. Vollständige Anschrift: + + +
+ Mobilfunknummer +
Angabe empfohlen +
+ +
+ E-Mail-Adresse +
Pflichtangabe +
+ +
+ Fragen? Anregungen? Kommentare? +
+ +
+ +
+ +

Wie geht es weiter?

+ +

+ Du erhältst eine E-Mail mit der Bestätigung, ob das Zimmer in der gewünschten Kategorie noch zur Verfügung steht. +

+ +

Du möchtest mit dem Bus von Düsseldorf nach Chemnitz?

+

+ Die FSFE organisiert einen Bus. +

+ + + + $Date: 2011-11-18 14:07:15 +0100 (ven. 18 nov. 2011) $ $Author: hugo $ + + \ No newline at end of file