addElement(
'header', // element type
'anmeldung_header', // name
'Anmeldung für Aussteller zur MEDIENMESSE 2008' // label
);
// add text field
$form->addElement(
'text', // element type
'anmeldung[firma]', // name
'Firma', // label
'maxlength="255" style="width: 235px;"' // html attributes
);
// add textarea
$form->addElement(
'text', // element type
'anmeldung[strasse]', // name
'Strasse', // label
'maxlength="255" style="width: 235px;"' // html attributes
);
// add textarea
$form->addElement(
'text', // element type
'anmeldung[plz]', // name
'PLZ', // label
'maxlength="5" style="width: 50px;"' // html attributes
);
// add textarea
$form->addElement(
'text', // element type
'anmeldung[ort]', // name
'Ort', // label
'maxlength="255" style="width: 235px;"' // html attributes
);
// add text field
$form->addElement(
'text', // element type
'anmeldung[tel]', // name
'Telefon', // label
'maxlength="32" style="width: 235px;"' // html attributes
);
// add text field
$form->addElement(
'text', // element type
'anmeldung[fax]', // name
'Telefax', // label
'maxlength="32" style="width: 235px;"' // html attributes
);
// add text field
$form->addElement(
'text', // element type
'anmeldung[email]', // name
'E-Mail', // label
'maxlength="255" style="width: 235px;"' // html attributes
);
// add text field
$form->addElement(
'text', // element type
'anmeldung[web]', // name
'Webpage', // label
'maxlength="255" style="width: 235px;"' // html attributes
);
// add text field
$form->addElement(
'text', // element type
'anmeldung[firmeninhaber]', // name
'Firmeninhaber', // label
'maxlength="255" style="width: 235px;"' // html attributes
);
// add text field
$form->addElement(
'text', // element type
'anmeldung[geschaeftsfuehrer]', // name
'Geschäftsführer', // label
'maxlength="255" style="width: 235px;"' // html attributes
);
$form->addElement(
'header', // element type
'anmeldung_reopen', // name
''
);
// add header elemnt
$form->addElement(
'header', // element type
'anmeldung_subheader', // name
'Für die Statistik:' // label
);
// add group item
$participant[] = HTML_QuickForm::createElement(
'radio', // element type
'anmeldung[participant]', // name
'', // text to display before button
'Ja ', // text to display after button
'1', // the value returned
'' // attributes
);
// add group item
$participant[] = HTML_QuickForm::createElement(
'radio', // element type
'anmeldung[participant]', // name
'', // text to display before button
'Nein
', // text to display after button
'0', // the value returned
'' // attributes
);
// add group item
$participant[] = HTML_QuickForm::createElement(
'radio', // element type
'anmeldung[exhibitor]', // name
'', // text to display before button
'Als Besucher ', // text to display after button
'0', // the value returned
'' // attributes
);
// add group item
$participant[] = HTML_QuickForm::createElement(
'radio', // element type
'anmeldung[exhibitor]', // name
'', // text to display before button
'Als Aussteller', // text to display after button
'1', // the value returned
'' // attributes
);
// add group
$form->addGroup(
$participant, // group elements
'anmeldung_participant_group', // group name
'Wir waren Teilnehmer der letzten Medienmesse 2007
', // group label
'', // separator
FALSE // append name
);
$form->addElement(
'header', // element type
'anmeldung_reopen', // name
''
);
// add header elemnt
$form->addElement(
'header', // element type
'anmeldung_subheader', // name
'Präsentationsform '
. '(wird vom Aussteller mitgebracht)' // label
);
$form->addElement(
'checkbox', // element type
'anmeldung[laptop]', // name
'Laptop', // text to display before button
'', // text to display after button
'' // attributes
);
$form->addElement(
'checkbox', // element type
'anmeldung[roll_up_display]', // name
'Roll-Up Display', // text to display before button
'', // text to display after button
'' // attributes
);
/*$form->addElement(
'checkbox', // element type
'anmeldung[banner_display]', // name
'Bannerdisplay', // text to display before button
'', // text to display after button
'' // attributes
);
$form->addElement(
'text', // element type
'anmeldung[banner_display_size]', // name
'Größe', // text to display before button
'maxlength="5" style="width: 50px;"' // attributes
);*/
$display[] = HTML_QuickForm::createElement(
'checkbox', // element type
'anmeldung[banner_display]', // name
'', // text to display before button
'', // text to display after button
'' // attributes
);
$display[] = HTML_QuickForm::createElement(
'text', // element type
'anmeldung[banner_display_size]', // name
'Größe', // text to display before button
'maxlength="5" style="width: 50px;"' // attributes
);
$form->addGroup(
$display, // group elements
'anmeldung_display_group', // group name
'Bannerdisplay', // group label
' ', // separator
FALSE // append name
);
$form->addElement(
'checkbox', // element type
'anmeldung[produktexemplare]', // name
'Produktexemplare', // text to display before button
'', // text to display after button
'' // attributes
);
$stand[] = HTML_QuickForm::createElement(
'checkbox', // element type
'anmeldung[eigenstand]', // name
'', // text to display before button
'', // text to display after button
'' // attributes
);
$stand[] = HTML_QuickForm::createElement(
'text', // element type
'anmeldung[eigenstand_size]', // name
'Größe', // text to display before button
'maxlength="5" style="width: 50px;"' // attributes
);
$form->addGroup(
$stand, // group elements
'anmeldung_stand_group', // group name
'Eigenstand', // group label
' ', // separator
FALSE // append name
);
$form->addElement(
'header', // element type
'anmeldung_reopen', // name
''
);
$form->addElement(
'header', // element type
'anmeldung_subheader', // name
'Wir sind ein Unternehmen der folgenden Branche:' // label
);
// kats
$sql = 'SELECT kategorie.ID, kategorie.kategorie FROM kategorie ORDER BY kategorie.kategorie ASC';
$kategories = $myquery->db->getAssoc($sql, false, array(), DB_FETCHMODE_ASSOC);
// var_dump($kategories);
if (isset($kategories) && is_array($kategories)) {
foreach($kategories as $kategorie_id => $kategorie){
$form->addElement(
'checkbox', // element type
'kategorie['. $kategorie_id . ']', // name
htmlentities($kategorie), // text to display before button
'', // text to display after button
'' // attributes
);
}
}
$form->addElement(
'header', // element type
'anmeldung_reopen', // name
''
);
$form->addElement(
'header', // element type
'anmeldung_subheader', // name
'Bestätigung:' // label
);
$confirm[] = HTML_QuickForm::createElement(
'checkbox', // element type
'anmeldung[confirm]', // name
'', // text to display before button
'Mit dieser Anmeldung erkenne ich die Teilnahme- und'
. 'Geschäftsbedingungen der Medienmesse '
. ''
. '°mstreet Berlin an.', // text to display after button
/*
'Ich melde mich verbindlich zur Medienmesse am 31.1.2008 '
. 'mit einem Stand an. '
. 'Ich habe die '
. ''
. 'Hinweise für Aussteller gelesen '
. 'und bin mit den Bedingungen einverstanden. ',
*/
'1', // the value returned
'' // attributes
);
// add group
$form->addGroup(
$confirm, // group elements
'anmeldung_confirm_group', // group name
'', // group label
'', // separator
FALSE // append name
);
// add button submit
$buttons[] = HTML_QuickForm::createElement(
'reset', // element type
'anmeldung_reset', // name
'zurücksetzen', // value
'class="button_reset"' // attributes
);
// add button submit
$buttons[] = HTML_QuickForm::createElement(
'submit', // element type
'anmeldung_submit', // name
'anmelden', // value
'class="button_submit"' // attributes
);
// add button group
$form->addGroup(
$buttons, // group elements
'anmeldung_button_group', // group name
' ', // group label
' ', // separator
FALSE // append name
);
// filter
$form->applyFilter('anmeldung[email]', 'trim');
// add rules
$form->addRule(
'anmeldung[firma]', // element to apply rule on
'Dieses Feld darf nicht leer sein.', // error message
'required' // rule type
);
$form->addRule(
'anmeldung[strasse]', // element to apply rule on
'Dieses Feld darf nicht leer sein.', // error message
'required' // rule type
);
$form->addRule(
'anmeldung[plz]', // element to apply rule on
'Dieses Feld darf nicht leer sein.', // error message
'required' // rule type
);
$form->addRule(
'anmeldung[plz]', // element to apply rule on
'PLZ besteht nur aus Zahlen.', // error message
'numeric' // rule type
);
$form->addRule(
'anmeldung[ort]', // element to apply rule on
'Dieses Feld darf nicht leer sein.', // error message
'required' // rule type
);
$form->addRule(
'anmeldung[email]', // element to apply rule on
'Dieses Feld darf nicht leer sein.', // error message
'required' // rule type
);
$form->addRule(
'anmeldung[email]', // element to apply rule on
'Die E-Mail-Adresse entspricht nicht den Normen.', // error message
'email' // rule type
);
$form->addRule(
'anmeldung[tel]', // element to apply rule on
'Dieses Feld darf nicht leer sein.', // error message
'required' // rule type
);
$form->addGroupRule(
'anmeldung_confirm_group', // element to apply rule on
'Sie müssen sich verbindlich anmelden.', // error message
'required', // rule type
null, // format
1 // number of valid elements
);
// add notes
$form->setRequiredNote('bezeichnet ein erforderliches Feld');
if ($form->validate()) {
// clean insert fields
foreach($_POST['anmeldung'] as $anmeldung_key => $anmeldung_value){
$anmeldung_key = $myquery->db->escapeSimple(strip_tags($anmeldung_key));
$anmeldung[$anmeldung_key] = stripslashes(strip_tags($anmeldung_value));
}
if (isset($anmeldung['participant']) && $anmeldung['participant'] == 1) {
if (isset($anmeldung['exhibitor']) && $anmeldung['exhibitor'] == 1) {
$anmeldung['exhibitor07'] = 1;
} else {
$anmeldung['visitor07'] = 1;
}
}
if (isset($anmeldung['participant'])) {
unset($anmeldung['participant']);
}
if (isset($anmeldung['exhibitor'])) {
unset($anmeldung['exhibitor']);
}
if (!isset($anmeldung['banner_display']) && isset($anmeldung['banner_display_size'])) {
unset($anmeldung['banner_display_size']);
}
if (!isset($anmeldung['eigenstand']) && isset($anmeldung['eigenstand_size'])) {
unset($anmeldung['eigenstand_size']);
}
unset($anmeldung['confirm']);
// add registration_time
$anmeldung['reg_time'] = date('Y-m-d H:i:s');
/*
echo '
Vielen Dank für Ihre Anmeldung!
' . 'Wir freuen uns Sie als Aussteller auf der Medienmesse 2008 begrüßen zu dürfen. ' . '
Ihr MEDIENMESSE-TEAM
' . 'Sollten sie Fragen an uns haben, ' . 'bitte wenden Sie sich an:' . '
' . '
' . 'B&R companyVielen Dank, für Ihre Anmeldung!
' . 'Leider gab es Schwierigkeiten bei der Datenübertragung...
'
. 'Wir konnten ihre Daten nicht erfassen.
'
. 'Bitte wenden Sie sich an den Administrator: '
. 'internet@medienportal-berlin.de
Mit dem Absenden dieses Formulars melden Sie sich als Aussteller ' . 'für die Medienmesse ' . '' . '°mstreet am ' . '31. Januar 2008 an.
' . 'Kosten:
'
. '80,00 €
'
. '10% Rabatt für Vereinsmitglieder des AK '
. ''
. '°mstreet
Alle Preise verstehen sich ' . 'zuzüglich der gesetzlichen deutschen Umsatzsteuer.
' . 'Die Ausstellerfläche beträgt 3 qm und besteht' . 'aus einem Tisch und zwei Stühlen, sowie einer' . 'Stellwand für Präsentationsmöglichkeiten. ' . 'Stromanschluss ist gegeben.
' . 'Weitere wichtige Informationen entnehemen Sie unseren
'
. '
'
. ''
. 'Hinweisen für Aussteller als PDF-Datei (84 KB).
Anmeldung nicht mehr möglich - die Veranstaltung liegt in der Vergangenheit.