Extension ext-funcoins continued, template helper function added:
authorRoland Häder <roland@mxchange.org>
Tue, 19 Jul 2011 17:33:18 +0000 (17:33 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 19 Jul 2011 17:33:18 +0000 (17:33 +0000)
- Extension ext-funcoins: Configuration basicly finished (but not yet used)
- Template helper doTemplateConfigurationYesNoSelectionBox() introduced which
  will unify yes/no configuration selections.
- TODOs.txt updated

35 files changed:
.gitattributes
DOCS/TODOs.txt
inc/extensions/ext-funcoins.php
inc/language/funcoins_de.php [new file with mode: 0644]
inc/language/wernis_de.php
inc/modules/admin/what-config_beg.php
inc/modules/admin/what-config_birthday.php
inc/modules/admin/what-config_bonus.php
inc/modules/admin/what-config_doubler.php
inc/modules/admin/what-config_extensions.php
inc/modules/admin/what-config_funcoins.php [new file with mode: 0644]
inc/modules/admin/what-config_order.php
inc/modules/admin/what-config_refback.php
inc/modules/admin/what-config_removeip.php
inc/modules/admin/what-config_transfer.php
inc/modules/admin/what-config_validator.php
inc/modules/admin/what-config_wernis.php
inc/template-functions.php
inc/wrapper-functions.php
templates/de/html/admin/admin_config_autopurge.tpl
templates/de/html/admin/admin_config_beg.tpl
templates/de/html/admin/admin_config_birthday.tpl
templates/de/html/admin/admin_config_bonus.tpl
templates/de/html/admin/admin_config_doubler.tpl
templates/de/html/admin/admin_config_extensions.tpl
templates/de/html/admin/admin_config_funcoins.tpl [new file with mode: 0644]
templates/de/html/admin/admin_config_menu.tpl
templates/de/html/admin/admin_config_order.tpl
templates/de/html/admin/admin_config_other.tpl
templates/de/html/admin/admin_config_refback.tpl
templates/de/html/admin/admin_config_removeip.tpl
templates/de/html/admin/admin_config_surfbar.tpl
templates/de/html/admin/admin_config_transfer.tpl
templates/de/html/admin/admin_config_validator.tpl
templates/de/html/admin/admin_config_wernis.tpl

index 75638885ec70fa15b4b999c7709e3c777af7fa4f..5fde6f1c5d5bce84716a679f0b6346ce2ab1eb97 100644 (file)
@@ -272,6 +272,7 @@ inc/language/de.php svneol=native#text/plain
 inc/language/debug_de.php svneol=native#text/plain
 inc/language/doubler_de.php svneol=native#text/plain
 inc/language/en.php svneol=native#text/plain
+inc/language/funcoins_de.php svneol=native#text/plain
 inc/language/holiday_de.php svneol=native#text/plain
 inc/language/html_mail_de.php svneol=native#text/plain
 inc/language/imprint_de.php svneol=native#text/plain
@@ -458,6 +459,7 @@ inc/modules/admin/what-config_coupon.php svneol=native#text/plain
 inc/modules/admin/what-config_doubler.php svneol=native#text/plain
 inc/modules/admin/what-config_email.php svneol=native#text/plain
 inc/modules/admin/what-config_extensions.php svneol=native#text/plain
+inc/modules/admin/what-config_funcoins.php svneol=native#text/plain
 inc/modules/admin/what-config_holiday.php svneol=native#text/plain
 inc/modules/admin/what-config_home.php svneol=native#text/plain
 inc/modules/admin/what-config_imprint.php svneol=native#text/plain
@@ -1059,6 +1061,7 @@ templates/de/html/admin/admin_config_email_edit.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_email_edit_row.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_email_row.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_extensions.tpl svneol=native#text/plain
+templates/de/html/admin/admin_config_funcoins.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_holiday.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_home.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_home_main.tpl svneol=native#text/plain
index e8a948b47dead22a197730d2f6e0617ecb25ed57..bec09bfb35872510cd7e24b7a3b9ba0379f4bcf5 100644 (file)
 ./inc/libs/doubler_functions.php:93:                   // @TODO Can't this be moved into EL?
 ./inc/libs/mailid_functions.php:47:            // @TODO Rewrite this to a dynamic include or so
 ./inc/libs/rallye_functions.php:439:   // @TODO Deprecated variable and global statement, please try to rewrite this
-./inc/libs/rallye_functions.php:704:// @TODO This function does not load min_users, min_prices, please encapsulate loading rallye data with e.g. getRallyeDataFromId()
-./inc/libs/rallye_functions.php:769:   $EXPIRE = 3; // @TODO The hard-coded value...
-./inc/libs/rallye_functions.php:855:// @TODO Please document this function
-./inc/libs/rallye_functions.php:911:           // Load count @TODO Can't we rewrite this to our API?
+./inc/libs/rallye_functions.php:705:// @TODO This function does not load min_users, min_prices, please encapsulate loading rallye data with e.g. getRallyeDataFromId()
+./inc/libs/rallye_functions.php:770:   $EXPIRE = 3; // @TODO The hard-coded value...
+./inc/libs/rallye_functions.php:856:// @TODO Please document this function
+./inc/libs/rallye_functions.php:912:           // Load count @TODO Can't we rewrite this to our API?
 ./inc/libs/register_functions.php:290: // @TODO Rewrite these all to a single filter
 ./inc/libs/sponsor_functions.php:159:                                  // @TODO Rewrite this to API function
 ./inc/libs/sponsor_functions.php:430:                  // @TODO Rewrite this to API function
 ./inc/modules/member/what-unconfirmed.php:227:                         // @TODO This 'userid' cannot be saved because of encapsulated EL code
 ./inc/modules/order.php:74:            // @TODO Unused: 2,4
 ./inc/monthly/monthly_bonus.php:64:    // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1251:                  // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
-./inc/mysql-manager.php:1315:          // @TODO Rewrite these lines to a filter
-./inc/mysql-manager.php:1339:  // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1598:                  // @TODO Rewrite this to a filter
-./inc/mysql-manager.php:1642:// @TODO Fix inconsistency between last_module and getWhat()
-./inc/mysql-manager.php:371:   // @TODO Try to rewrite this to one or more functions
+./inc/mysql-manager.php:1252:                  // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
+./inc/mysql-manager.php:1316:          // @TODO Rewrite these lines to a filter
+./inc/mysql-manager.php:1340:  // @TODO Rewrite this to a filter
+./inc/mysql-manager.php:1599:                  // @TODO Rewrite this to a filter
+./inc/mysql-manager.php:1645:// @TODO Fix inconsistency between last_module and getWhat()
+./inc/mysql-manager.php:372:   // @TODO Try to rewrite this to one or more functions
 ./inc/mysql-manager.php:44:// @TODO Can we cache this?
 ./inc/purge/purge-inact.php:55:        // @TODO Rewrite these if() blocks to a filter
 ./inc/revision-functions.php:169:// @TODO This function does also set and get in 'cache_array'
index e60faae3a8d4e691a9c2eb929d8354559897bd21..14c54e5636dda05c4f338aa4a6ddac2de5200336 100644 (file)
@@ -77,6 +77,7 @@ INDEX (`userid`)",
                addConfigAddSql('funcoins_min_withdraw', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 5000');
                addConfigAddSql('funcoins_api_id', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
                addConfigAddSql('funcoins_api_password', "VARCHAR(255) NOT NULL DEFAULT ''");
+               addConfigAddSql('funcoins_refid', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
                addConfigAddSql('funcoins_payout_active', "ENUM ('Y','N') NOT NULL DEFAULT 'Y'");
                addConfigAddSql('funcoins_withdraw_active', "ENUM ('Y','N') NOT NULL DEFAULT 'Y'");
                addConfigAddSql('funcoins_payout_factor', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 1.00000');
diff --git a/inc/language/funcoins_de.php b/inc/language/funcoins_de.php
new file mode 100644 (file)
index 0000000..87b9d12
--- /dev/null
@@ -0,0 +1,63 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 07/19/2011 *
+ * ===================                          Last change: 07/19/2011 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : funcoins_de.php                                  *
+ * -------------------------------------------------------------------- *
+ * Short description : German langugage support                         *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Deutsche Sprachunterstuetzung                    *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.mxchange.org                  *
+ *                                                                      *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or    *
+ * (at your option) any later version.                                  *
+ *                                                                      *
+ * This program is distributed in the hope that it will be useful,      *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
+ * GNU General Public License for more details.                         *
+ *                                                                      *
+ * You should have received a copy of the GNU General Public License    *
+ * along with this program; if not, write to the Free Software          *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
+ * MA  02110-1301  USA                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+       die();
+} // END - if
+
+// Language definitions
+addMessages(array(
+       'ADMIN_CONFIG_FUNCOINS_TITLE' => "Konfiguration der FuCo-Ex&#178; API",
+       'ADMIN_CONFIG_FUNCOINS_API_ID' => "Betreiberkonto (Nummer)",
+       'ADMIN_CONFIG_FUNCOINS_API_PASSWORD' => "Kennwort Ihres Betreiberkontos",
+       'ADMIN_CONFIG_FUNCOINS_REFID' => "Referal-Id (gleich die Nummer Ihres FC-Kontos)",
+       'ADMIN_CONFIG_FUNCOINS_MIN_PAYOUT' => "Minimale Auszahlungssumme auf ein FunCoins-Konto",
+       'ADMIN_CONFIG_FUNCOINS_MIN_WITHDRAW' => "Minimale Einzahlungssumme von einem FunCoins-Konto",
+       'ADMIN_CONFIG_FUNCOINS_PAYOUT_FACTOR' => "Umrechnusfaktor von {?POINTS?} in FunCoins f&uuml;r Auszahlungen",
+       'ADMIN_CONFIG_FUNCOINS_WITHDRAW_FACTOR' => "Umrechnusfaktor von FunCoins in {?POINTS?} f&uuml;r Einzahlungen",
+       'ADMIN_CONFIG_FUNCOINS_PAYOUT_FEE_PERCENT' => "Prozentuale Betreibergeb&uuml;hr f&uuml;r Auszahlungen",
+       'ADMIN_CONFIG_FUNCOINS_WITHDRAW_FEE_PERCENT' => "Prozentuale Betreibergeb&uuml;hr f&uuml;r Einzahlungen",
+       'ADMIN_CONFIG_FUNCOINS_PAYOUT_FEE_FIX' => "Fixe Betreibergeb&uuml;hr f&uuml;r Auszahlungen",
+       'ADMIN_CONFIG_FUNCOINS_WITHDRAW_FEE_FIX' => "Fixe Betreibergeb&uuml;hr f&uuml;r Einzahlungen",
+       'ADMIN_CONFIG_FUNCOINS_PAYOUT_ACTIVE' => "Auszahlungen zum FunCoins-Portal aktiv?",
+       'ADMIN_CONFIG_FUNCOINS_WITHDRAW_ACTIVE' => "Auszahlungen vom FunCoins-Portal aktiv?",
+       'ADMIN_CONFIG_FUNCOINS_NOTE' => "Falls Sie noch kein FunCoins-Account haben, oder sich &uuml;ber die Internet-W&auml;hrung nur informieren wollen, verwenden Sie bitte <a href=\"http://www.funcoins.de/join.php?refid=9265\" target=\"_blank\">meinen Referal-Link</a>. Ihre Mitglieder sehen im Mitgliedsbereich dann nat&uuml;rlich Ihren Werbelink. Sollten Sie sowohl einen feste als auch eine prozentuale Betreibergeb&uuml;hr eingestellt haben, gilt die prozentuale.",
+));
+
+// [EOF]
+?>
index f48aa00677584cf62bccd86e2c71067a7d808145..57a2b2e49b49952d910697bda62fef6569114795 100644 (file)
@@ -59,7 +59,7 @@ addMessages(array(
        'ADMIN_CONFIG_WERNIS_API_URL' => "Basis-URL der API-Skripte",
        'ADMIN_CONFIG_WERNIS_REFID' => "Ihre Referal-Id bei WDS66-Portal (= Ihr Username!)",
        'ADMIN_CONFIG_WERNIS_WPASS' => "Wernis-Passwort (nicht Account-Passwort!)",
-       'ADMIN_WERNIS_CONFIG_NOTE' => "[<a href=\"http://www.wds66.com/ref.php?refid=10437\" target=\"_blank\">Hier</a>] k&ouml;nnen Sie schon f&uuml;r <strong>einmalig kostenlos</strong> <strong>25.000 Abfragen</strong> ein API-Account beantragen (dazu ist ein <strong>kostenloses</strong> Wernis-Account dennoch n&ouml;tig!) Geben Sie immer Ihren Usernamen von WDS66-Hauptaccount ein und &uuml;berpr&uuml;fen Sie diesen mehrmals! Er wird zum &Uuml;berweisen von und nach WDS66-Wernis-Portal ben&ouml;tigt. Die Betreibergeb&uuml;hren und Umrechnungsfaktoren sind f&uuml;r den Betrieb Ihres {?mt_word2?} komplett in Wernis ausgelegt, diese m&uuml;ssen Sie also noch anpassen, wenn Sie z.B. Punkte haben und in Wernis auszahlen lassen wollen.",
+       'ADMIN_CONFIG_WERNIS_NOTE' => "[<a href=\"http://www.wds66.com/ref.php?refid=10437\" target=\"_blank\">Hier</a>] k&ouml;nnen Sie schon f&uuml;r <strong>einmalig kostenlos</strong> <strong>25.000 Abfragen</strong> ein API-Account beantragen (dazu ist ein <strong>kostenloses</strong> Wernis-Account dennoch n&ouml;tig!) Geben Sie immer Ihren Usernamen von WDS66-Hauptaccount ein und &uuml;berpr&uuml;fen Sie diesen mehrmals! Er wird zum &Uuml;berweisen von und nach WDS66-Wernis-Portal ben&ouml;tigt. Die Betreibergeb&uuml;hren und Umrechnungsfaktoren sind f&uuml;r den Betrieb Ihres {?mt_word2?} komplett in Wernis ausgelegt, diese m&uuml;ssen Sie also noch anpassen, wenn Sie z.B. Punkte haben und in Wernis auszahlen lassen wollen. Sollten Sie sowohl einen feste als auch eine prozentuale Betreibergeb&uuml;hr eingestellt haben, gilt die prozentuale.",
        'ADMIN_WERNIS_NO_TRANSFERS' => "Derzeit keine Wernis transferiert.",
        'ADMIN_WERNIS_WDS66_ACCOUNT' => "Account bei WDS66-Portal",
        'ADMIN_WERNIS_TRANSFERED' => "Wernis transferiert",
index 537781600552fd7ad5ac5e904dd6c5e96d6a5314..a2a6bb93a27e8adc8b951518f9c82ff5b25f6636 100644 (file)
@@ -61,15 +61,8 @@ if (isFormSent()) {
        $content['beg_ip_timeout']   = createConfigurationTimeSelections('beg_ip_timeout'    , 'Dhm');
        $content['wait_selection']   = createConfigurationTimeSelections('beg_notify_wait'   , 'ms' );
 
-       // Init all Y/N selections
-       foreach (array('rallye', 'active', 'rallye_enable_notify', 'rallye_disable_notify', 'new_member_notify', 'include_own') as $entry) {
-               $content[$entry . '_y'] = '';
-               $content[$entry . '_n'] = '';
-               $content[$entry . '_' . strtolower(getConfig('beg_' . $entry))] = ' checked="checked"';
-       } // END - foreach
-
        // Init elements for faker-mode
-       foreach (array('pay_mode_img','pay_mode_js','pay_mode_both','pay_mode_none') as $entry) {
+       foreach (array('pay_mode_img', 'pay_mode_js', 'pay_mode_both', 'pay_mode_none') as $entry) {
                $content[$entry] = '';
        } // END - foreach
 
index 83c2c54b49181c2632c8208f760154ad4d2f2773..f0f37255424d3deb8cb036c697c889b7237117d3 100644 (file)
@@ -47,18 +47,8 @@ if (isFormSent()) {
        // Save configuration
        adminSaveSettingsFromPostData();
 } else {
-       // Init all other template entries
-       foreach (array('active_y','active_n') as $entry) {
-               $content[$entry] = '';
-       } // END - foreach
-
-       // Set current selections
-       foreach (array('active') as $entry) {
-               $content['birthday_' . $entry . '_' . strtolower(getConfig('birthday_' . $entry))] = ' checked="checked"';
-       } // END - foreach
-
        // Display form
-       loadTemplate('admin_config_birthday', false, $content);
+       loadTemplate('admin_config_birthday');
 }
 
 // [EOF]
index 5f2a8d9e4638b7362d387e2526e59a5c66dfef06..fe4e8b81380eee6d6a65a0e1e321c8406ed50b68 100644 (file)
@@ -106,13 +106,6 @@ if (isFormSent()) {
        $content['bonus_timeout_selection'] = createConfigurationTimeSelections('bonus_timeout'    , 'WDh');
        $content['wait_selection']          = createConfigurationTimeSelections('bonus_notify_wait', 'ms' );
 
-       // Init Y/N selections
-       foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','enable_notify','disable_notify','new_member_notify','include_own') as $entry) {
-               $content[$entry . '_y'] = '';
-               $content[$entry . '_n'] = '';
-               $content[$entry . '_' . strtolower(getConfig('bonus_' . $entry))] = ' checked="checked"';
-       } // END - foreach
-
        // Load final template
        loadTemplate('admin_config_bonus', false, $content);
 }
index e52215da301d59177eb91812d7602822ef9bba6f..83714c3f7883cfd9173b975813266f9cb5b642b5 100644 (file)
@@ -50,13 +50,6 @@ if (isFormSent()) {
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
-       // Init all Y/N selections
-       foreach (array('jackpot', 'own', 'sent_all') as $entry) {
-               $content[$entry . '_y'] = '';
-               $content[$entry . '_n'] = '';
-               $content[$entry . '_' . strtolower(getConfig('doubler_' . $entry))] = ' checked="checked"';
-       } // END - foreach
-
        // Init other selections
        foreach (array('send_mode_direct','send_mode_reset') as $entry) {
                $content[$entry] = '';
index 4b3ee8db6cfce5735f0e12850c38db34da966df3..01ce26c1ed30e1bed40981fb7bb62cfa7cbad6a8 100644 (file)
@@ -47,21 +47,8 @@ if (isFormSent()) {
        // Save configuration
        adminSaveSettingsFromPostData();
 } else {
-       // Prepare content
-       $content['verbose_y'] = '';
-       $content['verbose_n'] = '';
-
-       // Prepare data
-       if (isVerboseSqlEnabled()) {
-               // Is enabled
-               $content['verbose_y'] = ' checked="checked"';
-       } else {
-               // Is disabled
-               $content['verbose_n'] = ' checked="checked"';
-       }
-
        // Load template
-       loadTemplate('admin_config_extensions', false, $content);
+       loadTemplate('admin_config_extensions');
 }
 
 // [EOF]
diff --git a/inc/modules/admin/what-config_funcoins.php b/inc/modules/admin/what-config_funcoins.php
new file mode 100644 (file)
index 0000000..5dd7a6f
--- /dev/null
@@ -0,0 +1,55 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 12/26/2007 *
+ * ===================                          Last change: 12/26/2007 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-config_funcoins.php                         *
+ * -------------------------------------------------------------------- *
+ * Short description : Configure funcoins sub-system                    *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Auszahlungensarten editieren                     *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.mxchange.org                  *
+ *                                                                      *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or    *
+ * (at your option) any later version.                                  *
+ *                                                                      *
+ * This program is distributed in the hope that it will be useful,      *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
+ * GNU General Public License for more details.                         *
+ *                                                                      *
+ * You should have received a copy of the GNU General Public License    *
+ * along with this program; if not, write to the Free Software          *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
+ * MA  02110-1301  USA                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if ((!defined('__SECURITY')) || (!isAdmin())) {
+       die();
+} // END - if
+
+// Add description as navigation point
+addYouAreHereLink('admin', __FILE__);
+
+if (isFormSent()) {
+       // Save settings
+       adminSaveSettingsFromPostData();
+}  else {
+       // Load template
+       loadTemplate('admin_config_funcoins');
+}
+
+// [EOF]
+?>
index 6763a1b322f36cd96bd9921e5119c9035bde6e37..43f7f8fb3b23c9e77879ee3968e986d34a28f910 100644 (file)
@@ -48,12 +48,12 @@ if (isFormSent()) {
        adminSaveSettingsFromPostData();
 } else {
        // Init all selection entries
-       foreach (array('order_max_full_order', 'order_max_full_max', 'order_mode_asc', 'order_mode_desc', 'allow_url_in_text_y', 'allow_url_in_text_n', 'allow_url_in_subject_y', 'allow_url_in_subject_n', 'url_blacklist_y', 'url_blacklist_n', 'repay_deleted_mails_repay', 'repay_deleted_mails_jackpot', 'repay_deleted_mails_shred') as $entry) {
+       foreach (array('order_max_full_order', 'order_max_full_max', 'order_mode_asc', 'order_mode_desc', 'repay_deleted_mails_repay', 'repay_deleted_mails_jackpot', 'repay_deleted_mails_shred') as $entry) {
                $content[$entry] = '';
        } // END - foreach
 
        // Set all default checks
-       foreach (array('order_max_full', 'order_mode', 'allow_url_in_text', 'allow_url_in_subject', 'url_blacklist') as $entry) {
+       foreach (array('order_max_full', 'order_mode') as $entry) {
                $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"';
        } // END - foreach
 
index a8a381d16600bae1bbf9cda6a8fb19cff5419073..b78c944f09cf45de3abe11fd448fa52df3a3ca10 100644 (file)
@@ -50,23 +50,8 @@ if (isFormSent()) {
        // Save configuration
        adminSaveSettingsFromPostData();
 } else {
-       // Prepare content
-       $content = array(
-               'refback_enabled_n' => '',
-               'refback_enabled_y' => ''
-       );
-
-       // Translate Y/N switches
-       if (isRefbackEnabled()) {
-               // Enabled
-               $content['refback_enabled_y'] = ' checked="checked"';
-       } else {
-               // Disabled
-               $content['refback_enabled_n'] = ' checked="checked"';
-       }
-
        // Load template
-       loadTemplate('admin_config_refback', false, $content);
+       loadTemplate('admin_config_refback');
 }
 
 // [EOF]
index faf1a07a775a0b9bc5dbe15f03f9f5bda5b0f912..a83a3467f807ee263b78038e9db5ae99c5a4ae1d 100644 (file)
@@ -47,13 +47,6 @@ if (isFormSent()) {
        // Save configuration
        adminSaveSettingsFromPostData();
 } else {
-       // Prepare data
-       foreach (array('removeip_anon_ip','removeip_anon_host','removeip_anon_ua','removeip_anon_ref','removeip_admin_show','removeip_guest_show','removeip_member_show','removeip_sponsor_show') as $entry) {
-               $content[$entry . '_y'] = '';
-               $content[$entry . '_n'] = '';
-               $content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"';
-       } // END - if
-
        // Prepare more entries
        foreach (array('anonymous_ip_local','anonymous_ip_zero','anonymous_ip_random') as $entry) {
                $content[$entry] =  '';
index e2c85113b8c04ad1ee3ead1cd737ba9cd29156e9..ae209d38730b11b748a61f60cb76b5810f9ff15a 100644 (file)
@@ -47,13 +47,6 @@ if (isFormSent()) {
        // Save settings...
        adminSaveSettingsFromPostData();
 } else {
-       // Init all Y/N elements
-       foreach (array('ap_transfer') as $entry) {
-               $content[$entry . '_y'] = '';
-               $content[$entry . '_n'] = '';
-               $content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"';
-       } // END - if
-
        // Time selection box
        $content['age_selection']     = createConfigurationTimeSelections('transfer_age'    , 'MWDh');
        $content['timeout_selection'] = createConfigurationTimeSelections('transfer_timeout', 'MWDh');
index c41b819ee3806db22a45f2488408935eb3fc926c..f27ed448986ab8be2383cc4e930ef4c4b050d17c 100644 (file)
@@ -47,19 +47,8 @@ if (isFormSent()) {
        // Save data
        adminSaveSettingsFromPostData();
 } else {
-       // Prepare content (default)
-       $content['enable_validator_yes'] = ' checked="checked"';
-       $content['enable_validator_no']  = '';
-
-       // Is the configuration is "N"?
-       if (getConfig('enable_validator') == 'N') {
-               // Set them again
-               $content['enable_validator_yes'] = '';
-               $content['enable_validator_no']  = ' checked="checked"';
-       } // END - if
-
        // Load template
-       loadTemplate('admin_config_validator', false, $content);
+       loadTemplate('admin_config_validator');
 }
 
 // [EOF]
index 7d5a3ece21568cf7795fa176cf85e81c800ad938..437d1b23196e4d45a378386a5988ab8f3c8eddd7 100644 (file)
@@ -65,21 +65,8 @@ if (isFormSent()) {
                displayMessage(GET_WERNIS_ERROR_MESSAGE());
        }
 }  else {
-       // Prepare data for template output
-       $content = array(
-               'wernis_payout_active_y'   => '',
-               'wernis_payout_active_n'   => '',
-               'wernis_withdraw_active_y' => '',
-               'wernis_withdraw_active_n' => '',
-       );
-
-       // Prepare payout Y/N selection
-       foreach (array('wernis_payout_active', 'wernis_withdraw_active') as $entry) {
-               $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"';
-       } // END - foreach
-
        // Load template
-       loadTemplate('admin_config_wernis', false, $content);
+       loadTemplate('admin_config_wernis');
 }
 
 // [EOF]
index 6e2e4730660d0f0e803575ab0fc29e97f4435cb1..16cc8cbf6fb71492ac7b59a80000f683a15f9259 100644 (file)
@@ -1821,5 +1821,16 @@ function doTemplateAdminMemberMailLinks ($template, $dummy, $mailId) {
        return generateAdminMailLinks('mid', $mailId);
 }
 
+// Helper function to create a selection box for YES/NO configuration entries
+function doTemplateConfigurationYesNoSelectionBox ($template, $dummy, $configEntry) {
+       // Generate the HTML code
+       $OUT = '<select name="' . $configEntry . '" class="form_select" size="1">
+{%config,generateYesNoOptionList=' . $configEntry . '%}
+</select>';
+
+       // Return it
+       return $OUT;
+}
+
 // [EOF]
 ?>
index 2eecd1a2ef5931f614b245f5678037d8ea990847..0b2cf28d20f876a5ab432ad7d2017c363c61a4fa 100644 (file)
@@ -2582,9 +2582,9 @@ function parseFloat ($floatString){
 }
 
 // Generates a YES/NO option list from given default
-function generateYesNoOptionList ($default = '') {
+function generateYesNoOptionList ($configEntry = '') {
        // Generate it
-       return generateOptionList('/ARRAY/', array('Y', 'N'), array('{--YES--}', '{--NO--}'), $default);
+       return generateOptionList('/ARRAY/', array('Y', 'N'), array('{--YES--}', '{--NO--}'), $configEntry);
 }
 
 // "Getter" for total available receivers
index e36092421c4ee8939b0b18b3003a4fa2d0155c35..3d037fcd317e9e6f273799e38056d002cde5d8a3 100644 (file)
@@ -59,9 +59,7 @@
                        {--ADMIN_CONFIG_AUTOPURGE_ACTIVE--}:
                </td>
                <td>
-                       <select name="autopurge_active" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=autopurge_active%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=autopurge_active%}
                </td>
        </tr>
        <tr>
index 914b4665ffef89608ea4180a70d0244b76df8829..0e8a428b6d9e5f499f3f125fd3c547fb7a8d4cec 100644 (file)
@@ -62,8 +62,7 @@
                        {--ADMIN_CONFIG_BEG_RALLYE_ACTIVE--}
                </td>
                <td align="center">
-                       <input type="radio" class="form_field" name="beg_rallye" value="Y"$content[rallye_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="beg_rallye" value="N"$content[rallye_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=beg_rallye%}
                </td>
        </tr>
        <tr>
@@ -71,8 +70,7 @@
                        {--ADMIN_CONFIG_BEG_INCLUDE_OWN--}
                </td>
                <td align="center">
-                       <input type="radio" class="form_field" name="beg_include_own" value="Y"$content[include_own_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="beg_include_own" value="N"$content[include_own_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=beg_include_own%}
                </td>
        </tr>
        <tr>
@@ -88,8 +86,7 @@
                        {--ADMIN_CONFIG_BEG_RALLYE_ONLY_ACTIVE--}
                </td>
                <td align="center">
-                       <input type="radio" class="form_field" name="beg_active" value="Y"$content[active_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="beg_active" value="N"$content[active_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=beg_active%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_BEG_RALLYE_ENABLE_NOTIFY--}
                </td>
                <td align="center">
-                       <input type="radio" class="form_field" name="beg_rallye_enable_notify" value="Y"$content[rallye_enable_notify_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="beg_rallye_enable_notify" value="N"$content[rallye_enable_notify_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=beg_rallye_enable_notify%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_BEG_RALLYE_DISABLE_NOTIFY--}
                </td>
                <td align="center">
-                       <input type="radio" class="form_field" name="beg_rallye_disable_notify" value="Y"$content[rallye_disable_notify_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="beg_rallye_disable_notify" value="N"$content[rallye_disable_notify_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=beg_rallye_disable_notify%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_BEG_NEW_MEMBER_NOTIFY--}
                </td>
                <td align="center">
-                       <input type="radio" class="form_field" name="beg_new_member_notify" value="Y"$content[new_member_notify_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="beg_new_member_notify" value="N"$content[new_member_notify_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=beg_new_member_notify%}
                </td>
        </tr>
        <tr>
index 669221ea14e50c344f2d28609a549bb1c78d7d02..f7602c7ab26ffddcf1467ea9f5c4525beabeb85b 100644 (file)
@@ -19,8 +19,7 @@
        <tr>
                <td class="bottom" align="right">{--ADMIN_CONFIG_BIRTHDAY_ONLY_ACTIVE--}</td>
                <td class="bottom" align="center">
-                       <input type="radio" class="form_field" name="birthday_active" value="Y"$content[birthday_active_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="birthday_active" value="N"$content[birthday_active_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=birthday_active%}
                </td>
        </tr>
        <tr>
index cb6f6a51fd22e53dbaef6f0d008a4f0997733914..dab831ea975faef40e5b2e004e410c1d192e7fd1 100644 (file)
@@ -11,8 +11,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_IS_ACTIVE--}
                </td>
                <td class="bottom" align="center">
-                       <input type="radio" class="form_field" name="bonus_active" value="Y"$content[active_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_active" value="N"$content[active_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_active%}
                </td>
        </tr>
        <tr>
@@ -20,8 +19,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_INCLUDE_ONW--}
                </td>
                <td class="bottom" align="center">
-                       <input type="radio" class="form_field" name="bonus_include_own" value="Y"$content[include_own_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_include_own" value="N"$content[include_own_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_include_own%}
                </td>
        </tr>
        <tr>
@@ -29,8 +27,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_CLICK_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       <input type="radio" class="form_field" name="bonus_click_yn" value="Y"$content[click_yn_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_click_yn" value="N"$content[click_yn_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_click%}
                </td>
        </tr>
        <tr>
@@ -38,8 +35,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_LOGIN_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       <input type="radio" class="form_field" name="bonus_login_yn" value="Y"$content[login_yn_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_login_yn" value="N"$content[login_yn_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_login%}
                </td>
        </tr>
        <tr>
@@ -47,8 +43,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_ORDER_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       <input type="radio" class="form_field" name="bonus_order_yn" value="Y"$content[order_yn_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_order_yn" value="N"$content[order_yn_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_order%}
                </td>
        </tr>
        <tr>
@@ -56,8 +51,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_STATS_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       <input type="radio" class="form_field" name="bonus_stats_yn" value="Y"$content[stats_yn_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_stats_yn" value="N"$content[stats_yn_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_stats%}
                </td>
        </tr>
        <tr>
@@ -65,8 +59,7 @@
                        {--ADMIN_CONFIG_BONUS_RALLYE_REFERAL_INCLUDE--}
                </td>
                <td class="bottom" align="center">
-                       <input type="radio" class="form_field" name="bonus_ref_yn" value="Y"$content[ref_yn_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_ref_yn" value="N"$content[ref_yn_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_ref%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_BONUS_RALLYE_ENABLE_NOTIFY--}
                </td>
                <td align="center">
-                       <input type="radio" class="form_field" name="bonus_enable_notify" value="Y"$content[enable_notify_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_enable_notify" value="N"$content[enable_notify_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_enable_notify%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_BONUS_RALLYE_DISABLE_NOTIFY--}
                </td>
                <td align="center">
-                       <input type="radio" class="form_field" name="bonus_disable_notify" value="Y"$content[disable_notify_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_disable_notify" value="N"$content[disable_notify_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_disable_notify%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_BONUS_RALLYE_NEW_MEMBER_NOTIFY--}
                </td>
                <td align="center">
-                       <input type="radio" class="form_field" name="bonus_new_member_notify" value="Y"$content[new_member_notify_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="bonus_new_member_notify" value="N"$content[new_member_notify_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=bonus_new_member_notify%}
                </td>
        </tr>
        <tr>
index eeeb252b368e2454391f86d717cf0b9a54a079d5..08df672c5063996798d79291ff3434c17cb4c781 100644 (file)
@@ -65,8 +65,7 @@
        <tr>
                <td align="right" height="20">{--ADMIN_CONFIG_DOUBLER_SENT_ALL--}:</td>
                <td style="padding-left: 5px">
-                       <input type="radio" class="form_field" name="doubler_sent_all" value="Y"$content[sent_all_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="doubler_sent_all" value="N"$content[sent_all_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=doubler_sent_all%}
                </td>
        </tr>
        <tr>
@@ -74,8 +73,7 @@
                        {--ADMIN_CONFIG_DOUBLER_JACKPOT--}:
                </td>
                <td style="padding-left: 5px">
-                       <input type="radio" class="form_field" name="doubler_jackpot" value="Y"$content[jackpot_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="doubler_jackpot" value="N"$content[jackpot_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=doubler_jackpot%}
                </td>
        </tr>
        <tr>
@@ -83,8 +81,7 @@
                        {--ADMIN_CONFIG_DOUBLER_OWN--}:
                </td>
                <td style="padding-left: 5px">
-                       <input type="radio" class="form_field" name="doubler_own" value="Y"$content[own_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="doubler_own" value="N"$content[own_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=doubler_own%}
                </td>
        </tr>
        <tr>
index ed24a2d4e4bed46fbe43ca75c9551c618cca59af..8f41726960c28f0171fd27489d7176e283bfa11e 100644 (file)
@@ -11,8 +11,7 @@
                        {--ADMIN_CONFIG_EXTENSIONS_VERBOSE_SQL--}:
                </td>
                <td class="bottom" width="150" align="right">
-                       <input type="radio" class="form_field" name="verbose_sql" value="Y"[verbose_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="verbose_sql" value="N"[verbose_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=verbose_sql%}
                </td>
        </tr>
        <tr>
diff --git a/templates/de/html/admin/admin_config_funcoins.tpl b/templates/de/html/admin/admin_config_funcoins.tpl
new file mode 100644 (file)
index 0000000..cab7410
--- /dev/null
@@ -0,0 +1,128 @@
+<div align="center">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;what=config_funcoins%}" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+       <tr>
+               <td colspan="2" align="center" class="table_header bottom">
+                       <strong>{--ADMIN_CONFIG_FUNCOINS_TITLE--}</strong>
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_API_ID--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_api_id" value="{?funcoins_api_id?}" size="2" maxlength="20" />
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_API_PASSWORD--}:
+               </td>
+               <td>
+                       <input type="password" class="form_field" name="funcoins_api_password" value="{?funcoins_api_password?}" size="15" maxlength="255" />
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_REFID--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_refid" value="{?funcoins_refid?}" size="5" maxlength="20" />
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_MIN_PAYOUT--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_min_payout" value="{?funcoins_min_payout?}" size="5" maxlength="20" /> Wernis
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_MIN_WITHDRAW--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_min_withdraw" value="{?funcoins_min_withdraw?}" size="5" maxlength="20" /> Wernis
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_PAYOUT_FACTOR--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_payout_factor" value="{?funcoins_payout_factor?}" size="5" maxlength="20" />
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_WITHDRAW_FACTOR--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_withdraw_factor" value="{?funcoins_withdraw_factor?}" size="5" maxlength="20" />
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_PAYOUT_FEE_PERCENT--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_payout_fee_percent" value="{?funcoins_payout_fee_percent?}" size="5" maxlength="20" />&#37;
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_WITHDRAW_FEE_PERCENT--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_withdraw_fee_percent" value="{?funcoins_withdraw_fee_percent?}" size="5" maxlength="20" />&#37;
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_PAYOUT_FEE_FIX--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_payout_fee_fix" value="{?funcoins_payout_fee_fix?}" size="5" maxlength="20" />
+                       <span class="tiny">({?POINTS?})</span>
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_WITHDRAW_FEE_FIX--}:
+               </td>
+               <td>
+                       <input type="text" class="form_field" name="funcoins_withdraw_fee_fix" value="{?funcoins_withdraw_fee_fix?}" size="5" maxlength="20" />
+                       <span class="tiny">({?POINTS?})</span>
+               </td>
+       </tr>
+       <tr>
+               <td align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_PAYOUT_ACTIVE--}:
+               </td>
+               <td>
+                       {%template,ConfigurationYesNoSelectionBox=funcoins_payout_active%}
+               </td>
+       </tr>
+       <tr>
+               <td class="bottom" align="right">
+                       {--ADMIN_CONFIG_FUNCOINS_WITHDRAW_ACTIVE--}:
+               </td>
+               <td class="bottom">
+                       {%template,ConfigurationYesNoSelectionBox=funcoins_withdraw_active%}
+               </td>
+       </tr>
+       <tr>
+               <td colspan="2" class="table_footer">
+                       <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
+                       <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+               </td>
+       </tr>
+</table>
+</form>
+
+<div class="notice">
+       {--ADMIN_CONFIG_FUNCOINS_NOTE--}
+</div>
+
+</div>
index a0d82e0bcdaaf9049e8b121a129befc536221da5..c7bca540304edff379a7b4cf35559aa433991b46 100644 (file)
@@ -11,9 +11,7 @@
                        {--ADMIN_CONFIG_GUEST_MENU_ADVERT_ENABLED--}
                </td>
                <td width="20%">
-                       <select name="guest_menu_advert_enabled" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=guest_menu_advert_enabled%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=guest_menu_advert_enabled%}
                </td>
        </tr>
        <tr>
@@ -21,9 +19,7 @@
                        {--ADMIN_CONFIG_MEMBER_MENU_ADVERT_ENABLED--}
                </td>
                <td class="bottom" width="20%">
-                       <select name="member_menu_advert_enabled" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=member_menu_advert_enabled%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=member_menu_advert_enabled%}
                </td>
        </tr>
        <tr>
index e07ebdff3e8c306b09a1744d9d5baa4a3bb82249..bbc4d82c9ad90346339cf0c894f015e54bbbdc6b 100644 (file)
@@ -47,8 +47,7 @@
                        {--ADMIN_CONFIG_CHECK_EMAIL_TEXT--}
                </td>
                <td>
-                       <input type="radio" class="form_field" name="allow_url_in_text" value="Y"$content[allow_url_in_text_y] />{--YES--}<br />
-                       <input type="radio" class="form_field" name="allow_url_in_text" value="N"$content[allow_url_in_text_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=allow_url_in_text%}
                </td>
        </tr>
 
@@ -57,8 +56,7 @@
                        {--ADMIN_CONFIG_CHECK_EMAIL_SUBJECT--}
                </td>
                <td>
-                       <input type="radio" class="form_field" name="allow_url_in_subject" value="Y"$content[allow_url_in_subject_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="allow_url_in_subject" value="N"$content[allow_url_in_subject_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=allow_url_in_subject%}
                </td>
        </tr>
 
@@ -67,8 +65,7 @@
                        {--ADMIN_CONFIG_URL_BLACKLIST--}
                </td>
                <td>
-                       <input type="radio" class="form_field" name="url_blacklist" value="Y"$content[url_blacklist_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="url_blacklist" value="N"$content[url_blacklist_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=url_blacklist%}
                </td>
        </tr>
 
index b1c9ff77381a79e7882923e32daec396e84ece4e..66d4e1c2061e0974247220c3fa342c187156aa01 100644 (file)
                        {--ADMIN_CONFIG_GUEST_MENU--}:
                </td>
                <td>
-                       <select name="guest_menu" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=guest_menu%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=guest_menu%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_MEMBER_MENU--}:
                </td>
                <td>
-                       <select name="member_menu" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=member_menu%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=member_menu%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_YOURE_HERE--}:
                </td>
                <td>
-                       <select name="youre_here" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=youre_here%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=youre_here%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_SHOW_TIMINGS--}:
                </td>
                <td>
-                       <select name="show_timings" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=show_timings%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=show_timings%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_SHOW_POINTS_UNCONFIRMED--}:
                </td>
                <td>
-                       <select name="show_points_unconfirmed" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=show_points_unconfirmed%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=show_points_unconfirmed%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_ZIPCODE_ACTIVE--}:
                </td>
                <td align="center">
-                       <select name="order_multi_page" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=order_multi_page%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=order_multi_page%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_AUTOSEND_ACTIVE--}:
                </td>
                <td class="bottom" align="center">
-                       <select name="autosend_active" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=autosend_active%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=autosend_active%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_SEND_UPDATE--}:
                </td>
                <td align="center">
-                       <select name="send_prof_update" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=send_prof_update%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=send_prof_update%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_NOTIFY_ADMIN--}:
                </td>
                <td class="bottom" align="center">
-                       <select name="admin_notify" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=admin_notify%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=admin_notify%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_DISPLAY_DEBUG_SQLS--}
                </td>
                <td class="bottom" align="center">
-                       <select name="display_debug_sqls" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=display_debug_sqls%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=display_debug_sqls%}
                </td>
        </tr>
 
                        {--ADMIN_CONFIG_STATS_ENABLED--}
                </td>
                <td class="bottom" align="center">
-                       <select name="stats_enabled" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=stats_enabled%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=stats_enabled%}
                </td>
        </tr>
 
index fe8d251e9f180a02263aae73e9a256267de73b39..93e1cc4921cad0d5ec86707c2a6ad78594415f5b 100644 (file)
@@ -11,8 +11,7 @@
                        {--ADMIN_CONFIG_REFBACK_ENABLED--}
                </td>
                <td>
-                       <input type="radio" class="form_field" name="refback_enabled" value="Y"$content[refback_enabled_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="refback_enabled" value="N"$content[refback_enabled_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=refback_enabled%}
                </td>
        </tr>
        <tr>
index de77d1f2886f429758d134737442943dfef2d048..0916ddb8c7ee67f13ab6e033a7e69969d15d4497 100644 (file)
@@ -11,8 +11,7 @@
                {--ADMIN_CONFIG_REMOVEIP_ANON_IP--}
        </td>
        <td width="150" style="padding-left: 10px">
-               <input type="radio" class="form_field" name="removeip_anon_ip" value="Y"$content[removeip_anon_ip_y] /> {--YES--}<br />
-               <input type="radio" class="form_field" name="removeip_anon_ip" value="N"$content[removeip_anon_ip_n] /> {--NO--}
+               {%template,ConfigurationYesNoSelectionBox=removeip_anon_ip%}
        </td>
 </tr>
 <tr>
@@ -20,8 +19,7 @@
                {--ADMIN_CONFIG_REMOVEIP_ANON_HOST--}
        </td>
        <td width="150" style="padding-left: 10px">
-               <input type="radio" class="form_field" name="removeip_anon_host" value="Y"$content[removeip_anon_host_y] /> {--YES--}<br />
-               <input type="radio" class="form_field" name="removeip_anon_host" value="N"$content[removeip_anon_host_n] /> {--NO--}
+               {%template,ConfigurationYesNoSelectionBox=removeip_anon_host%}
        </td>
 </tr>
 <tr>
@@ -29,8 +27,7 @@
                {--ADMIN_CONFIG_REMOVEIP_ANON_UA--}
        </td>
        <td width="150" style="padding-left: 10px">
-               <input type="radio" class="form_field" name="removeip_anon_ua" value="Y"$content[removeip_anon_ua_y] /> {--YES--}
-               <input type="radio" class="form_field" name="removeip_anon_ua" value="N"$content[removeip_anon_ua_n] /> {--NO--}
+               {%template,ConfigurationYesNoSelectionBox=removeip_anon_ua%}
        </td>
 </tr>
 <tr>
@@ -38,8 +35,7 @@
                {--ADMIN_CONFIG_REMOVEIP_ANON_REF--}
        </td>
        <td width="150" style="padding-left: 10px">
-               <input type="radio" class="form_field" name="removeip_anon_ref" value="Y"$content[removeip_anon_ref_y] /> {--YES--}
-               <input type="radio" class="form_field" name="removeip_anon_ref" value="N"$content[removeip_anon_ref_n] /> {--NO--}
+               {%template,ConfigurationYesNoSelectionBox=removeip_anon_ref%}
        </td>
 </tr>
 <tr>
@@ -59,8 +55,7 @@
                {--ADMIN_CONFIG_REMOVEIP_ADMIN_SHOW--}
        </td>
        <td width="150" style="padding-left: 10px">
-               <input type="radio" class="form_field" name="removeip_admin_show" value="Y"$content[removeip_admin_show_y] /> {--YES--}<br />
-               <input type="radio" class="form_field" name="removeip_admin_show" value="N"$content[removeip_admin_show_n] /> {--NO--}
+               {%template,ConfigurationYesNoSelectionBox=removeip_admin_show%}
        </td>
 </tr>
 <tr>
@@ -68,8 +63,7 @@
                {--ADMIN_CONFIG_REMOVEIP_GUEST_SHOW--}
        </td>
        <td width="150" style="padding-left: 10px">
-               <input type="radio" class="form_field" name="removeip_guest_show" value="Y"$content[removeip_guest_show_y] /> {--YES--}<br />
-               <input type="radio" class="form_field" name="removeip_guest_show" value="N"$content[removeip_guest_show_n] /> {--NO--}
+               {%template,ConfigurationYesNoSelectionBox=removeip_guest_show%}
        </td>
 </tr>
 <tr>
@@ -77,8 +71,7 @@
                {--ADMIN_CONFIG_REMOVEIP_MEMBER_SHOW--}
        </td>
        <td width="150" style="padding-left: 10px">
-               <input type="radio" class="form_field" name="removeip_member_show" value="Y"$content[removeip_member_show_y] /> {--YES--}<br />
-               <input type="radio" class="form_field" name="removeip_member_show" value="N"$content[removeip_member_show_n] /> {--NO--}
+               {%template,ConfigurationYesNoSelectionBox=removeip_member_show%}
        </td>
 </tr>
 <tr>
@@ -86,8 +79,7 @@
                {--ADMIN_CONFIG_REMOVEIP_SPONSOR_SHOW--}
        </td>
        <td class="bottom" width="150" style="padding-left: 10px">
-               <input type="radio" class="form_field" name="removeip_sponsor_show" value="Y"$content[removeip_sponsor_show_y] /> {--YES--}<br />
-               <input type="radio" class="form_field" name="removeip_sponsor_show" value="N"$content[removeip_sponsor_show_n] /> {--NO--}
+               {%template,ConfigurationYesNoSelectionBox=removeip_sponsor_show%}
        </td>
 </tr>
 <tr>
index 56b617651d5db62005fbcb7a78e2630b8214dfed..e5c484a66e3576f1a7516ae7a61cf2a913b238c7 100644 (file)
                        {--ADMIN_CONFIG_SURFBAR_AUTOSTART--}
                </td>
                <td class="bottom" align="center">
-                       <select name="surfbar_autostart" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=surfbar_autostart%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=surfbar_autostart%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_SURFBAR_NOTIFY_LIMITS--}
                </td>
                <td class="bottom" align="center">
-                       <select name="surfbar_notify_limits" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=surfbar_notify_limits%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=surfbar_notify_limits%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_SURFBAR_NOTIFY_ADMIN_UNLOCK--}
                </td>
                <td class="bottom" align="center">
-                       <select name="surfbar_notify_admin_unlock" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=surfbar_notify_admin_unlock%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=surfbar_notify_admin_unlock%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_SURFBAR_MIGRATE_ORDER--}
                </td>
                <td class="bottom" align="center">
-                       <select name="surfbar_migrate_order" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=surfbar_migrate_order%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=surfbar_migrate_order%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_SURFBAR_GUEST_LOGIN_FORM--}
                </td>
                <td class="bottom" align="left" style="padding-left: 5px">
-                       <select name="surfbar_guest_login_form" class="form_select" size="1">
-                               {%config,generateYesNoOptionList=surfbar_guest_login_form%}
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=surfbar_guest_login_form%}
                </td>
        </tr>
        <tr>
index 64bf91236e002716c42881e4af4f227d2bcfeac8..ebd3fedcce3d254110d44ed4873035da73d39547 100644 (file)
        <tr>
                <td class="bottom" align="right" width="250">{--ADMIN_CONFIG_AUTOPURGE_TRANSFER--}</td>
                <td class="bottom">
-                       <select name="ap_transfer" size="1" class="form_select">
-                               <option value="Y"$content[ap_transfer_y]>{--YES--}</option>
-                               <option value="N"$content[ap_transfer_n]>{--NO--}</option>
-                       </select>
+                       {%template,ConfigurationYesNoSelectionBox=ap_transfer%}
                </td>
        </tr>
        <tr>
index 5f16f4e7aa12050b35810cd992f411103d897c9a..84aca3ac1453ac4f63dba0744eb48900a828105a 100644 (file)
@@ -11,8 +11,7 @@
                        {--ADMIN_CONFIG_VALIDATOR_ENABLED--}
                </td>
                <td class="bottom" width="60">
-                       <input type="radio" class="form_field" name="enable_validator" value="Y"$content[enable_validator_yes] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="enable_validator" value="N"$content[enable_validator_no] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=enable_validator%}
                </td>
        </tr>
        <tr>
index b3516efc28f6cdcd1bbf6ac779ef14b3ee230a9d..d4288bf9a24e8ea2956a898fe3dff399af06e92c 100644 (file)
                        {--ADMIN_CONFIG_WERNIS_PAYOUT_ACTIVE--}:
                </td>
                <td>
-                       <input type="radio" class="form_field" name="wernis_payout_active" value="Y"$content[wernis_payout_active_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="wernis_payout_active" value="N"$content[wernis_payout_active_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=wernis_payout_active%}
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_WERNIS_WITHDRAW_ACTIVE--}:
                </td>
                <td class="bottom">
-                       <input type="radio" class="form_field" name="wernis_withdraw_active" value="Y"$content[wernis_withdraw_active_y] /> {--YES--}<br />
-                       <input type="radio" class="form_field" name="wernis_withdraw_active" value="N"$content[wernis_withdraw_active_n] /> {--NO--}
+                       {%template,ConfigurationYesNoSelectionBox=wernis_withdraw_active%}
                </td>
        </tr>
        <tr>
 </form>
 
 <div class="notice">
-       {--ADMIN_WERNIS_CONFIG_NOTE--}
+       {--ADMIN_CONFIG_WERNIS_NOTE--}
 </div>
 
 </div>