Rewrote some code, added templates/functions:
authorRoland Häder <roland@mxchange.org>
Wed, 31 Jul 2013 10:54:22 +0000 (10:54 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 31 Jul 2013 10:54:22 +0000 (10:54 +0000)
- Introduced return(Error)Message() functions
- Added template for choosing registration provider
- Added template helper which reads all activated registration provider
- Other improvements

30 files changed:
.gitattributes
inc/extensions-functions.php
inc/install-functions.php
inc/language/register_de.php
inc/language/sponsor_de.php
inc/libs/network_functions.php
inc/libs/register_functions.php
inc/modules/admin/overview-inc.php
inc/modules/admin/what-list_beg.php
inc/modules/admin/what-list_bonus.php
inc/modules/admin/what-list_sponsor_pay.php
inc/modules/admin/what-list_unconfirmed.php
inc/modules/guest/what-sponsor_reg.php
inc/modules/member/what-mydata.php
inc/modules/member/what-reflinks.php
inc/modules/member/what-stats.php
inc/modules/member/what-transfer.php
inc/modules/sponsor/account.php
inc/modules/sponsor/settings.php
inc/template-functions.php
templates/de/emails/admin/admin_sponsor_change_data.tpl
templates/de/emails/admin/admin_sponsor_change_email.tpl
templates/de/emails/admin/admin_sponsor_edit.tpl
templates/de/emails/sponsor/sponsor_change_data.tpl
templates/de/html/admin/admin_add_sponsor.tpl
templates/de/html/admin/admin_edit_sponsor_edit.tpl
templates/de/html/admin/admin_list_sponsor_details.tpl
templates/de/html/guest/guest_registration_select.tpl [new file with mode: 0644]
templates/de/html/guest/guest_sponsor_reg.tpl
templates/de/html/sponsor/sponsor_account_form.tpl

index 80a004b..5b01361 100644 (file)
@@ -1850,6 +1850,7 @@ templates/de/html/guest/guest_receive_table.tpl svneol=native#text/plain
 templates/de/html/guest/guest_register.tpl svneol=native#text/plain
 templates/de/html/guest/guest_register_refid.tpl svneol=native#text/plain
 templates/de/html/guest/guest_register_refid_hide.tpl svneol=native#text/plain
+templates/de/html/guest/guest_registration_select.tpl svneol=native#text/plain
 templates/de/html/guest/guest_show_rallye.tpl svneol=native#text/plain
 templates/de/html/guest/guest_sponsor_act_row.tpl svneol=native#text/plain
 templates/de/html/guest/guest_sponsor_activate.tpl svneol=native#text/plain
index 88676dd..ea9e467 100644 (file)
@@ -873,7 +873,7 @@ function addExtensionVerboseSqlTable ($title = '{--ADMIN_SQLS_EXECUTED_ON_REMOVA
                        $OUT = loadTemplate('admin_extension_sql_table', TRUE, $content);
                } else {
                        // No addional SQL commands to run
-                       $OUT = displayMessage('{--ADMIN_EXTENSION_VERBOSE_SQLS_404--}', TRUE);
+                       $OUT = returnMessage('{--ADMIN_EXTENSION_VERBOSE_SQLS_404--}');
                }
        } // END - if
 
index 5942280..4222ee2 100644 (file)
@@ -151,7 +151,7 @@ function getInstallerContent () {
                $content = $GLOBALS['install_content'];
        } else {
                // Nothing found, this needs fixing
-               $content = displayMessage('{--INSTALLER_CONTENT_404--}', TRUE);
+               $content = returnMessage('{--INSTALLER_CONTENT_404--}');
        }
 
        // Return content
index 2296f38..a46ef6f 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addMessages(array(
        'GUEST_REGISTER_MUST_SET_NOTICE' => "Sind Pflichtangaben, ansonsten erfolgt keine Anmeldung.",
        'PRE_USER_REGISTRATION_FAILED' => "Anmeldung fehlgeschlagen: Pre-Filterkette nicht gelaufen! Bitte melden Sie dies beim zust&auml;ndigen Webmaster.",
-       'CNTRY' => "L&auml;ndercode",
+       'COUNTRY_CODE' => "L&auml;ndercode",
        'GUEST_EMAIL_IS_ALREADY_REGISTERED' => "Sie haben sich bereits mit dieser Email-Adresse angemeldet, oder jemand anderes verwendet Ihre. Doppelte Anmeldungen sind bei uns verboten.",
        'GUEST_ENTER_PASSWORDS' => "Passwort und -wiederholung eingeben:",
 
@@ -54,6 +54,11 @@ addMessages(array(
        'POINTS_SUBJECT_REFERRAL_BONUS' => "Einmalige Werbepr&auml;mie",
        'POINTS_SUBJECT_REFERRAL_BONUS_REF' => "Anteilige einml. Werbepr&auml;mie",
 
+       // Guest - others
+       'GUEST_SELECT_OTHER_REGISTRATION_FORM_TITLE' => "Mit anderen Diensten bei {?MAIN_TITLE?} anmelden.",
+       'GUEST_SELECT_OTHER_REGISTRATION_FORM_NOTICE' => "Beim Anmelden mit einen anderen Dienst &quot;verbinden&quot; Sie diesen mit diesem {?mt_word?}. Dadurch werden Daten vom Anmeldedienst an diesen &uuml;bertragen. Mehr dazu steht beim Anmeldeformular des jweiligen Anbieters.",
+       'GUEST_EXTRA_REGISTRATION_PROVIDER_404' => "Es wurden noch keine weiteren Anmeldedienste freigegeben oder eingerichtet. Bitte verwenden Sie das nachfolgende Formular zur lokalen Anmeldung.",
+
        // Admin - others
        'ADMIN_SAVE_REGISTER_MUST' => "Einstellungen &auml;ndern",
        'ADMIN_REGISTER_CHANGES_SAVED' => "Es wurden <span class=\"data\">%s</span> Pflichtfelder aktualisiert.",
index 12d7a50..cea7750 100644 (file)
@@ -55,7 +55,7 @@ addMessages(array(
        'ADMIN_SPONSOR_ENTER_CONTACT_DATA' => "Kontaktdaten des Sponsors",
        'SPONSOR_ENTER_STREET_NR1' => "Stra&szlig;e mit Hausnummer",
        'SPONSOR_ENTER_STREET_NR2' => "(noch Stra&szlig;e; Zeile 2)",
-       'SPONSOR_ENTER_CNTRY_ZIP_CITY' => "L&auml;ndercode, PLZ, Wohnort",
+       'SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY' => "L&auml;ndercode, PLZ, Wohnort",
        'SPONSOR_ENTER_PHONE' => "Telefonnummer",
        'SPONSOR_ENTER_FAX' => "Faxnummer",
        'SPONSOR_ENTER_CELL' => "Handynummer",
@@ -174,7 +174,7 @@ addMessages(array(
        'SPONSOR_ACCOUNT_UNLOCKED' => "Ihr Sponsorenaccount wurde hiermit von einem unserer Administratoren wieder freigegeben. Sie k&ouml;nnen sich mit den alten Logindaten wieder einloggen. Sollten Sie Ihr Passwort vergessen haben, k&ouml;nnen Sie sich unter Sponsoren->Einloggen ein neues zusenden lassen.",
        'SPONSOR_EMAIL_STREET_NR1' => "Strasse mit Hausnummer",
        'SPONSOR_EMAIL_STREET_NR2' => "(noch Strasse; Zeile 2)",
-       'SPONSOR_EMAIL_CNTRY_ZIP_CITY' => "L&auml;ndercode, PLZ, Wohnort",
+       'SPONSOR_EMAIL_COUNTRY_CODE_ZIP_CITY' => "L&auml;ndercode, PLZ, Wohnort",
        'SPONSOR_PASS_UNCHANGED' => "- Nicht ge&auml;ndert! -",
 
        // Guest headers
index a13a124..aa16670 100644 (file)
@@ -713,7 +713,7 @@ ORDER BY
                }
        } else {
                // Nothing selected
-               $content = displayErrorMessage('{--ADMIN_ENTRIES_404--}');
+               $content = returnErrorMessage('{--ADMIN_ENTRIES_404--}');
        }
 
        // Free the result
@@ -759,7 +759,7 @@ ORDER BY
                $content = generateSelectionBoxFromArray($rows, 'network_type', 'network_type_id');
        } else {
                // Nothing selected
-               $content = displayErrorMessage('{--ADMIN_ENTRIES_404--}');
+               $content = returnErrorMessage('{--ADMIN_ENTRIES_404--}');
        }
 
        // Free the result
@@ -806,7 +806,7 @@ ORDER BY
                $content = generateSelectionBoxFromArray($rows, 'network_type', 'network_type_id', '', '_title');
        } else {
                // Nothing selected
-               $content = displayErrorMessage('{--ADMIN_ENTRIES_404--}');
+               $content = returnErrorMessage('{--ADMIN_ENTRIES_404--}');
        }
 
        // Free the result
index b330fea..2fc7178 100644 (file)
@@ -661,5 +661,54 @@ function doTemplateAdminRegisterCategoryTable ($templateName, $clear = FALSE, $c
        return registerGenerateCategoryTable('admin', $configEntry);
 }
 
+// Template helper for generating a list of all activated user registration provider
+function doTemplateGuestRegistrationList ($templateName, $clear = FALSE) {
+       // Init output
+       $content = '';
+
+       // Default is only activated provider
+       $addSql = " AND `provider_is_active`='Y'";
+
+       // Is admin logged-in?
+       if (isAdmin()) {
+               // Then show all
+               $addSql = '';
+       } // END - if
+
+       // Search for all
+       $result = sqlQuery("SELECT
+       `provider_name`,
+       `provider_extension`
+FROM
+       `{?_MYSQL_PREFIX?}_user_register_provider`
+WHERE
+       `provider_extension` != 'register'
+       " . $addSql . "
+ORDER BY
+       `provider_name` ASC", __FUNCTION__, __LINE__);
+
+       // Are there entries?
+       if (sqlNumRows($result) > 0) {
+               // Loop through all
+               $row = '';
+               while ($content = sqlFetchArray($result)) {
+                       // Load row template
+                       $row .= loadTemplate('guest_registration_provider_row', TRUE, $content);
+               } // END - while
+
+               // Load main template
+               $content = loadTemplate('guest_registration_provider', TRUE, $row);
+       } else {
+               // Nothing found
+               $content = returnMessage('{--GUEST_EXTRA_REGISTRATION_PROVIDER_404--}');
+       }
+
+       // Free result
+       sqlFreeResult($result);
+
+       // Return the generated content
+       return $content;
+}
+
 // [EOF]
 ?>
index e42defe..b687617 100644 (file)
@@ -221,7 +221,7 @@ LIMIT 1",
                                        // Is this non-productive?
                                        if (isExtensionProductive() === FALSE) {
                                                // Issue warning
-                                               $taskData['text'] = displayMessage('{%message,ADMIN_EXTENSION_IS_NON_PRODUCTIVE=' . $ext_name . '%}', TRUE) . $taskData['text'];
+                                               $taskData['text'] = returnMessage('{%message,ADMIN_EXTENSION_IS_NON_PRODUCTIVE=' . $ext_name . '%}') . $taskData['text'];
                                        } // END - if
 
                                        // Set current extension name
index 14f7867..beae9b8 100644 (file)
@@ -119,14 +119,14 @@ ORDER BY
                        $content['withdraw_form'] = loadTemplate('admin_list_beg_form', TRUE);
                } else {
                        // Display message "no manual withdraw possible"
-                       $content['withdraw_form'] = displayMessage('{--ADMIN_BEG_ALREADY_WITHDRAW--}', TRUE);
+                       $content['withdraw_form'] = returnMessage('{--ADMIN_BEG_ALREADY_WITHDRAW--}');
                }
 
                // Prepare constant for timemark
                if (isExtensionActive('autopurge')) {
                        $content['autopurge_timeout'] = generateDateTime(time() - getApInactiveSince(), 2);
                } else {
-                       $content['autopurge_timeout'] = displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=autopurge%}', TRUE);
+                       $content['autopurge_timeout'] = returnMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=autopurge%}');
                }
 
                // Load final template
index a9c155c..671c735 100644 (file)
@@ -129,7 +129,7 @@ ORDER BY
                        $content['withdraw_form'] = loadTemplate('admin_list_bonus_form', TRUE);
                } else {
                        // Display message "no manual withdraw possible"
-                       $content['withdraw_form'] = displayErrorMessage('{--ADMIN_BONUS_ALREADY_WITHDRAW--}', TRUE);
+                       $content['withdraw_form'] = returnErrorMessage('{--ADMIN_BONUS_ALREADY_WITHDRAW--}');
                }
 
                // Prepare constant for timemark
index 702388e..4c4d676 100644 (file)
@@ -199,7 +199,7 @@ ORDER BY
                $content['list_out'] = loadTemplate('admin_list_sponsor_pay', TRUE, $OUT);
        } else {
                // Noting setup so far!
-               $content['list_out'] = displayMessage('{--ADMIN_SPONSOR_NO_PAYTYPES--}', TRUE);
+               $content['list_out'] = returnMessage('{--ADMIN_SPONSOR_NO_PAYTYPES--}');
        }
 
        // Free memory
index 822d58d..66bdca4 100644 (file)
@@ -191,7 +191,7 @@ LIMIT %s",
                        $OUT = loadTemplate('admin_list_unconfirmed_list', TRUE, $OUT);
                } else {
                        // All links are confirmed... strange, you shall normally not get a link to this place in this scenario... hmmm.
-                       $OUT = displayMessage('{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}', TRUE);
+                       $OUT = returnMessage('{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}');
                }
 
                // Prepare content
index 0750e18..784f56f 100644 (file)
@@ -279,7 +279,7 @@ ORDER BY
 
                        // Errors found?
                        if (isFilledArray($formErrors)) {
-                               $OUT = displayMessage('{--SPONSOR_REGISTER_SOMETHING_MISSING--}', TRUE);
+                               $OUT = returnMessage('{--SPONSOR_REGISTER_SOMETHING_MISSING--}');
                                $OUT .= '<ol>';
                                foreach ($formErrors as $error) {
                                        $OUT .= '<li>' . $error . '</li>';
index a7cdf89..0ccaac0 100644 (file)
@@ -73,7 +73,7 @@ switch ($mode) {
                // How far is last change on his profile away from now?
                if ((($content['last_update'] + getProfileLock()) > time()) && (!isAdmin()) && (getProfileLock() > 0)) {
                        // You cannot change your account
-                       $content['change'] = displayMessage('<div class="notice">{%message,MEMBER_PROFILE_LOCKED=' . generateDateTime($content['last_update'] + getProfileLock(), 0) . '%}</div>', TRUE);
+                       $content['change'] = returnMessage('<div class="notice">{%message,MEMBER_PROFILE_LOCKED=' . generateDateTime($content['last_update'] + getProfileLock(), 0) . '%}</div>');
                } else {
                        // He is allowed to change his profile
                        $content['change'] = loadTemplate('member_mydata_button', TRUE);
index 529d73f..9581176 100644 (file)
@@ -110,7 +110,7 @@ if (!ifSqlHasZeroNums($result)) {
        $content['refbanner_content'] = loadTemplate('member_list_reflinks', TRUE, $OUT);
 } else {
        // No refbanner found
-       $content['refbanner_content'] = displayMessage('{--MEMBER_REFERRAL_BANNER_404--}', TRUE);
+       $content['refbanner_content'] = returnMessage('{--MEMBER_REFERRAL_BANNER_404--}');
 }
 
 // Free result
index 1239058..118f1b8 100644 (file)
@@ -84,7 +84,7 @@ if (!ifSqlHasZeroNums($result)) {
        $main_content['pool'] = loadTemplate('member_pool_table', TRUE, $OUT);
 } else {
        // No mails in pool!
-       $main_content['pool'] = displayMessage('{--MEMBER_NO_MAILS_IN_POOL--}', TRUE);
+       $main_content['pool'] = returnMessage('{--MEMBER_NO_MAILS_IN_POOL--}');
 }
 
 // Free result
@@ -128,7 +128,7 @@ if (!ifSqlHasZeroNums($result)) {
        $main_content['stats'] = loadTemplate('member_stats_table', TRUE, $OUT);
 } else {
        // No mail orders fond
-       $main_content['stats'] = displayMessage('{--MEMBER_NO_MAILS_IN_STATS--}', TRUE);
+       $main_content['stats'] = returnMessage('{--MEMBER_NO_MAILS_IN_STATS--}');
 }
 
 // Free result
index 6dea4dd..74ebcfd 100644 (file)
@@ -234,7 +234,7 @@ switch ($mode) {
                                sqlFreeResult($result);
                        } else {
                                // No one else is opt-in
-                               $OUT = displayMessage('{--MEMBER_TRANSFER_NO_ONE_ELSE_OPT_IN--}', TRUE);
+                               $OUT = returnMessage('{--MEMBER_TRANSFER_NO_ONE_ELSE_OPT_IN--}');
                                $content['to_disabled'] = ' disabled="disabled"';
                        }
 
@@ -256,7 +256,7 @@ switch ($mode) {
                                $content['captcha_code'] = '<input type="hidden" name="code_chk" value="' . $rand . '" /><input type="text" name="code" class="form_field" size="5" maxlength="7"' . $content['to_disabled'] . ' />&nbsp;' . $img;
                        } else {
                                $code = '00000';
-                               $content['captcha_code'] = displayMessage('{--MEMBER_TRANSFER_NO_CODE--}', TRUE);
+                               $content['captcha_code'] = returnMessage('{--MEMBER_TRANSFER_NO_CODE--}');
                        }
 
                        // Init points/reason
index 7fa142b..6a8b8ef 100644 (file)
@@ -118,10 +118,10 @@ if (sqlNumRows($result) == 1) {
 
                        if (!empty($message)) {
                                // Output message
-                               $GLOBALS['sponsor_output'] = displayMessage($message, TRUE);
+                               $GLOBALS['sponsor_output'] = returnMessage($message);
                        } else {
                                // No message generated
-                               $GLOBALS['sponsor_output'] = displayMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}', TRUE);
+                               $GLOBALS['sponsor_output'] = returnMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}');
                        }
                } else {
                        // Output formular
@@ -129,11 +129,11 @@ if (sqlNumRows($result) == 1) {
                }
        } else {
                // Locked or so?
-               $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}', TRUE);
+               $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}');
        }
 } else {
        // Sponsor account not found
-       $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}', TRUE);
+       $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}');
 }
 
 // Free memory
index bd14fea..8ebaa2f 100644 (file)
@@ -105,10 +105,10 @@ if (sqlNumRows($result) == 1) {
 
                        if (!empty($message)) {
                                // Output message
-                               $GLOBALS['sponsor_output'] = displayMessage($message, TRUE);
+                               $GLOBALS['sponsor_output'] = returnMessage($message);
                        } else {
                                // No message generated
-                               $GLOBALS['sponsor_output'] = displayMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}', TRUE);
+                               $GLOBALS['sponsor_output'] = returnMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}');
                        }
                } else {
                        // Make yes/no selection
@@ -121,11 +121,11 @@ if (sqlNumRows($result) == 1) {
                }
        } else {
                // Locked or so?
-               $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}', TRUE);
+               $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}');
        }
 } else {
        // Sponsor account not found
-       $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}', TRUE);
+       $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}');
 }
 
 // Free memory
index 4ec0827..70ffd79 100644 (file)
@@ -1982,15 +1982,27 @@ function translateTimeUnit ($unit) {
 }
 
 // Displays given message in admin_settings_saved template
-function displayMessage ($message, $return = FALSE) {
+function displayMessage ($message) {
+       // Call inner function
+       outputHtml(returnMessage($message));
+}
+
+// Returns given message in admin_settings_saved template
+function returnMessage ($message) {
+       // Load the template
+       return loadTemplate('admin_settings_saved', TRUE, $message);
+}
+
+// Displays given error message in admin_settings_unsaved template
+function displayErrorMessage ($message) {
        // Load the template
-       return loadTemplate('admin_settings_saved', $return, $message);
+       outputHtml(returnErrorMessage($message));
 }
 
-// Displays given error message in admin_settings_saved template
-function displayErrorMessage ($message, $return = FALSE) {
+// Displays given error message in admin_settings_unsaved template
+function returnErrorMessage ($message) {
        // Load the template
-       return loadTemplate('admin_settings_unsaved', $return, $message);
+       return loadTemplate('admin_settings_unsaved', TRUE, $message);
 }
 
 // Generates a selection box for (maybe) given gender
index 00bc991..204177c 100644 (file)
@@ -12,7 +12,7 @@ Hier sind alle neuen (und in Klammern alten) Daten:
 {--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%})
 {--SPONSOR_EMAIL_STREET_NR1--}: $content[new_data][street_nr1] ($content[street_nr1])
 {--SPONSOR_EMAIL_STREET_NR2--}: $content[new_data][street_nr2] ($content[street_nr2])
-{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[new_data][country]-$content[new_data][zip] $content[new_data][city] ($content[country]-$content[zip] $content[city])
+{--SPONSOR_EMAIL_COUNTRY_CODE_ZIP_CITY--}: $content[new_data][country]-$content[new_data][zip] $content[new_data][city] ($content[country]-$content[zip] $content[city])
 ------------------------------
 {--SPONSOR_ENTER_PHONE--}: $content[new_data][phone] ($content[phone])
 {--SPONSOR_ENTER_FAX--}: $content[new_data][fax] ($content[fax])
index d19c3ed..5bf94dd 100644 (file)
@@ -12,7 +12,7 @@ Hier sind alle neuen (und in Klammern alten) Daten:
 {--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%})
 {--SPONSOR_EMAIL_STREET_NR1--}: $content[new_data][street_nr1] ($content[street_nr1])
 {--SPONSOR_EMAIL_STREET_NR2--}: $content[new_data][street_nr2] ($content[street_nr2])
-{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[new_data][country]-$content[new_data][zip] $content[new_data][city] ($content[country]-$content[zip] $content[city])
+{--SPONSOR_EMAIL_COUNTRY_CODE_ZIP_CITY--}: $content[new_data][country]-$content[new_data][zip] $content[new_data][city] ($content[country]-$content[zip] $content[city])
 ------------------------------
 {--SPONSOR_ENTER_PHONE--}: $content[new_data][phone] ($content[phone])
 {--SPONSOR_ENTER_FAX--}: $content[new_data][fax] ($content[fax])
index 58bbec1..8f66a22 100644 (file)
@@ -16,7 +16,7 @@ Es sind folgende Daten gespeichert:
 {--SURNAME_FAMILY--}: {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%}
 {--SPONSOR_EMAIL_STREET_NR1--}: $content[street_nr1]
 {--SPONSOR_EMAIL_STREET_NR2--}: $content[street_nr2]
-{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[country]-$content[zip] $content[city]
+{--SPONSOR_EMAIL_COUNTRY_CODE_ZIP_CITY--}: $content[country]-$content[zip] $content[city]
 ------------------------------
 {--SPONSOR_ENTER_PHONE--}: $content[phone]
 {--SPONSOR_ENTER_FAX--}: $content[fax]
index 2dbad9c..6701bd7 100644 (file)
@@ -12,7 +12,7 @@ Hier sind alle neuen (und in Klammern alten) Daten:
 {--SURNAME_FAMILY--}: $content[surname] $content[family] ({%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%})
 {--SPONSOR_EMAIL_STREET_NR1--}: $content[street_nr1] ({%sponsor,street_nr1=$content[id]%})
 {--SPONSOR_EMAIL_STREET_NR2--}: $content[street_nr2] ({%sponsor,street_nr2=$content[id]%})
-{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[country]-$content[zip] $content[city] ({%sponsor,country,determineSponsorCountry=$content[id]%}-{%sponsor,zip,bigintval=$content[id]%} {%sponsor,city=$content[id]%})
+{--SPONSOR_EMAIL_COUNTRY_CODE_ZIP_CITY--}: $content[country]-$content[zip] $content[city] ({%sponsor,country,determineSponsorCountry=$content[id]%}-{%sponsor,zip,bigintval=$content[id]%} {%sponsor,city=$content[id]%})
 ------------------------------
 {--SPONSOR_ENTER_PHONE--}: $content[phone] ($content[phone])
 {--SPONSOR_ENTER_FAX--}: $content[fax] ($content[fax])
index 696e1e9..a241a5c 100644 (file)
@@ -87,7 +87,7 @@
 </tr>
 <tr>
        <td align="right" valign="top">
-               {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
+               {--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:
        </td>
        <td>
                <input type="text" class="form_field" name="country" size="2" maxlength="2" value="DE" />-<input type="text" class="form_field" name="zip" size="5" maxlength="6" />
index 941ad76..d023ca4 100644 (file)
@@ -75,7 +75,7 @@
 </tr>
 <tr>
        <td align="right">
-               {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
+               {--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:
        </td>
        <td>
                <input type="text" class="form_field" name="country" size="2" maxlength="2" value="$content[country]" />-<input type="text" class="form_field" name="zip" size="2" maxlength="6" value="$content[zip]" />
index f26fe61..fb7121c 100644 (file)
@@ -54,7 +54,7 @@
 </tr>
 
 <tr>
-       <td align="right" class="bottom right">{--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:</td>
+       <td align="right" class="bottom right">{--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:</td>
        <td class="bottom">$content[country]-$content[zip]$content[city]</td>
 </tr>
 
diff --git a/templates/de/html/guest/guest_registration_select.tpl b/templates/de/html/guest/guest_registration_select.tpl
new file mode 100644 (file)
index 0000000..64e53fd
--- /dev/null
@@ -0,0 +1,16 @@
+<div align="center">
+<div class="table dashed">
+       <div class="table_header bottom">
+               {--GUEST_SELECT_OTHER_REGISTRATION_FORM_TITLE--}
+       </div>
+
+       <div class="bottom" align="left">
+               {%template,GuestRegistrationList%}
+       </div>
+       <div class="table_footer">
+               <div class="notice">
+                       {--GUEST_SELECT_OTHER_REGISTRATION_FORM_NOTICE--}
+               </div>
+       </div>
+</div>
+</div>
index 61d5202..075005e 100644 (file)
 </tr>
 <tr>
        <td align="right" valign="top">
-               {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
+               {--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:
        </td>
        <td>
                <input type="text" class="form_field" name="country" size="2" maxlength="2" value="$content[country]" />-<input type="text" class="form_field" name="zip" size="5" maxlength="6" value="$content[zip]" />
index 170b57e..f61b554 100644 (file)
@@ -82,7 +82,7 @@
 </tr>
 <tr>
        <td class="bottom right" align="right" height="27">
-               {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:
+               {--SPONSOR_ENTER_COUNTRY_CODE_ZIP_CITY--}:
        </td>
        <td class="bottom">
                <input type="text" class="form_field" name="country" size="2" maxlength="2" value="{%sponsor,country=$content[id]%}" />-<input type="text" class="form_field" name="zip" size="5" maxlength="6" value="{%sponsor,zip,bigintval=$content[id]%}" />