]> git.mxchange.org Git - mailer.git/commitdiff
A lot code rewritten:
authorRoland Häder <roland@mxchange.org>
Tue, 29 Jun 2010 01:19:13 +0000 (01:19 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 29 Jun 2010 01:19:13 +0000 (01:19 +0000)
- New template-functions.php added and a lot functions moved from functions.php
  and some from wrapper-functions.php to it.
- New EL function doExpressionTemplate() added
- New template function doTemplateColorSwitch() added
- Heavy rewrite of PHP code and templates to make usage of that new function
  which should result in an easier PHP code
- Some fixes
- TODOs.txt updated

251 files changed:
.gitattributes
DOCS/TODOs.txt
inc/config-global.php
inc/expression-functions.php
inc/extensions-functions.php
inc/functions.php
inc/language/de.php
inc/libs/admins_functions.php
inc/libs/bonus_functions.php
inc/libs/doubler_functions.php
inc/libs/network_functions.php
inc/libs/other_functions.php
inc/libs/rallye_functions.php
inc/libs/register_functions.php
inc/libs/task_functions.php
inc/libs/user_functions.php
inc/modules/admin/admin-inc.php
inc/modules/admin/overview-inc.php
inc/modules/admin/what-adminedit.php
inc/modules/admin/what-admins_mails.php
inc/modules/admin/what-chk_regs.php
inc/modules/admin/what-config_admins.php
inc/modules/admin/what-config_cats.php
inc/modules/admin/what-config_email.php
inc/modules/admin/what-config_home.php
inc/modules/admin/what-config_imprint.php
inc/modules/admin/what-config_mods.php
inc/modules/admin/what-config_payouts.php
inc/modules/admin/what-config_points.php
inc/modules/admin/what-config_rallye_prices.php
inc/modules/admin/what-config_register.php
inc/modules/admin/what-config_rewrite.php
inc/modules/admin/what-del_transfer.php
inc/modules/admin/what-edit_emails.php
inc/modules/admin/what-email_archiv.php
inc/modules/admin/what-extensions.php
inc/modules/admin/what-guestedit.php
inc/modules/admin/what-list_autopurge.php
inc/modules/admin/what-list_bank_package.php
inc/modules/admin/what-list_beg.php
inc/modules/admin/what-list_bonus.php
inc/modules/admin/what-list_cats.php
inc/modules/admin/what-list_country.php
inc/modules/admin/what-list_holiday.php
inc/modules/admin/what-list_links.php
inc/modules/admin/what-list_network_array_translation.php
inc/modules/admin/what-list_network_params.php
inc/modules/admin/what-list_network_translations.php
inc/modules/admin/what-list_network_types.php
inc/modules/admin/what-list_networks.php
inc/modules/admin/what-list_payouts.php
inc/modules/admin/what-list_primera.php
inc/modules/admin/what-list_rallyes.php
inc/modules/admin/what-list_refs.php
inc/modules/admin/what-list_sponsor.php
inc/modules/admin/what-list_sponsor_pay.php
inc/modules/admin/what-list_surfbar_actions.php
inc/modules/admin/what-list_surfbar_urls.php
inc/modules/admin/what-list_task.php
inc/modules/admin/what-list_transfer.php
inc/modules/admin/what-list_unconfirmed.php
inc/modules/admin/what-list_user.php
inc/modules/admin/what-list_wernis.php
inc/modules/admin/what-list_yoomedia_tm.php
inc/modules/admin/what-memedit.php
inc/modules/admin/what-optimize.php
inc/modules/admin/what-payments.php
inc/modules/admin/what-refbanner.php
inc/modules/admin/what-repair_lang.php
inc/modules/admin/what-stats_mods.php
inc/modules/admin/what-surfbar_stats.php
inc/modules/admin/what-theme_edit.php
inc/modules/admin/what-theme_import.php
inc/modules/admin/what-unlock_emails.php
inc/modules/admin/what-unlock_sponsor.php
inc/modules/admin/what-unlock_surfbar_urls.php
inc/modules/admin/what-usr_online.php
inc/modules/guest/what-active.php
inc/modules/guest/what-extensions.php
inc/modules/guest/what-sponsor_infos.php
inc/modules/guest/what-sponsor_reg.php
inc/modules/guest/what-stats.php
inc/modules/guest/what-top10.php
inc/modules/member/what-beg2.php
inc/modules/member/what-bonus.php
inc/modules/member/what-categories.php
inc/modules/member/what-payout.php
inc/modules/member/what-primera.php
inc/modules/member/what-refback.php
inc/modules/member/what-reflinks.php
inc/modules/member/what-reflist.php
inc/modules/member/what-stats.php
inc/modules/member/what-surfbar_list.php
inc/modules/member/what-themes.php
inc/modules/member/what-transfer.php
inc/modules/member/what-unconfirmed.php
inc/modules/member/what-wernis.php
inc/template-functions.php [new file with mode: 0644]
inc/wrapper-functions.php
templates/de/html/admin/admin_admins_mails_edit_row.tpl
templates/de/html/admin/admin_admins_mails_list_row.tpl
templates/de/html/admin/admin_amenu_delete_row.tpl
templates/de/html/admin/admin_amenu_edit_row.tpl
templates/de/html/admin/admin_config_admins_del_row.tpl
templates/de/html/admin/admin_config_admins_edit_row.tpl
templates/de/html/admin/admin_config_admins_row.tpl
templates/de/html/admin/admin_config_cats_row.tpl
templates/de/html/admin/admin_config_email_del_row.tpl
templates/de/html/admin/admin_config_email_edit_row.tpl
templates/de/html/admin/admin_config_email_row.tpl
templates/de/html/admin/admin_config_home_row.tpl
templates/de/html/admin/admin_config_payouts_del_row.tpl
templates/de/html/admin/admin_config_payouts_edit_row.tpl
templates/de/html/admin/admin_config_payouts_row.tpl
templates/de/html/admin/admin_config_rallye_del_row.tpl
templates/de/html/admin/admin_config_rallye_edit_row.tpl
templates/de/html/admin/admin_config_rallye_prices_row.tpl
templates/de/html/admin/admin_config_register_row.tpl
templates/de/html/admin/admin_config_rewrite_rows.tpl
templates/de/html/admin/admin_del_admins_row.tpl
templates/de/html/admin/admin_del_bank_packages_row.tpl
templates/de/html/admin/admin_del_cats_row.tpl
templates/de/html/admin/admin_del_network_params_row.tpl
templates/de/html/admin/admin_del_network_types_row.tpl
templates/de/html/admin/admin_del_networks_row.tpl
templates/de/html/admin/admin_del_payments_row.tpl
templates/de/html/admin/admin_del_surfbar_urls_row.tpl
templates/de/html/admin/admin_del_transfer_row.tpl
templates/de/html/admin/admin_edit_admins_row.tpl
templates/de/html/admin/admin_edit_bank_packages_row.tpl
templates/de/html/admin/admin_edit_cats_row.tpl
templates/de/html/admin/admin_edit_email_row.tpl
templates/de/html/admin/admin_edit_network_params_row.tpl
templates/de/html/admin/admin_edit_network_types_row.tpl
templates/de/html/admin/admin_edit_networks_row.tpl
templates/de/html/admin/admin_edit_payments_row.tpl
templates/de/html/admin/admin_edit_rallyes_row.tpl
templates/de/html/admin/admin_edit_surfbar_urls_row.tpl
templates/de/html/admin/admin_email_archiv_row.tpl
templates/de/html/admin/admin_ext_sql_row.tpl
templates/de/html/admin/admin_extensions_delete_row.tpl
templates/de/html/admin/admin_extensions_delete_row_404.tpl
templates/de/html/admin/admin_extensions_edit_row.tpl
templates/de/html/admin/admin_extensions_row.tpl
templates/de/html/admin/admin_gmenu_delete_row.tpl
templates/de/html/admin/admin_gmenu_edit_row.tpl
templates/de/html/admin/admin_list_admins_row.tpl
templates/de/html/admin/admin_list_autopurge_row.tpl
templates/de/html/admin/admin_list_bank_package_row.tpl
templates/de/html/admin/admin_list_beg_rows.tpl
templates/de/html/admin/admin_list_bonus_rows.tpl
templates/de/html/admin/admin_list_cats_row.tpl
templates/de/html/admin/admin_list_chk_reg_row.tpl
templates/de/html/admin/admin_list_country_del_row.tpl
templates/de/html/admin/admin_list_country_edit_row.tpl
templates/de/html/admin/admin_list_country_row.tpl
templates/de/html/admin/admin_list_doubler_overview.tpl
templates/de/html/admin/admin_list_holiday_row.tpl
templates/de/html/admin/admin_list_imprint_row.tpl
templates/de/html/admin/admin_list_links_problem.tpl
templates/de/html/admin/admin_list_links_row.tpl
templates/de/html/admin/admin_list_mods_row.tpl
templates/de/html/admin/admin_list_network_params_row.tpl
templates/de/html/admin/admin_list_network_types_row.tpl
templates/de/html/admin/admin_list_networks_row.tpl
templates/de/html/admin/admin_list_online_row.tpl
templates/de/html/admin/admin_list_payouts_row.tpl
templates/de/html/admin/admin_list_primera_row.tpl
templates/de/html/admin/admin_list_rallye_prices_row.tpl
templates/de/html/admin/admin_list_rallye_usr_row.tpl
templates/de/html/admin/admin_list_rallyes_row.tpl
templates/de/html/admin/admin_list_rallyes_row2.tpl
templates/de/html/admin/admin_list_refs_row.tpl
templates/de/html/admin/admin_list_sponsor_pay_404.tpl
templates/de/html/admin/admin_list_sponsor_pay_del_row.tpl
templates/de/html/admin/admin_list_sponsor_pay_edit_row.tpl
templates/de/html/admin/admin_list_sponsor_pay_row.tpl
templates/de/html/admin/admin_list_sponsor_row.tpl
templates/de/html/admin/admin_list_surfbar_actions.tpl
templates/de/html/admin/admin_list_surfbar_actions_row.tpl
templates/de/html/admin/admin_list_surfbar_urls_row.tpl
templates/de/html/admin/admin_list_task_ext_rows.tpl
templates/de/html/admin/admin_list_task_rows.tpl
templates/de/html/admin/admin_list_transfer_row.tpl
templates/de/html/admin/admin_list_unconfirmed_row.tpl
templates/de/html/admin/admin_list_unconfirmed_row_404.tpl
templates/de/html/admin/admin_list_user_row.tpl
templates/de/html/admin/admin_list_wernis_row.tpl
templates/de/html/admin/admin_list_yoomedia_tm_already.tpl
templates/de/html/admin/admin_list_yoomedia_tm_row.tpl
templates/de/html/admin/admin_lock_surfbar_urls_row.tpl
templates/de/html/admin/admin_menu_404_row.tpl
templates/de/html/admin/admin_menu_overview_row.tpl
templates/de/html/admin/admin_menu_status_row.tpl
templates/de/html/admin/admin_mmenu_edit_row.tpl
templates/de/html/admin/admin_mods_edit_row.tpl
templates/de/html/admin/admin_mods_stats2_row.tpl
templates/de/html/admin/admin_mods_stats_row.tpl
templates/de/html/admin/admin_optimize_row.tpl
templates/de/html/admin/admin_other_sqls_row.tpl
templates/de/html/admin/admin_overview_list_ext_rows.tpl
templates/de/html/admin/admin_overview_list_rows.tpl
templates/de/html/admin/admin_overview_row.tpl
templates/de/html/admin/admin_overview_task_rows.tpl
templates/de/html/admin/admin_payments_list_row.tpl
templates/de/html/admin/admin_points_del_row.tpl
templates/de/html/admin/admin_points_edit_row.tpl
templates/de/html/admin/admin_points_row.tpl
templates/de/html/admin/admin_refbanner_edit_row.tpl
templates/de/html/admin/admin_refbanner_row.tpl
templates/de/html/admin/admin_repair_lang_row_404.tpl
templates/de/html/admin/admin_repair_lang_row_compares.tpl
templates/de/html/admin/admin_repair_lang_row_diff.tpl
templates/de/html/admin/admin_theme_edit_row.tpl
templates/de/html/admin/admin_theme_import_row.tpl
templates/de/html/admin/admin_undelete_surfbar_urls_row.tpl
templates/de/html/admin/admin_unlock_emails_redir_row.tpl
templates/de/html/admin/admin_unlock_emails_row.tpl
templates/de/html/admin/admin_unlock_sponsor_row.tpl
templates/de/html/admin/admin_unlock_surfbar_urls_row.tpl
templates/de/html/guest/guest_active_row.tpl
templates/de/html/guest/guest_cat_row.tpl
templates/de/html/guest/guest_doubler_list_rows.tpl
templates/de/html/guest/guest_rallye_row.tpl
templates/de/html/guest/guest_sponsor_act_row.tpl
templates/de/html/guest/guest_sponsor_pay_row.tpl
templates/de/html/guest/guest_sponsor_payment_row.tpl
templates/de/html/guest/guest_stats_cats_row.tpl
templates/de/html/guest/guest_stats_row.tpl
templates/de/html/guest/guest_top10_empty4.tpl
templates/de/html/guest/guest_top10_empty5.tpl
templates/de/html/guest/guest_top10_row_earner.tpl
templates/de/html/guest/guest_top10_row_login.tpl
templates/de/html/guest/guest_top10_row_refs.tpl
templates/de/html/member/member_bonus_row.tpl
templates/de/html/member/member_cat_row.tpl
templates/de/html/member/member_doubler_list_rows.tpl
templates/de/html/member/member_list_beg_row.tpl
templates/de/html/member/member_payout_row.tpl
templates/de/html/member/member_primera_mode_list_row.tpl
templates/de/html/member/member_ref_list_row.tpl
templates/de/html/member/member_refback_list_row.tpl
templates/de/html/member/member_refback_list_row_deleted.tpl
templates/de/html/member/member_reflinks_row.tpl
templates/de/html/member/member_surfbar_list_row.tpl
templates/de/html/member/member_transfer_row.tpl
templates/de/html/member/member_unconfirmed_404.tpl
templates/de/html/member/member_unconfirmed_404_nopoints.tpl
templates/de/html/member/member_unconfirmed_row.tpl
templates/de/html/member/member_unconfirmed_row_nopoints.tpl
templates/de/html/member/member_wernis_mode_list_row.tpl

index 0efc620c0b24801f0a12f537d42e1b7de4ac70d8..6211e9b59f3944a05f763169f34f0876e489e709 100644 (file)
@@ -686,6 +686,7 @@ inc/session.php -text
 inc/sql-functions.php -text
 inc/stats-functions.php -text
 inc/stylesheet.php -text
 inc/sql-functions.php -text
 inc/stats-functions.php -text
 inc/stylesheet.php -text
+inc/template-functions.php -text
 inc/weekly/.htaccess -text
 inc/weekly/weekly_ -text
 inc/weekly/weekly_surfbar.php -text
 inc/weekly/.htaccess -text
 inc/weekly/weekly_ -text
 inc/weekly/weekly_surfbar.php -text
index abceefeed812ff2d3a02454061e37a8eb8681a4a..9e5ceb7d0e7757cebc7987358dfae700d2a66ba2 100644 (file)
 ./inc/extensions-functions.php:143:    // @TODO Do we still need this? setExtensionUpdateNotes('');
 ./inc/extensions-functions.php:428:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
 ./inc/extensions-functions.php:544:            // @TODO Extension is loaded, what next?
 ./inc/extensions-functions.php:143:    // @TODO Do we still need this? setExtensionUpdateNotes('');
 ./inc/extensions-functions.php:428:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
 ./inc/extensions-functions.php:544:            // @TODO Extension is loaded, what next?
-./inc/functions.php:1065:// @TODO $simple/$constants are deprecated
-./inc/functions.php:1092:      // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
-./inc/functions.php:2372:      // @TODO This can be easily moved out after the merge from EL branch to this is complete
-./inc/functions.php:2521:              // @TODO Add a little more infos here
-./inc/functions.php:2605:                      // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
-./inc/functions.php:2628:                      // @TODO Rewrite this old lost code to a template
-./inc/functions.php:266:       // @TODO Remove this sanity-check if all is fine
-./inc/functions.php:269:       // @TODO Try to rewrite all $DATA to $content
-./inc/functions.php:2718:                      // @TODO Are these convertions still required?
-./inc/functions.php:2736:// @TODO Rewrite this function to use readFromFile() and writeToFile()
-./inc/functions.php:3620:// @TODO Lame description for this function
-./inc/functions.php:3639:                      // @TODO Move this in a filter
-./inc/functions.php:3763:      // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:542:               // @TODO Extension 'msg' does not exist
-./inc/functions.php:605:// @TODO Rewrite this to an extension 'smtp'
+./inc/functions.php:115:               // @TODO Extension 'msg' does not exist
+./inc/functions.php:1472:                      // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
+./inc/functions.php:1495:                      // @TODO Rewrite this old lost code to a template
+./inc/functions.php:1563:                      // @TODO Are these convertions still required?
+./inc/functions.php:1581:// @TODO Rewrite this function to use readFromFile() and writeToFile()
+./inc/functions.php:178:// @TODO Rewrite this to an extension 'smtp'
+./inc/functions.php:2234:      // @TODO This is still very static, rewrite it somehow
 ./inc/install-functions.php:63:        // @TODO DEACTIVATED: changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
 ./inc/install-functions.php:63:        // @TODO DEACTIVATED: changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
-./inc/language/de.php:1143:// @TODO Rewrite these two constants
-./inc/language/de.php:1158:// @TODO Rewrite these three constants
+./inc/language/de.php:1141:// @TODO Rewrite these two constants
+./inc/language/de.php:1156:// @TODO Rewrite these three constants
 ./inc/language/de.php:309:     // @TODO Following two are unused?
 ./inc/language/de.php:309:     // @TODO Following two are unused?
-./inc/language/de.php:838:// @TODO Are these constants longer used?
+./inc/language/de.php:836:// @TODO Are these constants longer used?
 ./inc/language-functions.php:234:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:46:// @TODO Rewrite all language constants to this function.
 ./inc/language/rallye_de.php:13: * @TODO Naming convention not applied for language strings             *
 ./inc/language/refback_de.php:46:// @TODO Rewrite these constants to one
 ./inc/language/sponsor_de.php:119:// @TODO Rewrite these four constants to one and use sprintf()
 ./inc/language-functions.php:234:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:46:// @TODO Rewrite all language constants to this function.
 ./inc/language/rallye_de.php:13: * @TODO Naming convention not applied for language strings             *
 ./inc/language/refback_de.php:46:// @TODO Rewrite these constants to one
 ./inc/language/sponsor_de.php:119:// @TODO Rewrite these four constants to one and use sprintf()
-./inc/libs/admins_functions.php:440:           // @TODO This can be, somehow, rewritten
+./inc/libs/admins_functions.php:434:           // @TODO This can be, somehow, rewritten
 ./inc/libs/beg_functions.php:58:               // @TODO Try to rewrite the following unset()
 ./inc/libs/beg_functions.php:58:               // @TODO Try to rewrite the following unset()
-./inc/libs/bonus_functions.php:213:            // @TODO Move this HTML to a template
-./inc/libs/bonus_functions.php:297:            // @TODO This query isn't right, it will only update if the user was for a longer time away!
+./inc/libs/bonus_functions.php:206:            // @TODO Move this HTML to a template
+./inc/libs/bonus_functions.php:290:            // @TODO This query isn't right, it will only update if the user was for a longer time away!
 ./inc/libs/doubler_functions.php:46:// @TODO Lame description
 ./inc/libs/doubler_functions.php:94:                   // @TODO Can't this be moved into EL?
 ./inc/libs/mailid_functions.php:49:            // @TODO Rewrite this to a dynamic include or so
 ./inc/libs/doubler_functions.php:46:// @TODO Lame description
 ./inc/libs/doubler_functions.php:94:                   // @TODO Can't this be moved into EL?
 ./inc/libs/mailid_functions.php:49:            // @TODO Rewrite this to a dynamic include or so
-./inc/libs/rallye_functions.php:703:// @TODO This function does not load min_users, min_prices, please encapsulate loading rallye data with e.g. getRallyeDataFromId()
-./inc/libs/rallye_functions.php:773:   $EXPIRE = 3; // @TODO The hard-coded value...
-./inc/libs/rallye_functions.php:859:// @TODO Please document this function
-./inc/libs/rallye_functions.php:915:           // Load count @TODO Can't we rewrite this to our API?
+./inc/libs/rallye_functions.php:700:// @TODO This function does not load min_users, min_prices, please encapsulate loading rallye data with e.g. getRallyeDataFromId()
+./inc/libs/rallye_functions.php:768:   $EXPIRE = 3; // @TODO The hard-coded value...
+./inc/libs/rallye_functions.php:854:// @TODO Please document this function
+./inc/libs/rallye_functions.php:910:           // Load count @TODO Can't we rewrite this to our API?
 ./inc/libs/refback_functions.php:61:           // @TODO Try to rewrite the following unset()
 ./inc/libs/refback_functions.php:61:           // @TODO Try to rewrite the following unset()
-./inc/libs/register_functions.php:299: // @TODO Rewrite these all to a single filter
-./inc/libs/register_functions.php:375: // @TODO Rewrite this to a filter
-./inc/libs/register_functions.php:382: // @TODO Rewrite this whole if() block to addPointsThroughReferalSystem(). This will also make following if() block obsolete
-./inc/libs/register_functions.php:383: // @TODO Wether the registration bonus should only be added to user directly or through referal system should be configurable
+./inc/libs/register_functions.php:296: // @TODO Rewrite these all to a single filter
+./inc/libs/register_functions.php:372: // @TODO Rewrite this to a filter
+./inc/libs/register_functions.php:379: // @TODO Rewrite this whole if() block to addPointsThroughReferalSystem(). This will also make following if() block obsolete
+./inc/libs/register_functions.php:380: // @TODO Wether the registration bonus should only be added to user directly or through referal system should be configurable
 ./inc/libs/surfbar_functions.php:1541:         // @TODO This can be somehow rewritten
 ./inc/libs/surfbar_functions.php:713:// @TODO Can't we use our new expression language instead of this ugly code?
 ./inc/libs/surfbar_functions.php:957:  // @TODO Invalid salt should be refused
 ./inc/libs/surfbar_functions.php:1541:         // @TODO This can be somehow rewritten
 ./inc/libs/surfbar_functions.php:713:// @TODO Can't we use our new expression language instead of this ugly code?
 ./inc/libs/surfbar_functions.php:957:  // @TODO Invalid salt should be refused
 ./inc/modules/admin/admin-inc.php:338:                                                 // @TODO ACL is 'allow'... hmmm
 ./inc/modules/admin/admin-inc.php:438:// @TODO Try to rewrite this to adminAddMenuSelectionBox()
 ./inc/modules/admin/overview-inc.php:164:                              // @TODO Rewrite this to a filter
 ./inc/modules/admin/admin-inc.php:338:                                                 // @TODO ACL is 'allow'... hmmm
 ./inc/modules/admin/admin-inc.php:438:// @TODO Try to rewrite this to adminAddMenuSelectionBox()
 ./inc/modules/admin/overview-inc.php:164:                              // @TODO Rewrite this to a filter
-./inc/modules/admin/overview-inc.php:278:                              // @TODO Rewrite this to something with include files and/or filter
-./inc/modules/admin/overview-inc.php:316:                                              // @TODO This may also be rewritten to include files
-./inc/modules/admin/overview-inc.php:318:                                                      default: // @TODO Unknown support mode
-./inc/modules/admin/overview-inc.php:436:                      // @TODO Try to move this in includes
+./inc/modules/admin/overview-inc.php:277:                              // @TODO Rewrite this to something with include files and/or filter
+./inc/modules/admin/overview-inc.php:315:                                              // @TODO This may also be rewritten to include files
+./inc/modules/admin/overview-inc.php:317:                                                      default: // @TODO Unknown support mode
+./inc/modules/admin/overview-inc.php:432:                      // @TODO Try to move this in includes
 ./inc/modules/admin/overview-inc.php:45:// @TODO This function does also check for uncompleted tasks
 ./inc/modules/admin/what-add_guestnl_cat.php:49:       // @TODO Check if category does already exist
 ./inc/modules/admin/what-add_surfbar_url.php:57:       // @TODO Find all convertSelectionsToTimestamp() calls and rewrite postRequestParameter() calls to $postData
 ./inc/modules/admin/overview-inc.php:45:// @TODO This function does also check for uncompleted tasks
 ./inc/modules/admin/what-add_guestnl_cat.php:49:       // @TODO Check if category does already exist
 ./inc/modules/admin/what-add_surfbar_url.php:57:       // @TODO Find all convertSelectionsToTimestamp() calls and rewrite postRequestParameter() calls to $postData
 ./inc/modules/admin/what-adminedit.php:58:     // @TODO Kill all constants in this file
 ./inc/modules/admin/what-admins_mails.php:61:                          // @TODO Can this be rewritten to an API function?
 ./inc/modules/admin/what-bonus.php:48:// @TODO Unused at the moment
 ./inc/modules/admin/what-adminedit.php:58:     // @TODO Kill all constants in this file
 ./inc/modules/admin/what-admins_mails.php:61:                          // @TODO Can this be rewritten to an API function?
 ./inc/modules/admin/what-bonus.php:48:// @TODO Unused at the moment
-./inc/modules/admin/what-config_admins.php:132:        // @TODO Rewrite this to filter 'run_sqls'
+./inc/modules/admin/what-config_admins.php:126:        // @TODO Rewrite this to filter 'run_sqls'
 ./inc/modules/admin/what-config_mods.php:57:                   // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
 ./inc/modules/admin/what-config_points.php:113:                        // @TODO Rewrite this to a filter
 ./inc/modules/admin/what-config_mods.php:57:                   // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
 ./inc/modules/admin/what-config_points.php:113:                        // @TODO Rewrite this to a filter
-./inc/modules/admin/what-config_rallye_prices.php:207:                 // @TODO Rewrite these two constants
-./inc/modules/admin/what-config_register.php:78:       // @TODO Move this HTML code into a template
+./inc/modules/admin/what-config_rallye_prices.php:197:                 // @TODO Rewrite these two constants
+./inc/modules/admin/what-config_register.php:77:       // @TODO Move this HTML code into a template
 ./inc/modules/admin/what-del_email.php:60:             // @TODO Unused: $price = getPaymentPoints($content['payment_id'], 'price');
 ./inc/modules/admin/what-del_email.php:61:             // @TODO Unused: cat_id, payment_id
 ./inc/modules/admin/what-edit_user.php:20: * @TODO Add support for ext-country                                    *
 ./inc/modules/admin/what-email_stats.php:48:// @TODO Unused at the moment
 ./inc/modules/admin/what-del_email.php:60:             // @TODO Unused: $price = getPaymentPoints($content['payment_id'], 'price');
 ./inc/modules/admin/what-del_email.php:61:             // @TODO Unused: cat_id, payment_id
 ./inc/modules/admin/what-edit_user.php:20: * @TODO Add support for ext-country                                    *
 ./inc/modules/admin/what-email_stats.php:48:// @TODO Unused at the moment
-./inc/modules/admin/what-extensions.php:282:                           // @TODO Rewrite in template: id->ext_id,name->ext_name,active->ext_active,ver->ext_ver
-./inc/modules/admin/what-extensions.php:363:                                           // @TODO Rewrite this to a filter
+./inc/modules/admin/what-extensions.php:277:                           // @TODO Rewrite in template: id->ext_id,name->ext_name,active->ext_active,ver->ext_ver
+./inc/modules/admin/what-extensions.php:356:                                           // @TODO Rewrite this to a filter
 ./inc/modules/admin/what-guest_add.php:137:                            // @TODO This can be somehow rewritten to a function
 ./inc/modules/admin/what-guest_add.php:69:             // @TODO Cant this be rewritten?
 ./inc/modules/admin/what-guest_add.php:85:             // @TODO This can be somehow rewritten to a function
 ./inc/modules/admin/what-holiday_list.php:48:// @TODO Unused at the moment
 ./inc/modules/admin/what-list_autopurge.php:49:// @TODO Rewrite those lines to filter
 ./inc/modules/admin/what-guest_add.php:137:                            // @TODO This can be somehow rewritten to a function
 ./inc/modules/admin/what-guest_add.php:69:             // @TODO Cant this be rewritten?
 ./inc/modules/admin/what-guest_add.php:85:             // @TODO This can be somehow rewritten to a function
 ./inc/modules/admin/what-holiday_list.php:48:// @TODO Unused at the moment
 ./inc/modules/admin/what-list_autopurge.php:49:// @TODO Rewrite those lines to filter
-./inc/modules/admin/what-list_bonus.php:135:           // @TODO Can't this be moved into our expression language?
+./inc/modules/admin/what-list_bonus.php:134:           // @TODO Can't this be moved into our expression language?
 ./inc/modules/admin/what-list_cats.php:56:             // @TODO No longer needed? define('__CATEGORIES_BASE'   , '<a href="{%url=modules.php?module=admin&amp;userid=');
 ./inc/modules/admin/what-list_cats.php:71:                             // @TODO Rewrite this to countSum.....() function
 ./inc/modules/admin/what-list_links.php:57:            // @TODO Try to rewrite this to a filter
 ./inc/modules/admin/what-list_links.php:89:                            // @TODO Find a way to rewrite this. See some lines above for different queries
 ./inc/modules/admin/what-list_links.php:98:                                    // @TODO Rewrite this to includes/filter
 ./inc/modules/admin/what-list_cats.php:56:             // @TODO No longer needed? define('__CATEGORIES_BASE'   , '<a href="{%url=modules.php?module=admin&amp;userid=');
 ./inc/modules/admin/what-list_cats.php:71:                             // @TODO Rewrite this to countSum.....() function
 ./inc/modules/admin/what-list_links.php:57:            // @TODO Try to rewrite this to a filter
 ./inc/modules/admin/what-list_links.php:89:                            // @TODO Find a way to rewrite this. See some lines above for different queries
 ./inc/modules/admin/what-list_links.php:98:                                    // @TODO Rewrite this to includes/filter
-./inc/modules/admin/what-list_refs.php:110:                                                            // @TODO Try to rewrite some to EL
+./inc/modules/admin/what-list_refs.php:107:                                                            // @TODO Try to rewrite some to EL
 ./inc/modules/admin/what-list_unconfirmed.php:100:             // @TODO Rewrite this to $content = SQL_FETCHARRAY(), look some lines above for two differrent queries
 ./inc/modules/admin/what-list_unconfirmed.php:77:      // @TODO This constant might be unused? define('__LIST_UNCON_TITLE', '{--LIST_UNCONFIRMED_BONUS_LINKS--}');
 ./inc/modules/admin/what-list_unconfirmed.php:88:      // @TODO "Please do not call me directly." Should be rewritten to a nice selection depending on ext-bonus
 ./inc/modules/admin/what-list_user.php:151:            // @TODO Rewrite these to filters
 ./inc/modules/admin/what-list_user.php:257:            // @TODO Rewrite this into a filter
 ./inc/modules/admin/what-list_unconfirmed.php:100:             // @TODO Rewrite this to $content = SQL_FETCHARRAY(), look some lines above for two differrent queries
 ./inc/modules/admin/what-list_unconfirmed.php:77:      // @TODO This constant might be unused? define('__LIST_UNCON_TITLE', '{--LIST_UNCONFIRMED_BONUS_LINKS--}');
 ./inc/modules/admin/what-list_unconfirmed.php:88:      // @TODO "Please do not call me directly." Should be rewritten to a nice selection depending on ext-bonus
 ./inc/modules/admin/what-list_user.php:151:            // @TODO Rewrite these to filters
 ./inc/modules/admin/what-list_user.php:257:            // @TODO Rewrite this into a filter
-./inc/modules/admin/what-list_user.php:301:                    // @TODO Rewrite this into a filter
+./inc/modules/admin/what-list_user.php:300:                    // @TODO Rewrite this into a filter
 ./inc/modules/admin/what-list_user.php:59:// @TODO Rewrite these if-blocks in a filter
 ./inc/modules/admin/what-logs.php:69:                  // @TODO Fix content-type here
 ./inc/modules/admin/what-logs.php:72:                  // @TODO Fix content-type here
 ./inc/modules/admin/what-mem_add.php:126:                              // @TODO This can be somehow rewritten to a function
 ./inc/modules/admin/what-mem_add.php:65:               // @TODO Cant this be rewritten?
 ./inc/modules/admin/what-mem_add.php:81:               // @TODO This can be somehow rewritten to a function
 ./inc/modules/admin/what-list_user.php:59:// @TODO Rewrite these if-blocks in a filter
 ./inc/modules/admin/what-logs.php:69:                  // @TODO Fix content-type here
 ./inc/modules/admin/what-logs.php:72:                  // @TODO Fix content-type here
 ./inc/modules/admin/what-mem_add.php:126:                              // @TODO This can be somehow rewritten to a function
 ./inc/modules/admin/what-mem_add.php:65:               // @TODO Cant this be rewritten?
 ./inc/modules/admin/what-mem_add.php:81:               // @TODO This can be somehow rewritten to a function
-./inc/modules/admin/what-payments.php:152:                     // @TODO Rewritings: title->mail_title in template
-./inc/modules/admin/what-refbanner.php:145:                    // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template
+./inc/modules/admin/what-payments.php:148:                     // @TODO Rewritings: title->mail_title in template
+./inc/modules/admin/what-refbanner.php:143:                    // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template
 ./inc/modules/admin/what-unlock_emails.php:89:                                 // @TODO Rewrite these if-blocks to a filter
 ./inc/modules/admin/what-usage.php:88: // @TODO This code is double, see loadTemplate() and loadEmailTemplate() in functions.php
 ./inc/modules/admin/what-usr_online.php:51:    // @TODO Add a filter for sponsor
 ./inc/modules/admin/what-unlock_emails.php:89:                                 // @TODO Rewrite these if-blocks to a filter
 ./inc/modules/admin/what-usage.php:88: // @TODO This code is double, see loadTemplate() and loadEmailTemplate() in functions.php
 ./inc/modules/admin/what-usr_online.php:51:    // @TODO Add a filter for sponsor
 ./inc/modules/member/what-categories.php:129:          // @TODO Rewrite this to use $OUT .= ...
 ./inc/modules/member/what-order.php:457:                       // @TODO Rewrite this to a filter
 ./inc/modules/member/what-order.php:65:// @TODO Rewrite this to a filter
 ./inc/modules/member/what-categories.php:129:          // @TODO Rewrite this to use $OUT .= ...
 ./inc/modules/member/what-order.php:457:                       // @TODO Rewrite this to a filter
 ./inc/modules/member/what-order.php:65:// @TODO Rewrite this to a filter
-./inc/modules/member/what-payout.php:218:                                      // @TODO Rewrite this to a filter
+./inc/modules/member/what-payout.php:216:                                      // @TODO Rewrite this to a filter
 ./inc/modules/member/what-points.php:55:// @TODO Should we rewrite this to a filter?
 ./inc/modules/member/what-rallyes.php:91:      // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;admin=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
 ./inc/modules/member/what-points.php:55:// @TODO Should we rewrite this to a filter?
 ./inc/modules/member/what-rallyes.php:91:      // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;admin=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
-./inc/modules/member/what-refback.php:128:                     // @TODO UNUSED: $refRow['status']      = translateUserStatus($refRow['status']);
+./inc/modules/member/what-refback.php:126:                     // @TODO UNUSED: $refRow['status']      = translateUserStatus($refRow['status']);
 ./inc/modules/member/what-reflinks.php:54:// @TODO Move this into a filter
 ./inc/modules/member/what-reflinks.php:54:// @TODO Move this into a filter
+./inc/modules/member/what-stats.php:74:                // @TODO More usage of EL at this array
+./inc/modules/member/what-themes.php:116:      // @TODO Move this code into a template
 ./inc/modules/member/what-transfer.php:132:                            // @TODO Rewrite this to a filter
 ./inc/modules/member/what-transfer.php:222:                            // @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
 ./inc/modules/member/what-transfer.php:304:                    // @TODO This should be somehow rewritten to $row = SQL_FETCHARRAY(), see switch() block above for SQL queries
 ./inc/modules/member/what-transfer.php:132:                            // @TODO Rewrite this to a filter
 ./inc/modules/member/what-transfer.php:222:                            // @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
 ./inc/modules/member/what-transfer.php:304:                    // @TODO This should be somehow rewritten to $row = SQL_FETCHARRAY(), see switch() block above for SQL queries
 ./inc/reset/reset_beg.php:51:// @TODO This should be converted in a daily beg rallye
 ./inc/reset/reset_birthday.php:91:                     // @TODO 4 is hard-coded here, should we move it out in config?
 ./inc/revision-functions.php:153:// @TODO Please describe this function
 ./inc/reset/reset_beg.php:51:// @TODO This should be converted in a daily beg rallye
 ./inc/reset/reset_birthday.php:91:                     // @TODO 4 is hard-coded here, should we move it out in config?
 ./inc/revision-functions.php:153:// @TODO Please describe this function
+./inc/template-functions.php:1155:     // @TODO This can be easily moved out after the merge from EL branch to this is complete
+./inc/template-functions.php:1188:             // @TODO Add a little more infos here
+./inc/template-functions.php:1473:// @TODO Lame description for this function
+./inc/template-functions.php:1492:                     // @TODO Move this in a filter
+./inc/template-functions.php:280:      // @TODO Remove this sanity-check if all is fine
+./inc/template-functions.php:595:// @TODO $simple/$constants are deprecated
+./inc/template-functions.php:622:      // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
 ./inc/wrapper-functions.php:127:// @TODO Implement $compress
 ./inc/wrapper-functions.php:134:// @TODO Implement $decompress
 ./inc/wrapper-functions.php:455:// @TODO Do some more sanity check here
 ./inc/wrapper-functions.php:127:// @TODO Implement $compress
 ./inc/wrapper-functions.php:134:// @TODO Implement $decompress
 ./inc/wrapper-functions.php:455:// @TODO Do some more sanity check here
index 2861f71424aa4eafc68b6d42779ed019ec100bc2..dc5edaaacb5f98831bc7991d2486b5ac0acf1204 100644 (file)
@@ -56,7 +56,7 @@ error_reporting(E_ALL | E_STRICT);
 $PATH = str_replace("\\", '/', substr(dirname(__FILE__), 0, -3));
 
 // Some very important function includes
 $PATH = str_replace("\\", '/', substr(dirname(__FILE__), 0, -3));
 
 // Some very important function includes
-foreach (array('config','wrapper','inc','stats') as $inc) {
+foreach (array('config','wrapper','template','inc','stats') as $inc) {
        include($PATH . 'inc/' . $inc . '-functions.php');
 } // END - foreach
 
        include($PATH . 'inc/' . $inc . '-functions.php');
 } // END - foreach
 
index 6a7ca12bf646bc544057143089c288999cef0b58..d44b587edd383f13af1092c55121bfb839e7940b 100644 (file)
@@ -236,5 +236,18 @@ function doExpressionMessage ($data) {
        return $code;
 }
 
        return $code;
 }
 
+// Expression call-back for template functions
+function doExpressionTemplate ($data) {
+       // Do the replacement
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template='.$GLOBALS['current_template']);
+       $replacer = '{DQUOTE} . doTemplate' . $data['callback'] . "('" . $GLOBALS['current_template'] . "', true) . {DQUOTE}";
+
+       // Replace the code
+       $code = replaceExpressionCode($data, $replacer);
+
+       // Return the (maybe) replaced code
+       return $code;
+}
+
 // [EOF]
 ?>
 // [EOF]
 ?>
index 9c5771d453b5145b318a8f08c2884af40e746fd4..af6f615564a4c64766b55fc337f9023e12d8386b 100644 (file)
@@ -738,9 +738,6 @@ function addExtensionVerboseSqlTable ($title = '', $dashed = '', $switch = false
 
        // Do we have queries?
        if ((isExtensionInstalledAndNewer('sql_patches', '0.0.7')) && (getConfig('verbose_sql') == 'Y')) {
 
        // Do we have queries?
        if ((isExtensionInstalledAndNewer('sql_patches', '0.0.7')) && (getConfig('verbose_sql') == 'Y')) {
-               // Init switch color
-               $SW = 2;
-
                // Get all SQLs
                foreach (getExtensionSqls() as $sqls) {
                        // New array format is recursive
                // Get all SQLs
                foreach (getExtensionSqls() as $sqls) {
                        // New array format is recursive
@@ -752,16 +749,12 @@ function addExtensionVerboseSqlTable ($title = '', $dashed = '', $switch = false
                                if (!empty($sql)) {
                                        // Prepare output for template
                                        $content = array(
                                if (!empty($sql)) {
                                        // Prepare output for template
                                        $content = array(
-                                               'sw'  => $SW,
                                                'i'   => ($idx+1),
                                                'sql' => $sql
                                        );
 
                                        // Load row template
                                        $OUT .= loadTemplate('admin_ext_sql_row', true, $content);
                                                'i'   => ($idx+1),
                                                'sql' => $sql
                                        );
 
                                        // Load row template
                                        $OUT .= loadTemplate('admin_ext_sql_row', true, $content);
-
-                                       // Switch color
-                                       $SW = 3 - $SW;
                                } // END - if
                        } // END - foreach
                } // END - foreach
                                } // END - if
                        } // END - foreach
                } // END - foreach
index 673c8e822c4482a960b7e145b72cd22722adc754..6f82e177899d66bd008f5f943499ff3ee40c48cd 100644 (file)
@@ -42,80 +42,6 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
        die();
 } // END - if
 
-// Output HTML code directly or 'render' it. You addionally switch the new-line character off
-function outputHtml ($htmlCode, $newLine = true) {
-       // Init output
-       if (!isset($GLOBALS['output'])) {
-               $GLOBALS['output'] = '';
-       } // END - if
-
-       // Do we have HTML-Code here?
-       if (!empty($htmlCode)) {
-               // Yes, so we handle it as you have configured
-               switch (getConfig('OUTPUT_MODE')) {
-                       case 'render':
-                               // That's why you don't need any \n at the end of your HTML code... :-)
-                               if (getPhpCaching() == 'on') {
-                                       // Output into PHP's internal buffer
-                                       outputRawCode($htmlCode);
-
-                                       // That's why you don't need any \n at the end of your HTML code... :-)
-                                       if ($newLine === true) print("\n");
-                               } else {
-                                       // Render mode for old or lame servers...
-                                       $GLOBALS['output'] .= $htmlCode;
-
-                                       // That's why you don't need any \n at the end of your HTML code... :-)
-                                       if ($newLine === true) $GLOBALS['output'] .= "\n";
-                               }
-                               break;
-
-                       case 'direct':
-                               // If we are switching from render to direct output rendered code
-                               if ((!empty($GLOBALS['output'])) && (getPhpCaching() != 'on')) { outputRawCode($GLOBALS['output']); $GLOBALS['output'] = ''; }
-
-                               // The same as above... ^
-                               outputRawCode($htmlCode);
-                               if ($newLine === true) print("\n");
-                               break;
-
-                       default:
-                               // Huh, something goes wrong or maybe you have edited config.php ???
-                               debug_report_bug(__FUNCTION__, __LINE__, '<strong>{--FATAL_ERROR--}:</strong> {--LANG_NO_RENDER_DIRECT--}');
-                               break;
-               } // END - switch
-       } elseif ((getPhpCaching() == 'on') && ((!isset($GLOBALS['header'])) || (count($GLOBALS['header']) == 0))) {
-               // Output cached HTML code
-               $GLOBALS['output'] = ob_get_contents();
-
-               // Clear output buffer for later output if output is found
-               if (!empty($GLOBALS['output'])) {
-                       clearOutputBuffer();
-               } // END - if
-
-               // Send all HTTP headers
-               sendHttpHeaders();
-
-               // Compile and run finished rendered HTML code
-               compileFinalOutput();
-
-               // Output code here, DO NOT REMOVE! ;-)
-               outputRawCode($GLOBALS['output']);
-       } elseif ((getConfig('OUTPUT_MODE') == 'render') && (!empty($GLOBALS['output']))) {
-               // Send all HTTP headers
-               sendHttpHeaders();
-
-               // Compile and run finished rendered HTML code
-               compileFinalOutput();
-
-               // Output code here, DO NOT REMOVE! ;-)
-               outputRawCode($GLOBALS['output']);
-       } else {
-               // And flush all headers
-               flushHeaders();
-       }
-}
-
 // Sends out all headers required for HTTP/1.1 reply
 function sendHttpHeaders () {
        // Used later
 // Sends out all headers required for HTTP/1.1 reply
 function sendHttpHeaders () {
        // Used later
@@ -134,91 +60,6 @@ function sendHttpHeaders () {
        sendHeader('Content-Language: ' . getLanguage());
 }
 
        sendHeader('Content-Language: ' . getLanguage());
 }
 
-// Compiles the final output
-function compileFinalOutput () {
-       // Add page header and footer
-       addPageHeaderFooter();
-
-       // Do the final compilation
-       $GLOBALS['output'] = doFinalCompilation($GLOBALS['output']);
-
-       // Extension 'rewrite' installed?
-       if ((isExtensionActive('rewrite')) && (getOutputMode() != 1)) {
-               $GLOBALS['output'] = rewriteLinksInCode($GLOBALS['output']);
-       } // END - if
-
-       // Compress it?
-       if (!empty($_SERVER['HTTP_ACCEPT_ENCODING']) && (strpos('gzip', $_SERVER['HTTP_ACCEPT_ENCODING']) !== null)) {
-               // Compress it for HTTP gzip
-               $GLOBALS['output'] = gzencode($GLOBALS['output'], 9, true);
-
-               // Add header
-               sendHeader('Content-Encoding: gzip');
-       } elseif (!empty($_SERVER['HTTP_ACCEPT_ENCODING']) && (strpos('deflate', $_SERVER['HTTP_ACCEPT_ENCODING']) !== null)) {
-               // Compress it for HTTP deflate
-               $GLOBALS['output'] = gzcompress($GLOBALS['output'], 9);
-
-               // Add header
-               sendHeader('Content-Encoding: deflate');
-       }
-
-       // Add final length
-       sendHeader('Content-Length: ' . strlen($GLOBALS['output']));
-
-       // Flush all headers
-       flushHeaders();
-}
-
-// Main compilation loop
-function doFinalCompilation ($code, $insertComments = true) {
-       // Insert comments? (Only valid with HTML templates, of course)
-       enableTemplateHtml($insertComments);
-
-       // Init counter
-       $cnt = 0;
-
-       // Compile all out
-       while (((strpos($code, '{--') !== false) || (strpos($code, '{DQUOTE}') !== false) || (strpos($code, '{?') !== false) || (strpos($code, '{%') !== false)) && ($cnt < 4)) {
-               // Init common variables
-               $content = array();
-               $newContent = '';
-
-               // Compile it
-               //* DEBUG: */ debugOutput('<pre>'.encodeEntities($code).'</pre>');
-               $eval = '$newContent = "' . str_replace('{DQUOTE}', '"', compileCode(escapeQuotes($code))) . '";';
-               //* DEBUG: */ if ($insertComments) die('<pre>'.linenumberCode($eval).'</pre>');
-               eval($eval);
-               //* DEBUG: */ die('<pre>'.encodeEntities($newContent).'</pre>');
-
-               // Was that eval okay?
-               if (empty($newContent)) {
-                       // Something went wrong!
-                       debug_report_bug(__FUNCTION__, __LINE__, 'Evaluation error:<pre>' . linenumberCode($eval) . '</pre>', false);
-               } // END - if
-
-               // Use it again
-               $code = $newContent;
-
-               // Count round
-               $cnt++;
-       } // END - while
-
-       // Return the compiled code
-       return $code;
-}
-
-// Output the raw HTML code
-function outputRawCode ($htmlCode) {
-       // Output stripped HTML code to avoid broken JavaScript code, etc.
-       print(str_replace('{BACK}', "\\", $htmlCode));
-
-       // Flush the output if only getPhpCaching() is not 'on'
-       if (getPhpCaching() != 'on') {
-               // Flush it
-               flush();
-       } // END - if
-}
-
 // Init fatal message array
 function initFatalMessages () {
        $GLOBALS['fatal_messages'] = array();
 // Init fatal message array
 function initFatalMessages () {
        $GLOBALS['fatal_messages'] = array();
@@ -261,274 +102,6 @@ function getTotalFatalErrors () {
        return $count;
 }
 
        return $count;
 }
 
-// Load a template file and return it's content (only it's name; do not use ' or ")
-function loadTemplate ($template, $return = false, $content = array()) {
-       // @TODO Remove this sanity-check if all is fine
-       if (!is_bool($return)) debug_report_bug(__FUNCTION__, __LINE__, 'return is not bool (' . gettype($return) . ')');
-
-       // @TODO Try to rewrite all $DATA to $content
-       global $DATA;
-
-       // Do we have cache?
-       if ((isDebuggingTemplateCache() === false) && (isTemplateCached($template))) {
-               // Evaluate the cache
-               eval(readTemplateCache($template));
-       } elseif (!isset($GLOBALS['template_eval'][$template])) {
-               // Make all template names lowercase
-               $template = strtolower($template);
-
-               // Init some data
-               $ret = '';
-               if (empty($GLOBALS['refid'])) $GLOBALS['refid'] = '0';
-
-               // Base directory
-               $basePath = sprintf("%stemplates/%s/html/", getConfig('PATH'), getLanguage());
-               $extraPath = detectExtraTemplatePath($template);;
-
-               ////////////////////////
-               // Generate file name //
-               ////////////////////////
-               $FQFN = $basePath . $extraPath . $template . '.tpl';
-
-               // Does the special template exists?
-               if (!isFileReadable($FQFN)) {
-                       // Reset to default template
-                       $FQFN = $basePath . $template . '.tpl';
-               } // END - if
-
-               // Now does the final template exists?
-               if (isFileReadable($FQFN)) {
-                       // Count the template load
-                       incrementConfigEntry('num_templates');
-
-                       // The local file does exists so we load it. :)
-                       $GLOBALS['tpl_content'] = readFromFile($FQFN);
-
-                       // Do we have to compile the code?
-                       $ret = '';
-                       if ((strpos($GLOBALS['tpl_content'], '$') !== false) || (strpos($GLOBALS['tpl_content'], '{--') !== false) || (strpos($GLOBALS['tpl_content'], '{?') !== false) || (strpos($GLOBALS['tpl_content'], '{%') !== false)) {
-                               // Normal HTML output?
-                               if (getOutputMode() == '0') {
-                                       // Add surrounding HTML comments to help finding bugs faster
-                                       $ret = '<!-- Template ' . $template . " - Start -->\n" . $GLOBALS['tpl_content'] . '<!-- Template ' . $template . " - End -->\n";
-
-                                       // Prepare eval() command
-                                       $eval = '$ret = "' . compileCode(escapeQuotes($ret)) . '";';
-                               } elseif (substr($template, 0, 3) == 'js_') {
-                                       // JavaScripts don't like entities and timings
-                                       $eval = '$ret = decodeEntities("' . compileRawCode(escapeJavaScriptQuotes($GLOBALS['tpl_content'])) . '");';
-                               } else {
-                                       // Prepare eval() command, other output doesn't like entities, maybe
-                                       $eval = '$ret = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['tpl_content'])) . '");';
-                               }
-                       } else {
-                               // Add surrounding HTML comments to help finding bugs faster
-                               $ret = '<!-- Template ' . $template . " - Start -->\n" . $GLOBALS['tpl_content'] . '<!-- Template ' . $template . " - End -->\n";
-                               $eval = '$ret = "' . compileRawCode(escapeQuotes($ret)) . '";';
-                       } // END - if
-
-                       // Cache the eval() command here
-                       $GLOBALS['template_eval'][$template] = $eval;
-               } elseif ((isAdmin()) || ((isInstalling()) && (!isInstalled()))) {
-                       // Only admins shall see this warning or when installation mode is active
-                       $ret = '<div class="para">
-       <span class="guest_failed">{--TEMPLATE_404--}</span>
-</div>
-<div class="para">
-       (' . $template . ')
-</div>
-<div class="para">
-       {--TEMPLATE_CONTENT--}
-       <pre>' . print_r($content, true) . '</pre>
-       {--TEMPLATE_DATA--}
-       <pre>' . print_r($DATA, true) . '</pre>
-</div>';
-               } else {
-                       // No file!
-                       $GLOBALS['template_eval'][$template] = '404';
-               }
-       }
-
-       // Code set?
-       if ((isset($GLOBALS['template_eval'][$template])) && ($GLOBALS['template_eval'][$template] != '404')) {
-               // Eval the code
-               eval($GLOBALS['template_eval'][$template]);
-       } // END - if
-
-       // Do we have some content to output or return?
-       if (!empty($ret)) {
-               // Not empty so let's put it out! ;)
-               if ($return === true) {
-                       // Return the HTML code
-                       return $ret;
-               } else {
-                       // Output directly
-                       outputHtml($ret);
-               }
-       } elseif (isDebugModeEnabled()) {
-               // Warning, empty output!
-               return 'E:' . $template . ',content=<pre>' . print_r($content, true) . '</pre>';
-       }
-}
-
-// Detects the extra template path from given template name
-function detectExtraTemplatePath ($template) {
-       // Default is empty
-       $extraPath = '';
-
-       // Do we have cache?
-       if (!isset($GLOBALS['extra_path'][$template])) {
-               // Check for admin/guest/member/etc. templates
-               if (substr($template, 0, 6) == 'admin_') {
-                       // Admin template found
-                       $extraPath = 'admin/';
-               } elseif (substr($template, 0, 6) == 'guest_') {
-                       // Guest template found
-                       $extraPath = 'guest/';
-               } elseif (substr($template, 0, 7) == 'member_') {
-                       // Member template found
-                       $extraPath = 'member/';
-               } elseif (substr($template, 0, 7) == 'select_') {
-                       // Selection template found
-                       $extraPath = 'select/';
-               } elseif (substr($template, 0, 8) == 'install_') {
-                       // Installation template found
-                       $extraPath = 'install/';
-               } elseif (substr($template, 0, 4) == 'ext_') {
-                       // Extension template found
-                       $extraPath = 'ext/';
-               } elseif (substr($template, 0, 3) == 'la_') {
-                       // 'Logical-area' template found
-                       $extraPath = 'la/';
-               } elseif (substr($template, 0, 3) == 'js_') {
-                       // JavaScript template found
-                       $extraPath = 'js/';
-               } elseif (substr($template, 0, 5) == 'menu_') {
-                       // Menu template found
-                       $extraPath = 'menu/';
-               } else {
-                       // Test for extension
-                       $test = substr($template, 0, strpos($template, '_'));
-
-                       // Probe for valid extension name
-                       if (isExtensionNameValid($test)) {
-                               // Set extra path to extension's name
-                               $extraPath = $test . '/';
-                       } // END - if
-               }
-
-               // Store it in cache
-               $GLOBALS['extra_path'][$template] = $extraPath;
-       } // END - if
-
-       // Return result
-       return $GLOBALS['extra_path'][$template];
-}
-
-// Loads an email template and compiles it
-function loadEmailTemplate ($template, $content = array(), $userid = '0') {
-       global $DATA;
-
-       // Make sure all template names are lowercase!
-       $template = strtolower($template);
-
-       // Is content an array?
-       if (is_array($content)) {
-               // Add expiration to array
-               if ((isConfigEntrySet('auto_purge')) && (getConfig('auto_purge') == '0')) {
-                       // Will never expire!
-                       $content['expiration'] = '{--MAIL_WILL_NEVER_EXPIRE--}';
-               } elseif (isConfigEntrySet('auto_purge')) {
-                       // Create nice date string
-                       $content['expiration'] = createFancyTime(getConfig('auto_purge'));
-               } else {
-                       // Missing entry
-                       $content['expiration'] = '{--MAIL_NO_CONFIG_AUTO_PURGE--}';
-               }
-       } // END - if
-
-       // Load user's data
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "UID={$userid},template={$template},content[]=".gettype($content));
-       if (($userid > 0) && (is_array($content))) {
-               // If nickname extension is installed, fetch nickname as well
-               if ((isExtensionActive('nickname')) && (isNicknameUsed($userid))) {
-                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "NICKNAME!<br />");
-                       // Load by nickname
-                       fetchUserData($userid, 'nickname');
-               } else {
-                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "NO-NICK!<br />");
-                       /// Load by userid
-                       fetchUserData($userid);
-               }
-
-               // Merge data if valid
-               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "content()=".count($content)." - PRE<br />");
-               if (isUserDataValid()) {
-                       $content = merge_array($content, getUserDataArray());
-               } // END - if
-               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "content()=".count($content)." - AFTER<br />");
-       } // END - if
-
-       // Base directory
-       $basePath = sprintf("%stemplates/%s/emails/", getConfig('PATH'), getLanguage());
-
-       // Detect extra path
-       $extraPath = detectExtraTemplatePath($template);
-
-       // Generate full FQFN
-       $FQFN = $basePath . $extraPath . $template . '.tpl';
-
-       // Does the special template exists?
-       if (!isFileReadable($FQFN)) {
-               // Reset to default template
-               $FQFN = $basePath . $template . '.tpl';
-       } // END - if
-
-       // Now does the final template exists?
-       $newContent = '';
-       if (isFileReadable($FQFN)) {
-               // The local file does exists so we load it. :)
-               $GLOBALS['tpl_content'] = readFromFile($FQFN);
-
-               // Run code
-               $GLOBALS['tpl_content'] = '$newContent = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['tpl_content'])) . '");';
-               eval($GLOBALS['tpl_content']);
-       } elseif (!empty($template)) {
-               // Template file not found!
-               $newContent = '<div class="para">
-       {--TEMPLATE_404--}: ' . $template . '
-</div>
-<div class="para">
-       {--TEMPLATE_CONTENT--}
-       <pre>' . print_r($content, true) . '</pre>
-       {--TEMPLATE_DATA--}
-       <pre>' . print_r($DATA, true) . '</pre>
-</div>';
-
-               // Debug mode not active? Then remove the HTML tags
-               if (!isDebugModeEnabled()) $newContent = secureString($newContent);
-       } else {
-               // No template name supplied!
-               $newContent = '{--NO_TEMPLATE_SUPPLIED--}';
-       }
-
-       // Is there some content?
-       if (empty($newContent)) {
-               // Compiling failed
-               $newContent = "Compiler error for template " . $template . " !\nUncompiled content:\n" . $GLOBALS['tpl_content'];
-
-               // Add last error if the required function exists
-               if (function_exists('error_get_last')) $newContent .= "\n--------------------------------------\nDebug:\n".print_r(error_get_last(), true)."--------------------------------------\nPlease don't alter these informations!\nThanx.";
-       } // END - if
-
-       // Remove content and data
-       unset($content);
-       unset($DATA);
-
-       // Return content
-       return $newContent;
-}
-
 // Send mail out to an email address
 function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = '') {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "TO={$toEmail},SUBJECT={$subject}<br />");
 // Send mail out to an email address
 function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = '') {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "TO={$toEmail},SUBJECT={$subject}<br />");
@@ -890,25 +463,6 @@ function translateMenuVisibleLocked ($content, $prefix = '') {
        return $content;
 }
 
        return $content;
 }
 
-// "Getter" for menu CSS classes, mainly used in templates
-function getMenuCssClasses ($data) {
-       // $data needs to be converted into an array
-       $content = explode('|', $data);
-
-       // Non-existent index 2 will happen in menu blocks
-       if (!isset($content[2])) $content[2] = '';
-
-       // Re-construct the array: 0=visible,1=locked,2=prefix
-       $content['visible'] = $content[0];
-       $content['locked']  = $content[1];
-
-       // Call our "translator" function
-       $content = translateMenuVisibleLocked($content, $content[2]);
-
-       // Return CSS classes
-       return ($content['visible_css'] . ' ' . $content['locked_css']);
-}
-
 // Generates an URL for the dereferer
 function generateDerefererUrl ($URL) {
        // Don't de-refer our own links!
 // Generates an URL for the dereferer
 function generateDerefererUrl ($URL) {
        // Don't de-refer our own links!
@@ -953,11 +507,6 @@ function countSelection ($array) {
        return $ret;
 }
 
        return $ret;
 }
 
-// Generate XHTML code for the CAPTCHA
-function generateCaptchaCode ($code, $type, $DATA, $userid) {
-       return '<img border="0" alt="Code ' . $code . '" src="{%url=mailid_top.php?userid=' . $userid . '&amp;' . $type . '=' . $DATA . '&amp;mode=img&amp;code=' . $code . '%}" />';
-}
-
 // Generates a timestamp (some wrapper for mktime())
 function makeTime ($hours, $minutes, $seconds, $stamp) {
        // Extract day, month and year from given timestamp
 // Generates a timestamp (some wrapper for mktime())
 function makeTime ($hours, $minutes, $seconds, $stamp) {
        // Extract day, month and year from given timestamp
@@ -1028,117 +577,6 @@ function redirectToUrl ($URL, $allowSpider = true) {
        shutdown();
 }
 
        shutdown();
 }
 
-// Wrapper for redirectToUrl but URL comes from a configuration entry
-function redirectToConfiguredUrl ($configEntry) {
-       // Load the URL
-       redirectToUrl(getConfig($configEntry));
-}
-
-// Compiles the given HTML/mail code
-function compileCode ($code, $simple = false, $constants = true, $full = true) {
-       // Is the code a string?
-       if (!is_string($code)) {
-               // Silently return it
-               return $code;
-       } // END - if
-
-       // Start couting
-       $startCompile = microtime(true);
-
-       // Comile the code
-       $code = compileRawCode($code, $simple, $constants, $full);
-
-       // Get timing
-       $compiled = microtime(true);
-
-       // Add timing if enabled
-       if (isTemplateHtml()) {
-               // Add timing, this should be disabled in
-               $code .= '<!-- Compilation time: ' . (($compiled - $startCompile) * 1000). 'ms //-->';
-       } // END - if
-
-       // Return compiled code
-       return $code;
-}
-
-// Compiles the code (use compileCode() only for HTML because of the comments)
-// @TODO $simple/$constants are deprecated
-function compileRawCode ($code, $simple = false, $constants = true, $full = true) {
-       // Is the code a string?
-       if (!is_string($code)) {
-               // Silently return it
-               return $code;
-       } // END - if
-
-       // Init replacement-array with smaller set of security characters
-       $secChars = $GLOBALS['url_chars'];
-
-       // Select full set of chars to replace when we e.g. want to compile URLs
-       if ($full === true) $secChars = $GLOBALS['security_chars'];
-
-       // Compile more through a filter
-       $code = runFilterChain('compile_code', $code);
-
-       // Compile message strings
-       $code = str_replace('{--', '{%message,', str_replace('--}', '%}', $code));
-
-       // Compile QUOT and other non-HTML codes
-       foreach ($secChars['to'] as $k => $to) {
-               // Do the reversed thing as in inc/libs/security_functions.php
-               $code = str_replace($to, $secChars['from'][$k], $code);
-       } // END - foreach
-
-       // Find $content[bla][blub] entries
-       // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
-       preg_match_all('/\$(content|GLOBALS|DATA)((\[([a-zA-Z0-9-_]+)\])*)/', $code, $matches);
-
-       // Are some matches found?
-       if ((count($matches) > 0) && (count($matches[0]) > 0)) {
-               // Replace all matches
-               $matchesFound = array();
-               foreach ($matches[0] as $key => $match) {
-                       // Fuzzy look has failed by default
-                       $fuzzyFound = false;
-
-                       // Fuzzy look on match if already found
-                       foreach ($matchesFound as $found => $set) {
-                               // Get test part
-                               $test = substr($found, 0, strlen($match));
-
-                               // Does this entry exist?
-                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "found={$found},match={$match},set={$set}<br />");
-                               if ($test == $match) {
-                                       // Match found!
-                                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "fuzzyFound!<br />");
-                                       $fuzzyFound = true;
-                                       break;
-                               } // END - if
-                       } // END - foreach
-
-                       // Skip this entry?
-                       if ($fuzzyFound === true) continue;
-
-                       // Take all string elements
-                       if ((is_string($matches[4][$key])) && (!isset($matchesFound[$match])) && (!isset($matchesFound[$key.'_' . $matches[4][$key]]))) {
-                               // Replace it in the code
-                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "key={$key},match={$match}<br />");
-                               $newMatch = str_replace('[', "['", str_replace(']', "']", $match));
-                               $code = str_replace($match, '".' . $newMatch . '."', $code);
-                               $matchesFound[$key . '_' . $matches[4][$key]] = 1;
-                               $matchesFound[$match] = 1;
-                       } elseif (!isset($matchesFound[$match])) {
-                               // Not yet replaced!
-                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "match={$match}<br />");
-                               $code = str_replace($match, '".' . $match . '."', $code);
-                               $matchesFound[$match] = 1;
-                       }
-               } // END - foreach
-       } // END - if
-
-       // Return it
-       return $code;
-}
-
 /************************************************************************
  *                                                                      *
  * Gaenderter Sortier-Algorythmus, $array wird nach dem Array (!)       *
 /************************************************************************
  *                                                                      *
  * Gaenderter Sortier-Algorythmus, $array wird nach dem Array (!)       *
@@ -1190,118 +628,6 @@ function array_pk_sort (&$array, $a_sort, $primary_key = '0', $order = -1, $nums
        $array = $dummy;
 }
 
        $array = $dummy;
 }
 
-//
-function addSelectionBox ($type, $default, $prefix = '', $id = '0', $class = 'register_select') {
-       $OUT = '';
-
-       if ($type == 'yn') {
-               // This is a yes/no selection only!
-               if ($id > 0) $prefix .= '[' . $id . ']';
-               $OUT .= '<select name="' . $prefix . '" class="' . $class . '" size="1">';
-       } else {
-               // Begin with regular selection box here
-               if (!empty($prefix)) $prefix .= '_';
-               $type2 = $type;
-               if ($id > 0) $type2 .= '[' . $id . ']';
-               $OUT .= '<select name="' . strtolower($prefix . $type2) . '" class="' . $class . '" size="1">';
-       }
-
-       switch ($type) {
-               case 'day': // Day
-                       for ($idx = 1; $idx < 32; $idx++) {
-                               $OUT .= '<option value="' . $idx . '"';
-                               if ($default == $idx) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       break;
-
-               case 'month': // Month
-                       foreach ($GLOBALS['month_descr'] as $idx => $descr) {
-                               $OUT .= '<option value="' . $idx . '"';
-                               if ($default == $idx) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $descr . '</option>';
-                       } // END - for
-                       break;
-
-               case 'year': // Year
-                       // Get current year
-                       $year = date('Y', time());
-
-                       // Use configured min age or fixed?
-                       if (isExtensionInstalledAndNewer('order', '0.2.1')) {
-                               // Configured
-                               $startYear = $year - getConfig('min_age');
-                       } else {
-                               // Fixed 16 years
-                               $startYear = $year - 16;
-                       }
-
-                       // Calculate earliest year (100 years old people can still enter Internet???)
-                       $minYear = $year - 100;
-
-                       // Check if the default value is larger than minimum and bigger than actual year
-                       if (($default > $minYear) && ($default >= $year)) {
-                               for ($idx = $year; $idx < ($year + 11); $idx++) {
-                                       $OUT .= '<option value="' . $idx . '"';
-                                       if ($default == $idx) $OUT .= ' selected="selected"';
-                                       $OUT .= '>' . $idx . '</option>';
-                               } // END - for
-                       } elseif ($default == -1) {
-                               // Current year minus 1
-                               for ($idx = $startYear; $idx <= ($year + 1); $idx++) {
-                                       $OUT .= '<option value="' . $idx . '">' . $idx . '</option>';
-                               } // END - for
-                       } else {
-                               // Get current year and subtract the configured minimum age
-                               $OUT .= '<option value="' . ($minYear - 1) . '">&lt;' . $minYear . '</option>';
-                               // Calculate earliest year depending on extension version
-                               if (isExtensionInstalledAndNewer('order', '0.2.1')) {
-                                       // Use configured minimum age
-                                       $year = date('Y', time()) - getConfig('min_age');
-                               } else {
-                                       // Use fixed 16 years age
-                                       $year = date('Y', time()) - 16;
-                               }
-
-                               // Construct year selection list
-                               for ($idx = $minYear; $idx <= $year; $idx++) {
-                                       $OUT .= '<option value="' . $idx . '"';
-                                       if ($default == $idx) $OUT .= ' selected="selected"';
-                                       $OUT .= '>' . $idx . '</option>';
-                               } // END - for
-                       }
-                       break;
-
-               case 'sec':
-               case 'min':
-                       for ($idx = 0; $idx < 60; $idx+=5) {
-                               if (strlen($idx) == 1) $idx = '0' . $idx;
-                               $OUT .= '<option value="' . $idx . '"';
-                               if ($default == $idx) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       break;
-
-               case 'hour':
-                       for ($idx = 0; $idx < 24; $idx++) {
-                               if (strlen($idx) == 1) $idx = '0' . $idx;
-                               $OUT .= '<option value="' . $idx . '"';
-                               if ($default == $idx) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       break;
-
-               case 'yn':
-                       $OUT .= '<option value="Y"';
-                       if ($default == 'Y') $OUT .= ' selected="selected"';
-                       $OUT .= '>{--YES--}</option><option value="N"';
-                       if ($default != 'Y') $OUT .= ' selected="selected"';
-                       $OUT .= '>{--NO--}</option>';
-                       break;
-       }
-       $OUT .= '</select>';
-       return $OUT;
-}
 
 //
 // Deprecated : $length
 
 //
 // Deprecated : $length
@@ -1377,266 +703,7 @@ function bigintval ($num, $castValue = true, $abortOnMismatch = true) {
        return $ret;
 }
 
        return $ret;
 }
 
-// Insert the code in $img_code into jpeg or PNG image
-function generateImageOrCode ($img_code, $headerSent = true) {
-       // Is the code size oversized or shouldn't we display it?
-       if ((strlen($img_code) > 6) || (empty($img_code)) || (getConfig('code_length') == '0')) {
-               // Stop execution of function here because of over-sized code length
-               debug_report_bug(__FUNCTION__, __LINE__, 'img_code ' . $img_code .' has invalid length. img_code()=' . strlen($img_code) . ' code_length=' . getConfig('code_length'));
-       } elseif ($headerSent === false) {
-               // Return an HTML code here
-               return '<img src="{%url=img.php?code=' . $img_code . '%}" alt="Image" />';
-       }
-
-       // Load image
-       $img = sprintf("%s/theme/%s/images/code_bg.%s",
-               getConfig('PATH'),
-               getCurrentTheme(),
-               getConfig('img_type')
-       );
-
-       // Is it readable?
-       if (isFileReadable($img)) {
-               // Switch image type
-               switch (getConfig('img_type')) {
-                       case 'jpg':
-                               // Okay, load image and hide all errors
-                               $image = imagecreatefromjpeg($img);
-                               break;
-
-                       case 'png':
-                               // Okay, load image and hide all errors
-                               $image = imagecreatefrompng($img);
-                               break;
-               } // END - switch
-       } else {
-               // Exit function here
-               logDebugMessage(__FUNCTION__, __LINE__, sprintf("File for image type %s not found.", getConfig('img_type')));
-               return;
-       }
-
-       // Generate text color (red/green/blue; 0 = dark, 255 = bright)
-       $text_color = imagecolorallocate($image, 0, 0, 0);
-
-       // Insert code into image
-       imagestring($image, 5, 14, 2, $img_code, $text_color);
-
-       // Return to browser
-       sendHeader('Content-Type: image/' . getConfig('img_type'));
-
-       // Output image with matching image factory
-       switch (getConfig('img_type')) {
-               case 'jpg': imagejpeg($image); break;
-               case 'png': imagepng($image);  break;
-       } // END - switch
-
-       // Remove image from memory
-       imagedestroy($image);
-}
-// Create selection box or array of splitted timestamp
-function createTimeSelections ($timestamp, $prefix = '', $display = '', $align = 'center', $return_array=false) {
-       // Do not continue if ONE_DAY is absend
-       if (!isConfigEntrySet('ONE_DAY')) {
-               // And return the timestamp itself or empty array
-               if ($return_array === true) {
-                       return array();
-               } else {
-                       return $timestamp;
-               }
-       } // END - if
-
-       // Calculate 2-seconds timestamp
-       $stamp = round($timestamp);
-       //* DEBUG: */ debugOutput('*' . $stamp .'/' . $timestamp . '*');
-
-       // Do we have a leap year?
-       $SWITCH = '0';
-       $TEST = date('Y', time()) / 4;
-       $M1 = date('m', time());
-       $M2 = date('m', (time() + $timestamp));
-
-       // If so and if current time is before 02/29 and estimated time is after 02/29 then add 86400 seconds (one day)
-       if ((floor($TEST) == $TEST) && ($M1 == '02') && ($M2 > '02'))  $SWITCH = getConfig('ONE_DAY');
-
-       // First of all years...
-       $Y = abs(floor($timestamp / (31536000 + $SWITCH)));
-       //* DEBUG: */ debugOutput('Y=' . $Y);
-       // Next months...
-       $M = abs(floor($timestamp / 2628000 - $Y * 12));
-       //* DEBUG: */ debugOutput('M=' . $M);
-       // Next weeks
-       $W = abs(floor($timestamp / 604800 - $Y * ((365 + $SWITCH / getConfig('ONE_DAY')) / 7) - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY')) / 7)));
-       //* DEBUG: */ debugOutput('W=' . $W);
-       // Next days...
-       $D = abs(floor($timestamp / 86400 - $Y * (365 + $SWITCH / getConfig('ONE_DAY')) - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY'))) - $W * 7));
-       //* DEBUG: */ debugOutput('D=' . $D);
-       // Next hours...
-       $h = abs(floor($timestamp / 3600 - $Y * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY')) * 24) - $W * 7 * 24 - $D * 24));
-       //* DEBUG: */ debugOutput('h=' . $h);
-       // Next minutes..
-       $m = abs(floor($timestamp / 60 - $Y * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 * 60 - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 * 60) - $W * 7 * 24 * 60 - $D * 24 * 60 - $h * 60));
-       //* DEBUG: */ debugOutput('m=' . $m);
-       // And at last seconds...
-       $s = abs(floor($timestamp - $Y * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 * 3600 - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 * 3600) - $W * 7 * 24 * 3600 - $D * 24 * 3600 - $h * 3600 - $m * 60));
-       //* DEBUG: */ debugOutput('s=' . $s);
-
-       // Is seconds zero and time is < 60 seconds?
-       if (($s == '0') && ($timestamp < 60)) {
-               // Fix seconds
-               $s = round($timestamp);
-       } // END - if
-
-       //
-       // Now we convert them in seconds...
-       //
-       if ($return_array) {
-               // Just put all data in an array for later use
-               $OUT = array(
-                       'YEARS'   => $Y,
-                       'MONTHS'  => $M,
-                       'WEEKS'   => $W,
-                       'DAYS'    => $D,
-                       'HOURS'   => $h,
-                       'MINUTES' => $m,
-                       'SECONDS' => $s
-               );
-       } else {
-               // Generate table
-               $OUT  = '<div align="' . $align . '">';
-               $OUT .= '<table border="0" cellspacing="0" cellpadding="0" class="timebox_table dashed">';
-               $OUT .= '<tr>';
-
-               if (isInString('Y', $display) || (empty($display))) {
-                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_YEARS--}</strong></td>';
-               } // END - if
-
-               if (isInString('M', $display) || (empty($display))) {
-                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_MONTHS--}</strong></td>';
-               } // END - if
-
-               if (isInString('W', $display) || (empty($display))) {
-                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_WEEKS--}</strong></td>';
-               } // END - if
-
-               if (isInString('D', $display) || (empty($display))) {
-                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_DAYS--}</strong></td>';
-               } // END - if
-
-               if (isInString('h', $display) || (empty($display))) {
-                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_HOURS--}</strong></td>';
-               } // END - if
-
-               if (isInString('m', $display) || (empty($display))) {
-                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_MINUTES--}</strong></td>';
-               } // END - if
-
-               if (isInString('s', $display) || (empty($display))) {
-                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_SECONDS--}</strong></td>';
-               } // END - if
-
-               $OUT .= '</tr>';
-               $OUT .= '<tr>';
-
-               if (isInString('Y', $display) || (empty($display))) {
-                       // Generate year selection
-                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_ye" size="1">';
-                       for ($idx = 0; $idx <= 10; $idx++) {
-                               $OUT .= '<option class="mini_select" value="' . $idx . '"';
-                               if ($idx == $Y) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       $OUT .= '</select></td>';
-               } else {
-                       $OUT .= '<input type="hidden" name="' . $prefix . '_ye" value="0" />';
-               }
-
-               if (isInString('M', $display) || (empty($display))) {
-                       // Generate month selection
-                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_mo" size="1">';
-                       for ($idx = 0; $idx <= 11; $idx++) {
-                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
-                               if ($idx == $M) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       $OUT .= '</select></td>';
-               } else {
-                       $OUT .= '<input type="hidden" name="' . $prefix . '_mo" value="0" />';
-               }
-
-               if (isInString('W', $display) || (empty($display))) {
-                       // Generate week selection
-                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_we" size="1">';
-                       for ($idx = 0; $idx <= 4; $idx++) {
-                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
-                               if ($idx == $W) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       $OUT .= '</select></td>';
-               } else {
-                       $OUT .= '<input type="hidden" name="' . $prefix . '_we" value="0" />';
-               }
-
-               if (isInString('D', $display) || (empty($display))) {
-                       // Generate day selection
-                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_da" size="1">';
-                       for ($idx = 0; $idx <= 31; $idx++) {
-                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
-                               if ($idx == $D) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       $OUT .= '</select></td>';
-               } else {
-                       $OUT .= '<input type="hidden" name="' . $prefix . '_da" value="0" />';
-               }
-
-               if (isInString('h', $display) || (empty($display))) {
-                       // Generate hour selection
-                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_ho" size="1">';
-                       for ($idx = 0; $idx <= 23; $idx++) {
-                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
-                               if ($idx == $h) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       $OUT .= '</select></td>';
-               } else {
-                       $OUT .= '<input type="hidden" name="' . $prefix . '_ho" value="0" />';
-               }
-
-               if (isInString('m', $display) || (empty($display))) {
-                       // Generate minute selection
-                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_mi" size="1">';
-                       for ($idx = 0; $idx <= 59; $idx++) {
-                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
-                               if ($idx == $m) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       $OUT .= '</select></td>';
-               } else {
-                       $OUT .= '<input type="hidden" name="' . $prefix . '_mi" value="0" />';
-               }
-
-               if (isInString('s', $display) || (empty($display))) {
-                       // Generate second selection
-                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_se" size="1">';
-                       for ($idx = 0; $idx <= 59; $idx++) {
-                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
-                               if ($idx == $s) $OUT .= ' selected="selected"';
-                               $OUT .= '>' . $idx . '</option>';
-                       } // END - for
-                       $OUT .= '</select></td>';
-               } else {
-                       $OUT .= '<input type="hidden" name="' . $prefix . '_se" value="0" />';
-               }
-               $OUT .= '</tr>';
-               $OUT .= '</table>';
-               $OUT .= '</div>';
-       }
-
-       // Return generated HTML code
-       return $OUT;
-}
-
-//
+// Creates a Uni* timestamp from given selection data and prefix
 function createTimestampFromSelections ($prefix, $postData) {
        // Initial return value
        $ret = '0';
 function createTimestampFromSelections ($prefix, $postData) {
        // Initial return value
        $ret = '0';
@@ -2044,72 +1111,6 @@ function isUrlValid ($URL, $compile=true) {
        return isUrlValidSimple($URL);
 }
 
        return isUrlValidSimple($URL);
 }
 
-// Generate a list of administrative links to a given userid
-function generateMemberAdminActionLinks ($userid) {
-       // Make sure userid is a number
-       if ($userid != bigintval($userid)) debug_report_bug(__FUNCTION__, __LINE__, 'userid is not a number!');
-
-       // Define all main targets
-       $targetArray = array('del_user', 'edit_user', 'lock_user', 'add_points', 'sub_points');
-
-       // Get user status
-       $status = getFetchedUserData('userid', $userid, 'status');
-
-       // Begin of navigation links
-       $OUT = '[';
-
-       foreach ($targetArray as $tar) {
-               $OUT .= '<span class="admin_user_link"><a href="{%url=modules.php?module=admin&amp;what=' . $tar . '&amp;userid=' . $userid . '%}" title="{--ADMIN_LINK_';
-               //* DEBUG: */ debugOutput('*' . $tar.'/' . $status.'*');
-               if (($tar == 'lock_user') && ($status == 'LOCKED')) {
-                       // Locked accounts shall be unlocked
-                       $OUT .= 'UNLOCK_USER';
-               } else {
-                       // All other status is fine
-                       $OUT .= strtoupper($tar);
-               }
-               $OUT .= '_TITLE--}">{--ADMIN_';
-               if (($tar == 'lock_user') && ($status == 'LOCKED')) {
-                       // Locked accounts shall be unlocked
-                       $OUT .= 'UNLOCK_USER';
-               } else {
-                       // All other status is fine
-                       $OUT .= strtoupper($tar);
-               }
-               $OUT .= '--}</a></span>|';
-       } // END - foreach
-
-       // Finish navigation link
-       $OUT = substr($OUT, 0, -1) . ']';
-
-       // Return string
-       return $OUT;
-}
-
-// Generate an email link
-function generateEmailLink ($email, $table = 'admins') {
-       // Default email link (INSECURE! Spammer can read this by harvester programs)
-       $EMAIL = 'mailto:' . $email;
-
-       // Check for several extensions
-       if ((isExtensionActive('admins')) && ($table == 'admins')) {
-               // Create email link for contacting admin in guest area
-               $EMAIL = generateAdminEmailLink($email);
-       } elseif ((isExtensionInstalledAndNewer('user', '0.3.3')) && ($table == 'user_data')) {
-               // Create email link for contacting a member within admin area (or later in other areas, too?)
-               $EMAIL = generateUserEmailLink($email, 'admin');
-       } elseif ((isExtensionActive('sponsor')) && ($table == 'sponsor_data')) {
-               // Create email link to contact sponsor within admin area (or like the link above?)
-               $EMAIL = generateSponsorEmailLink($email, 'sponsor_data');
-       }
-
-       // Shall I close the link when there is no admin?
-       if ((!isAdmin()) && ($EMAIL == $email)) $EMAIL = '#'; // Closed!
-
-       // Return email link
-       return $EMAIL;
-}
-
 // Generate a hash for extra-security for all passwords
 function generateHash ($plainText, $salt = '', $hash = true) {
        // Debug output
 // Generate a hash for extra-security for all passwords
 function generateHash ($plainText, $salt = '', $hash = true) {
        // Debug output
@@ -2324,90 +1325,6 @@ function fixDeletedCookies ($cookies) {
        } // END - if
 }
 
        } // END - if
 }
 
-// Output error messages in a fasioned way and die...
-function app_die ($F, $L, $message) {
-       // Check if Script is already dieing and not let it kill itself another 1000 times
-       if (!isset($GLOBALS['app_died'])) {
-               // Make sure, that the script realy realy diese here and now
-               $GLOBALS['app_died'] = true;
-
-               // Set content type as text/html
-               setContentType('text/html');
-
-               // Load header
-               loadIncludeOnce('inc/header.php');
-
-               // Rewrite message for output
-               $message = sprintf(getMessage('MAILER_HAS_DIED'), basename($F), $L, $message);
-
-               // Load the message template
-               loadTemplate('app_die_message', false, $message);
-
-               // Load footer
-               loadIncludeOnce('inc/footer.php');
-       } else {
-               // Script tried to kill itself twice
-               die('['.__FUNCTION__.':'.__LINE__.']: Script wanted to kill itself more than once! Raw message=' . $message . ', file/function=' . $F . ', line=' . $L);
-       }
-}
-
-// Display parsing time and number of SQL queries in footer
-function displayParsingTime () {
-       // Is the timer started?
-       if (!isset($GLOBALS['startTime'])) {
-               // Abort here
-               return false;
-       } // END - if
-
-       // Get end time
-       $endTime = microtime(true);
-
-       // "Explode" both times
-       $start = explode(' ', $GLOBALS['startTime']);
-       $end = explode(' ', $endTime);
-       $runTime = $end[0] - $start[0];
-       if ($runTime < 0) $runTime = '0';
-
-       // Prepare output
-       // @TODO This can be easily moved out after the merge from EL branch to this is complete
-       $content = array(
-               'run_time' => $runTime,
-               'sql_time' => translateComma(getConfig('sql_time') * 1000),
-       );
-
-       // Load the template
-       $GLOBALS['page_footer'] .= loadTemplate('show_timings', true, $content);
-}
-
-// Check wether a boolean constant is set
-// Taken from user comments in PHP documentation for function constant()
-function isBooleanConstantAndTrue ($constName) { // : Boolean
-       // Failed by default
-       $res = false;
-
-       // In cache?
-       if (isset($GLOBALS['cache_array']['const'][$constName])) {
-               // Use cache
-               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>): ' . $constName."-CACHE!<br />");
-               $res = ($GLOBALS['cache_array']['const'][$constName] === true);
-       } else {
-               // Check constant
-               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>): ' . $constName."-RESOLVE!<br />");
-               if (defined($constName)) {
-                       // Found!
-                       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>): ' . $constName."-FOUND!<br />");
-                       $res = (constant($constName) === true);
-               } // END - if
-
-               // Set cache
-               $GLOBALS['cache_array']['const'][$constName] = $res;
-       }
-       //* DEBUG: */ var_dump($res);
-
-       // Return value
-       return $res;
-}
-
 // Checks if a given apache module is loaded
 function isApacheModuleLoaded ($apacheModule) {
        // Check it and return result
 // Checks if a given apache module is loaded
 function isApacheModuleLoaded ($apacheModule) {
        // Check it and return result
@@ -2495,56 +1412,6 @@ function debug_get_mailable_backtrace () {
        return $backtrace;
 }
 
        return $backtrace;
 }
 
-// Output a debug backtrace to the user
-function debug_report_bug ($F, $L, $message = '', $sendEmail = true) {
-       // Is this already called?
-       if (isset($GLOBALS[__FUNCTION__])) {
-               // Other backtrace
-               print 'Message:'.$message.'<br />Backtrace:<pre>';
-               debug_print_backtrace();
-               die('</pre>');
-       } // END - if
-
-       // Set this function as called
-       $GLOBALS[__FUNCTION__] = true;
-
-       // Init message
-       $debug = '';
-
-       // Is the optional message set?
-       if (!empty($message)) {
-               // Use and log it
-               $debug = sprintf("Note: %s<br />\n",
-                       $message
-               );
-
-               // @TODO Add a little more infos here
-               logDebugMessage($F, $L, strip_tags($message));
-       } // END - if
-
-       // Add output
-       $debug .= 'Please report this bug at <a title="Direct link to the bug-tracker" href="http://bugs.mxchange.org" rel="external" target="_blank">http://bugs.mxchange.org</a> and include the logfile from <strong>' . str_replace(getConfig('PATH'), '', getConfig('CACHE_PATH')) . 'debug.log</strong> in your report (you can now attach files):<pre>';
-       $debug .= debug_get_printable_backtrace();
-       $debug .= '</pre>';
-       $debug .= '<div>Request-URI: ' . getRequestUri() . '</div>';
-       $debug .= '<div>Thank you for finding bugs.</div>';
-
-       // Send an email? (e.g. not wanted for evaluation errors)
-       if (($sendEmail === true) && (!isInstallationPhase())) {
-               // Prepare content
-               $content = array(
-                       'message'   => trim($message),
-                       'backtrace' => trim(debug_get_mailable_backtrace())
-               );
-
-               // Send email to webmaster
-               sendAdminNotification('{--DEBUG_REPORT_BUG_SUBJECT--}', 'admin_report_bug', $content);
-       } // END - if
-
-       // And abort here
-       app_die($F, $L, $debug);
-}
-
 // Generates a ***weak*** seed
 function generateSeed () {
        return microtime(true) * 100000;
 // Generates a ***weak*** seed
 function generateSeed () {
        return microtime(true) * 100000;
@@ -2644,28 +1511,6 @@ function getMessageFromErrorCode ($code) {
        return $message;
 }
 
        return $message;
 }
 
-// Compile characters which are allowed in URLs
-function compileUriCode ($code, $simple = true) {
-       // Compile constants
-       if ($simple === false) $code = str_replace('{--', '".', str_replace('--}', '."', $code));
-
-       // Compile QUOT and other non-HTML codes
-       $code = str_replace('{DOT}', '.',
-               str_replace('{SLASH}', '/',
-               str_replace('{QUOT}', "'",
-               str_replace('{DOLLAR}', '$',
-               str_replace('{OPEN_ANCHOR}', '(',
-               str_replace('{CLOSE_ANCHOR}', ')',
-               str_replace('{OPEN_SQR}', '[',
-               str_replace('{CLOSE_SQR}', ']',
-               str_replace('{PER}', '%',
-               $code
-       )))))))));
-
-       // Return compiled code
-       return $code;
-}
-
 // Function taken from user comments on www.php.net / function isInStringIgnoreCase()
 function isUrlValidSimple ($url) {
        // Prepare URL
 // Function taken from user comments on www.php.net / function isInStringIgnoreCase()
 function isUrlValidSimple ($url) {
        // Prepare URL
@@ -3167,23 +2012,6 @@ function isMemberIdSet () {
        return (isset($GLOBALS['member_id']));
 }
 
        return (isset($GLOBALS['member_id']));
 }
 
-// Handle message codes from URL
-function handleCodeMessage () {
-       if (isGetRequestParameterSet('code')) {
-               // Default extension is 'unknown'
-               $ext = 'unknown';
-
-               // Is extension given?
-               if (isGetRequestParameterSet('ext')) $ext = getRequestParameter('ext');
-
-               // Convert the 'code' parameter from URL to a human-readable message
-               $message = getMessageFromErrorCode(getRequestParameter('code'));
-
-               // Load message template
-               loadTemplate('message', false, $message);
-       } // END - if
-}
-
 // Setter for extra title
 function setExtraTitle ($extraTitle) {
        $GLOBALS['extra_title'] = $extraTitle;
 // Setter for extra title
 function setExtraTitle ($extraTitle) {
        $GLOBALS['extra_title'] = $extraTitle;
@@ -3206,74 +2034,6 @@ function isExtraTitleSet () {
        return ((isset($GLOBALS['extra_title'])) && (!empty($GLOBALS['extra_title'])));
 }
 
        return ((isset($GLOBALS['extra_title'])) && (!empty($GLOBALS['extra_title'])));
 }
 
-// Generates a 'extension foo inactive' message
-function generateExtensionInactiveMessage ($ext_name) {
-       // Is the extension empty?
-       if (empty($ext_name)) {
-               // This should not happen
-               debug_report_bug(__FUNCTION__, __LINE__, 'Parameter ext is empty. This should not happen.');
-       } // END - if
-
-       // Default message
-       $message = getMaskedMessage('EXTENSION_PROBLEM_EXT_INACTIVE', $ext_name);
-
-       // Is an admin logged in?
-       if (isAdmin()) {
-               // Then output admin message
-               $message = getMaskedMessage('ADMIN_EXTENSION_PROBLEM_EXT_INACTIVE', $ext_name);
-       } // END - if
-
-       // Return prepared message
-       return $message;
-}
-
-// Generates a 'extension foo not installed' message
-function generateExtensionNotInstalledMessage ($ext_name) {
-       // Is the extension empty?
-       if (empty($ext_name)) {
-               // This should not happen
-               debug_report_bug(__FUNCTION__, __LINE__, 'Parameter ext is empty. This should not happen.');
-       } // END - if
-
-       // Default message
-       $message = getMaskedMessage('EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED', $ext_name);
-
-       // Is an admin logged in?
-       if (isAdmin()) {
-               // Then output admin message
-               $message = getMaskedMessage('ADMIN_EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED', $ext_name);
-       } // END - if
-
-       // Return prepared message
-       return $message;
-}
-
-// Generates a message depending on if the extension is not installed or not
-// just activated
-function generateExtensionInactiveNotInstalledMessage ($ext_name) {
-       // Init message
-       $message = '';
-
-       // Is the extension not installed or just deactivated?
-       switch (isExtensionInstalled($ext_name)) {
-               case true; // Deactivated!
-                       $message = generateExtensionInactiveMessage($ext_name);
-                       break;
-
-               case false; // Not installed!
-                       $message = generateExtensionNotInstalledMessage($ext_name);
-                       break;
-
-               default: // Should not happen!
-                       logDebugMessage(__FUNCTION__, __LINE__, sprintf("Invalid state of extension %s detected.", $ext_name));
-                       $message = sprintf("Invalid state of extension %s detected.", $ext_name);
-                       break;
-       } // END - switch
-
-       // Return the message
-       return $message;
-}
-
 // Reads a directory recursively by default and searches for files not matching
 // an exclusion pattern. You can now keep the exclusion pattern empty for reading
 // a whole directory.
 // Reads a directory recursively by default and searches for files not matching
 // an exclusion pattern. You can now keep the exclusion pattern empty for reading
 // a whole directory.
@@ -3461,300 +2221,11 @@ function getMessageFromIndexedArray ($message, $pos, $array) {
        return $ret;
 }
 
        return $ret;
 }
 
-// Print code with line numbers
-function linenumberCode ($code)    {
-       if (!is_array($code)) $codeE = explode("\n", $code); else $codeE = $code;
-       $count_lines = count($codeE);
-
-       $r = 'Line | Code:<br />';
-       foreach($codeE as $line => $c) {
-               $r .= '<div class="line"><span class="linenum">';
-               if ($count_lines == 1) {
-                       $r .= 1;
-               } else {
-                       $r .= ($line == ($count_lines - 1)) ? '' :  ($line+1);
-               }
-               $r .= '</span>|';
-
-               // Add code
-               $r .= '<span class="linetext">' . encodeEntities($c) . '</span></div>';
-       }
-
-       return '<div class="code">' . $r . '</div>';
-}
-
 // Convert ';' to ', ' for e.g. receiver list
 function convertReceivers ($old) {
        return str_replace(';', ', ', $old);
 }
 
 // Convert ';' to ', ' for e.g. receiver list
 function convertReceivers ($old) {
        return str_replace(';', ', ', $old);
 }
 
-// Determines the right page title
-function determinePageTitle () {
-       // Config and database connection valid?
-       if ((isConfigLocalLoaded()) && (isConfigurationLoaded()) && (SQL_IS_LINK_UP()) && (isExtensionInstalledAndNewer('sql_patches', '0.1.6'))) {
-               // Init title
-               $TITLE = '';
-
-               // Title decoration enabled?
-               if ((getConfig('enable_title_deco') == 'Y') && (getConfig('title_left') != '')) $TITLE .= trim(getConfig('title_left')) . ' ';
-
-               // Do we have some extra title?
-               if (isExtraTitleSet()) {
-                       // Then prepent it
-                       $TITLE .= getExtraTitle() . ' by ';
-               } // END - if
-
-               // Add main title
-               $TITLE .= getConfig('MAIN_TITLE');
-
-               // Add title of module? (middle decoration will also be added!)
-               if ((getConfig('enable_mod_title') == 'Y') || ((!isWhatSet()) && (!isActionSet())) || (getModule() == 'admin')) {
-                       $TITLE .= ' ' . trim(getConfig('title_middle')) . ' ' . getModuleTitle(getModule());
-               } // END - if
-
-               // Add title from what file
-               $mode = '';
-               if (getModule() == 'login') $mode = 'member';
-               elseif (getModule() == 'index') $mode = 'guest';
-               if ((!empty($mode)) && (getConfig('enable_what_title') == 'Y')) $TITLE .= ' ' . trim(getConfig('title_middle')) . ' ' . getTitleFromMenu($mode, getWhat());
-
-               // Add title decorations? (right)
-               if ((getConfig('enable_title_deco') == 'Y') && (getConfig('title_right') != '')) $TITLE .= ' ' . trim(getConfig('title_right'));
-
-               // Remember title in constant for the template
-               $pageTitle = $TITLE;
-       } elseif ((isInstalled()) && (isAdminRegistered())) {
-               // Installed, admin registered but no ext-sql_patches
-               $pageTitle = '[-- ' . getConfig('MAIN_TITLE') . ' - ' . getModuleTitle(getModule()) . ' --]';
-       } elseif ((isInstalled()) && (!isAdminRegistered())) {
-               // Installed but no admin registered
-               $pageTitle = '{--SETUP_OF_MAILER--}';
-       } elseif ((!isInstalled()) || (!isAdminRegistered())) {
-               // Installation mode
-               $pageTitle = '{--INSTALLATION_OF_MAILER--}';
-       } else {
-               // Configuration not found!
-               $pageTitle = '{--NO_CONFIG_FOUND_TITLE--}';
-
-               // Do not add the fatal message in installation mode
-               if ((!isInstalling()) && (!isConfigurationLoaded())) addFatalMessage(__FUNCTION__, __LINE__, '{--NO_CONFIG_FOUND--}');
-       }
-
-       // Return title
-       return decodeEntities($pageTitle);
-}
-
-// Checks wethere there is a cache file there. This function is cached.
-function isTemplateCached ($template) {
-       // Do we have cached this result?
-       if (!isset($GLOBALS['template_cache'][$template])) {
-               // Generate FQFN
-               $FQFN = generateCacheFqfn($template);
-
-               // Is it there?
-               $GLOBALS['template_cache'][$template] = isFileReadable($FQFN);
-       } // END - if
-
-       // Return it
-       return $GLOBALS['template_cache'][$template];
-}
-
-// Flushes non-flushed template cache to disk
-function flushTemplateCache ($template, $eval) {
-       // Is this cache flushed?
-       if ((isDebuggingTemplateCache() === false) && (isTemplateCached($template) === false) && ($eval != '404')) {
-               // Generate FQFN
-               $FQFN = generateCacheFqfn($template);
-
-               // And flush it
-               writeToFile($FQFN, $eval, true);
-       } // END - if
-}
-
-// Reads a template cache
-function readTemplateCache ($template) {
-       // Check it again
-       if ((isDebuggingTemplateCache()) || (!isTemplateCached($template))) {
-               // This should not happen
-               debug_report_bug('Wether debugging of template cache is enabled or template ' . $template . ' is not cached while expected.');
-       } // END - if
-
-       // Is it cached?
-       if (!isset($GLOBALS['template_eval'][$template])) {
-               // Generate FQFN
-               $FQFN = generateCacheFqfn($template);
-
-               // And read from it
-               $GLOBALS['template_eval'][$template] = readFromFile($FQFN);
-       } // END - if
-
-       // And return it
-       return $GLOBALS['template_eval'][$template];
-}
-
-// Escapes quotes (default is only double-quotes)
-function escapeQuotes ($str, $single = false) {
-       // Should we escape all?
-       if ($single === true) {
-               // Escape all (including null)
-               $str = addslashes($str);
-       } else {
-               // Escape only double-quotes but prevent double-quoting
-               $str = str_replace("\\\\", "\\", str_replace('"', "\\\"", $str));
-       }
-
-       // Return the escaped string
-       return $str;
-}
-
-// Escapes the JavaScript code, prevents \r and \n becoming char 10/13
-function escapeJavaScriptQuotes ($str) {
-       // Replace all double-quotes and secure back-ticks
-       $str = str_replace('"', '\"', str_replace("\\", '{BACK}', $str));
-
-       // Return it
-       return $str;
-}
-
-// Send out mails depending on the 'mod/modes' combination
-// @TODO Lame description for this function
-function sendModeMails ($mod, $modes) {
-       // Load hash
-       if (fetchUserData(getMemberId())) {
-               // Extract salt from cookie
-               $salt = substr(getSession('u_hash'), 0, -40);
-
-               // Now let's compare passwords
-               $hash = encodeHashForCookie(getUserData('password'));
-
-               // Does the hash match or should we change it?
-               if (($hash == getSession('u_hash')) || (postRequestParameter('pass1') == postRequestParameter('pass2'))) {
-                       // Load the data
-                       $content = getUserDataArray();
-
-                       // Clear/init the content variable
-                       $content['message'] = '';
-
-                       // Which mail?
-                       // @TODO Move this in a filter
-                       switch ($mod) {
-                               case 'mydata':
-                                       foreach ($modes as $mode) {
-                                               switch ($mode) {
-                                                       case 'normal': break; // Do not add any special lines
-                                                       case 'email': // Email was changed!
-                                                               $content['message'] = '{--MEMBER_CHANGED_EMAIL--}' . ': ' . postRequestParameter('old_email') . "\n";
-                                                               break;
-
-                                                       case 'pass': // Password was changed
-                                                               $content['message'] = '{--MEMBER_CHANGED_PASS--}' . "\n";
-                                                               break;
-
-                                                       default:
-                                                               logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown mode %s detected.", $mode));
-                                                               $content['message'] = '{--MEMBER_UNKNOWN_MODE--}' . ': ' . $mode . "\n\n";
-                                                               break;
-                                               } // END - switch
-                                       } // END - foreach
-
-                                       if (isExtensionActive('country')) {
-                                               // Replace code with description
-                                               $content['country'] = generateCountryInfo(postRequestParameter('country_code'));
-                                       } // END - if
-
-                                       // Merge content with data from POST
-                                       $content = merge_array($content, postRequestArray());
-
-                                       // Load template
-                                       $message = loadEmailTemplate('member_mydata_notify', $content, getMemberId());
-
-                                       if (getConfig('admin_notify') == 'Y') {
-                                               // The admin needs to be notified about a profile change
-                                               $message_admin = 'admin_mydata_notify';
-                                               $sub_adm   = '{--ADMIN_CHANGED_DATA--}';
-                                       } else {
-                                               // No mail to admin
-                                               $message_admin = '';
-                                               $sub_adm   = '';
-                                       }
-
-                                       // Set subject lines
-                                       $sub_mem = '{--MEMBER_CHANGED_DATA--}';
-
-                                       // Output success message
-                                       $content = '<span class="member_done">{--MYDATA_MAIL_SENT--}</span>';
-                                       break;
-
-                               default: // Unsupported module!
-                                       logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unsupported module %s detected.", $mod));
-                                       $content = '<span class="member_failed">{--UNKNOWN_MODULE--}</span>';
-                                       break;
-                       } // END - switch
-               } else {
-                       // Passwords mismatch
-                       $content = '<span class="member_failed">{--MEMBER_PASSWORD_ERROR--}</span>';
-               }
-       } else {
-               // Could not load profile
-               $content = '<span class="member_failed">{--MEMBER_CANNOT_LOAD_PROFILE--}</span>';
-       }
-
-       // Send email to user if required
-       if ((!empty($sub_mem)) && (!empty($message))) {
-               // Send member mail
-               sendEmail($content['email'], $sub_mem, $message);
-       } // END - if
-
-       // Send only if no other error has occured
-       if (empty($content)) {
-               if ((!empty($sub_adm)) && (!empty($message_admin))) {
-                       // Send admin mail
-                       sendAdminNotification($sub_adm, $message_admin, $content, getMemberId());
-               } elseif (getConfig('admin_notify') == 'Y') {
-                       // Cannot send mails to admin!
-                       $content = '{--CANNOT_SEND_ADMIN_MAILS--}';
-               } else {
-                       // No mail to admin
-                       $content = '<span class="member_done">{--MYDATA_MAIL_SENT--}</span>';
-               }
-       } // END - if
-
-       // Load template
-       loadTemplate('admin_settings_saved', false, $content);
-}
-
-// Generates a 'selection box' from given array
-function generateSelectionBoxFromArray ($options, $name, $optionValue, $optionContent = '', $extraName = '') {
-       // Start the output
-       $OUT = '<select name="' . $name . '" size="1" class="admin_select">
-<option value="X" disabled="disabled">{--PLEASE_SELECT--}</option>';
-
-       // Walk through all options
-       foreach ($options as $option) {
-               // Add the <option> entry
-               if (empty($optionContent)) {
-                       // ... from template
-                       $OUT .= loadTemplate('select_' . $name . $extraName . '_option', true, $option);
-               } else {
-                       // Direct HTML code
-                       $OUT .= '<option value="' . $option[$optionValue] . '">' . $option[$optionContent] . '</option>';
-               }
-       } // END - foreach
-
-       // Finish selection box
-       $OUT .= '</select>';
-
-       // Prepare output
-       $content = array(
-               'selection_box' => $OUT,
-               'module'        => getModule(),
-               'what'          => getWhat()
-       );
-
-       // Load template and return it
-       return loadTemplate('select_' . $name . $extraName . '_box', true, $content);
-}
-
 // Get a module from filename and access level
 function getModuleFromFileName ($file, $accessLevel) {
        // Default is 'invalid';
 // Get a module from filename and access level
 function getModuleFromFileName ($file, $accessLevel) {
        // Default is 'invalid';
@@ -3827,69 +2298,6 @@ function isSpider () {
        return ((strpos($userAgent, 'spider') !== false) || (strpos($userAgent, 'slurp') !== false) || (strpos($userAgent, 'bot') !== false) || (strpos($userAgent, 'archiver') !== false));
 }
 
        return ((strpos($userAgent, 'spider') !== false) || (strpos($userAgent, 'slurp') !== false) || (strpos($userAgent, 'bot') !== false) || (strpos($userAgent, 'archiver') !== false));
 }
 
-// Prepares the header for HTML output
-function loadHtmlHeader () {
-       // Run two filters:
-       // 1.) pre_page_header (mainly loads the page_header template and includes
-       //     meta description)
-       runFilterChain('pre_page_header');
-
-       // Here can be something be added, but normally one of the two filters
-       // around this line should do the job for you.
-
-       // 2.) post_page_header (mainly to load stylesheet, extra JavaScripts and
-       //     to close the head-tag)
-       // Include more header data here
-       runFilterChain('post_page_header');
-}
-
-// Adds page header and footer to output array element
-function addPageHeaderFooter () {
-       // Init output
-       $OUT = '';
-
-       // Add them all together. This is maybe to simple
-       foreach (array('page_header', 'output', 'page_footer') as $pagePart) {
-               // Add page part if set
-               if (isset($GLOBALS[$pagePart])) $OUT .= $GLOBALS[$pagePart];
-       } // END - foreach
-
-       // Transfer $OUT to 'output'
-       $GLOBALS['output'] = $OUT;
-}
-
-// Generates meta description for current module and 'what' value
-function generateMetaDescriptionCode () {
-       // Only include from guest area and if sql_patches has correct version
-       if ((getModule() == 'index') && (isExtensionInstalledAndNewer('sql_patches', '0.1.6'))) {
-               // Construct dynamic description
-               $DESCR = '{?MAIN_TITLE?} ' . trim(getConfig('title_middle')) . ' ' . getTitleFromMenu('guest', getWhat());
-
-               // Output it directly
-               $GLOBALS['page_header'] .= '<meta name="description" content="' . $DESCR . '" />';
-       } // END - if
-
-       // Remove depth
-       unset($GLOBALS['ref_level']);
-}
-
-// Generates an FQFN for template cache from the given template name
-function generateCacheFqfn ($template, $mode = 'html') {
-       // Is this cached?
-       if (!isset($GLOBALS['template_cache_fqfn'][$template])) {
-               // Generate the FQFN
-               $GLOBALS['template_cache_fqfn'][$template] = sprintf(
-                       "%s_compiled/%s/%s.tpl.cache",
-                       getConfig('CACHE_PATH'),
-                       $mode,
-                       $template
-               );
-       } // END - if
-
-       // Return it
-       return $GLOBALS['template_cache_fqfn'][$template];
-}
-
 // Function to search for the last modified file
 function searchDirsRecursive ($dir, &$last_changed, $lookFor = 'Date') {
        // Get dir as array
 // Function to search for the last modified file
 function searchDirsRecursive ($dir, &$last_changed, $lookFor = 'Date') {
        // Get dir as array
@@ -3927,21 +2335,6 @@ function searchDirsRecursive ($dir, &$last_changed, $lookFor = 'Date') {
        } // END - foreach
 }
 
        } // END - foreach
 }
 
-// "Fixes" null or empty string to count of dashes
-function fixNullEmptyToDashes ($str, $num) {
-       // Use str as default
-       $return = $str;
-
-       // Is it empty?
-       if ((is_null($str)) || (trim($str) == '')) {
-               // Set it
-               $return = str_repeat('-', $num);
-       } // END - if
-
-       // Return final string
-       return $return;
-}
-
 // Handles the braces [] of a field (e.g. value of 'name' attribute)
 function handleFieldWithBraces ($field) {
        // Are there braces [] at the end?
 // Handles the braces [] of a field (e.g. value of 'name' attribute)
 function handleFieldWithBraces ($field) {
        // Are there braces [] at the end?
index eafdcb0c064eec07b21c55c72c6d155e28f6c242..99e10a302ce19ccd3e57f521bb8e9a728ea8f62b 100644 (file)
@@ -663,8 +663,6 @@ addMessages(array(
        'PROFILE_NEVER_CHANGED' => "Sie haben noch nie eine Aenderung durchgefuehrt.",
        'PROFILE_UPDATED' => "Profildaten wurden ge&auml;ndert.",
        'SORT_BY' => "Sortieren:",
        'PROFILE_NEVER_CHANGED' => "Sie haben noch nie eine Aenderung durchgefuehrt.",
        'PROFILE_UPDATED' => "Profildaten wurden ge&auml;ndert.",
        'SORT_BY' => "Sortieren:",
-       '_OTHERS' => "Andere",
-       '_ALL2' => "Alle",
        'WE_HAVE' => "Wir haben",
        'MEMBER_TEST_URL' => "Zur beworbenen Seite",
        'ADMIN_ENTER_REDIRECT_URL' => "URL eingeben, wenn abgelehnt werden soll",
        'WE_HAVE' => "Wir haben",
        'MEMBER_TEST_URL' => "Zur beworbenen Seite",
        'ADMIN_ENTER_REDIRECT_URL' => "URL eingeben, wenn abgelehnt werden soll",
index 6c75e6a2d7c3d66ca6142368e29978012080fb6a..e9a5e8a79b5df96b1d141d75075a596efc74a718 100644 (file)
@@ -291,7 +291,7 @@ function adminsEditAdminAccount ($postData) {
        $currMode = getAdminDefaultAcl(getCurrentAdminId());
 
        // Begin the edit loop
        $currMode = getAdminDefaultAcl(getCurrentAdminId());
 
        // Begin the edit loop
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach ($postData['sel'] as $id => $selected) {
                // Secure id number
                $id = bigintval($id);
        foreach ($postData['sel'] as $id => $selected) {
                // Secure id number
                $id = bigintval($id);
@@ -305,7 +305,6 @@ function adminsEditAdminAccount ($postData) {
                        SQL_FREERESULT($result);
 
                        // Prepare some more data for the template
                        SQL_FREERESULT($result);
 
                        // Prepare some more data for the template
-                       $content['sw'] = $SW;
                        $content['id'] = $id;
 
                        // Shall we allow changing default ACL?
                        $content['id'] = $id;
 
                        // Shall we allow changing default ACL?
@@ -320,9 +319,8 @@ function adminsEditAdminAccount ($postData) {
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_edit_admins_row', true, $content);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_edit_admins_row', true, $content);
-                       $SW = 3 - $SW;
-               }
-       }
+               } // END - if
+       } // END - foreach
 
        // Load template
        loadTemplate('admin_edit_admins', false, $OUT);
 
        // Load template
        loadTemplate('admin_edit_admins', false, $OUT);
@@ -336,7 +334,7 @@ function adminsDeleteAdminAccount ($postData) {
        SQL_FREERESULT($result_main);
        if ($accounts > 1) {
                // Delete accounts
        SQL_FREERESULT($result_main);
        if ($accounts > 1) {
                // Delete accounts
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                foreach ($postData['sel'] as $id => $selected) {
                        // Secure id number
                        $id = bigintval($id);
                foreach ($postData['sel'] as $id => $selected) {
                        // Secure id number
                        $id = bigintval($id);
@@ -352,14 +350,12 @@ function adminsDeleteAdminAccount ($postData) {
                                $content['la_mode'] = '{--ADMINS_' . strtoupper($content['la_mode']) . '_LA_SETTING--}';
 
                                // Prepare some more data
                                $content['la_mode'] = '{--ADMINS_' . strtoupper($content['la_mode']) . '_LA_SETTING--}';
 
                                // Prepare some more data
-                               $content['sw'] = $SW;
                                $content['id'] = $id;
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_del_admins_row', true, $content);
                                $content['id'] = $id;
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_del_admins_row', true, $content);
-                               $SW = 3 - $SW;
-                       }
-               }
+                       } // END - if
+               } // END - foreach
 
                // Load template
                loadTemplate('admin_del_admins', false, $OUT);
 
                // Load template
                loadTemplate('admin_del_admins', false, $OUT);
@@ -397,20 +393,18 @@ function adminsRemoveAdminAccount ($postData) {
 function adminsListAdminAccounts() {
        // Select all admin accounts
        $result = SQL_QUERY("SELECT `id`, `login`, `email`, `default_acl` AS mode, `la_mode` FROM `{?_MYSQL_PREFIX?}_admins` ORDER BY `login` ASC", __FUNCTION__, __LINE__);
 function adminsListAdminAccounts() {
        // Select all admin accounts
        $result = SQL_QUERY("SELECT `id`, `login`, `email`, `default_acl` AS mode, `la_mode` FROM `{?_MYSQL_PREFIX?}_admins` ORDER BY `login` ASC", __FUNCTION__, __LINE__);
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Compile some variables
                $content['mode']    = '{--ADMINS_' . strtoupper($content['mode'])    . '_MODE--}';
                $content['la_mode'] = '{--ADMINS_' . strtoupper($content['la_mode']) . '_LA_SETTING--}';
 
                // Prepare some more data
        while ($content = SQL_FETCHARRAY($result)) {
                // Compile some variables
                $content['mode']    = '{--ADMINS_' . strtoupper($content['mode'])    . '_MODE--}';
                $content['la_mode'] = '{--ADMINS_' . strtoupper($content['la_mode']) . '_LA_SETTING--}';
 
                // Prepare some more data
-               $content['sw']         = $SW;
                $content['email_link'] = generateEmailLink($content['id'], 'admins');
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_list_admins_row', true, $content);
                $content['email_link'] = generateEmailLink($content['id'], 'admins');
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_list_admins_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - while
 
        // Free memory
        SQL_FREERESULT($result);
 
        // Free memory
        SQL_FREERESULT($result);
index a24098887de088d14855bdc9575cb914b22d8747..dfe22f5b08a3c21676158b6eb65078e3f1936683 100644 (file)
@@ -155,9 +155,6 @@ function addBonusRanks ($data, $type, $userid) {
                // Start generating the ranking list
                $max = SQL_NUMROWS($result);
 
                // Start generating the ranking list
                $max = SQL_NUMROWS($result);
 
-               // Init variables
-               $SW = 2;
-
                // Output all ranks (levels)
                for ($rank = 1; $rank <= $max; $rank++) {
                        // Load data
                // Output all ranks (levels)
                for ($rank = 1; $rank <= $max; $rank++) {
                        // Load data
@@ -195,13 +192,9 @@ LIMIT 1",
 
                        // Add more
                        $rows['rank'] = $rank;
 
                        // Add more
                        $rows['rank'] = $rank;
-                       $rows['sw']   = $SW;
 
                        // Load row template
                        $OUT .= loadTemplate('member_bonus_turbo_row', true, $rows);
 
                        // Load row template
                        $OUT .= loadTemplate('member_bonus_turbo_row', true, $rows);
-
-                       // Switch color
-                       $SW = 3 - $SW;
                } // END - for
 
                if ($self === false) {
                } // END - for
 
                if ($self === false) {
index e24a3eaac310fc043524464cd90e96d2c82f4c11..ba8b2902d08c525c4ed4d16c25da045b5e5b4f19 100644 (file)
@@ -88,7 +88,7 @@ LIMIT %s",
 
        if (SQL_NUMROWS($result) > 0) {
                // List entries
 
        if (SQL_NUMROWS($result) > 0) {
                // List entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Rewrite userid/refid only if admin is in
                        // @TODO Can't this be moved into EL?
                while ($content = SQL_FETCHARRAY($result)) {
                        // Rewrite userid/refid only if admin is in
                        // @TODO Can't this be moved into EL?
@@ -108,12 +108,10 @@ LIMIT %s",
                                'rid'      => $content['refid'],
                                'points'   => $content['points'],
                                'timemark' => generateDateTime($content['timemark'], $DT_MODE),
                                'rid'      => $content['refid'],
                                'points'   => $content['points'],
                                'timemark' => generateDateTime($content['timemark'], $DT_MODE),
-                               'sw'       => $SW,
                        );
 
                        // Load template and switch color
                        $OUT .= loadTemplate($mode . '_doubler_list_rows', true, $content);
                        );
 
                        // Load template and switch color
                        $OUT .= loadTemplate($mode . '_doubler_list_rows', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index 1a1247eb834b7186e66fe75be2693c66d9eb98b1..ad261c9aa045e27ec573a809acdd1f944d11e36b 100644 (file)
@@ -620,7 +620,7 @@ function doAdminNetworkProcessHandlenetworkForm () {
        // Do we have selections?
        if (countPostSelection() > 0) {
                // Something has been selected, so start displaying one by one
        // Do we have selections?
        if (countPostSelection() > 0) {
                // Something has been selected, so start displaying one by one
-               $SW = 2; $OUT = '';
+               $OUT = '';
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Is this selected?
                        if ($sel == 1) {
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Is this selected?
                        if ($sel == 1) {
@@ -629,9 +629,6 @@ function doAdminNetworkProcessHandlenetworkForm () {
 
                                // Do we have found the network?
                                if (count($networkData) > 0) {
 
                                // Do we have found the network?
                                if (count($networkData) > 0) {
-                                       // Add color
-                                       $networkData['sw'] = $SW;
-
                                        if (isFormSent('edit')) {
                                                // Make selection box for network_request_type
                                                $networkData['network_request_type'] = generateOptionList(
                                        if (isFormSent('edit')) {
                                                // Make selection box for network_request_type
                                                $networkData['network_request_type'] = generateOptionList(
@@ -659,9 +656,6 @@ function doAdminNetworkProcessHandlenetworkForm () {
                                                // Problem!
                                                debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
                                        }
                                                // Problem!
                                                debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
                                        }
-
-                                       // Switch colors
-                                       $SW = 3 - $SW;
                                } // END - if
                        } // END - if
                } // END - foreach
                                } // END - if
                        } // END - if
                } // END - foreach
@@ -695,7 +689,7 @@ function doAdminNetworkProcessHandlenetworktypeForm () {
                $networkData = getNetworkDataById(getRequestParameter('network'));
 
                // Something has been selected, so start displaying one by one
                $networkData = getNetworkDataById(getRequestParameter('network'));
 
                // Something has been selected, so start displaying one by one
-               $SW = 2; $OUT = '';
+               $OUT = '';
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Is this selected?
                        if ($sel == 1) {
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Is this selected?
                        if ($sel == 1) {
@@ -704,9 +698,6 @@ function doAdminNetworkProcessHandlenetworktypeForm () {
 
                                // Do we have found the network?
                                if (count($networkTypeData) > 0) {
 
                                // Do we have found the network?
                                if (count($networkTypeData) > 0) {
-                                       // Add color
-                                       $networkTypeData['sw'] = $SW;
-
                                        if (isFormSent('edit')) {
                                                // Add row template for deleting
                                                $OUT .= loadTemplate('admin_edit_network_types_row', true, $networkTypeData);
                                        if (isFormSent('edit')) {
                                                // Add row template for deleting
                                                $OUT .= loadTemplate('admin_edit_network_types_row', true, $networkTypeData);
@@ -717,9 +708,6 @@ function doAdminNetworkProcessHandlenetworktypeForm () {
                                                // Problem!
                                                debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
                                        }
                                                // Problem!
                                                debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
                                        }
-
-                                       // Switch colors
-                                       $SW = 3 - $SW;
                                } // END - if
                        } // END - if
                } // END - foreach
                                } // END - if
                        } // END - if
                } // END - foreach
@@ -762,7 +750,7 @@ function doAdminNetworkProcessHandlerequestparamsForm () {
                $networkData = getNetworkDataById(getRequestParameter('network'));
 
                // Something has been selected, so start displaying one by one
                $networkData = getNetworkDataById(getRequestParameter('network'));
 
                // Something has been selected, so start displaying one by one
-               $SW = 2; $OUT = '';
+               $OUT = '';
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Is this selected?
                        if ($sel == 1) {
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Is this selected?
                        if ($sel == 1) {
@@ -771,9 +759,6 @@ function doAdminNetworkProcessHandlerequestparamsForm () {
 
                                // Do we have found the network?
                                if (count($networkRequestData) > 0) {
 
                                // Do we have found the network?
                                if (count($networkRequestData) > 0) {
-                                       // Add color
-                                       $networkRequestData['sw'] = $SW;
-
                                        if (isFormSent('edit')) {
                                                // Add options list for network type
                                                $networkRequestData['type_options'] = generateNetworkTypeOptions($networkRequestData['network_type_id']);
                                        if (isFormSent('edit')) {
                                                // Add options list for network type
                                                $networkRequestData['type_options'] = generateNetworkTypeOptions($networkRequestData['network_type_id']);
@@ -793,9 +778,6 @@ function doAdminNetworkProcessHandlerequestparamsForm () {
                                                // Problem!
                                                debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
                                        }
                                                // Problem!
                                                debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
                                        }
-
-                                       // Switch colors
-                                       $SW = 3 - $SW;
                                } // END - if
                        } // END - if
                } // END - foreach
                                } // END - if
                        } // END - if
                } // END - foreach
index 811ff5fa2788a6cf5d5329f6aefd09adf2084fda..ae30baba48187eb69b0910a9a37f734237b05339 100644 (file)
@@ -45,18 +45,17 @@ if (!defined('__SECURITY')) {
 // Displays all SQL queries with num rows, affected rows and timings
 function displayDebugSqls () {
        // Walk through all SQLs
 // Displays all SQL queries with num rows, affected rows and timings
 function displayDebugSqls () {
        // Walk through all SQLs
-       $OUT = ''; $SW = 2; $i = 1;
+       $OUT = ''; $i = 1;
        foreach ($GLOBALS['debug_sqls'] as $content) {
                // Translate/add some data
        foreach ($GLOBALS['debug_sqls'] as $content) {
                // Translate/add some data
-               $content['sw']       = $SW;
                $content['i']        = $i;
                $content['timing']   = translateComma($content['timing'] * 1000);
 
                // Load row template
                $OUT .= loadTemplate('admin_other_sqls_row', true, $content);
 
                $content['i']        = $i;
                $content['timing']   = translateComma($content['timing'] * 1000);
 
                // Load row template
                $OUT .= loadTemplate('admin_other_sqls_row', true, $content);
 
-               // Switch color
-               $SW = 3 - $SW; $i++;
+               // Count one up
+               $i++;
        } // END - foreach
 
        // Load main template
        } // END - foreach
 
        // Load main template
index 1e1139e3a9b0f4365a3255a7cb65c69c9bdf622e..62bc2a03cb787968e029177e92d21967b2bfb974 100644 (file)
@@ -311,7 +311,6 @@ LIMIT 1",
 
        // Generate table
        $OUT = '';
 
        // Generate table
        $OUT = '';
-       $SW = 2;
        for ($idx = '0'; $idx < $prices; $idx++) {
                // Prepare marking of default (maybe current user's) id
                $start = ''; $end = '';
        for ($idx = '0'; $idx < $prices; $idx++) {
                // Prepare marking of default (maybe current user's) id
                $start = ''; $end = '';
@@ -322,7 +321,6 @@ LIMIT 1",
 
                // Prepare content
                $content = array(
 
                // Prepare content
                $content = array(
-                       'sw'     => $SW,
                        'idx'    => ($idx + 1),
                        'start'  => $start,
                        'end'    => $end,
                        'idx'    => ($idx + 1),
                        'start'  => $start,
                        'end'    => $end,
@@ -333,7 +331,6 @@ LIMIT 1",
 
                // Load row template and switch color
                $OUT .= loadTemplate('guest_rallye_row', true, $content);
 
                // Load row template and switch color
                $OUT .= loadTemplate('guest_rallye_row', true, $content);
-               $SW = 3 - $SW;
        } // END - for
 
        // Add min_prices/users
        } // END - for
 
        // Add min_prices/users
@@ -712,7 +709,7 @@ function addReferalRallyeWinners ($rallye, $default=0) {
        $DATA = getArrayFromReferalRallyeUsers($rallye);
 
        // Generate table
        $DATA = getArrayFromReferalRallyeUsers($rallye);
 
        // Generate table
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        for ($idx = '0'; $idx < $prices; $idx++) {
                // Check status
                //   active = 1: account is still confirmed
        for ($idx = '0'; $idx < $prices; $idx++) {
                // Check status
                //   active = 1: account is still confirmed
@@ -742,7 +739,6 @@ function addReferalRallyeWinners ($rallye, $default=0) {
 
                // Prepare content
                $content = array(
 
                // Prepare content
                $content = array(
-                       'sw'     => $SW,
                        'idx'    => ($idx + 1),
                        'userid' => $DATA['userid'][$idx],
                        'ref'    => $DATA['ref'][$idx],
                        'idx'    => ($idx + 1),
                        'userid' => $DATA['userid'][$idx],
                        'ref'    => $DATA['ref'][$idx],
@@ -753,7 +749,6 @@ function addReferalRallyeWinners ($rallye, $default=0) {
 
                // Load row template
                $OUT .= loadTemplate('guest_rallye_row', true, $content);
 
                // Load row template
                $OUT .= loadTemplate('guest_rallye_row', true, $content);
-               $SW = 3 - $SW;
        } // END - for
 
        // Prepare content
        } // END - for
 
        // Prepare content
index 46bca1b36340f3401e343e0ca1e2a986b11a2920..89539ff5461a68658e4522d65f5888a0b97d1303 100644 (file)
@@ -89,12 +89,10 @@ function registerGenerateCategoryTable ($mode, $return=false) {
 
        if (SQL_NUMROWS($result) > 0) {
                // List alle visible modules (or all to the admin)
 
        if (SQL_NUMROWS($result) > 0) {
                // List alle visible modules (or all to the admin)
-               $SW = 2;
                $OUT .= '<table border="0" cellspacing="0" cellpadding="0" width="100%">';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the template
                        $content = array(
                $OUT .= '<table border="0" cellspacing="0" cellpadding="0" width="100%">';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the template
                        $content = array(
-                               'sw'    => $SW,
                                'cat'   => $content['cat'],
                                'def_y' => '',
                                'def_n' => '',
                                'cat'   => $content['cat'],
                                'def_y' => '',
                                'def_n' => '',
@@ -110,8 +108,7 @@ function registerGenerateCategoryTable ($mode, $return=false) {
 
                        // Load template and switch color
                        $OUT .= loadTemplate('guest_cat_row', true, $content);
 
                        // Load template and switch color
                        $OUT .= loadTemplate('guest_cat_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
                $OUT .= '</table>';
 
                // Free memory
                $OUT .= '</table>';
 
                // Free memory
index 95e0082d82f2b6ed3770d6ba8becb9c571e66bba..dfdd7f2a88c2b064a91b8e4af67485fac13d2ec7 100644 (file)
@@ -549,7 +549,7 @@ ORDER BY
 //
 function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
        // Init variables
 //
 function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
        // Init variables
-       $OUT = ''; $SW = 2;
+       $OUT = '';
 
        // Sadly this cannot be rewritten to a filter... :(
        foreach (getSqls() as $sqls) {
 
        // Sadly this cannot be rewritten to a filter... :(
        foreach (getSqls() as $sqls) {
@@ -567,7 +567,6 @@ function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
                        // Prepare array for output
                        $content = array(
                                'row_descr' => $DESCRs[$key],
                        // Prepare array for output
                        $content = array(
                                'row_descr' => $DESCRs[$key],
-                               'row_sw'    => $SW,
                                'bottom'    => '',
                        );
 
                                'bottom'    => '',
                        );
 
@@ -583,9 +582,6 @@ function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
 
                        // And insert the final string into extras template
                        $OUT .= loadTemplate('admin_overview_task_rows', true, $content);
 
                        // And insert the final string into extras template
                        $OUT .= loadTemplate('admin_overview_task_rows', true, $content);
-
-                       // Switch color
-                       $SW = 3 - $SW;
                } // END- foreach
        } // END - foreach
 
                } // END- foreach
        } // END - foreach
 
index d400066002e7eeefab64a2855968a7e8c3621a5f..4ef50c9d38f7d3fd959dd62eeec59521643105a8 100644 (file)
@@ -49,7 +49,7 @@ function alpha ($sortby, $colspan, $return=false) {
        if (isGetRequestParameterSet('mode')) $add .= '&amp;mode='.getRequestParameter('mode');
 
        /* Creates the list of letters and makes them a link. */
        if (isGetRequestParameterSet('mode')) $add .= '&amp;mode='.getRequestParameter('mode');
 
        /* Creates the list of letters and makes them a link. */
-       $alphabet = explode(',', '{--_ALL2--}' . ',A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,' . '{--_OTHERS--}');
+       $alphabet = explode(',', 'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,');
        $num = count($alphabet) - 1;
        $OUT = '';
        while (list($counter, $ltr) = each($alphabet)) {
        $num = count($alphabet) - 1;
        $OUT = '';
        while (list($counter, $ltr) = each($alphabet)) {
@@ -101,7 +101,7 @@ function addSortLinks ($letter, $sortby, $colspan, $return=false) {
        elseif (isGetRequestParameterSet('mode')) $add .= '&amp;mode=' . getRequestParameter('mode');
 
        // Makes order by links..
        elseif (isGetRequestParameterSet('mode')) $add .= '&amp;mode=' . getRequestParameter('mode');
 
        // Makes order by links..
-       if ($letter == 'front') $letter = '{--_ALL2--}';
+       if ($letter == 'front') $letter = '';
 
        // Prepare array with all possible sorters
        $list = array(
 
        // Prepare array with all possible sorters
        $list = array(
@@ -159,7 +159,7 @@ function addPageNavigation ($numPages, $offset, $showForm, $colspan, $return=fal
                if (($page == getRequestParameter('page')) || ((!isGetRequestParameterSet('page')) && ($page == 1))) {
                        $OUT .= '<strong>-';
                } else {
                if (($page == getRequestParameter('page')) || ((!isGetRequestParameterSet('page')) && ($page == 1))) {
                        $OUT .= '<strong>-';
                } else {
-                       if (!isGetRequestParameterSet('letter')) setGetRequestParameter('letter', '{--_ALL2--}');
+                       if (!isGetRequestParameterSet('letter')) setGetRequestParameter('letter', '');
                        if (!isGetRequestParameterSet('sortby')) setGetRequestParameter('sortby', 'userid');
 
                        // Base link
                        if (!isGetRequestParameterSet('sortby')) setGetRequestParameter('sortby', 'userid');
 
                        // Base link
index 68560831e64a9892585cf086426aecfcbc5e5821..d455f6cc24b26c33ff02be1531959e2da40fbade 100644 (file)
@@ -766,7 +766,7 @@ function sendAdminBuildMails ($mode, $table, $content, $id, $subjectPart = '', $
 
 // Build a special template list
 function adminListBuilder ($listType, $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $userid = 'userid') {
 
 // Build a special template list
 function adminListBuilder ($listType, $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn, $userid = 'userid') {
-       $OUT = ''; $SW = 2;
+       $OUT = '';
 
        // "Walk" through all entries
        foreach ($IDs as $id => $selected) {
 
        // "Walk" through all entries
        foreach ($IDs as $id => $selected) {
@@ -805,18 +805,12 @@ function adminListBuilder ($listType, $IDs, $table, $columns, $filterFunctions,
                                $content[$key] = handleExtraValues($filterFunctions[$idx], $value, $extraValues[$idx]);
                        } // END - foreach
 
                                $content[$key] = handleExtraValues($filterFunctions[$idx], $value, $extraValues[$idx]);
                        } // END - foreach
 
-                       // Add color switching
-                       $content['sw'] = $SW;
-
                        // Then list it
                        $OUT .= loadTemplate(sprintf("admin_%s_%s_row",
                                $listType,
                                $table
                                ), true, $content
                        );
                        // Then list it
                        $OUT .= loadTemplate(sprintf("admin_%s_%s_row",
                                $listType,
                                $table
                                ), true, $content
                        );
-
-                       // Switch color
-                       $SW = 3 - $SW;
                } // END - if
 
                // Free the result
                } // END - if
 
                // Free the result
index 79df8a21e32afd70dac1afa639d405af2b96280d..2a02b281d66bd00b8fa1df77085b2fb63ebdaf8a 100644 (file)
@@ -132,7 +132,7 @@ ORDER BY
 function outputSeletectedTasks ($postData, $result_tasks) {
        if ((isset($postData['assign'])) && (count($postData['sel']) > 0)) {
                // Assign / do tasks
 function outputSeletectedTasks ($postData, $result_tasks) {
        if ((isset($postData['assign'])) && (count($postData['sel']) > 0)) {
                // Assign / do tasks
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                foreach ($postData['sel'] as $id => $sel) {
                        $result_task = SQL_QUERY_ESC("SELECT
        `id`, `userid`, `task_type`, `subject`, `text`, `task_created`, `status`, `assigned_admin`
                foreach ($postData['sel'] as $id => $sel) {
                        $result_task = SQL_QUERY_ESC("SELECT
        `id`, `userid`, `task_type`, `subject`, `text`, `task_created`, `status`, `assigned_admin`
@@ -263,7 +263,6 @@ LIMIT 1",
 
                                // Prepare array for the template
                                $content = array(
 
                                // Prepare array for the template
                                $content = array(
-                                       'sw'           => $SW,
                                        'subject'      => $taskData['subject'],
                                        'add'          => $add,
                                        'text'         => $taskData['text'],
                                        'subject'      => $taskData['subject'],
                                        'add'          => $add,
                                        'text'         => $taskData['text'],
@@ -394,9 +393,6 @@ LIMIT 1",
 
                        // Free result
                        SQL_FREERESULT($result_task);
 
                        // Free result
                        SQL_FREERESULT($result_task);
-
-                       // Switch colors
-                       $SW = 3 - $SW;
                } // END - foreach
 
                // Load final template
                } // END - foreach
 
                // Load final template
@@ -427,7 +423,7 @@ LIMIT 1",
                } // END - if
 
                // There are uncompleted jobs!
                } // END - if
 
                // There are uncompleted jobs!
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result_tasks)) {
                        // Init infos
                        $content['infos'] = '';
                while ($content = SQL_FETCHARRAY($result_tasks)) {
                        // Init infos
                        $content['infos'] = '';
@@ -452,7 +448,6 @@ LIMIT 1",
                        }
 
                        // Add/translate some content
                        }
 
                        // Add/translate some content
-                       $content['sw']           = $SW;
                        $content['task_created'] = generateDateTime($content['task_created'], 2);
 
                        // Do we have extension task?
                        $content['task_created'] = generateDateTime($content['task_created'], 2);
 
                        // Do we have extension task?
@@ -463,9 +458,6 @@ LIMIT 1",
                                // Load default row template
                                $OUT .= loadTemplate('admin_overview_list_rows', true, $content);
                        }
                                // Load default row template
                                $OUT .= loadTemplate('admin_overview_list_rows', true, $content);
                        }
-
-                       // Switch color
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index a26f5db01e573d657714a9c4ec1b95e1d2b756f7..b4eb53902fe8d191ccd8eac27443d15b6e4cc457 100644 (file)
@@ -58,7 +58,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
        // @TODO Kill all constants in this file
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
        // @TODO Kill all constants in this file
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
-       $cnt = '0'; $SW = 2;
+       $cnt = '0';
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -72,7 +72,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                                $data = array(
                                        'action' => adminAddMenuSelectionBox('admin', 'action', 'sel_action[' . $sel . ']', $data['action']),
                                        'what'   => adminAddMenuSelectionBox('admin', 'what'  , 'sel_what['   . $sel . ']', $data['what']),
                                $data = array(
                                        'action' => adminAddMenuSelectionBox('admin', 'action', 'sel_action[' . $sel . ']', $data['action']),
                                        'what'   => adminAddMenuSelectionBox('admin', 'what'  , 'sel_what['   . $sel . ']', $data['what']),
-                                       'sw'     => $SW,
                                        'sel'    => $sel,
                                        'menu'   => $data['title'],
                                        'descr'  => $data['descr'],
                                        'sel'    => $sel,
                                        'menu'   => $data['title'],
                                        'descr'  => $data['descr'],
@@ -84,7 +83,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                        } else {
                                // Entry not found?
                                $data = array(
                        } else {
                                // Entry not found?
                                $data = array(
-                                       'sw'  => $SW,
                                        'sel' => $sel
                                );
 
                                        'sel' => $sel
                                );
 
@@ -94,7 +92,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
 
                        // Free result and switch color
                        SQL_FREERESULT($result);
 
                        // Free result and switch color
                        SQL_FREERESULT($result);
-                       $SW = 3 - $SW;
                } // END - if
        } // END - foreach
 
                } // END - if
        } // END - foreach
 
@@ -109,7 +106,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
        $content['chk'] = countPostSelection();
 
        // Del menu entries with or without confirmation
        $content['chk'] = countPostSelection();
 
        // Del menu entries with or without confirmation
-       $SW = 2; $cnt = '0'; $OUT = '';
+       $cnt = '0'; $OUT = '';
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -124,21 +121,18 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                                        'menu' => $data['title'],
                                        'cnt'  => $cnt,
                                        'sel'  => $sel,
                                        'menu' => $data['title'],
                                        'cnt'  => $cnt,
                                        'sel'  => $sel,
-                                       'sw'   => $SW
                                );
                                $OUT .= loadTemplate('admin_amenu_delete_row', true, $data);
                        } else {
                                // Entry not found?
                                $data = array(
                                );
                                $OUT .= loadTemplate('admin_amenu_delete_row', true, $data);
                        } else {
                                // Entry not found?
                                $data = array(
-                                       'sw'  => $SW,
                                        'sel' => $sel
                                );
                                $OUT .= loadTemplate('admin_menu_404_row', true, $data);
                        }
                        SQL_FREERESULT($result);
                                        'sel' => $sel
                                );
                                $OUT .= loadTemplate('admin_menu_404_row', true, $data);
                        }
                        SQL_FREERESULT($result);
-                       $SW = 3 - $SW;
-               }
-       }
+               } // END - if
+       } // END - switch
        $content['rows'] = $OUT;
        $content['cnt'] = $cnt;
 
        $content['rows'] = $OUT;
        $content['cnt'] = $cnt;
 
index 753cf83265543dfc205822623dde27ff731d399c..6873a5889edd11ad95947e928be4676aa90e3fd7 100644 (file)
@@ -50,7 +50,7 @@ if (isFormSent('edit')) {
        if (countPostSelection() > 0) {
                // Add option for events
                $adminsList = generateOptionList('admins', 'id', 'login', '', 'email');
        if (countPostSelection() > 0) {
                // Add option for events
                $adminsList = generateOptionList('admins', 'id', 'login', '', 'email');
-               $SW = 2; $rows = '';
+               $rows = '';
                foreach (postRequestParameter('sel') as $template => $sel) {
                        // First of all load data from DB
                        $result = SQL_QUERY_ESC("SELECT `admin_id`, `id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `id` ASC",
                foreach (postRequestParameter('sel') as $template => $sel) {
                        // First of all load data from DB
                        $result = SQL_QUERY_ESC("SELECT `admin_id`, `id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `id` ASC",
@@ -81,7 +81,6 @@ if (isFormSent('edit')) {
 
                        // Prepare content
                        $content['id']            = $id;
 
                        // Prepare content
                        $content['id']            = $id;
-                       $content['sw']            = $SW;
                        $content['mail_template'] = $template;
                        $content['admins']        = $adminsList;
 
                        $content['mail_template'] = $template;
                        $content['admins']        = $adminsList;
 
@@ -95,8 +94,7 @@ if (isFormSent('edit')) {
 
                        // Start outputing line
                        $rows .= loadTemplate('admin_admins_mails_edit_row', true, $content);
 
                        // Start outputing line
                        $rows .= loadTemplate('admin_admins_mails_edit_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - foreach
 
                // Edit checked entries
                loadTemplate('admin_admins_mails_edit', false, $rows);
 
                // Edit checked entries
                loadTemplate('admin_admins_mails_edit', false, $rows);
@@ -169,14 +167,10 @@ ORDER BY
                } // END - if
 
                // List found entries
                } // END - if
 
                // List found entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                while ($content = SQL_FETCHARRAY($result)) {
-                       // Prepare content
-                       $content['sw']   = $SW;
-
                        // Load row template
                        $OUT .= loadTemplate('admin_admins_mails_list_row', true, $content);
                        // Load row template
                        $OUT .= loadTemplate('admin_admins_mails_list_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free result
                } // END - while
 
                // Free result
index 55ccb052874baf94c4b42f651a6a148ead43758f..4760a601053b0ea48bfbe2ffdf2822764f2dc70b 100644 (file)
@@ -57,11 +57,10 @@ ORDER BY
 
 if (SQL_NUMROWS($result) > 0) {
        // We have some (new?) registrations!
 
 if (SQL_NUMROWS($result) > 0) {
        // We have some (new?) registrations!
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare array for the row template
                $content = array(
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare array for the row template
                $content = array(
-                       'sw'          => $SW,
                        'gender'      => $content['gender'],
                        'surname'     => $content['surname'],
                        'family'      => $content['family'],
                        'gender'      => $content['gender'],
                        'surname'     => $content['surname'],
                        'family'      => $content['family'],
@@ -74,8 +73,7 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_list_chk_reg_row', true, $content);
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_list_chk_reg_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - while
 
        // Load main template
        loadTemplate('admin_list_chk_reg', false, $OUT);
 
        // Load main template
        loadTemplate('admin_list_chk_reg', false, $OUT);
index 552a7b84f0d2c04e51cf6419b68919e5ef31ccc9..aee1399056fd3727118618b897cffd2f8009a720 100644 (file)
@@ -47,7 +47,7 @@ addMenuDescription('admin', __FILE__);
 
 if ((isFormSent('edit')) && (countPostSelection() > 0)) {
        // Edit ACLs
 
 if ((isFormSent('edit')) && (countPostSelection() > 0)) {
        // Edit ACLs
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('sel') as $id => $selected) {
                // Load data for the id
                $result = SQL_QUERY_ESC("SELECT admin_id, action_menu, what_menu, access_mode FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE `id`=%s LIMIT 1",
        foreach (postRequestParameter('sel') as $id => $selected) {
                // Load data for the id
                $result = SQL_QUERY_ESC("SELECT admin_id, action_menu, what_menu, access_mode FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE `id`=%s LIMIT 1",
@@ -57,7 +57,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0)) {
 
                // Prepare data for the row template
                $content = array(
 
                // Prepare data for the row template
                $content = array(
-                       'sw'               => $SW,
                        'id'               => $id,
                        'admins_selection' => generateOptionList('admins', 'id', 'login', $adminId, 'default_acl'),
                        'action_selection' => adminMenuSelectionBox_DEPRECATED('action', $action, $id),
                        'id'               => $id,
                        'admins_selection' => generateOptionList('admins', 'id', 'login', $adminId, 'default_acl'),
                        'action_selection' => adminMenuSelectionBox_DEPRECATED('action', $action, $id),
@@ -75,8 +74,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0)) {
 
                // Load row template
                $OUT .= loadTemplate('admin_config_admins_edit_row', true, $content);
 
                // Load row template
                $OUT .= loadTemplate('admin_config_admins_edit_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - foreach
 
        // Load main template
        loadTemplate('admin_config_admins_edit', false, $OUT);
 
        // Load main template
        loadTemplate('admin_config_admins_edit', false, $OUT);
@@ -106,7 +104,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0)) {
        loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ENTRIES_CHANGED--}');
 } elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
        // Delete ACLs
        loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ENTRIES_CHANGED--}');
 } elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
        // Delete ACLs
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('sel') as $id => $selected) {
                // Load data for the id
                $result = SQL_QUERY_ESC("SELECT `id`, `admin_id`, `action_menu`, `what_menu`, `access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE `id`=%s LIMIT 1",
        foreach (postRequestParameter('sel') as $id => $selected) {
                // Load data for the id
                $result = SQL_QUERY_ESC("SELECT `id`, `admin_id`, `action_menu`, `what_menu`, `access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` WHERE `id`=%s LIMIT 1",
@@ -117,12 +115,8 @@ if ((isFormSent('edit')) && (countPostSelection() > 0)) {
                // Get admin mode
                $content['access_mode'] = '{--ADMINS_' . strtoupper($content['access_mode']) . '_MODE--}';
 
                // Get admin mode
                $content['access_mode'] = '{--ADMINS_' . strtoupper($content['access_mode']) . '_MODE--}';
 
-               // Add color switch
-               $content['sw'] = $SW;
-
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_config_admins_del_row', true, $content);
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_config_admins_del_row', true, $content);
-               $SW = 3 - $SW;
        } // END - foreach
 
        // Load main template
        } // END - foreach
 
        // Load main template
@@ -201,17 +195,13 @@ VALUES ('%s','%s','%s','%s')",
        // Entries found?
        if (SQL_NUMROWS($result_acls) > 0) {
                // List ACLs
        // Entries found?
        if (SQL_NUMROWS($result_acls) > 0) {
                // List ACLs
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result_acls)) {
                        // Generate mode string
                        $content['access_mode'] = '{--ADMINS_' . strtoupper($content['access_mode']) . '_MODE--}';
 
                while ($content = SQL_FETCHARRAY($result_acls)) {
                        // Generate mode string
                        $content['access_mode'] = '{--ADMINS_' . strtoupper($content['access_mode']) . '_MODE--}';
 
-                       // Add color switch
-                       $content['sw'] = $SW;
-
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_config_admins_row', true, $content);
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_config_admins_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index b2246e48a21b7c1112159c1fe69a4562cfd16ec8..393d94333eb41899873fbf8aec64494cf27abd2d 100644 (file)
@@ -113,7 +113,7 @@ if (isFormSent('add')) {
        } // END - if
 } elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
        // Delete categories
        } // END - if
 } elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
        // Delete categories
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data of category
                $result = SQL_QUERY_ESC("SELECT `cat` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data of category
                $result = SQL_QUERY_ESC("SELECT `cat` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
@@ -125,21 +125,19 @@ if (isFormSent('add')) {
 
                // Prepare data for the row template
                $content = array(
 
                // Prepare data for the row template
                $content = array(
-                       'sw'  => $SW,
                        'id'  => $id,
                        'cat' => $cat,
                );
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_del_cats_row', true, $content);
                        'id'  => $id,
                        'cat' => $cat,
                );
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_del_cats_row', true, $content);
-               $SW = 3 - $SW;
        } // END - foreach
 
        // Load main template
        loadTemplate('admin_del_cats', false, $OUT);
 } elseif ((isFormSent('edit')) && (countPostSelection() > 0)) {
        // Edit categories
        } // END - foreach
 
        // Load main template
        loadTemplate('admin_del_cats', false, $OUT);
 } elseif ((isFormSent('edit')) && (countPostSelection() > 0)) {
        // Edit categories
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data from the category
                $result = SQL_QUERY_ESC("SELECT cat, visible, sort FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data from the category
                $result = SQL_QUERY_ESC("SELECT cat, visible, sort FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
@@ -149,7 +147,6 @@ if (isFormSent('add')) {
 
                // Prepare data for the row template
                $content = array(
 
                // Prepare data for the row template
                $content = array(
-                       'sw'   => $SW,
                        'id'   => $id,
                        'cat'  => $cat,
                        'vis'  => addSelectionBox('yn', $vis, 'vis', $id),
                        'id'   => $id,
                        'cat'  => $cat,
                        'vis'  => addSelectionBox('yn', $vis, 'vis', $id),
@@ -158,7 +155,6 @@ if (isFormSent('add')) {
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_edit_cats_row', true, $content);
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_edit_cats_row', true, $content);
-               $SW = 3 - $SW;
        } // END - foreach
 
        // Load main template
        } // END - foreach
 
        // Load main template
@@ -171,12 +167,11 @@ if (isFormSent('add')) {
        $result = SQL_QUERY("SELECT `id`, `cat`, `visible`, `sort` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // Init variables
        $result = SQL_QUERY("SELECT `id`, `cat`, `visible`, `sort` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // Init variables
-               $OUT = ''; $SW = 2;
+               $OUT = '';
 
                // List already existing categories for editing
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare data for the row template
 
                // List already existing categories for editing
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare data for the row template
-                       $content['sw']  = $SW;
                        $content['vis'] = translateYesNo($content['visible']);
 
                        // Put cat descriptions into variable for the selection box
                        $content['vis'] = translateYesNo($content['visible']);
 
                        // Put cat descriptions into variable for the selection box
@@ -186,7 +181,6 @@ if (isFormSent('add')) {
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_config_cats_row', true, $content);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_config_cats_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index f72905d1bcb0278c8c4dc76be30351470a6cab3d..8af929b1113dffb1b92686ecdf4023f10aa36868 100644 (file)
@@ -100,7 +100,7 @@ if (isPostRequestParameterSet(('add_max'))) {
        } // END - if
 } elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
        // Delete entries
        } // END - if
 } elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
        // Delete entries
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data
                $result = SQL_QUERY_ESC("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data
                $result = SQL_QUERY_ESC("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
@@ -108,20 +108,16 @@ if (isPostRequestParameterSet(('add_max'))) {
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
 
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
 
-               // Add color switch
-               $content['sw'] = $SW;
-
                // Load row template and switch color
                $OUT .= loadTemplate('admin_config_email_del_row', true, $content);
                // Load row template and switch color
                $OUT .= loadTemplate('admin_config_email_del_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - foreach
        $content['rows'] = $OUT;
 
        // Load main template
        loadTemplate('admin_config_email_del', false, $content);
 } elseif ((isFormSent('edit')) && (countPostSelection() > 0)) {
        // Edit entries
        $content['rows'] = $OUT;
 
        // Load main template
        loadTemplate('admin_config_email_del', false, $content);
 } elseif ((isFormSent('edit')) && (countPostSelection() > 0)) {
        // Edit entries
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data
                $result = SQL_QUERY_ESC("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
        foreach (postRequestParameter('sel') as $id => $value) {
                // Load data
                $result = SQL_QUERY_ESC("SELECT `id`, `value`, `comment` FROM `{?_MYSQL_PREFIX?}_max_receive` WHERE `id`=%s LIMIT 1",
@@ -129,13 +125,9 @@ if (isPostRequestParameterSet(('add_max'))) {
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
 
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
 
-               // Add color switch
-               $content['sw'] = $SW;
-
                // Load row template and switch color
                $OUT .= loadTemplate('admin_config_email_edit_row', true, $content);
                // Load row template and switch color
                $OUT .= loadTemplate('admin_config_email_edit_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - foreach
        $content['rows'] = $OUT;
 
        // Load main template
        $content['rows'] = $OUT;
 
        // Load main template
@@ -145,14 +137,10 @@ if (isPostRequestParameterSet(('add_max'))) {
        __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List already existing entries for editing
        __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List already existing entries for editing
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                while ($content = SQL_FETCHARRAY($result)) {
-                       // Prepare data for the row template
-                       $content['sw'] = $SW;
-
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_config_email_row', true, $content);
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_config_email_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index 610ddfd6bf9a126adcdc89da9d318b3f604e78b9..f1bdde572eaeb3480043baf5111f8bd14db33535 100644 (file)
@@ -83,7 +83,6 @@ WHERE `action`='main' AND `what` != '' AND `what` IS NOT NULL AND `locked`='N'
 ORDER BY `sort` ASC", __FILE__, __LINE__);
 
                // Init variables
 ORDER BY `sort` ASC", __FILE__, __LINE__);
 
                // Init variables
-               $SW = 2;
                $OUT = '';
 
                // Process all entries
                $OUT = '';
 
                // Process all entries
@@ -99,14 +98,10 @@ ORDER BY `sort` ASC", __FILE__, __LINE__);
                        } // END - if
 
                        // Prepare content
                        } // END - if
 
                        // Prepare content
-                       $content['sw'] = $SW;
                        $content['link'] = $newHomeLink;
 
                        // Load row template
                        $OUT .= loadTemplate('admin_config_home_row', true, $content);
                        $content['link'] = $newHomeLink;
 
                        // Load row template
                        $OUT .= loadTemplate('admin_config_home_row', true, $content);
-
-                       // Switch color
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
@@ -119,8 +114,7 @@ ORDER BY `sort` ASC", __FILE__, __LINE__);
        default: // Output selection table
                loadTemplate('admin_config_home_main');
                break;
        default: // Output selection table
                loadTemplate('admin_config_home_main');
                break;
-
-}
+} // END - switch
 
 // [EOF]
 ?>
 
 // [EOF]
 ?>
index 62791b66874e7237650418f37d843d2c1a332966..47ea2b39ebef4523b7d6ed32a1558f4b33388038 100644 (file)
@@ -55,16 +55,10 @@ if (isFormSent()) {
        // Do we have entries?
        if (SQL_NUMROWS($result) > 0) {
                // Load all entries
        // Do we have entries?
        if (SQL_NUMROWS($result) > 0) {
                // Load all entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                while ($content = SQL_FETCHARRAY($result)) {
-                       // Add more data
-                       $content['sw'] = $SW;
-
                        // Load row template
                        $OUT .= loadTemplate('admin_list_imprint_row', true, $content);
                        // Load row template
                        $OUT .= loadTemplate('admin_list_imprint_row', true, $content);
-
-                       // Switch color
-                       $SW = 3 - $SW;
                } // END - while
 
                // Transfer all rows to $content
                } // END - while
 
                // Transfer all rows to $content
index f5e8f3c949931c16694c8d3786ca409e2a5ef17e..aad70b3f7489f8660b5df4cc05e05bb590013041 100644 (file)
@@ -49,7 +49,7 @@ if (isFormSent('edit')) {
        // Check if at least one module is selected
        if (countPostSelection() > 0) {
                // Output header
        // Check if at least one module is selected
        if (countPostSelection() > 0) {
                // Output header
-               $OUT = ''; $SW = 2;
+               $OUT = '';
 
                // Edit selected modules
                foreach (postRequestParameter('sel') as $id => $sel) {
 
                // Edit selected modules
                foreach (postRequestParameter('sel') as $id => $sel) {
@@ -66,7 +66,6 @@ if (isFormSent('edit')) {
 
                        // Prepare array for the template
                        $content = array(
 
                        // Prepare array for the template
                        $content = array(
-                               'sw'     => $SW,
                                'mod'    => $data['module'],
                                'id'     => $id,
                                'title'  => $data['title'],
                                'mod'    => $data['module'],
                                'id'     => $id,
                                'title'  => $data['title'],
@@ -132,7 +131,7 @@ FROM
 ORDER BY
        `module` ASC', __FILE__, __LINE__);
 
 ORDER BY
        `module` ASC', __FILE__, __LINE__);
 
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Reset title to --- if it is NULL
                if (($content['module'] == 'index') || ($content['module'] == 'login')) {
        while ($content = SQL_FETCHARRAY($result)) {
                // Reset title to --- if it is NULL
                if (($content['module'] == 'index') || ($content['module'] == 'login')) {
@@ -140,14 +139,8 @@ ORDER BY
                        $content['module'] = '<strong><a href="{%url=modules.php?module=admin&amp;what=stats_mods&amp;mod=' . $content['module'] . '%}">' . $content['module'] . '</a></strong>';
                } // END - if
 
                        $content['module'] = '<strong><a href="{%url=modules.php?module=admin&amp;what=stats_mods&amp;mod=' . $content['module'] . '%}">' . $content['module'] . '</a></strong>';
                } // END - if
 
-               // Prepare array for the template
-               $content['sw'] = $SW;
-
                // Load row template
                $OUT .= loadTemplate('admin_list_mods_row', true, $content);
                // Load row template
                $OUT .= loadTemplate('admin_list_mods_row', true, $content);
-
-               // Switch colors
-               $SW = 3 - $SW;
        } // END - while
 
        // Free memory
        } // END - while
 
        // Free memory
index 810e489b64e7edd41702b637e39d748746ac185c..640dc3aa5a6c21bbe2c4a5add785d32ba25002fe 100644 (file)
@@ -123,7 +123,7 @@ LIMIT 1",
                $message = '{--ADMIN_PAYOUT_ENTRIES_CHANGED--}';
        } else {
                $display = false; //Suppress any other outputs
                $message = '{--ADMIN_PAYOUT_ENTRIES_CHANGED--}';
        } else {
                $display = false; //Suppress any other outputs
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Load data
                        $result = SQL_QUERY_ESC("SELECT type, rate, min_points, allow_url FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Load data
                        $result = SQL_QUERY_ESC("SELECT type, rate, min_points, allow_url FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
@@ -133,7 +133,6 @@ LIMIT 1",
 
                        // Prepare data for the row template
                        $content = array(
 
                        // Prepare data for the row template
                        $content = array(
-                               'sw'    => $SW,
                                'id'    => $id,
                                'title' => $title,
                                'rate'  => translateComma($rate),
                                'id'    => $id,
                                'title' => $title,
                                'rate'  => translateComma($rate),
@@ -143,8 +142,7 @@ LIMIT 1",
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_config_payouts_edit_row', true, $content);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_config_payouts_edit_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - foreach
 
                // Load main template
                loadTemplate('admin_config_payouts_edit', false, $OUT);
 
                // Load main template
                loadTemplate('admin_config_payouts_edit', false, $OUT);
@@ -168,7 +166,7 @@ LIMIT 1",
                $message = '{--ADMIN_PAYOUT_ENTRIES_DELETED--}';
        } else {
                $display = false; //Suppress any other outputs
                $message = '{--ADMIN_PAYOUT_ENTRIES_DELETED--}';
        } else {
                $display = false; //Suppress any other outputs
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Secure id number
                        $id = bigintval($id);
                foreach (postRequestParameter('sel') as $id => $sel) {
                        // Secure id number
                        $id = bigintval($id);
@@ -181,7 +179,6 @@ LIMIT 1",
 
                        // Prepare data for the row template
                        $content = array(
 
                        // Prepare data for the row template
                        $content = array(
-                               'sw'    => $SW,
                                'id'    => $id,
                                'title' => $title,
                                'rate'  => translateComma($rate),
                                'id'    => $id,
                                'title' => $title,
                                'rate'  => translateComma($rate),
@@ -190,8 +187,7 @@ LIMIT 1",
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_config_payouts_del_row', true, $content);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_config_payouts_del_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - foreach
 
                // Load main template
                loadTemplate('admin_config_payouts_del', false, $OUT);
 
                // Load main template
                loadTemplate('admin_config_payouts_del', false, $OUT);
@@ -213,11 +209,10 @@ ORDER BY
 
 if ((SQL_NUMROWS($result_type) > 0) && ($display)) {
        // List all payout types
 
 if ((SQL_NUMROWS($result_type) > 0) && ($display)) {
        // List all payout types
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result_type)) {
                // Prepare data for the row template
                $content = array(
        while ($content = SQL_FETCHARRAY($result_type)) {
                // Prepare data for the row template
                $content = array(
-                       'sw'           => $SW,
                        'id'           => $content['id'],
                        'from_account' => $content['from_account'],
                        'type'         => $content['type'],
                        'id'           => $content['id'],
                        'from_account' => $content['from_account'],
                        'type'         => $content['type'],
@@ -227,7 +222,6 @@ if ((SQL_NUMROWS($result_type) > 0) && ($display)) {
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_config_payouts_row', true, $content);
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_config_payouts_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Free memory
        } // END - while
 
        // Free memory
@@ -235,7 +229,7 @@ if ((SQL_NUMROWS($result_type) > 0) && ($display)) {
 
        // Load main template
        loadTemplate('admin_config_payouts', false, $OUT);
 
        // Load main template
        loadTemplate('admin_config_payouts', false, $OUT);
-}
+} // END - if
 
 // Does your members request payouts?
 if ((SQL_NUMROWS($result_mem) > 0) && ($display)) {
 
 // Does your members request payouts?
 if ((SQL_NUMROWS($result_mem) > 0) && ($display)) {
index 06b6f2b76238270b9a0aa517d534dfbf9c8de1d3..5a3bb6996db215acf631f9854e916581399a10c5 100644 (file)
@@ -186,7 +186,7 @@ WHERE `mails_confirmed` < %s", $REF, $REF));
        // 12                  3     32    2                  3     32    2               3            4     43    21
        if ((isFormSent('del')) && (isPostRequestParameterSet('sel')) && (countPostSelection() > 0)) {
                // Delete entries
        // 12                  3     32    2                  3     32    2               3            4     43    21
        if ((isFormSent('del')) && (isPostRequestParameterSet('sel')) && (countPostSelection() > 0)) {
                // Delete entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                foreach (postRequestParameter('sel') as $id => $value) {
                        $result = SQL_QUERY_ESC("SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
                foreach (postRequestParameter('sel') as $id => $value) {
                        $result = SQL_QUERY_ESC("SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
@@ -195,7 +195,6 @@ WHERE `mails_confirmed` < %s", $REF, $REF));
 
                        // Prepare data for the row template
                        $content = array(
 
                        // Prepare data for the row template
                        $content = array(
-                               'sw'       => $SW,
                                'id'       => $id,
                                'level'    => $content['level'],
                                'percents' => translateComma($content['percents']),
                                'id'       => $id,
                                'level'    => $content['level'],
                                'percents' => translateComma($content['percents']),
@@ -203,14 +202,13 @@ WHERE `mails_confirmed` < %s", $REF, $REF));
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_points_del_row', true, $content);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_points_del_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - foreach
 
                // Load main template
                loadTemplate('admin_points_del', false, $OUT);
        } elseif ((isFormSent('edit')) && (isPostRequestParameterSet('sel')) && (countPostSelection() > 0)) {
                // Edit entries
 
                // Load main template
                loadTemplate('admin_points_del', false, $OUT);
        } elseif ((isFormSent('edit')) && (isPostRequestParameterSet('sel')) && (countPostSelection() > 0)) {
                // Edit entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                foreach (postRequestParameter('sel') as $id => $value) {
                        $result = SQL_QUERY_ESC("SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
                foreach (postRequestParameter('sel') as $id => $value) {
                        $result = SQL_QUERY_ESC("SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
@@ -219,7 +217,6 @@ WHERE `mails_confirmed` < %s", $REF, $REF));
 
                        // Prepare data for the row template
                        $content = array(
 
                        // Prepare data for the row template
                        $content = array(
-                               'sw'       => $SW,
                                'id'       => $id,
                                'level'    => $content['level'],
                                'percents' => translateComma($content['percents']),
                                'id'       => $id,
                                'level'    => $content['level'],
                                'percents' => translateComma($content['percents']),
@@ -227,8 +224,7 @@ WHERE `mails_confirmed` < %s", $REF, $REF));
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_points_edit_row', true, $content);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_points_edit_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - foreach
 
                // Load main template
                loadTemplate('admin_points_edit', false, $OUT);
 
                // Load main template
                loadTemplate('admin_points_edit', false, $OUT);
@@ -237,18 +233,16 @@ WHERE `mails_confirmed` < %s", $REF, $REF));
                $result = SQL_QUERY("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);
                if (SQL_NUMROWS($result) > 0) {
                        // Make referal levels editable and deletable
                $result = SQL_QUERY("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);
                if (SQL_NUMROWS($result) > 0) {
                        // Make referal levels editable and deletable
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
 
                        // List already existing categories for editing
                        while ($content = SQL_FETCHARRAY($result)) {
                                // Prepare data for the row template
 
                        // List already existing categories for editing
                        while ($content = SQL_FETCHARRAY($result)) {
                                // Prepare data for the row template
-                               $content['sw']       = $SW;
                                $content['percents'] = translateComma($content['percents']);
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_points_row', true, $content);
                                $content['percents'] = translateComma($content['percents']);
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_points_row', true, $content);
-                               $SW = 3 - $SW;
-                       }
+                       } // END - while
 
                        // Free memory
                        SQL_FREERESULT($result);
 
                        // Free memory
                        SQL_FREERESULT($result);
index 1c78c45384cc269cc1190c326c50f9cea5340174..693e7f057c0254ed3dfac9e3cbbac11ebd73b6c2 100644 (file)
@@ -123,7 +123,7 @@ LIMIT 1",
                // Check if at last one line is selected
                if (countPostSelection() > 0) {
                        // Make selected editable
                // Check if at last one line is selected
                if (countPostSelection() > 0) {
                        // Make selected editable
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        foreach (postRequestParameter('sel') as $id => $sel) {
                                // Load data to selected rallye
                                $result = SQL_QUERY_ESC("SELECT `rallye_id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
                        foreach (postRequestParameter('sel') as $id => $sel) {
                                // Load data to selected rallye
                                $result = SQL_QUERY_ESC("SELECT `rallye_id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
@@ -132,12 +132,10 @@ LIMIT 1",
                                SQL_FREERESULT($result);
 
                                // Add more content
                                SQL_FREERESULT($result);
 
                                // Add more content
-                               $content['sw']             = $SW;
                                $content['rallye_content'] = generateOptionList('rallye_data', 'id', 'title', $content['rallye_id']);
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_config_rallye_edit_row', true, $content);
                                $content['rallye_content'] = generateOptionList('rallye_data', 'id', 'title', $content['rallye_id']);
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_config_rallye_edit_row', true, $content);
-                               $SW = 3 - $SW;
                        } // END - foreach
 
                        // Remember row content
                        } // END - foreach
 
                        // Remember row content
@@ -157,7 +155,7 @@ LIMIT 1",
                // Check if at last one line is selected
                if (countPostSelection() > 0) {
                        // List all prices
                // Check if at last one line is selected
                if (countPostSelection() > 0) {
                        // List all prices
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        foreach (postRequestParameter('sel') as $id => $sel) {
                                // Load data to selected rallye
                                $result = SQL_QUERY_ESC("SELECT `rallye_id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
                        foreach (postRequestParameter('sel') as $id => $sel) {
                                // Load data to selected rallye
                                $result = SQL_QUERY_ESC("SELECT `rallye_id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
@@ -165,12 +163,8 @@ LIMIT 1",
                                $content = SQL_FETCHARRAY($result);
                                SQL_FREERESULT($result);
 
                                $content = SQL_FETCHARRAY($result);
                                SQL_FREERESULT($result);
 
-                               // Add color switch
-                               $content['sw'] = $SW;
-
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_config_rallye_del_row', true, $content);
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_config_rallye_del_row', true, $content);
-                               $SW = 3 - $SW;
                        } // END - foreach
                        $content['rows'] = $OUT;
 
                        } // END - foreach
                        $content['rows'] = $OUT;
 
@@ -191,14 +185,10 @@ LIMIT 1",
 
                if (SQL_NUMROWS($result) > 0) {
                        // Load all prices for the selected rallye
 
                if (SQL_NUMROWS($result) > 0) {
                        // Load all prices for the selected rallye
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        while ($content = SQL_FETCHARRAY($result)) {
                        while ($content = SQL_FETCHARRAY($result)) {
-                               // Add color switch
-                               $content['sw'] = $SW;
-
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_config_rallye_prices_row', true, $content);
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_config_rallye_prices_row', true, $content);
-                               $SW = 3 - $SW;
                        } // END - while
 
                        // Free memory
                        } // END - while
 
                        // Free memory
@@ -233,11 +223,10 @@ ORDER BY
        d.start_time DESC", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List found rallyes
        d.start_time DESC", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List found rallyes
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare data for the row template
                        $content = array(
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare data for the row template
                        $content = array(
-                               'sw'         => $SW,
                                'id'         => $content['id'],
                                'title'      => $content['title'],
                                'admin_id'   => $content['admin_id'],
                                'id'         => $content['id'],
                                'title'      => $content['title'],
                                'admin_id'   => $content['admin_id'],
@@ -248,7 +237,6 @@ ORDER BY
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_list_rallye_prices_row', true, $content);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_list_rallye_prices_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index 0744101ffcd8a986c932942b5320640480875f2f..1c6792fde03c6b69c2818f99357c086b30fba970 100644 (file)
@@ -66,20 +66,16 @@ if (isFormSent()) {
 
 // List all register values
 $result = SQL_QUERY("SELECT `id`, `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC", __FILE__, __LINE__);
 
 // List all register values
 $result = SQL_QUERY("SELECT `id`, `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC", __FILE__, __LINE__);
-$OUT = ''; $SW = 2;
+$OUT = '';
 while ($content = SQL_FETCHARRAY($result)) {
        // Get language string
        $content['field_name'] =  getMessage(strtoupper($content['field_name']));
 
        // Add more data
 while ($content = SQL_FETCHARRAY($result)) {
        // Get language string
        $content['field_name'] =  getMessage(strtoupper($content['field_name']));
 
        // Add more data
-       $content['sw']        = $SW;
        $content['selection'] = addSelectionBox('yn', $content['field_required'], 'sel[' . $content['id'] . ']');
 
        // @TODO Move this HTML code into a template
        $OUT .= loadTemplate('admin_config_register_row', true, $content);
        $content['selection'] = addSelectionBox('yn', $content['field_required'], 'sel[' . $content['id'] . ']');
 
        // @TODO Move this HTML code into a template
        $OUT .= loadTemplate('admin_config_register_row', true, $content);
-
-       // Switch color
-       $SW = 3 - $SW;
 } // END - while
 
 // Free memory
 } // END - while
 
 // Free memory
index c684f07bc3c6b2179cf9dd9150184748453b7730..42104a1c89d412ad4857be6c0037bd70a36da9e7 100644 (file)
@@ -65,7 +65,7 @@ if (isFormSent()) {
 } else {
        // Load existing modules and generate TR rows for the template
        $result = SQL_QUERY("SELECT `module`, `title` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY module", __FILE__, __LINE__);
 } else {
        // Load existing modules and generate TR rows for the template
        $result = SQL_QUERY("SELECT `module`, `title` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY module", __FILE__, __LINE__);
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Already registered module?
                if (isInString($content['module'], getConfig('rewrite_skip'))) {
        while ($content = SQL_FETCHARRAY($result)) {
                // Already registered module?
                if (isInString($content['module'], getConfig('rewrite_skip'))) {
@@ -81,12 +81,10 @@ if (isFormSent()) {
                // Remember data in array for the dynamic row template
                $content['y_default'] = $y;
                $content['n_default'] = $n;
                // Remember data in array for the dynamic row template
                $content['y_default'] = $y;
                $content['n_default'] = $n;
-               $content['sw']        = $SW;
 
                // Load template and switch colors
                $OUT .= loadTemplate('admin_config_rewrite_rows', true, $content);
 
                // Load template and switch colors
                $OUT .= loadTemplate('admin_config_rewrite_rows', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - while
 
        // Free memory
        SQL_FREERESULT($result);
 
        // Free memory
        SQL_FREERESULT($result);
index c48e0f3dc2713feeb19a0362a7433c4783fd25e7..0681df69ac15efbda2f6902a9ba601f456d9ec56 100644 (file)
@@ -75,10 +75,9 @@ ORDER BY
 $total = '0';
 if (SQL_NUMROWS($result) > 0) {
        // Output rows
 $total = '0';
 if (SQL_NUMROWS($result) > 0) {
        // Output rows
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
-               $content['sw']         = $SW;
                $content['time_trans'] = generateDateTime($content['time_trans'], 3);
 
                // Load row template
                $content['time_trans'] = generateDateTime($content['time_trans'], 3);
 
                // Load row template
@@ -86,7 +85,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Sum points and switch colors
                $total += $content['points'];
 
                // Sum points and switch colors
                $total += $content['points'];
-               $SW = 3 - $SW;
        } // END - while
 
        // Free memory
        } // END - while
 
        // Free memory
index f90c9c1e3b90d791191c2ccabe6bdfe4a9d597c8..6cc821b374689f48dab4cbb83fa58c4e984b5ea3 100644 (file)
@@ -100,14 +100,10 @@ LIMIT 1",
                loadTemplate('admin_settings_saved', false, $content);
        } else {
                // There are mail orders available
                loadTemplate('admin_settings_saved', false, $content);
        } else {
                // There are mail orders available
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                while ($content = SQL_FETCHARRAY($result)) {
-                       // Add color swapping
-                       $content['sw'] = $SW;
-
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_edit_email_row', true, $content);
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_edit_email_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index eba3a148f015dde1651526f3206f5435f38b6b00..d08304294ec56b80d9107e6d12a3ba0270130866 100644 (file)
@@ -59,7 +59,7 @@ ORDER BY
        `timestamp` DESC";
 
 // Check for maximum pages
        `timestamp` DESC";
 
 // Check for maximum pages
-$result_maximum = SQL_QUERY(, __FILE__, __LINE__);
+$result_maximum = SQL_QUERY($sql, __FILE__, __LINE__);
 
 // Set offset an current page to default values
 if (!isGetRequestParameterSet('page'))   setGetRequestParameter('page'  , 1);
 
 // Set offset an current page to default values
 if (!isGetRequestParameterSet('page'))   setGetRequestParameter('page'  , 1);
@@ -85,7 +85,7 @@ if (SQL_NUMROWS($result) > 0) {
        $content['bottom_email_nav'] = addEmailNavigation($numPages, getConfig('mails_page'), false, 3, true);
 
        // List all entries
        $content['bottom_email_nav'] = addEmailNavigation($numPages, getConfig('mails_page'), false, 3, true);
 
        // List all entries
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($pool = SQL_FETCHARRAY($result)) {
                // Check sent mails and clicks
                $result_mails = SQL_QUERY_ESC("SELECT `max_rec`, `clicks` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `pool_id`=%s LIMIT 1",
        while ($pool = SQL_FETCHARRAY($result)) {
                // Check sent mails and clicks
                $result_mails = SQL_QUERY_ESC("SELECT `max_rec`, `clicks` FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `pool_id`=%s LIMIT 1",
@@ -101,7 +101,6 @@ if (SQL_NUMROWS($result) > 0) {
                $pool['unconfirmed'] = generateUnconfirmedAdminLink($pool['id'],  ($pool['max_rec'] - $pool['clicks']), 'mid');
 
                // Prepare data for the row template
                $pool['unconfirmed'] = generateUnconfirmedAdminLink($pool['id'],  ($pool['max_rec'] - $pool['clicks']), 'mid');
 
                // Prepare data for the row template
-               $content['sw'] = $SW;
                $content['timestamp'] = generateDateTime($pool['timestamp'], 0);
 
                // Merge pool data with content
                $content['timestamp'] = generateDateTime($pool['timestamp'], 0);
 
                // Merge pool data with content
@@ -109,7 +108,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_email_archiv_row', true, $content);
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_email_archiv_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Remmber generated rows in array
        } // END - while
 
        // Remmber generated rows in array
index 9458da05413f182e2fe0f63de86871738fa02828..5c12d48717407748847973276a54751fdb0f76e8 100644 (file)
@@ -116,7 +116,7 @@ if (isGetRequestParameterSet('reg_ext')) {
                redirectToUrl('modules.php?module=admin&amp;what=extensions&amp;edited=' . countPostSelection());
        } else {
                // Edit selected entries
                redirectToUrl('modules.php?module=admin&amp;what=extensions&amp;edited=' . countPostSelection());
        } else {
                // Edit selected entries
-               $SW = 2; $OUT = '';
+               $OUT = '';
                foreach (postRequestParameter('sel') as $ext_id => $sel) {
                        // Edit this extension?
                        if (($sel == 'Y') || ($sel != 'Y')) {
                foreach (postRequestParameter('sel') as $ext_id => $sel) {
                        // Edit this extension?
                        if (($sel == 'Y') || ($sel != 'Y')) {
@@ -145,7 +145,6 @@ if (isGetRequestParameterSet('reg_ext')) {
 
                                // Prepare data for the row template
                                $content = array(
 
                                // Prepare data for the row template
                                $content = array(
-                                       'sw'     => $SW,
                                        'id'     => $ext_id,
                                        'name'   => getExtensionName($ext_id),
                                        'active' => addSelectionBox('yn', $active, 'active', $ext_id),
                                        'id'     => $ext_id,
                                        'name'   => getExtensionName($ext_id),
                                        'active' => addSelectionBox('yn', $active, 'active', $ext_id),
@@ -154,8 +153,7 @@ if (isGetRequestParameterSet('reg_ext')) {
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_extensions_edit_row', true, $content);
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_extensions_edit_row', true, $content);
-                               $SW = 3 - $SW;
-                       }
+                       } // END - if
                } // END - foreach
 
                // Load template
                } // END - foreach
 
                // Load template
@@ -164,7 +162,7 @@ if (isGetRequestParameterSet('reg_ext')) {
        }
 } elseif ((isPostRequestParameterSet('delete')) && (countPostSelection() > 0) && (!isDemoModeActive())) {
        // List extensions and when verbose is enabled SQL statements which will be executed
        }
 } elseif ((isPostRequestParameterSet('delete')) && (countPostSelection() > 0) && (!isDemoModeActive())) {
        // List extensions and when verbose is enabled SQL statements which will be executed
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('sel') as $ext_id => $sel) {
                // Init variables
                $VERBOSE_OUT = '';
        foreach (postRequestParameter('sel') as $ext_id => $sel) {
                // Init variables
                $VERBOSE_OUT = '';
@@ -188,7 +186,6 @@ if (isGetRequestParameterSet('reg_ext')) {
 
                        // Prepare data for the row template
                        $content = array(
 
                        // Prepare data for the row template
                        $content = array(
-                               'sw'       => $SW,
                                'id'       => $ext_id,
                                'ext_name' => $ext_name,
                                'ext_ver'  => getExtensionVersion($ext_name),
                                'id'       => $ext_id,
                                'ext_name' => $ext_name,
                                'ext_ver'  => getExtensionVersion($ext_name),
@@ -200,14 +197,12 @@ if (isGetRequestParameterSet('reg_ext')) {
                } else {
                        // Prepare data for the row template
                        $content = array(
                } else {
                        // Prepare data for the row template
                        $content = array(
-                               'sw'       => $SW,
                                'id'       => $ext_id
                        );
 
                        // Not valid!
                        $OUT .= loadTemplate('admin_extensions_delete_row_404', true, $content);
                }
                                'id'       => $ext_id
                        );
 
                        // Not valid!
                        $OUT .= loadTemplate('admin_extensions_delete_row_404', true, $content);
                }
-               $SW = 3 - $SW;
        } // END - foreach
 
        // Load template
        } // END - foreach
 
        // Load template
@@ -272,7 +267,7 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
                // Are there some entries?
                if (SQL_NUMROWS($result) > 0) {
                        // Extensions are registered
                // Are there some entries?
                if (SQL_NUMROWS($result) > 0) {
                        // Extensions are registered
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        while ($content = SQL_FETCHARRAY($result)) {
                                // Prepare CSS selection output
                                $cssSelection = '---';
                        while ($content = SQL_FETCHARRAY($result)) {
                                // Prepare CSS selection output
                                $cssSelection = '---';
@@ -281,7 +276,6 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
                                // Prepare data for the row template
                                // @TODO Rewrite in template: id->ext_id,name->ext_name,active->ext_active,ver->ext_ver
                                $content = array(
                                // Prepare data for the row template
                                // @TODO Rewrite in template: id->ext_id,name->ext_name,active->ext_active,ver->ext_ver
                                $content = array(
-                                       'sw'      => $SW,
                                        'id'      => $content['ext_id'],
                                        'name'    => $content['ext_name'],
                                        'active'  => translateYesNo($content['ext_active']),
                                        'id'      => $content['ext_id'],
                                        'name'    => $content['ext_name'],
                                        'active'  => translateYesNo($content['ext_active']),
@@ -292,8 +286,7 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_extensions_row', true, $content);
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_extensions_row', true, $content);
-                               $SW = 3 - $SW;
-                       }
+                       } // END - while
 
                        // Free memory
                        SQL_FREERESULT($result);
 
                        // Free memory
                        SQL_FREERESULT($result);
index 6e80602f5a921451a8a66c7895465d4a3669a668..eb779a1f35ef80e60289bd3f1cc4dd6dad98b186 100644 (file)
@@ -59,7 +59,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
 
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
 
-       $cnt = '0'; $OUT = ''; $SW = 2;
+       $cnt = '0'; $OUT = '';
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -76,7 +76,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                                        'action' => adminAddMenuSelectionBox('guest', 'action', 'sel_action[' . $sel . ']', $DATA['action']),
                                        'what'   => adminAddMenuSelectionBox('guest', 'what'  , 'sel_what['   . $sel . ']', $DATA['what']),
                                        'menu'   => $DATA['title'],
                                        'action' => adminAddMenuSelectionBox('guest', 'action', 'sel_action[' . $sel . ']', $DATA['action']),
                                        'what'   => adminAddMenuSelectionBox('guest', 'what'  , 'sel_what['   . $sel . ']', $DATA['what']),
                                        'menu'   => $DATA['title'],
-                                       'sw'     => $SW,
                                );
 
                                // Load row template
                                );
 
                                // Load row template
@@ -84,7 +83,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                        } else {
                                // Entry not found
                                $DATA = array(
                        } else {
                                // Entry not found
                                $DATA = array(
-                                       'sw'  => $SW,
                                        'sel' => $sel
                                );
                                $OUT .= loadTemplate('admin_menu_404_row', true, $DATA);
                                        'sel' => $sel
                                );
                                $OUT .= loadTemplate('admin_menu_404_row', true, $DATA);
@@ -92,7 +90,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
 
                        // Free result and switch color
                        SQL_FREERESULT($result);
 
                        // Free result and switch color
                        SQL_FREERESULT($result);
-                       $SW = 3 - $SW;
                } // END - if
        } // END - foreach
 
                } // END - if
        } // END - foreach
 
@@ -108,7 +105,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
 
        $cnt = '0';
        $OUT = '';
 
        $cnt = '0';
        $OUT = '';
-       $SW  = 2;
 
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
 
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
@@ -122,21 +118,18 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                                        'cnt'  => $cnt,
                                        'menu' => $DATA['title'],
                                        'sel'  => $sel,
                                        'cnt'  => $cnt,
                                        'menu' => $DATA['title'],
                                        'sel'  => $sel,
-                                       'sw'   => $SW,
                                );
                                $OUT .= loadTemplate('admin_gmenu_delete_row', true, $DATA);
                        } else {
                                // Entry not found?
                                $DATA = array(
                                );
                                $OUT .= loadTemplate('admin_gmenu_delete_row', true, $DATA);
                        } else {
                                // Entry not found?
                                $DATA = array(
-                                       'sw'  => $SW,
                                        'sel' => $sel
                                );
                                $OUT .= loadTemplate('admin_menu_404_row', true, $DATA);
                        }
                        SQL_FREERESULT($result);
                                        'sel' => $sel
                                );
                                $OUT .= loadTemplate('admin_menu_404_row', true, $DATA);
                        }
                        SQL_FREERESULT($result);
-                       $SW = 3 - $SW;
-               }
-       }
+               } // END - if
+       } // END - foreach
        $content['rows'] = $OUT;
        $content['cnt']  = $cnt;
 
        $content['rows'] = $OUT;
        $content['cnt']  = $cnt;
 
@@ -189,7 +182,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
        $content['chk'] = countPostSelection();
 
        // Load template
        $content['chk'] = countPostSelection();
 
        // Load template
-       $SW = 2; $cnt = '0'; $OUT = '';
+       $cnt = '0'; $OUT = '';
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -202,7 +195,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                                        'cnt'     => $cnt,
                                        'menu'    => $data['title'],
                                        'sel'     => $sel,
                                        'cnt'     => $cnt,
                                        'menu'    => $data['title'],
                                        'sel'     => $sel,
-                                       'sw'      => $SW,
                                        'visible' => addSelectionBox('yn', $data['visible'], 'visible', $sel),
                                        'locked'  => addSelectionBox('yn', $data['locked'] , 'locked' , $sel),
                                );
                                        'visible' => addSelectionBox('yn', $data['visible'], 'visible', $sel),
                                        'locked'  => addSelectionBox('yn', $data['locked'] , 'locked' , $sel),
                                );
@@ -212,14 +204,12 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                        } else {
                                // Entry not found?
                                $data = array(
                        } else {
                                // Entry not found?
                                $data = array(
-                                       'sw'  => $SW,
                                        'sel' => $sel
                                );
                                $OUT .= loadTemplate('admin_menu_404_row', true, $data);
                        }
 
                        SQL_FREERESULT($result);
                                        'sel' => $sel
                                );
                                $OUT .= loadTemplate('admin_menu_404_row', true, $data);
                        }
 
                        SQL_FREERESULT($result);
-                       $SW = 3 - $SW;
                } // END - if
        } // END - foreach
        $content['cnt']  = $cnt;
                } // END - if
        } // END - foreach
        $content['cnt']  = $cnt;
@@ -278,7 +268,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                $content['sub'] = $SUB;
 
                // Init variables
                $content['sub'] = $SUB;
 
                // Init variables
-               $SW = 2;
                $cnt = '0';
                $OUT = '';
 
                $cnt = '0';
                $OUT = '';
 
@@ -302,7 +291,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
 
                        // Prepapre content
                        $row = array(
 
                        // Prepapre content
                        $row = array(
-                               'sw'     => $SW,
                                'id'     => $data['id'],
                                'action' => $data['action'],
                                'what'   => $data['what'],
                                'id'     => $data['id'],
                                'action' => $data['action'],
                                'what'   => $data['what'],
@@ -313,7 +301,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
 
                        // Load row template
                        $OUT .= loadTemplate('admin_menu_overview_row', true, $row);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_menu_overview_row', true, $row);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Add rows
                } // END - while
 
                // Add rows
index 027187be6d2f156c6a2eed07fd4b04fd3ad2fa09..aa8f843ec6751adab0d864bfcd830b6a6bd8f0f8 100644 (file)
@@ -74,11 +74,10 @@ ORDER BY
 
 if (SQL_NUMROWS($result) > 0) {
        // Ok, we have found some inactive accounts
 
 if (SQL_NUMROWS($result) > 0) {
        // Ok, we have found some inactive accounts
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
                $content = array(
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
                $content = array(
-                       'sw'          => $SW,
                        'userid'      => $content['userid'],
                        'gender'      => $content['gender'],
                        'surname'     => $content['surname'],
                        'userid'      => $content['userid'],
                        'gender'      => $content['gender'],
                        'surname'     => $content['surname'],
@@ -91,8 +90,7 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load row template
                $OUT .= loadTemplate('admin_list_autopurge_row', true, $content);
 
                // Load row template
                $OUT .= loadTemplate('admin_list_autopurge_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - while
 
        // Free memory
        SQL_FREERESULT($result);
 
        // Free memory
        SQL_FREERESULT($result);
index 385b3c2d39b40abddfde41ca4723a85fe596c6f6..fb6f1e8321dd575ffeda6f1b4b2497a6e4e4c2bf 100644 (file)
@@ -89,14 +89,10 @@ ORDER BY
 // Is there at lease one package?
 if (SQL_NUMROWS($result) > 0) {
        // List all packages
 // Is there at lease one package?
 if (SQL_NUMROWS($result) > 0) {
        // List all packages
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
        while ($content = SQL_FETCHARRAY($result)) {
-               // Add color switch
-               $content['sw']     = $SW;
-
                // Load row template
                $OUT .= loadTemplate('admin_list_bank_package_row', true, $content);
                // Load row template
                $OUT .= loadTemplate('admin_list_bank_package_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Load main template
        } // END - while
 
        // Load main template
index f7d401e299bea76cd0ee325e1510f7713fa519a6..5504a22b3d0c0b48293eaf03eab37b723035ca0b 100644 (file)
@@ -75,7 +75,7 @@ ORDER BY
 
        if (SQL_NUMROWS($result) > 0) {
                // List users
 
        if (SQL_NUMROWS($result) > 0) {
                // List users
-               $OUT = '';$SW = 2; $cnt = 1; $total = '0';
+               $OUT = ''; $cnt = 1; $total = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Init variables
                        $WIN1 = ''; $WIN2 = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Init variables
                        $WIN1 = ''; $WIN2 = '';
@@ -94,7 +94,6 @@ ORDER BY
                                'gender'      => $content['gender'],
                                'turbo'       => $content['beg_points'],
                                'last_online' => generateDateTime($content['last_online'], 2),
                                'gender'      => $content['gender'],
                                'turbo'       => $content['beg_points'],
                                'last_online' => generateDateTime($content['last_online'], 2),
-                               'sw'          => $SW,
                                'win1'        => $WIN1,
                                'win2'        => $WIN2,
                                'cnt'         => $cnt,
                                'win1'        => $WIN1,
                                'win2'        => $WIN2,
                                'cnt'         => $cnt,
@@ -102,7 +101,7 @@ ORDER BY
 
                        // Load template and add it
                        $OUT .= loadTemplate('admin_list_beg_rows', true, $content);
 
                        // Load template and add it
                        $OUT .= loadTemplate('admin_list_beg_rows', true, $content);
-                       $SW = 3 - $SW; $cnt++; $total += $content['beg_points'];
+                       $cnt++; $total += $content['beg_points'];
                } // END - while
 
                $content['rows']  = $OUT;
                } // END - while
 
                $content['rows']  = $OUT;
index a2d500a129cfb1d8f052d811b7f85e6b87ba7e94..5b295dd7e5f2eccc921701dc3e65a265c5fa7d3b 100644 (file)
@@ -93,7 +93,7 @@ ORDER BY
 
        if (SQL_NUMROWS($result) > 0) {
                // List users
 
        if (SQL_NUMROWS($result) > 0) {
                // List users
-               $OUT = '';$SW = 2; $cnt = 1; $total = '0';
+               $OUT = ''; $cnt = 1; $total = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Add total points
                        $total += $content['points'];
                while ($content = SQL_FETCHARRAY($result)) {
                        // Add total points
                        $total += $content['points'];
@@ -109,14 +109,13 @@ ORDER BY
                        // Prepare content
                        $content['email']       = generateEmailLink($content['email'], 'user_data');
                        $content['last_online'] = generateDateTime($content['last_online'], 2);
                        // Prepare content
                        $content['email']       = generateEmailLink($content['email'], 'user_data');
                        $content['last_online'] = generateDateTime($content['last_online'], 2);
-                       $content['sw']     = $SW;
                        $content['win1']   = $WIN1;
                        $content['win2']   = $WIN2;
                        $content['cnt']    = $cnt;
 
                        // Load template and add it
                        $OUT .= loadTemplate('admin_list_bonus_rows', true, $content);
                        $content['win1']   = $WIN1;
                        $content['win2']   = $WIN2;
                        $content['cnt']    = $cnt;
 
                        // Load template and add it
                        $OUT .= loadTemplate('admin_list_bonus_rows', true, $content);
-                       $SW = 3 - $SW; $cnt++;
+                       $cnt++;
                } // END - while
 
                $content['rows']  = $OUT;
                } // END - while
 
                $content['rows']  = $OUT;
index d8ba7c066790881808c14df4b833225d4a286aad..9659b0bde857366690c6c72b48b666a91d99d460 100644 (file)
@@ -62,7 +62,7 @@ if (isGetRequestParameterSet('userid')) {
 
                if (SQL_NUMROWS($result_cats) > 0) {
                        // List categories
 
                if (SQL_NUMROWS($result_cats) > 0) {
                        // List categories
-                       $cnt = 1; $OUT = ''; $SW = 2;
+                       $cnt = 1; $OUT = '';
                        while ($row = SQL_FETCHARRAY($result_cats)) {
                                // Merge both arrays
                                $content = merge_array($content, $row);
                        while ($row = SQL_FETCHARRAY($result_cats)) {
                                // Merge both arrays
                                $content = merge_array($content, $row);
@@ -77,13 +77,12 @@ if (isGetRequestParameterSet('userid')) {
                                if (SQL_NUMROWS($result_user) == 1) $selection = '<font color="#00ee00">{--YES--}</div>';
 
                                // Add more elements
                                if (SQL_NUMROWS($result_user) == 1) $selection = '<font color="#00ee00">{--YES--}</div>';
 
                                // Add more elements
-                               $content['sw']  = $SW;
                                $content['cnt'] = $cnt;
                                $content['sel'] = $selection;
 
                                $content['cnt'] = $cnt;
                                $content['sel'] = $selection;
 
-                               // Load row template and switch colors + count up
+                               // Load row template and count up
                                $OUT .= loadTemplate('admin_list_cats_row', true, $content);
                                $OUT .= loadTemplate('admin_list_cats_row', true, $content);
-                               $SW = 3 - $SW; $cnt++;
+                               $cnt++;
                        } // END - while
 
                        // Free memory
                        } // END - while
 
                        // Free memory
index f7c4fd16a7a080b2d88839ea9433d81ec81873ac..fe0e6b9ee7d0e9265389e724ce57c4499c2a144c 100644 (file)
@@ -101,7 +101,7 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('code')) && (isPostRequest
                }
 
                // Edit all selected country codes
                }
 
                // Edit all selected country codes
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                foreach (postRequestParameter('id') as $id => $status) {
                        // Load data from DB
                        $result = SQL_QUERY_ESC("SELECT code, descr FROM `{?_MYSQL_PREFIX?}_countries` WHERE `id`=%s LIMIT 1",
                foreach (postRequestParameter('id') as $id => $status) {
                        // Load data from DB
                        $result = SQL_QUERY_ESC("SELECT code, descr FROM `{?_MYSQL_PREFIX?}_countries` WHERE `id`=%s LIMIT 1",
@@ -116,7 +116,6 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('code')) && (isPostRequest
                                        'id'    => $id,
                                        'code'  => $code,
                                        'descr' => $descr,
                                        'id'    => $id,
                                        'code'  => $code,
                                        'descr' => $descr,
-                                       'sw'    => $SW,
                                );
 
                                if ($post == 'modify') {
                                );
 
                                if ($post == 'modify') {
@@ -129,9 +128,8 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('code')) && (isPostRequest
 
                                // Insert row template and switch color
                                $OUT .= loadTemplate($row, true, $content);
 
                                // Insert row template and switch color
                                $OUT .= loadTemplate($row, true, $content);
-                               $SW = 3 - $SW;
-                       }
-               }
+                       } // END - if
+               } // END - foreach
 
                // Prepare content for template
                $content = array(
 
                // Prepare content for template
                $content = array(
@@ -179,16 +177,14 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('code')) && (isPostRequest
        __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List all countries
        __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List all countries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the template
                        $content['active'] = translateYesNo($content['is_active']);
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the template
                        $content['active'] = translateYesNo($content['is_active']);
-                       $content['sw']     = $SW;
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_list_country_row', true, $content);
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_list_country_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
 
                // Free memory
                SQL_FREERESULT($result);
 
                // Free memory
                SQL_FREERESULT($result);
index 414c89f6b09e26c5d4fbc0c4ab8695b4332bb0ae..b6573bb1dd6872fa60dc75dda0497d6ecb899580 100644 (file)
@@ -59,11 +59,10 @@ ORDER BY
 
 if (SQL_NUMROWS($result) > 0) {
        // List all holiday requests
 
 if (SQL_NUMROWS($result) > 0) {
        // List all holiday requests
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
                $content = array(
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
                $content = array(
-                       'sw'          => $SW,
                        'id'          => $content['id'],
                        'userid'      => $content['userid'],
                        'start'       => generateDateTime($content['holiday_start'], 3),
                        'id'          => $content['id'],
                        'userid'      => $content['userid'],
                        'start'       => generateDateTime($content['holiday_start'], 3),
@@ -75,7 +74,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_list_holiday_row', true, $content);
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_list_holiday_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Free memory
        } // END - while
 
        // Free memory
index bbdfcd450a1691943cdad58d07c4d68f455b239d..3d375c350fd9746650ab1a8576a31ac1721264c6 100644 (file)
@@ -83,7 +83,7 @@ if (isGetRequestParameterSet('userid')) {
                                loadTemplate('admin_settings_saved', false, '{--ADMIN_LINKS_DELETED--}');
                        } else {
                                // Init variables
                                loadTemplate('admin_settings_saved', false, '{--ADMIN_LINKS_DELETED--}');
                        } else {
                                // Init variables
-                               $OUT = ''; $SW = 2;
+                               $OUT = '';
 
                                // List all unconfirmed mails
                                // @TODO Find a way to rewrite this. See some lines above for different queries
 
                                // List all unconfirmed mails
                                // @TODO Find a way to rewrite this. See some lines above for different queries
@@ -126,7 +126,6 @@ if (isGetRequestParameterSet('userid')) {
 
                                                // Prepare data for the row template
                                                $content = array(
 
                                                // Prepare data for the row template
                                                $content = array(
-                                                       'sw'        => $SW,
                                                        'link'      => $LINK,
                                                        'subject'   => $content['subject'],
                                                        'timestamp' => generateDateTime($content['timestamp'], 0),
                                                        'link'      => $LINK,
                                                        'subject'   => $content['subject'],
                                                        'timestamp' => generateDateTime($content['timestamp'], 0),
@@ -139,15 +138,13 @@ if (isGetRequestParameterSet('userid')) {
                                                // Load template for error
                                                $OUT .= loadTemplate('admin_list_links_problem', true,
                                                        array(
                                                // Load template for error
                                                $OUT .= loadTemplate('admin_list_links_problem', true,
                                                        array(
-                                                               'sw'            => $SW,
                                                                'problem'       => $PROBLEM,
                                                                'data'          => $DATA
                                                        )
                                                );
                                        }
 
                                                                'problem'       => $PROBLEM,
                                                                'data'          => $DATA
                                                        )
                                                );
                                        }
 
-                                       // Switch color and free result
-                                       $SW = 3 - $SW;
+                                       // Free result
                                        SQL_FREERESULT($result_data);
                                } // END - while
 
                                        SQL_FREERESULT($result_data);
                                } // END - while
 
index dfc1bdaf221e97e6ab87d49bfafb1f54aec07aa9..b37aee521166f8ad848bc2a0ca275752e44ae5f8 100644 (file)
@@ -106,11 +106,8 @@ ORDER BY
        // Do we have entries?
        if ($rows > 0) {
                // List all entries
        // Do we have entries?
        if ($rows > 0) {
                // List all entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($row = SQL_FETCHARRAY($result)) {
                while ($row = SQL_FETCHARRAY($result)) {
-                       // Add color switching
-                       $row['sw'] = $SW;
-
                        // Add it to network if the type matches selected
                        if ($row['network_type_id'] == getRequestParameter('network_type_id')) {
                                // Matches, then add it for disabling this entry
                        // Add it to network if the type matches selected
                        if ($row['network_type_id'] == getRequestParameter('network_type_id')) {
                                // Matches, then add it for disabling this entry
@@ -119,7 +116,6 @@ ORDER BY
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_array_translation_row', true, $row);
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_array_translation_row', true, $row);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Prepare data for template
                } // END - while
 
                // Prepare data for template
index a09cae196ea70d96ee498d3021c963647f6e6fb5..5946800572487e30b88fee9da764c01222dccd7c 100644 (file)
@@ -100,11 +100,8 @@ ORDER BY
        // Do we have entries?
        if (SQL_NUMROWS($result) > 0) {
                // List all entries
        // Do we have entries?
        if (SQL_NUMROWS($result) > 0) {
                // List all entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($row = SQL_FETCHARRAY($result)) {
                while ($row = SQL_FETCHARRAY($result)) {
-                       // Add color switching
-                       $row['sw'] = $SW;
-
                        // Add it to network if the type matches selected
                        if ($row['network_type_id'] == postRequestParameter('network_type_id')) {
                                // Matches, then add it for disabling this entry
                        // Add it to network if the type matches selected
                        if ($row['network_type_id'] == postRequestParameter('network_type_id')) {
                                // Matches, then add it for disabling this entry
@@ -116,7 +113,6 @@ ORDER BY
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_params_row', true, $row);
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_params_row', true, $row);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Prepare data for template
                } // END - while
 
                // Prepare data for template
index cd5edd079db91a0212e9cd3c6149f62799dfa0d3..d5a0dc7f08b70464e5084071bafed9008f0d2622 100644 (file)
@@ -85,11 +85,8 @@ ORDER BY
        // Do we have entries?
        if ($rows > 0) {
                // List all entries
        // Do we have entries?
        if ($rows > 0) {
                // List all entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($row = SQL_FETCHARRAY($result)) {
                while ($row = SQL_FETCHARRAY($result)) {
-                       // Add color switching
-                       $row['sw'] = $SW;
-
                        // Add it to network if the type matches selected
                        if ($row['network_type_id'] == getRequestParameter('network_type_id')) {
                                // Matches, then add it for disabling this entry
                        // Add it to network if the type matches selected
                        if ($row['network_type_id'] == getRequestParameter('network_type_id')) {
                                // Matches, then add it for disabling this entry
@@ -98,7 +95,6 @@ ORDER BY
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_translations_row', true, $row);
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_translations_row', true, $row);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Prepare data for template
                } // END - while
 
                // Prepare data for template
index c5a01a4b2998a8526e54c31c60e83b2594f52abe..c6ca40c374b3541728a0a1055c50eb60586746c7 100644 (file)
@@ -85,10 +85,9 @@ ORDER BY
        // Do we have entries?
        if (SQL_NUMROWS($result) > 0) {
                // List all entries
        // Do we have entries?
        if (SQL_NUMROWS($result) > 0) {
                // List all entries
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($row = SQL_FETCHARRAY($result)) {
                        // Add/translate some data
                while ($row = SQL_FETCHARRAY($result)) {
                        // Add/translate some data
-                       $row['sw'] = $SW;
                        $row['network_type_banner_url'] = fixNullEmptyToDashes($row['network_type_banner_url'], 3);
 
                        // Set disabled entry
                        $row['network_type_banner_url'] = fixNullEmptyToDashes($row['network_type_banner_url'], 3);
 
                        // Set disabled entry
@@ -96,7 +95,6 @@ ORDER BY
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_types_row', true, $row);
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_types_row', true, $row);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Prepare data for template
                } // END - while
 
                // Prepare data for template
index 2d931e8944e44165d9255dc32163d70bc1c41ed9..62123ad33c6d1dbd281c4ba5548655a05830d5df 100644 (file)
@@ -74,16 +74,10 @@ ORDER BY
 // Do we have entries?
 if (SQL_NUMROWS($result) > 0) {
        // List all
 // Do we have entries?
 if (SQL_NUMROWS($result) > 0) {
        // List all
-       $SW = 2; $OUT = '';
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
        while ($content = SQL_FETCHARRAY($result)) {
-               // Add color switching
-               $content['sw'] = $SW;
-
                // Load row template
                $OUT .= loadTemplate('admin_list_networks_row', true, $content);
                // Load row template
                $OUT .= loadTemplate('admin_list_networks_row', true, $content);
-
-               // Switch color
-               $SW = 3 - $SW;
        } // END - while
 
        // Load main template
        } // END - while
 
        // Load main template
index 23f72e3068a174d93c91a36e89f1ea0f97d6e375..2f5d98b20bcc337a457ffc599dd608d9e37e381f 100644 (file)
@@ -235,7 +235,7 @@ ORDER BY
 
        if (SQL_NUMROWS($result) > 0) {
                // List found payouts
 
        if (SQL_NUMROWS($result) > 0) {
                // List found payouts
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        if ($content['status'] == 'NEW') {
                                // Generate links for direct accepting and rejecting
                while ($content = SQL_FETCHARRAY($result)) {
                        if ($content['status'] == 'NEW') {
                                // Generate links for direct accepting and rejecting
@@ -262,12 +262,10 @@ ORDER BY
                        } // END - if
 
                        // Add/Translate some data
                        } // END - if
 
                        // Add/Translate some data
-                       $content['sw']               = $SW;
                        $content['payout_timestamp'] = generateDateTime($content['payout_timestamp'], 2);
 
                        // Add row and switch color
                        $OUT .= loadTemplate('admin_list_payouts_row', true, $content);
                        $content['payout_timestamp'] = generateDateTime($content['payout_timestamp'], 2);
 
                        // Add row and switch color
                        $OUT .= loadTemplate('admin_list_payouts_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index 1d9c0373d42d35eca394dc3c7b61b5601034d0d8..b49af4ed8b08773e9a22ca15eec7c7897667f033 100644 (file)
@@ -58,10 +58,9 @@ ORDER BY
 // Are there some entries to display?
 if (SQL_NUMROWS($result) > 0) {
        // List all entries
 // Are there some entries to display?
 if (SQL_NUMROWS($result) > 0) {
        // List all entries
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Translate some data and add color
        while ($content = SQL_FETCHARRAY($result)) {
                // Translate some data and add color
-               $content['sw']                = $SW;
                $content['primera_timestamp'] = generateDateTime($content['primera_timestamp'], 2);
 
                // Fix empty message and status
                $content['primera_timestamp'] = generateDateTime($content['primera_timestamp'], 2);
 
                // Fix empty message and status
@@ -69,7 +68,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Append it and switch colors
                $OUT .= loadTemplate('admin_list_primera_row', true, $content);
 
                // Append it and switch colors
                $OUT .= loadTemplate('admin_list_primera_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Load main template
        } // END - while
 
        // Load main template
index 509f6d23f62360976630a5bff4b1f128fbf8a3d3..76bdd3eb3342351ad24dc1b6f6c44eae181ce528 100644 (file)
@@ -181,7 +181,7 @@ if (isFormSent('edit')) {
        // Check for selections
        if (countPostSelection() > 0) {
                // Make all selected and deactivated rallyes editable
        // Check for selections
        if (countPostSelection() > 0) {
                // Make all selected and deactivated rallyes editable
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                foreach (postRequestParameter('sel') as $id => $selected) {
                        // Load rallye basic data
                        $result = SQL_QUERY_ESC("SELECT
                foreach (postRequestParameter('sel') as $id => $selected) {
                        // Load rallye basic data
                        $result = SQL_QUERY_ESC("SELECT
@@ -216,14 +216,10 @@ LIMIT 1",
 
                        // Remember other values
                        $content['templ']      = addReferalRallyeTemplateSelection('templ['.$id.']', $content['template']);
 
                        // Remember other values
                        $content['templ']      = addReferalRallyeTemplateSelection('templ['.$id.']', $content['template']);
-                       $content['sw']         = $SW;
                        $content['id']         = $id;
 
                        // Output row
                        $OUT .= loadTemplate('admin_edit_rallyes_row', true, $content);
                        $content['id']         = $id;
 
                        // Output row
                        $OUT .= loadTemplate('admin_edit_rallyes_row', true, $content);
-
-                       // Color switching
-                       $SW = 3 - $SW;
                } // END - foreach
 
                // Load final template
                } // END - foreach
 
                // Load final template
@@ -244,7 +240,7 @@ ORDER BY
        `userid` ASC",
                array(bigintval(getRequestParameter('rallye'))), __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
        `userid` ASC",
                array(bigintval(getRequestParameter('rallye'))), __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                $content['rallye'] = getRequestParameter('rallye');
                while ($row = SQL_FETCHARRAY($result)) {
                        // Check for referal count
                $content['rallye'] = getRequestParameter('rallye');
                while ($row = SQL_FETCHARRAY($result)) {
                        // Check for referal count
@@ -263,7 +259,6 @@ ORDER BY
 
                        // Prepare content
                        $row = array(
 
                        // Prepare content
                        $row = array(
-                               'sw'      => $SW ,
                                'userid'  => $row['userid'],
                                'bold_l'  => $bl ,
                                'bold_r'  => $br ,
                                'userid'  => $row['userid'],
                                'bold_l'  => $bl ,
                                'bold_r'  => $br ,
@@ -274,7 +269,6 @@ ORDER BY
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_list_rallye_usr_row', true, $row);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_list_rallye_usr_row', true, $row);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Remember rows
                } // END - while
 
                // Remember rows
@@ -303,7 +297,7 @@ ORDER BY
        // Records found?
        if (SQL_NUMROWS($result) > 0) {
                // List found rallyes
        // Records found?
        if (SQL_NUMROWS($result) > 0) {
                // List found rallyes
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($data = SQL_FETCHARRAY($result)) {
                        // Load admin login
                        $data['login'] = getAdminLogin($data['admin_id']);
                while ($data = SQL_FETCHARRAY($result)) {
                        // Load admin login
                        $data['login'] = getAdminLogin($data['admin_id']);
@@ -326,7 +320,6 @@ ORDER BY
                                'admin_id'          => $data['admin_id'],
                                'login'             => $data['login'],
                                'id'                => $data['id'],
                                'admin_id'          => $data['admin_id'],
                                'login'             => $data['login'],
                                'id'                => $data['id'],
-                               'sw'                => $SW,
                                'title'             => $data['title'],
                                'template'          => $data['template'],
                                'users_content'     => $users,
                                'title'             => $data['title'],
                                'template'          => $data['template'],
                                'users_content'     => $users,
@@ -385,7 +378,6 @@ ORDER BY
 
                        // Output row
                        $OUT .= loadTemplate('admin_list_rallyes_row', true, $row);
 
                        // Output row
                        $OUT .= loadTemplate('admin_list_rallyes_row', true, $row);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index 227f507f8390b55445baba0e8b69b47c67b5b582..70ab759ac238221f8cb8641b92279d1365e1f122 100644 (file)
@@ -75,11 +75,8 @@ ORDER BY
                // Are there some levels (VERY BAD IF NONE!)
                if (SQL_NUMROWS($result_levels) > 0) {
                        // List all ref levels or entries if no refback is installed
                // Are there some levels (VERY BAD IF NONE!)
                if (SQL_NUMROWS($result_levels) > 0) {
                        // List all ref levels or entries if no refback is installed
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        while ($levels = SQL_FETCHARRAY($result_levels)) {
                        while ($levels = SQL_FETCHARRAY($result_levels)) {
-                               // Insert more data
-                               $levels['sw']    = $SW;
-
                                // Is the refback still active? ;-)
                                if (isExtensionActive('refback')) {
                                        // Load all refs of this user
                                // Is the refback still active? ;-)
                                if (isExtensionActive('refback')) {
                                        // Load all refs of this user
@@ -97,7 +94,7 @@ ORDER BY
                                                $levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink($userid), $menge, $menge_lck);
 
                                                // Init variables
                                                $levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink($userid), $menge, $menge_lck);
 
                                                // Init variables
-                                               $OUT_REFS = ''; $SW = 2;
+                                               $OUT_REFS = '';
 
                                                // Load all refs
                                                while ($content = SQL_FETCHARRAY($result_refs)) {
 
                                                // Load all refs
                                                while ($content = SQL_FETCHARRAY($result_refs)) {
@@ -109,7 +106,6 @@ ORDER BY
                                                                // Prepare data for the template
                                                                // @TODO Try to rewrite some to EL
                                                                $content = array(
                                                                // Prepare data for the template
                                                                // @TODO Try to rewrite some to EL
                                                                $content = array(
-                                                                       'sw'         => $SW,
                                                                        'userid'     => getUserData('userid'),
                                                                        'gender'     => getUserData('gender'),
                                                                        'refs_link'  => 0,
                                                                        'userid'     => getUserData('userid'),
                                                                        'gender'     => getUserData('gender'),
                                                                        'refs_link'  => 0,
@@ -132,9 +128,6 @@ ORDER BY
 
                                                        // Add content
                                                        $levels['rows'] = $OUT_REFS;
 
                                                        // Add content
                                                        $levels['rows'] = $OUT_REFS;
-
-                                                       // Switch colors
-                                                       $SW = 3 - $SW;
                                                } // END - while
                                        } else {
                                                // Output info message
                                                } // END - while
                                        } else {
                                                // Output info message
@@ -155,7 +148,6 @@ ORDER BY
 
                                        // Prepare data for the template
                                        $content = array(
 
                                        // Prepare data for the template
                                        $content = array(
-                                               'sw'         => $SW,
                                                'userid'     => $levels['userid'],
                                                'gender'     => $levels['gender'],
                                                'refs_link'  => 0,
                                                'userid'     => $levels['userid'],
                                                'gender'     => $levels['gender'],
                                                'refs_link'  => 0,
@@ -171,9 +163,6 @@ ORDER BY
 
                                        // Load template for level one
                                        $OUT .= loadTemplate('admin_list_refs_row', true, $content);
 
                                        // Load template for level one
                                        $OUT .= loadTemplate('admin_list_refs_row', true, $content);
-
-                                       // Switch colors
-                                       $SW = 3 - $SW;
                                }
                        } // END - while
 
                                }
                        } // END - while
 
index 72559cd0692078b9832d9ae892f5f93d27fc110b..7a32072205f7bf817be500aa38423e4acea838c1 100644 (file)
@@ -131,12 +131,11 @@ ORDER BY
 
        if (SQL_NUMROWS($result_main) > 0) {
                // At least one sponsor found!
 
        if (SQL_NUMROWS($result_main) > 0) {
                // At least one sponsor found!
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Transfer data to array
                        $content = array(
                                'id'              => $content['id'],
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Transfer data to array
                        $content = array(
                                'id'              => $content['id'],
-                               'sw'              => $SW,
                                'gender'          => $content['gender'],
                                'surname'         => $content['surname'],
                                'family'          => $content['family'],
                                'gender'          => $content['gender'],
                                'surname'         => $content['surname'],
                                'family'          => $content['family'],
@@ -150,8 +149,7 @@ ORDER BY
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_sponsor_row', true, $content);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_sponsor_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
 
                // Free memory
                SQL_FREERESULT($result_main);
 
                // Free memory
                SQL_FREERESULT($result_main);
index b4636b937b3d8aa6e3cd204060f4efcb5bd72187..3709b0f646a7ed18cc7bef52c5b7e77236ba2d5e 100644 (file)
@@ -139,7 +139,7 @@ if (isFormSent('add')) {
        loadTemplate('admin_settings_saved', false, $message);
 } elseif ((isFormSent('edit')) || (isFormSent('del'))) {
        // Load all data
        loadTemplate('admin_settings_saved', false, $message);
 } elseif ((isFormSent('edit')) || (isFormSent('del'))) {
        // Load all data
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('id') as $id => $sel) {
                // Load entry
                $result = SQL_QUERY_ESC("SELECT `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` WHERE `id`='%s' LIMIT 1",
        foreach (postRequestParameter('id') as $id => $sel) {
                // Load entry
                $result = SQL_QUERY_ESC("SELECT `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` WHERE `id`='%s' LIMIT 1",
@@ -152,7 +152,6 @@ if (isFormSent('add')) {
                        // Transfer data to array
                        $content = array(
                                'id'   => bigintval($id),
                        // Transfer data to array
                        $content = array(
                                'id'   => bigintval($id),
-                               'sw'   => bigintval($SW),
                                'name' => htmlspecialchars($name),
                                'rate' => translateComma($rate),
                                'min'  => bigintval($min),
                                'name' => htmlspecialchars($name),
                                'rate' => translateComma($rate),
                                'min'  => bigintval($min),
@@ -170,9 +169,6 @@ if (isFormSent('add')) {
                        // Entry invalid
                        $OUT .= loadTemplate('admin_list_sponsor_pay_404', true, $id);
                }
                        // Entry invalid
                        $OUT .= loadTemplate('admin_list_sponsor_pay_404', true, $id);
                }
-
-               // Switch colors
-               $SW = 3 - $SW;
        } // END - foreach
 
        // Load main template depending on mode (edit/delete)
        } // END - foreach
 
        // Load main template depending on mode (edit/delete)
@@ -196,13 +192,12 @@ ORDER BY
        // Do we have some paytypes setup?
        if (SQL_NUMROWS($result) > 0) {
                // Prepare variables for listing
        // Do we have some paytypes setup?
        if (SQL_NUMROWS($result) > 0) {
                // Prepare variables for listing
-               $OUT = ''; $SW = 2;
+               $OUT = '';
 
                // List alle found payment types
                while ($content = SQL_FETCHARRAY($result)) {
                        // Remember data in array
                        $content = array(
 
                // List alle found payment types
                while ($content = SQL_FETCHARRAY($result)) {
                        // Remember data in array
                        $content = array(
-                               'sw'       => $SW,
                                'id'       => $content['id'],
                                'name'     => $content['pay_name'],
                                'rate'     => translateComma($content['pay_rate']),
                                'id'       => $content['id'],
                                'name'     => $content['pay_name'],
                                'rate'     => translateComma($content['pay_rate']),
@@ -212,9 +207,6 @@ ORDER BY
 
                        // Add row
                        $OUT .= loadTemplate('admin_list_sponsor_pay_row', true, $content);
 
                        // Add row
                        $OUT .= loadTemplate('admin_list_sponsor_pay_row', true, $content);
-
-                       // Switch colors
-                       $SW = 3 - $SW;
                } // END - while
 
                // Load list template
                } // END - while
 
                // Load list template
index c2908405e1a1ca5cd872eb707250fc01ffd26b56..3c9061ad4000ab2f7ebdf60321ed3d3ff859bcff 100644 (file)
@@ -60,7 +60,7 @@ ORDER BY
 // Entries found?
 if (SQL_NUMROWS($result) > 0) {
        // List all entries
 // Entries found?
 if (SQL_NUMROWS($result) > 0) {
        // List all entries
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // "Translate" some data
                $content['actions_action'] = getMessage(sprintf("MEMBER_SURFBAR_ACTION_%s_SUBMIT", $content['actions_action']));
        while ($content = SQL_FETCHARRAY($result)) {
                // "Translate" some data
                $content['actions_action'] = getMessage(sprintf("MEMBER_SURFBAR_ACTION_%s_SUBMIT", $content['actions_action']));
@@ -74,14 +74,8 @@ if (SQL_NUMROWS($result) > 0) {
                        $content['actions_new_status'] = '{--SURFBAR_URL_STATUS_NONE--}';
                }
 
                        $content['actions_new_status'] = '{--SURFBAR_URL_STATUS_NONE--}';
                }
 
-               // Add color
-               $content['sw'] = $SW;
-
                // Load row template
                $OUT .= loadTemplate('admin_list_surfbar_actions_row', true, $content);
                // Load row template
                $OUT .= loadTemplate('admin_list_surfbar_actions_row', true, $content);
-
-               // Switch color
-               $SW = 3 - $SW;
        } // END - while
 
        // Load main template
        } // END - while
 
        // Load main template
index ed361f788654b74bab658b144cc5579b27412faf..105a80be10408af072a8072f97309cdce8c5ce46 100644 (file)
@@ -177,18 +177,14 @@ ORDER BY
 // Do we have some URLs left?
 if (SQL_NUMROWS($result) > 0) {
        // List all URLs
 // Do we have some URLs left?
 if (SQL_NUMROWS($result) > 0) {
        // List all URLs
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // "Translate"/add content
        while ($content = SQL_FETCHARRAY($result)) {
                // "Translate"/add content
-               $content['sw']              = $SW;
                $content['url_registered']  = generateDateTime($content['url_registered'], 2);
                $content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2);
 
                // Load row template
                $OUT .= loadTemplate('admin_list_surfbar_urls_row', true, $content);
                $content['url_registered']  = generateDateTime($content['url_registered'], 2);
                $content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2);
 
                // Load row template
                $OUT .= loadTemplate('admin_list_surfbar_urls_row', true, $content);
-
-               // Switch color
-               $SW = 3 - $SW;
        } // END - while
 
        // Load main template
        } // END - while
 
        // Load main template
index f487a432a2bb08bee05c4afdcf36a62f112dbd0e..32469cadf7009c8958ed780c8b0bc9896666c738 100644 (file)
@@ -142,7 +142,7 @@ ORDER BY
                }
 
                // There are uncompleted jobs!
                }
 
                // There are uncompleted jobs!
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result_tasks)) {
                        // Init infos
                        $content['infos'] = '';
                while ($content = SQL_FETCHARRAY($result_tasks)) {
                        // Init infos
                        $content['infos'] = '';
@@ -169,7 +169,6 @@ ORDER BY
 
                        // Prepare content
                        $content = merge_array($content, array(
 
                        // Prepare content
                        $content = merge_array($content, array(
-                               'sw'            => $SW,
                                'assign_admin'  => $content['assigned_admin'],
                                'userid'        => $content['userid'],
                                'task_type_msg' => $content['task_type_msg'],
                                'assign_admin'  => $content['assigned_admin'],
                                'userid'        => $content['userid'],
                                'task_type_msg' => $content['task_type_msg'],
@@ -184,9 +183,6 @@ ORDER BY
                                // Load default row template
                                $OUT .= loadTemplate('admin_list_task_rows', true, $content);
                        }
                                // Load default row template
                                $OUT .= loadTemplate('admin_list_task_rows', true, $content);
                        }
-
-                       // Switch colors
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index fe7fea5f0a8d7fadb7d70f8e432c3e2a38738855..a66c6acfd20b9ea331d4ce075bec1308e481c66e 100644 (file)
@@ -56,16 +56,15 @@ ORDER BY
 $total = '0';
 if (SQL_NUMROWS($result) > 0) {
        // Output rows
 $total = '0';
 if (SQL_NUMROWS($result) > 0) {
        // Output rows
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
-               $content['sw']          = $SW;
                $content['time_trans']  = generateDateTime($content['time_trans'], 3);
                $content['reason']      = wordwrap($content['reason'], 15);
 
                // Load row template add points and switch color
                $OUT .= loadTemplate('admin_list_transfer_row', true, $content);
                $content['time_trans']  = generateDateTime($content['time_trans'], 3);
                $content['reason']      = wordwrap($content['reason'], 15);
 
                // Load row template add points and switch color
                $OUT .= loadTemplate('admin_list_transfer_row', true, $content);
-               $total += $content['points']; $SW = 3 - $SW;
+               $total += $content['points'];
        } // END - while
 
        // Free memory
        } // END - while
 
        // Free memory
index 0887f450cde89cbf883d116cdb2b9ae8f77484c8..9ef88e563553176ffc2be97e1b7978411ed88b5b 100644 (file)
@@ -131,13 +131,12 @@ LIMIT %s",
 
                if ($unconfirmed > 0) {
                        // At least one link left to confirm
 
                if ($unconfirmed > 0) {
                        // At least one link left to confirm
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        while ($content = SQL_FETCHARRAY($result)) {
                                // User data found? We can take any field of u.
                                if (!is_null($content['status'])) {
                                        // Prepare data for the row template
                                        $content = array(
                        while ($content = SQL_FETCHARRAY($result)) {
                                // User data found? We can take any field of u.
                                if (!is_null($content['status'])) {
                                        // Prepare data for the row template
                                        $content = array(
-                                               'sw'     => $SW,
                                                'userid' => $content['userid'],
                                                'link'   => $LINK,
                                                'id'     => $ID,
                                                'userid' => $content['userid'],
                                                'link'   => $LINK,
                                                'id'     => $ID,
@@ -148,15 +147,9 @@ LIMIT %s",
                                        // Load row template and switch colors
                                        $OUT .= loadTemplate('admin_list_unconfirmed_row', true, $content);
                                } else {
                                        // Load row template and switch colors
                                        $OUT .= loadTemplate('admin_list_unconfirmed_row', true, $content);
                                } else {
-                                       // Insert color-switch
-                                       $content['sw'] = $SW;
-
                                        // No user data found
                                        $OUT .= loadTemplate('admin_list_unconfirmed_row_404', true, $content);
                                }
                                        // No user data found
                                        $OUT .= loadTemplate('admin_list_unconfirmed_row_404', true, $content);
                                }
-
-                               // Switch color
-                               $SW = 3 - $SW;
                        } // END - while
 
                        // Render it in our new listing
                        } // END - while
 
                        // Render it in our new listing
index 3697eb485fe093da2b6bba0916c5a6d49fb68550..3bd4aabdd964e5e4cb0e9bb8c814c7caf1e8ff7e 100644 (file)
@@ -86,9 +86,9 @@ if (isExtensionActive('country')) {
 }
 
 // Init unset data
 }
 
 // Init unset data
-if (!isGetRequestParameterSet('letter')) { setGetRequestParameter('letter', '{--_ALL2--}'); }
-if (!isGetRequestParameterSet('sortby')) { setGetRequestParameter('sortby', 'userid');            }
-if (!isGetRequestParameterSet('page'))   { setGetRequestParameter('page'  , 1);                 }
+if (!isGetRequestParameterSet('letter')) { setGetRequestParameter('letter', '');       }
+if (!isGetRequestParameterSet('sortby')) { setGetRequestParameter('sortby', 'userid'); }
+if (!isGetRequestParameterSet('page'))   { setGetRequestParameter('page'  , 1);        }
 
 // Set base URL
 $base = '[<a href="{%url=modules.php?module=admin';
 
 // Set base URL
 $base = '[<a href="{%url=modules.php?module=admin';
@@ -180,9 +180,9 @@ LIMIT 1",
        SQL_FREERESULT($result_user);
 } else {
        $whereStatement = '';
        SQL_FREERESULT($result_user);
 } else {
        $whereStatement = '';
-       if ((getRequestParameter('letter') != getMessage('_ALL2')) && (getRequestParameter('letter') != getMessage('_OTHERS')) && (isGetRequestParameterSet('letter'))) {
+       if (isGetRequestParameterSet('letter')) {
                // List only persons w
                // List only persons w
-               $whereStatement = " WHERE `family` LIKE '".getRequestParameter('letter') . "%'";
+               $whereStatement = " WHERE `family` LIKE '".getRequestParameter('letter') . "%%'";
        } // END - if
 
        // Parse the status or mode parameter
        } // END - if
 
        // Parse the status or mode parameter
@@ -262,7 +262,7 @@ LIMIT 1",
                } // END - if
 
                // Load all users
                } // END - if
 
                // Load all users
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Merge more data in
                        $content = merge_array($content, $templateContent);
                while ($content = SQL_FETCHARRAY($result)) {
                        // Merge more data in
                        $content = merge_array($content, $templateContent);
@@ -288,7 +288,6 @@ LIMIT 1",
                        } // END - if
 
                        // Transfer data to array
                        } // END - if
 
                        // Transfer data to array
-                       $content['sw']             = $SW;
                        $content['email']          = '[<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . $content['email'] . '</a>]';
                        $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2);
                        $content['refs']           = countSumTotalData($content['userid'], 'user_refs', 'id', 'userid', true);
                        $content['email']          = '[<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . $content['email'] . '</a>]';
                        $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2);
                        $content['refs']           = countSumTotalData($content['userid'], 'user_refs', 'id', 'userid', true);
@@ -309,7 +308,6 @@ LIMIT 1",
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_list_user_row', true, $content);
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_list_user_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index e87ab05c0f8e85b13d2d379428b4c1ca2a41d1fd..418e8c11e5386f1176fcc169e732124ecd7cf8cb 100644 (file)
@@ -58,10 +58,9 @@ ORDER BY
 // Are there some entries to display?
 if (SQL_NUMROWS($result) > 0) {
        // List all entries
 // Are there some entries to display?
 if (SQL_NUMROWS($result) > 0) {
        // List all entries
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Translate some data and add color
        while ($content = SQL_FETCHARRAY($result)) {
                // Translate some data and add color
-               $content['sw']               = $SW;
                $content['wernis_timestamp'] = generateDateTime($content['wernis_timestamp'], 2);
 
                // Fix empty message and status
                $content['wernis_timestamp'] = generateDateTime($content['wernis_timestamp'], 2);
 
                // Fix empty message and status
@@ -69,8 +68,7 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Append it and switch colors
                $OUT .= loadTemplate('admin_list_wernis_row', true, $content);
 
                // Append it and switch colors
                $OUT .= loadTemplate('admin_list_wernis_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - while
 
        // Load main template
        loadTemplate('admin_list_wernis_main', false, $OUT);
 
        // Load main template
        loadTemplate('admin_list_wernis_main', false, $OUT);
index bc9a516af7f44e5e77812041d6b7ba0ffd610535..47f708b9f6eef302f8f8cbbc94be5465c9c84975 100644 (file)
@@ -95,11 +95,10 @@ if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id'])))
 }
 
 // Prepare all entries
 }
 
 // Prepare all entries
-$OUT = ''; $SW = 2;
+$OUT = '';
 foreach ($result as $entry) {
        // Translate some data
        $entry['pay']    = translateComma($entry['pay'], true, 5);
 foreach ($result as $entry) {
        // Translate some data
        $entry['pay']    = translateComma($entry['pay'], true, 5);
-       $entry['sw']     = $SW;
 
        // Check reload lock
        $reload = YOOMEDIA_CHECK_RELOAD($entry['id'], $entry['reload'], 'textmail');
 
        // Check reload lock
        $reload = YOOMEDIA_CHECK_RELOAD($entry['id'], $entry['reload'], 'textmail');
@@ -133,10 +132,7 @@ foreach ($result as $entry) {
                // Load row template with buttons
                $OUT .= loadTemplate('admin_list_yoomedia_tm_row', true, $entry);
        }
                // Load row template with buttons
                $OUT .= loadTemplate('admin_list_yoomedia_tm_row', true, $entry);
        }
-
-       // Switch color
-       $SW = 3 - $SW;
-} // END - if
+} // END - foreach
 
 // Load main template
 loadTemplate('admin_list_yoomedia_tm', false, $OUT);
 
 // Load main template
 loadTemplate('admin_list_yoomedia_tm', false, $OUT);
index 53a971aa63bb7040d349ffe3a0e7acb18497e06a..0349a74b3563586efb42342571885c8e262c75b0 100644 (file)
@@ -58,7 +58,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
        // Edit menu entries
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
        // Edit menu entries
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
-       $SW = 2; $cnt = '0'; $OUT = '';
+       $cnt = '0'; $OUT = '';
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -71,7 +71,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                                        'cnt'    => $cnt,
                                        'sel'    => $sel,
                                        'menu'   => $data['title'],
                                        'cnt'    => $cnt,
                                        'sel'    => $sel,
                                        'menu'   => $data['title'],
-                                       'sw'     => $SW,
                                        'act'    => adminAddMenuSelectionBox('member', 'act' , 'sel_act['  . $sel . ']', $data['action']),
                                        'what'   => adminAddMenuSelectionBox('member', 'what', 'sel_what[' . $sel . ']', $data['what']),
                                );
                                        'act'    => adminAddMenuSelectionBox('member', 'act' , 'sel_act['  . $sel . ']', $data['action']),
                                        'what'   => adminAddMenuSelectionBox('member', 'what', 'sel_what[' . $sel . ']', $data['what']),
                                );
@@ -81,7 +80,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                        } else {
                                // Entry not found?
                                $data = array(
                        } else {
                                // Entry not found?
                                $data = array(
-                                       'sw'  => $SW,
                                        'sel' => $sel
                                );
 
                                        'sel' => $sel
                                );
 
@@ -89,9 +87,10 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                                $OUT .= loadTemplate('admin_menu_404_row', true, $data);
                        }
                        SQL_FREERESULT($result);
                                $OUT .= loadTemplate('admin_menu_404_row', true, $data);
                        }
                        SQL_FREERESULT($result);
-                       $SW = 3 - $SW;
-               }
-       }
+               } // END - if
+       } // END - foreach
+
+       // Add row content and current counter
        $content['rows'] = $OUT;
        $content['cnt'] = $cnt;
 
        $content['rows'] = $OUT;
        $content['cnt'] = $cnt;
 
@@ -101,7 +100,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
        // Del menu entries with or without confirmation
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
        // Del menu entries with or without confirmation
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
-       $SW = 2; $cnt = '0'; $OUT = '';
+       $cnt = '0'; $OUT = '';
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -121,7 +120,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                        } else {
                                // Entry not found?
                                $content = array(
                        } else {
                                // Entry not found?
                                $content = array(
-                                       'sw'  => $SW,
                                        'sel' => $sel
                                );
 
                                        'sel' => $sel
                                );
 
@@ -140,7 +138,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
        // Change status (visible / locked)
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
        // Change status (visible / locked)
        $content['sub'] = $SUB;
        $content['chk'] = countPostSelection();
-       $SW = 2; $cnt = '0'; $OUT = '';
+       $cnt = '0'; $OUT = '';
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
        foreach (postRequestParameter('sel') as $sel => $confirm) {
                if ($confirm == 1) {
                        $cnt++;
@@ -153,7 +151,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                                        'cnt'     => $cnt,
                                        'menu'    => $data['title'],
                                        'sel'     => $sel,
                                        'cnt'     => $cnt,
                                        'menu'    => $data['title'],
                                        'sel'     => $sel,
-                                       'sw'      => $SW,
                                        'visible' => addSelectionBox('yn', $data['visible'], 'visible', $sel),
                                        'locked'  => addSelectionBox('yn', $data['locked'] , 'locked' , $sel),
                                );
                                        'visible' => addSelectionBox('yn', $data['visible'], 'visible', $sel),
                                        'locked'  => addSelectionBox('yn', $data['locked'] , 'locked' , $sel),
                                );
@@ -163,7 +160,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                        } else {
                                // Entry not found?
                                $data = array(
                        } else {
                                // Entry not found?
                                $data = array(
-                                       'sw'  => $SW,
                                        'sel' => $sel
                                );
 
                                        'sel' => $sel
                                );
 
@@ -171,7 +167,6 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                                $OUT .= loadTemplate('admin_menu_404_row', true, $data);
                        }
                        SQL_FREERESULT($result);
                                $OUT .= loadTemplate('admin_menu_404_row', true, $data);
                        }
                        SQL_FREERESULT($result);
-                       $SW = 3 - $SW;
                } // END - if
        } // END - foreach
        $content['rows'] = $OUT;
                } // END - if
        } // END - foreach
        $content['rows'] = $OUT;
@@ -264,7 +259,7 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                // Set sub value
                $content['sub'] = $SUB;
 
                // Set sub value
                $content['sub'] = $SUB;
 
-               $SW = 2; $cnt = '0'; $OUT = '';
+               $cnt = '0'; $OUT = '';
                while ($data = SQL_FETCHARRAY($result)) {
                        // Init navigation
                        $data['navi'] = '';
                while ($data = SQL_FETCHARRAY($result)) {
                        // Init navigation
                        $data['navi'] = '';
@@ -286,12 +281,10 @@ if ((isFormSent('edit')) && (countPostSelection() > 0) && (!isDemoModeActive()))
                        if (empty($data['title']))  $data['title']  = '&nbsp;';
 
                        // Add more entries
                        if (empty($data['title']))  $data['title']  = '&nbsp;';
 
                        // Add more entries
-                       $data['sw']   = $SW;
                        $data['mode'] = 'mem';
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_menu_overview_row', true, $data);
                        $data['mode'] = 'mem';
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_menu_overview_row', true, $data);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index cfdd26f694f6dc7317a8600f3a09b6f311d602cd..cbf68bdaebdfe534c45a473f3a031b2351eed7d5 100644 (file)
@@ -49,7 +49,7 @@ addMenuDescription('admin', __FILE__);
 $DATA = repairOptimizeDatabase();
 
 // Output rows
 $DATA = repairOptimizeDatabase();
 
 // Output rows
-$SW = 2; $gain_tabs = '0'; $OUT = '';
+$gain_tabs = '0'; $OUT = '';
 foreach ($DATA['tables'] as $row_array) {
        // Init variables
        $B1 = ''; $B2 = '';
 foreach ($DATA['tables'] as $row_array) {
        // Init variables
        $B1 = ''; $B2 = '';
@@ -72,7 +72,6 @@ foreach ($DATA['tables'] as $row_array) {
 
        // Prepare data for the row template
        $content = array(
 
        // Prepare data for the row template
        $content = array(
-               'sw'  => $SW,
                'b1'  => $B1,
                'b2'  => $B2,
                'tpl' => $row_array[0],
                'b1'  => $B1,
                'b2'  => $B2,
                'tpl' => $row_array[0],
@@ -84,7 +83,6 @@ foreach ($DATA['tables'] as $row_array) {
 
        // Load row template and switch color
        $OUT .= loadTemplate('admin_optimize_row', true, $content);
 
        // Load row template and switch color
        $OUT .= loadTemplate('admin_optimize_row', true, $content);
-       $SW = 3 - $SW;
 } // END - foreach
 
 // Remember rows
 } // END - foreach
 
 // Remember rows
index f61bf694f1684af704e189857c67cb7e3f6625f0..e5bf264a68f9f42945c946dd504861bb26b72afb 100644 (file)
@@ -91,7 +91,7 @@ if (isFormSent()) {
        loadTemplate('admin_settings_saved', false, $content);
 } elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
        // Delete entries here
        loadTemplate('admin_settings_saved', false, $content);
 } elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
        // Delete entries here
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
                $result = SQL_QUERY_ESC("SELECT time, mail_title FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
                array(bigintval($id)), __FILE__, __LINE__);
        foreach (postRequestParameter('sel') as $id => $value) {
                $result = SQL_QUERY_ESC("SELECT time, mail_title FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
                array(bigintval($id)), __FILE__, __LINE__);
@@ -100,7 +100,6 @@ if (isFormSent()) {
 
                // Prepare array for the row template
                $content = array(
 
                // Prepare array for the row template
                $content = array(
-                       'sw'    => $SW,
                        'id'    => $id,
                        'time'  => $time,
                        'title' => $title,
                        'id'    => $id,
                        'time'  => $time,
                        'title' => $title,
@@ -108,14 +107,13 @@ if (isFormSent()) {
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_del_payments_row', true, $content);
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_del_payments_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - foreach
 
        // Load main template
        loadTemplate('admin_del_payments', false, $OUT);
 } elseif ((isFormSent('edit')) && (countPostSelection() > 0)) {
        // Edit entries
 
        // Load main template
        loadTemplate('admin_del_payments', false, $OUT);
 } elseif ((isFormSent('edit')) && (countPostSelection() > 0)) {
        // Edit entries
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach (postRequestParameter('sel') as $id => $value) {
                $result = SQL_QUERY_ESC("SELECT time, payment, mail_title, price FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
                array(bigintval($id)), __FILE__, __LINE__);
        foreach (postRequestParameter('sel') as $id => $value) {
                $result = SQL_QUERY_ESC("SELECT time, payment, mail_title, price FROM `{?_MYSQL_PREFIX?}_payments` WHERE `id`=%s LIMIT 1",
                array(bigintval($id)), __FILE__, __LINE__);
@@ -124,7 +122,6 @@ if (isFormSent()) {
 
                // Prepare array for the row template
                $content = array(
 
                // Prepare array for the row template
                $content = array(
-                       'sw'    => $SW,
                        'id'    => $id,
                        'time'  => $time,
                        'title' => $title,
                        'id'    => $id,
                        'time'  => $time,
                        'title' => $title,
@@ -134,8 +131,7 @@ if (isFormSent()) {
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_edit_payments_row', true, $content);
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_edit_payments_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - foreach
 
        // Load main template
        loadTemplate('admin_edit_payments', false, $OUT);
 
        // Load main template
        loadTemplate('admin_edit_payments', false, $OUT);
@@ -144,14 +140,13 @@ if (isFormSent()) {
        $result = SQL_QUERY("SELECT `id`, `time`, `payment`, `mail_title`, `price` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `time` ASC", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // Make referal levels editable and deletable
        $result = SQL_QUERY("SELECT `id`, `time`, `payment`, `mail_title`, `price` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `time` ASC", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // Make referal levels editable and deletable
-               $OUT = ''; $SW = 2;
+               $OUT = '';
 
                // List already existing categories for editing
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the row template
                        // @TODO Rewritings: title->mail_title in template
                        $content = array(
 
                // List already existing categories for editing
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the row template
                        // @TODO Rewritings: title->mail_title in template
                        $content = array(
-                               'sw'      => $SW,
                                'id'      => $content['id'],
                                'time'    => $content['time'],
                                'title'   => $content['mail_title'],
                                'id'      => $content['id'],
                                'time'    => $content['time'],
                                'title'   => $content['mail_title'],
@@ -161,7 +156,6 @@ if (isFormSent()) {
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_payments_list_row', true, $content);
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_payments_list_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - switch
 
                // Free memory
                } // END - switch
 
                // Free memory
index 95bfc0973d3ae327b185bb8e195cfc2eaf2a438c..7332b032cd316c8d15444f4f1b8cdfa6f4c82aa1 100644 (file)
@@ -100,7 +100,7 @@ VALUES ('%s','%s','%s')",
        loadTemplate('admin_settings_saved', false, $content);
 } elseif ((countPostSelection() > 0) && (isFormSent('edit'))) {
        // Edit banner
        loadTemplate('admin_settings_saved', false, $content);
 } elseif ((countPostSelection() > 0) && (isFormSent('edit'))) {
        // Edit banner
-       $SW = 2; $OUT = '';
+       $OUT = '';
        foreach (postRequestParameter('sel') as $id => $sel) {
                // Load data
                $result = SQL_QUERY_ESC("SELECT url, alternate, visible FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
        foreach (postRequestParameter('sel') as $id => $sel) {
                // Load data
                $result = SQL_QUERY_ESC("SELECT url, alternate, visible FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
@@ -110,7 +110,6 @@ VALUES ('%s','%s','%s')",
 
                // Preapre data for the row
                $content = array(
 
                // Preapre data for the row
                $content = array(
-                       'sw'  => $SW,
                        'id'  => $id,
                        'url' => $url,
                        'alt' => $alt,
                        'id'  => $id,
                        'url' => $url,
                        'alt' => $alt,
@@ -119,8 +118,7 @@ VALUES ('%s','%s','%s')",
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_refbanner_edit_row', true, $content);
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_refbanner_edit_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - foreach
 
        // Load main template
        loadTemplate('admin_refbanner_edit', false, $OUT);
 
        // Load main template
        loadTemplate('admin_refbanner_edit', false, $OUT);
@@ -139,12 +137,11 @@ VALUES ('%s','%s','%s')",
        // Entries found?
        if (SQL_NUMROWS($result) > 0) {
                // Make referal banner editable and deletable
        // Entries found?
        if (SQL_NUMROWS($result) > 0) {
                // Make referal banner editable and deletable
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Preapre data for the row
                        // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template
                        $content = array(
                while ($content = SQL_FETCHARRAY($result)) {
                        // Preapre data for the row
                        // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template
                        $content = array(
-                               'sw'  => $SW,
                                'id'  => $content['id'],
                                'url' => $content['url'],
                                'alt' => $content['alternate'],
                                'id'  => $content['id'],
                                'url' => $content['url'],
                                'alt' => $content['alternate'],
@@ -155,8 +152,7 @@ VALUES ('%s','%s','%s')",
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_refbanner_row', true, $content);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_refbanner_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
 
                // Free memory
                SQL_FREERESULT($result);
 
                // Free memory
                SQL_FREERESULT($result);
index c62b539465f6a29e37a51ded2b23e47ac51d4f5f..cb65b59a0a650fe3493ddbc6dcd87f5fc7f532a6 100644 (file)
@@ -49,7 +49,7 @@ addMenuDescription('admin', __FILE__);
 $langFiles = getArrayFromDirectory('inc/language/', '', false, false, array('_de.php'), '.php', '@(\.|\.\.)$@', true, getCurrentLanguage());
 
 // By default nothing is checked, which is isn't right...
 $langFiles = getArrayFromDirectory('inc/language/', '', false, false, array('_de.php'), '.php', '@(\.|\.\.)$@', true, getCurrentLanguage());
 
 // By default nothing is checked, which is isn't right...
-$SW = 2; $OUT = '';
+$OUT = '';
 
 // Get valid languages
 $validLanguages = getValidLanguages(getCurrentLanguage());
 
 // Get valid languages
 $validLanguages = getValidLanguages(getCurrentLanguage());
@@ -82,7 +82,6 @@ foreach ($validLanguages as $lang) {
                                $content = array(
                                        'source' => $langFile,
                                        'target' => basename($INC),
                                $content = array(
                                        'source' => $langFile,
                                        'target' => basename($INC),
-                                       'sw'     => $SW,
                                );
 
                                // Compares, all fine
                                );
 
                                // Compares, all fine
@@ -107,7 +106,6 @@ foreach ($validLanguages as $lang) {
                                        'target'       => basename($INC),
                                        'diff_count'   => translateComma(getLanguageComparisonDifference($INC)),
                                        'diff_content' => $diffContent,
                                        'target'       => basename($INC),
                                        'diff_count'   => translateComma(getLanguageComparisonDifference($INC)),
                                        'diff_content' => $diffContent,
-                                       'sw'           => $SW,
                                );
 
                                // Compares, all fine
                                );
 
                                // Compares, all fine
@@ -118,15 +116,11 @@ foreach ($validLanguages as $lang) {
                        $content = array(
                                'file'    => basename($INC),
                                'lang'    => $lang,
                        $content = array(
                                'file'    => basename($INC),
                                'lang'    => $lang,
-                               'sw'      => $SW,
                        );
 
                        // Load template
                        $OUT .= loadTemplate('admin_repair_lang_row_404', true, $content);
                }
                        );
 
                        // Load template
                        $OUT .= loadTemplate('admin_repair_lang_row_404', true, $content);
                }
-
-               // Switch color
-               $SW = 3 - $SW;
        } // END - foreach
 } // END - foreach
 
        } // END - foreach
 } // END - foreach
 
index a2e5a685965f2fed0658fbca689273a7c60b5f68..01a593b100fc7d80f7c3327d55b00c6003b81b7a 100644 (file)
@@ -53,16 +53,10 @@ if ((getRequestParameter('mod') == 'index') || (getRequestParameter('mod') == 'l
        // Load module's detail statistic
        $result = SQL_QUERY_ESC("SELECT `action`, `title`, `counter` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `what` != '' AND `what` IS NOT NULL ORDER BY `counter` DESC",
                array($mod), __FILE__, __LINE__);
        // Load module's detail statistic
        $result = SQL_QUERY_ESC("SELECT `action`, `title`, `counter` FROM `{?_MYSQL_PREFIX?}_%s_menu` WHERE `what` != '' AND `what` IS NOT NULL ORDER BY `counter` DESC",
                array($mod), __FILE__, __LINE__);
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
        while ($content = SQL_FETCHARRAY($result)) {
-               // Add color switch
-               $content['sw'] = $SW;
-
                // Load row template
                $OUT .= loadTemplate('admin_mods_stats2_row', true, $content);
                // Load row template
                $OUT .= loadTemplate('admin_mods_stats2_row', true, $content);
-
-               // Switch colors
-               $SW = 3 - $SW;
        } // END - while
 
        // Free memory
        } // END - while
 
        // Free memory
@@ -73,16 +67,13 @@ if ((getRequestParameter('mod') == 'index') || (getRequestParameter('mod') == 'l
 } else {
        // Load module statics
        $result = SQL_QUERY("SELECT `module`, `title`, `clicks` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY `clicks` DESC, `module` ASC", __FILE__, __LINE__);
 } else {
        // Load module statics
        $result = SQL_QUERY("SELECT `module`, `title`, `clicks` FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY `clicks` DESC, `module` ASC", __FILE__, __LINE__);
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                if (($content['module'] == 'index') || ($content['module'] == 'login')) {
                        // Add link to detail statistics
                        $content['module'] = '<a href="{%url=modules.php?module=admin&amp;what=stats_mods&amp;mod=' . $content['module'] . '%}">' . $content['module'] . '</a>';
                } // END - if
 
        while ($content = SQL_FETCHARRAY($result)) {
                if (($content['module'] == 'index') || ($content['module'] == 'login')) {
                        // Add link to detail statistics
                        $content['module'] = '<a href="{%url=modules.php?module=admin&amp;what=stats_mods&amp;mod=' . $content['module'] . '%}">' . $content['module'] . '</a>';
                } // END - if
 
-               // Add color switch
-               $content['sw'] = $SW;
-
                // Load row template
                $OUT .= loadTemplate('admin_mods_stats_row', true, $content);
        } // END - while
                // Load row template
                $OUT .= loadTemplate('admin_mods_stats_row', true, $content);
        } // END - while
index ced00fe21e8d0fb442043f77205d601be7cc07ca..161c0d0eb95d62a0227d956d4f7eba4cea2b3a5e 100644 (file)
@@ -63,18 +63,17 @@ ORDER BY
        // Entries found?
        if (SQL_NUMROWS($result) > 0) {
                // Get all rows
        // Entries found?
        if (SQL_NUMROWS($result) > 0) {
                // Get all rows
-               $OUT = ''; $SW = 2; $cnt = '0'; $visits = '0';
+               $OUT = ''; $cnt = '0'; $visits = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Count totals
                        $visits += $content['total_visits'];
 
                        // "Translate" some data
                        $content['last_surfed']  = generateDateTime($content['last_surfed'], 2);
                while ($content = SQL_FETCHARRAY($result)) {
                        // Count totals
                        $visits += $content['total_visits'];
 
                        // "Translate" some data
                        $content['last_surfed']  = generateDateTime($content['last_surfed'], 2);
-                       $content['sw']           = $SW;
 
                        // Load row template
                        $OUT .= loadTemplate('admin_surfbar_url_stats_row', true, $content);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_surfbar_url_stats_row', true, $content);
-                       $cnt++; $SW = 3 - $SW;
+                       $cnt++;;
                } // END - while
 
                // Prepare content
                } // END - while
 
                // Prepare content
@@ -107,18 +106,14 @@ ORDER BY
        // Entries found?
        if (SQL_NUMROWS($result) > 0) {
                // Get all rows
        // Entries found?
        if (SQL_NUMROWS($result) > 0) {
                // Get all rows
-               $OUT = ''; $SW = 2; $urlArray = '0'; $visits = '0';
+               $OUT = ''; $urlArray = '0'; $visits = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Count totals
                        $urlArray += $content['visited_urls'];
                        $visits   += $content['total_visits'];
 
                while ($content = SQL_FETCHARRAY($result)) {
                        // Count totals
                        $urlArray += $content['visited_urls'];
                        $visits   += $content['total_visits'];
 
-                       // Add color switch
-                       $content['sw']           = $SW;
-
                        // Load row template
                        $OUT .= loadTemplate('admin_surfbar_stats_row', true, $content);
                        // Load row template
                        $OUT .= loadTemplate('admin_surfbar_stats_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Prepare content
                } // END - while
 
                // Prepare content
index dbc3674a823578c0f4d577013661ea90ff0291dc..6fc4f5055721dc3cff99809f494a7239c33d8115 100644 (file)
@@ -114,8 +114,6 @@ ORDER BY
        `theme_path` ASC", __FILE__, __LINE__);
 
 if (SQL_NUMROWS($result) > 0) {
        `theme_path` ASC", __FILE__, __LINE__);
 
 if (SQL_NUMROWS($result) > 0) {
-       // Init color
-       $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
                // Construct IFN
                $inc = sprintf("theme/%s/theme.php", $content['theme_path']);
        while ($content = SQL_FETCHARRAY($result)) {
                // Construct IFN
                $inc = sprintf("theme/%s/theme.php", $content['theme_path']);
@@ -129,7 +127,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Prepare data for the row template
                $content = array(
 
                // Prepare data for the row template
                $content = array(
-                       'sw'            => $SW,
                        'id'            => $content['id'],
                        'link'          => $LINK,
                        'theme_name'    => $content['theme_name'],
                        'id'            => $content['id'],
                        'link'          => $LINK,
                        'theme_name'    => $content['theme_name'],
@@ -141,7 +138,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_theme_edit_row', true, $content);
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_theme_edit_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Free memory
        } // END - while
 
        // Free memory
index 41493b2f66a219a813af45979395d28ac923aeec..baf910dfef22880922b3e5d399c33cf61b1286b3 100644 (file)
@@ -126,7 +126,7 @@ foreach ($includes as $inc) {
 array_pk_sort($THEMES, array('theme_name'));
 
 // Generate output lines for the template
 array_pk_sort($THEMES, array('theme_name'));
 
 // Generate output lines for the template
-$OUT = ''; $SW = 2;
+$OUT = '';
 foreach ($THEMES['theme_unix'] as $key => $unix) {
        // Already installed is default
        $formContent = '<div class="admin_note">' . getMaskedMessage('ADMIN_THEME_ALREADY_INSTALLED', $unix) . '</div>';
 foreach ($THEMES['theme_unix'] as $key => $unix) {
        // Already installed is default
        $formContent = '<div class="admin_note">' . getMaskedMessage('ADMIN_THEME_ALREADY_INSTALLED', $unix) . '</div>';
@@ -139,7 +139,6 @@ foreach ($THEMES['theme_unix'] as $key => $unix) {
 
        // Prepare content
        $content = array(
 
        // Prepare content
        $content = array(
-               'sw'            => $SW,
                'unix'          => $unix,
                'theme_name'    => $THEMES['theme_name'][$key],
                'theme_email'   => $THEMES['theme_email'][$key],
                'unix'          => $unix,
                'theme_name'    => $THEMES['theme_name'][$key],
                'theme_email'   => $THEMES['theme_email'][$key],
@@ -151,9 +150,6 @@ foreach ($THEMES['theme_unix'] as $key => $unix) {
 
        // Add row template
        $OUT .= loadTemplate('admin_theme_import_row', true, $content);
 
        // Add row template
        $OUT .= loadTemplate('admin_theme_import_row', true, $content);
-
-       // Switch color
-       $SW = 3 - $SW;
 } // END - foreach
 
 if (empty($OUT)) {
 } // END - foreach
 
 if (empty($OUT)) {
index c8d9ef649efa2a8945198ea28e3f834acea11238..74384a2434c50551d10d758f531963eb0e6705d4 100644 (file)
@@ -126,7 +126,7 @@ LIMIT 1",
        } elseif (isPostRequestParameterSet(('reject'))) {
                if (countPostSelection() > 0) {
                        // Reject mail orders
        } elseif (isPostRequestParameterSet(('reject'))) {
                if (countPostSelection() > 0) {
                        // Reject mail orders
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        foreach (postRequestParameter('sel') as $id => $value) {
                                // Secure id number
                                $id = bigintval($id);
                        foreach (postRequestParameter('sel') as $id => $value) {
                                // Secure id number
                                $id = bigintval($id);
@@ -154,15 +154,13 @@ LIMIT 1",
 
                                // Prepare data for the row template
                                $content = array(
 
                                // Prepare data for the row template
                                $content = array(
-                                       'sw'  => $SW,
                                        'id'  => $id,
                                        'url' => postRequestParameter('url', $id),
                                );
 
                                // Load row template and switch colors
                                $OUT .= loadTemplate('admin_unlock_emails_redir_row', true, $content);
                                        'id'  => $id,
                                        'url' => postRequestParameter('url', $id),
                                );
 
                                // Load row template and switch colors
                                $OUT .= loadTemplate('admin_unlock_emails_redir_row', true, $content);
-                               $SW = 3 - $SW;
-                       }
+                       } // END - foreach
 
                        // Load main template
                        loadTemplate('admin_unlock_emails_redir', false, $OUT);
 
                        // Load main template
                        loadTemplate('admin_unlock_emails_redir', false, $OUT);
@@ -193,15 +191,13 @@ LIMIT 1",
                loadTemplate('admin_settings_saved', false, '{--ADMIN_URLS_BLOCKED--}');
        } elseif ((!isFormSent('lock')) && (!isFormSent('accept')) && (!isFormSent('reject'))) {
                // Mail orders are in pool so we can display them
                loadTemplate('admin_settings_saved', false, '{--ADMIN_URLS_BLOCKED--}');
        } elseif ((!isFormSent('lock')) && (!isFormSent('accept')) && (!isFormSent('reject'))) {
                // Mail orders are in pool so we can display them
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Prepare data for the template
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Prepare data for the template
-                       $content['sw']        = $SW;
                        $content['timestamp'] = generateDateTime($content['timestamp'], 2);
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_unlock_emails_row', true, $content);
                        $content['timestamp'] = generateDateTime($content['timestamp'], 2);
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_unlock_emails_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index 5ae058b814a95390103be26ceeef8793e670b164..06d20c510f98cfa790f06175b321280fb2465e49 100644 (file)
@@ -198,11 +198,10 @@ ORDER BY
 
 if (SQL_NUMROWS($result) > 0) {
        // Entries found so let's list them!
 
 if (SQL_NUMROWS($result) > 0) {
        // Entries found so let's list them!
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Transfer data to array
                $content = array(
        while ($content = SQL_FETCHARRAY($result)) {
                // Transfer data to array
                $content = array(
-                       'sw'              => $SW,
                        'id'              => $content['id'],
                        'gender'          => $content['gender'],
                        'surname'         => $content['surname'],
                        'id'              => $content['id'],
                        'gender'          => $content['gender'],
                        'surname'         => $content['surname'],
@@ -214,7 +213,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_unlock_sponsor_row', true, $content);
 
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_unlock_sponsor_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Load template
        } // END - while
 
        // Load template
index 83c6ad23ca34995c1515214dbcc4dd6745710398..6dc57d0511b19b9409ae6d9812ec25bb666643b3 100644 (file)
@@ -82,17 +82,13 @@ ORDER BY
 // Do we have some URLs left?
 if (SQL_NUMROWS($result) > 0) {
        // List all URLs
 // Do we have some URLs left?
 if (SQL_NUMROWS($result) > 0) {
        // List all URLs
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // "Translate"/add content
        while ($content = SQL_FETCHARRAY($result)) {
                // "Translate"/add content
-               $content['sw']             = $SW;
                $content['url_registered'] = generateDateTime($content['url_registered'], 2);
 
                // Load row template
                $OUT .= loadTemplate('admin_unlock_surfbar_urls_row', true, $content);
                $content['url_registered'] = generateDateTime($content['url_registered'], 2);
 
                // Load row template
                $OUT .= loadTemplate('admin_unlock_surfbar_urls_row', true, $content);
-
-               // Switch color
-               $SW = 3 - $SW;
        } // END - while
 
        // Load main template
        } // END - while
 
        // Load main template
index cda7d8e4d75348899aec87ca08786f3660e34f39..fbc6143f4832471a7a1e5c18513777590b95312f 100644 (file)
@@ -61,7 +61,7 @@ if (isExtensionActive('online')) {
                __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List all online users
                __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // List all online users
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($row = SQL_FETCHARRAY($result)) {
                        if ($row['is_admin'] == 'Y') {
                                // Is an administrator
                while ($row = SQL_FETCHARRAY($result)) {
                        if ($row['is_admin'] == 'Y') {
                                // Is an administrator
@@ -75,12 +75,10 @@ if (isExtensionActive('online')) {
                        }
 
                        // Add more content
                        }
 
                        // Add more content
-                       $row['sw'] = $SW;
                        $row['timestamp'] = generateDateTime($row['timestamp'], 2);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_list_online_row', true, $row);
                        $row['timestamp'] = generateDateTime($row['timestamp'], 2);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('admin_list_online_row', true, $row);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
                } // END - while
 
                // Free memory
index bf342cfea86888313db1b12d43ff4e6af3582ac8..17e4d337976e17f695a58345c38f4ea852cf9d7c 100644 (file)
@@ -70,14 +70,13 @@ LIMIT {?active_limit?}", __FILE__, __LINE__);
 // Entries found?
 if (SQL_NUMROWS($result) > 0) {
        // At least one member was online so let's load them all
 // Entries found?
 if (SQL_NUMROWS($result) > 0) {
        // At least one member was online so let's load them all
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while (list($userid, $nick, $last) = SQL_FETCHROW($result)) {
                $nick2 = '---';
                if (($nick != $userid) && (!empty($nick))) $nick2 = $nick;
 
                // Transfer data to array
                $content = array(
        while (list($userid, $nick, $last) = SQL_FETCHROW($result)) {
                $nick2 = '---';
                if (($nick != $userid) && (!empty($nick))) $nick2 = $nick;
 
                // Transfer data to array
                $content = array(
-                       'sw'          => $SW,
                        'userid'      => $userid,
                        'nickname'    => $nick2,
                        'points'      => (countSumTotalData($userid, 'user_points', 'points') - countSumTotalData($userid, 'user_data', 'used_points')),
                        'userid'      => $userid,
                        'nickname'    => $nick2,
                        'points'      => (countSumTotalData($userid, 'user_points', 'points') - countSumTotalData($userid, 'user_data', 'used_points')),
@@ -86,10 +85,7 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load template
                $OUT .= loadTemplate('guest_active_row', true, $content);
 
                // Load template
                $OUT .= loadTemplate('guest_active_row', true, $content);
-
-               // Switch colors
-               $SW = 3 - $SW;
-       }
+       } // END - while
 } else {
        // No member was online today! :-(
        $OUT = loadTemplate('guest_active_none_row', true);
 } else {
        // No member was online today! :-(
        $OUT = loadTemplate('guest_active_none_row', true);
index 94e32a8231b0057a5e761dcf9404679c97888ca2..f9d35b0885e71093f3720a8fd042a37e231e08bb 100644 (file)
@@ -49,7 +49,7 @@ addMenuDescription('guest', __FILE__);
 $extensions = getArrayFromDirectory('templates/' . getLanguage() . '/html/ext/', 'ext_', false, false, array(), '.tpl', '@(\.|\.\.)$@', false);
 
 // Now iterate through all and load that template file
 $extensions = getArrayFromDirectory('templates/' . getLanguage() . '/html/ext/', 'ext_', false, false, array(), '.tpl', '@(\.|\.\.)$@', false);
 
 // Now iterate through all and load that template file
-$OUT = ''; $SW = 2;
+$OUT = '';
 foreach ($extensions as $ext_file) {
        // We only need the filename!
        $template = substr(basename($ext_file), 0, -4);
 foreach ($extensions as $ext_file) {
        // We only need the filename!
        $template = substr(basename($ext_file), 0, -4);
@@ -58,14 +58,10 @@ foreach ($extensions as $ext_file) {
        $content = array(
                'name'        => substr($template, 4),
                'description' => loadTemplate($template, true),
        $content = array(
                'name'        => substr($template, 4),
                'description' => loadTemplate($template, true),
-               'sw'          => $SW
        );
 
        // Load the template in a special row template
        $OUT .= loadTemplate('guest_extensions_row', true, $content);
        );
 
        // Load the template in a special row template
        $OUT .= loadTemplate('guest_extensions_row', true, $content);
-
-       // Switch color
-       $SW = 3 - $SW;
 } // END - foreach
 
 // Load main template
 } // END - foreach
 
 // Load main template
index 420778fbb93a8e4d8997601ea08949a559eecb7e..a6d7246e9fa404a15545e7e909c79afaada31297 100644 (file)
@@ -64,12 +64,11 @@ ORDER BY m.sort ASC", __FILE__, __LINE__);
 
 if (SQL_NUMROWS($result_act) > 0) {
        // Load all actions
 
 if (SQL_NUMROWS($result_act) > 0) {
        // Load all actions
-       $OUT_ACT = ''; $SW = 2;
+       $OUT_ACT = '';
        while ($content = SQL_FETCHARRAY($result_act)) {
                // Prepare data for the row template
                // @TODO Rewritings: conv->conv_rate,name->conv_name in template
                $content = array(
        while ($content = SQL_FETCHARRAY($result_act)) {
                // Prepare data for the row template
                // @TODO Rewritings: conv->conv_rate,name->conv_name in template
                $content = array(
-                       'sw'    => $SW,
                        'title' => $content['title'],
                        'conv'  => round($content['conv_rate']),
                        'name'  => $content['conv_name'],
                        'title' => $content['title'],
                        'conv'  => round($content['conv_rate']),
                        'name'  => $content['conv_name'],
@@ -77,22 +76,17 @@ if (SQL_NUMROWS($result_act) > 0) {
 
                // Load row template and switch color
                $OUT_ACT .= loadTemplate('guest_sponsor_act_row', true, $content);
 
                // Load row template and switch color
                $OUT_ACT .= loadTemplate('guest_sponsor_act_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Check for pay types
        $result_pay = SQL_QUERY('SELECT `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` ORDER BY `pay_name` ASC', __FILE__, __LINE__);
        if (SQL_NUMROWS($result_pay) > 0) {
                // Load all pay types
        } // END - while
 
        // Check for pay types
        $result_pay = SQL_QUERY('SELECT `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` ORDER BY `pay_name` ASC', __FILE__, __LINE__);
        if (SQL_NUMROWS($result_pay) > 0) {
                // Load all pay types
-               $OUT_PAY = ''; $SW = 2;
+               $OUT_PAY = '';
                while ($content = SQL_FETCHARRAY($result_pay)) {
                while ($content = SQL_FETCHARRAY($result_pay)) {
-                       // Prepare data for the row template
-                       $content['sw'] = $SW;
-
                        // Load row template and switch color
                        $OUT_PAY .= loadTemplate('guest_sponsor_pay_row', true, $content);
                        // Load row template and switch color
                        $OUT_PAY .= loadTemplate('guest_sponsor_pay_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
        } else {
                // No pay types setuped so far!
                $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_ACTIONS_ACTIVATED--}'));
        } else {
                // No pay types setuped so far!
                $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_ACTIONS_ACTIVATED--}'));
index e9f973a31c2923874e82362ddabe50d89ae3c858..28673055b3ba89b077fdba28637d042dc9a9789b 100644 (file)
@@ -288,18 +288,15 @@ ORDER BY
        if (SQL_NUMROWS($result) > 0) {
                // Load all types...
                // @TODO Swap this HTML code to templates
        if (SQL_NUMROWS($result) > 0) {
                // Load all types...
                // @TODO Swap this HTML code to templates
-               $OUT = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"300\" class=\"left right top\">\n";
-               $SW = 2;
+               $OUT = '<table border="0" cellspacing="0" cellpadding="0" width="300" class="left right top">';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare content for output
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare content for output
-                       $content['sw']  = $SW;
                        $content['res'] = translateComma($content['pay_rate'] * $content['pay_min_count']);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('guest_sponsor_payment_row', false, $content);
                        $content['res'] = translateComma($content['pay_rate'] * $content['pay_min_count']);
 
                        // Load row template and switch color
                        $OUT .= loadTemplate('guest_sponsor_payment_row', false, $content);
-                       $SW = 3 - $SW;
-               }
-               $OUT .= "</table>\n";
+               } // END - while
+               $OUT .= '</table>';
 
                // Remember the list in table
                $content['payment_list'] = $OUT;
 
                // Remember the list in table
                $content['payment_list'] = $OUT;
index 2ef513ca78cab39f7975ced9dd88a2e9d02a50f5..38ea6bbf473a8d561e7d32bb0f2daf5d3be44e3c 100644 (file)
@@ -163,23 +163,21 @@ switch (getConfig('guest_stats')) {
                                $l = 'll'; $r = 'lr';
                        }
                        $SW = 3 - $SW;
                                $l = 'll'; $r = 'lr';
                        }
                        $SW = 3 - $SW;
-               }
+               } // END - foreach
                $content['month_rows'] = $OUT;
 
                // Generate category stats
                $content['month_rows'] = $OUT;
 
                // Generate category stats
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                foreach ($cat_cnt as $id => $cnt) {
                        // Prepare data for the template
                        $data = array(
                foreach ($cat_cnt as $id => $cnt) {
                        // Prepare data for the template
                        $data = array(
-                               'sw'  => $SW,
                                'cat' => $cats[$id],
                                'cnt' => $cnt,
                        );
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('guest_stats_cats_row', true, $data);
                                'cat' => $cats[$id],
                                'cnt' => $cnt,
                        );
 
                        // Load row template and switch colors
                        $OUT .= loadTemplate('guest_stats_cats_row', true, $data);
-                       $SW = 3 - $SW;
-               }
+               } // END - foreach
                $content['cats_rows'] = $OUT;
 
                // Load final template
                $content['cats_rows'] = $OUT;
 
                // Load final template
@@ -199,26 +197,18 @@ switch (getConfig('guest_stats')) {
                if (SQL_NUMROWS($guest_t10) > 0) {
                        // Guest clicks
                        $OUT .= loadTemplate('guest_stats_header', true, '{--GUEST_TOP_GUEST_STATS--}');
                if (SQL_NUMROWS($guest_t10) > 0) {
                        // Guest clicks
                        $OUT .= loadTemplate('guest_stats_header', true, '{--GUEST_TOP_GUEST_STATS--}');
-                       $SW = 2;
                        while ($content = SQL_FETCHARRAY($guest_t10)) {
                        while ($content = SQL_FETCHARRAY($guest_t10)) {
-                               $content['sw'] = $SW;
-
                                // Load row template
                                $OUT .= loadTemplate('guest_stats_row', true, $content);
                                // Load row template
                                $OUT .= loadTemplate('guest_stats_row', true, $content);
-                               $SW = 3 - $SW;
                        } // END - while
                } // END - if
 
                if (SQL_NUMROWS($mem_t10) > 0) {
                        // Member clicks
                        $OUT .= loadTemplate('guest_stats_header', true, '{--GUEST_TOP_MEMBER_STATS--}');
                        } // END - while
                } // END - if
 
                if (SQL_NUMROWS($mem_t10) > 0) {
                        // Member clicks
                        $OUT .= loadTemplate('guest_stats_header', true, '{--GUEST_TOP_MEMBER_STATS--}');
-                       $SW = 2;
                        while ($content = SQL_FETCHARRAY($mem_t10)) {
                        while ($content = SQL_FETCHARRAY($mem_t10)) {
-                               $content['sw'] = $SW;
-
                                // Load row template
                                $OUT .= loadTemplate('guest_stats_row', true, $content);
                                // Load row template
                                $OUT .= loadTemplate('guest_stats_row', true, $content);
-                               $SW = 3 - $SW;
                        } // END - while
                } // END - if
 
                        } // END - while
                } // END - if
 
index de8eef86e4774110befe53510d966ee8bb75194a..82d1adab6e5bec0475c4a5407107aa39f9ae7ab2 100644 (file)
@@ -65,7 +65,7 @@ ORDER BY
        `total_logins` DESC
 LIMIT {?top10_max?}", __FILE__, __LINE__);
 
        `total_logins` DESC
 LIMIT {?top10_max?}", __FILE__, __LINE__);
 
-$OUT = ''; $SW = 2; $cnt = 1;
+$OUT = ''; $cnt = 1;
 while ($content = SQL_FETCHARRAY($result)) {
        // Init nickname
        $content['nickname'] = '';
 while ($content = SQL_FETCHARRAY($result)) {
        // Init nickname
        $content['nickname'] = '';
@@ -75,7 +75,6 @@ while ($content = SQL_FETCHARRAY($result)) {
 
        // Prepare data for template
        $content = array(
 
        // Prepare data for template
        $content = array(
-               'sw'           => $SW,
                'cnt'          => $cnt,
                'userid'       => $content['userid'],
                'nickname'     => $content['nickname'],
                'cnt'          => $cnt,
                'userid'       => $content['userid'],
                'nickname'     => $content['nickname'],
@@ -87,8 +86,8 @@ while ($content = SQL_FETCHARRAY($result)) {
        // Load row template
        $OUT .= loadTemplate('guest_top10_row_login', true, $content);
 
        // Load row template
        $OUT .= loadTemplate('guest_top10_row_login', true, $content);
 
-       // Switch colors and count one up
-       $SW = 3 - $SW; $cnt++;
+       // Count one up
+       $cnt++;
 } // END - while
 
 if ($cnt < getConfig('top10_max')) {
 } // END - while
 
 if ($cnt < getConfig('top10_max')) {
@@ -96,13 +95,11 @@ if ($cnt < getConfig('top10_max')) {
        for ($i = $cnt; $i <= getConfig('top10_max'); $i++) {
                // Prepare data for template
                $content = array(
        for ($i = $cnt; $i <= getConfig('top10_max'); $i++) {
                // Prepare data for template
                $content = array(
-                       'sw'    => $SW,
                        'index' => $i
                );
 
                // Load row template
                $OUT .= loadTemplate('guest_top10_empty5', true, $content);
                        'index' => $i
                );
 
                // Load row template
                $OUT .= loadTemplate('guest_top10_empty5', true, $content);
-               $SW = 3 - $SW;
        } // END - for
 } // END - if
 
        } // END - for
 } // END - if
 
@@ -133,7 +130,7 @@ ORDER BY
        d.last_online DESC
 LIMIT {?top10_max?}", __FILE__, __LINE__);
 
        d.last_online DESC
 LIMIT {?top10_max?}", __FILE__, __LINE__);
 
-$OUT = ''; $SW = 2; $cnt = 1;
+$OUT = ''; $cnt = 1;
 while ($content = SQL_FETCHARRAY($result)) {
        // Init nickname
        $content['nickname'] = '';
 while ($content = SQL_FETCHARRAY($result)) {
        // Init nickname
        $content['nickname'] = '';
@@ -143,7 +140,6 @@ while ($content = SQL_FETCHARRAY($result)) {
 
        // Prepare data for template
        $content = array(
 
        // Prepare data for template
        $content = array(
-               'sw'          => $SW,
                'cnt'         => $cnt,
                'userid'      => $content['userid'],
                'nickname'    => $content['nickname'],
                'cnt'         => $cnt,
                'userid'      => $content['userid'],
                'nickname'    => $content['nickname'],
@@ -154,8 +150,8 @@ while ($content = SQL_FETCHARRAY($result)) {
        // Load row template
        $OUT .= loadTemplate('guest_top10_row_earner', true, $content);
 
        // Load row template
        $OUT .= loadTemplate('guest_top10_row_earner', true, $content);
 
-       // Switch colors and count one up
-       $SW = 3 - $SW; $cnt++;
+       // Count one up
+       $cnt++;
 } // END - while
 
 if ($cnt < getConfig('top10_max')) {
 } // END - while
 
 if ($cnt < getConfig('top10_max')) {
@@ -163,13 +159,11 @@ if ($cnt < getConfig('top10_max')) {
        for ($i = $cnt; $i <= getConfig('top10_max'); $i++) {
                // Prepare data for template
                $content = array(
        for ($i = $cnt; $i <= getConfig('top10_max'); $i++) {
                // Prepare data for template
                $content = array(
-                       'sw'    => $SW,
                        'index' => $i
                );
 
                // Load row template
                $OUT .= loadTemplate('guest_top10_empty4', true, $content);
                        'index' => $i
                );
 
                // Load row template
                $OUT .= loadTemplate('guest_top10_empty4', true, $content);
-               $SW = 3 - $SW;
        } // END - for
 } // END - if
 
        } // END - for
 } // END - if
 
@@ -200,7 +194,7 @@ ORDER BY
        d.last_online DESC
 LIMIT {?top10_max?}", __FILE__, __LINE__);
 
        d.last_online DESC
 LIMIT {?top10_max?}", __FILE__, __LINE__);
 
-$OUT = ''; $SW = 2; $cnt = 1;
+$OUT = ''; $cnt = 1;
 while ($content = SQL_FETCHARRAY($result)) {
        // Init nickname
        $content['nickname'] = '';
 while ($content = SQL_FETCHARRAY($result)) {
        // Init nickname
        $content['nickname'] = '';
@@ -210,7 +204,6 @@ while ($content = SQL_FETCHARRAY($result)) {
 
        // Prepare data for template
        $content = array(
 
        // Prepare data for template
        $content = array(
-               'sw'          => $SW,
                'cnt'         => $cnt,
                'userid'      => $content['userid'],
                'refs'        => $content['refs'],
                'cnt'         => $cnt,
                'userid'      => $content['userid'],
                'refs'        => $content['refs'],
@@ -222,8 +215,8 @@ while ($content = SQL_FETCHARRAY($result)) {
        // Load row template
        $OUT .= loadTemplate('guest_top10_row_refs', true, $content);
 
        // Load row template
        $OUT .= loadTemplate('guest_top10_row_refs', true, $content);
 
-       // Switch colors and count one up
-       $SW = 3 - $SW; $cnt++;
+       // Count one up
+       $cnt++;
 } // END - while
 
 if ($cnt < getConfig('top10_max')) {
 } // END - while
 
 if ($cnt < getConfig('top10_max')) {
@@ -231,13 +224,11 @@ if ($cnt < getConfig('top10_max')) {
        for ($i = $cnt; $i <= getConfig('top10_max'); $i++) {
                // Prepare data for template
                $content = array(
        for ($i = $cnt; $i <= getConfig('top10_max'); $i++) {
                // Prepare data for template
                $content = array(
-                       'sw'    => $SW,
                        'index' => $i
                );
 
                // Load row template
                $OUT .= loadTemplate('guest_top10_empty5', true, $content);
                        'index' => $i
                );
 
                // Load row template
                $OUT .= loadTemplate('guest_top10_empty5', true, $content);
-               $SW = 3 - $SW;
        } // END - for
 } // END - if
 
        } // END - for
 } // END - if
 
index c13931a6cac0846dd018d0044fc2689ec721c861..b5f03912f6cfa02356fc4c982bed639248e44616 100644 (file)
@@ -83,11 +83,10 @@ LIMIT {?beg_ranks?}",
 $OUT = '';
 if (SQL_NUMROWS($result) > 0) {
        // Load our winners...
 $OUT = '';
 if (SQL_NUMROWS($result) > 0) {
        // Load our winners...
-       $SW = 2; $cnt = 1;
+       $cnt = 1;
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
                $content = array(
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
                $content = array(
-                       'sw'          => $SW,
                        'cnt'         => $cnt,
                        'userid'      => $content['userid'],
                        'points'      => $content['points'],
                        'cnt'         => $cnt,
                        'userid'      => $content['userid'],
                        'points'      => $content['points'],
@@ -97,8 +96,8 @@ if (SQL_NUMROWS($result) > 0) {
                // Load row template
                $OUT .= loadTemplate('member_list_beg_row', true, $content);
 
                // Load row template
                $OUT .= loadTemplate('member_list_beg_row', true, $content);
 
-               // Count one up and switch colors
-               $cnt++; $SW = 3 - $SW;
+               // Count one up
+               $cnt++;
        } // END - while
 } else {
        // No one is interested in our "active rallye" ! :-(
        } // END - while
 } else {
        // No one is interested in our "active rallye" ! :-(
index df6251fa0959d9abdbcdb7465c92dd4d674688df..c6191e92ff26630f05dd7739255d0263d221d83b 100644 (file)
@@ -96,11 +96,10 @@ LIMIT {?bonus_ranks?}",
 $OUT = '';
 if (SQL_NUMROWS($result) > 0) {
        // Load our winners...
 $OUT = '';
 if (SQL_NUMROWS($result) > 0) {
        // Load our winners...
-       $SW = 2; $cnt = 1;
+       $cnt = 1;
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
                $content = array(
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
                $content = array(
-                       'sw'          => $SW,
                        'cnt'         => $cnt,
                        'userid'      => $content['userid'],
                        'points'      => $content['points'],
                        'cnt'         => $cnt,
                        'userid'      => $content['userid'],
                        'points'      => $content['points'],
@@ -110,8 +109,8 @@ if (SQL_NUMROWS($result) > 0) {
                // Load row template
                $OUT .= loadTemplate('member_bonus_row', true, $content);
 
                // Load row template
                $OUT .= loadTemplate('member_bonus_row', true, $content);
 
-               // Count one up and switch colors
-               $cnt++; $SW = 3 - $SW;
+               // Count one up
+               $cnt++;
        } // END - while
 } else {
        // No one is interested in our "active rallye" ! :-(
        } // END - while
 } else {
        // No one is interested in our "active rallye" ! :-(
index 4890aa64405bddbd08584379b5e8e6b5484aef13..32859bbd3fdf1eb22cb8357c8691a7d012ed388a 100644 (file)
@@ -127,7 +127,7 @@ if ($cats > 0) {
 
                // Start switching colors and load all visible categories
                // @TODO Rewrite this to use $OUT .= ...
 
                // Start switching colors and load all visible categories
                // @TODO Rewrite this to use $OUT .= ...
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Default he has not joined
                        $content['jn'] = ' checked="checked"';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Default he has not joined
                        $content['jn'] = ' checked="checked"';
@@ -148,13 +148,9 @@ if ($cats > 0) {
                                }
                        }
 
                                }
                        }
 
-                       // Add some more
-                       $content['sw'] = $SW;
-
                        // Load row template and switch colors
                        loadTemplate('member_cat_row', false, $content);
                        // Load row template and switch colors
                        loadTemplate('member_cat_row', false, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
 
                // Load footer template
                loadTemplate('member_cats_footer');
 
                // Load footer template
                loadTemplate('member_cats_footer');
index 1283c94854c0057fbb2df63f85018afa43a51689..246e0e31402819f3977cc7501045cbc250ec5919 100644 (file)
@@ -97,7 +97,7 @@ ORDER BY
                        array(getMemberId()), __FILE__, __LINE__);
                if (SQL_NUMROWS($result_payouts) > 0) {
                        // List all his requests
                        array(getMemberId()), __FILE__, __LINE__);
                if (SQL_NUMROWS($result_payouts) > 0) {
                        // List all his requests
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        while ($content = SQL_FETCHARRAY($result_payouts)) {
                                // Translate status
                                $content['status'] = translatePayoutStatus();
                        while ($content = SQL_FETCHARRAY($result_payouts)) {
                                // Translate status
                                $content['status'] = translatePayoutStatus();
@@ -118,7 +118,6 @@ ORDER BY
 
                                // Prepare data for the template
                                $content = array(
 
                                // Prepare data for the template
                                $content = array(
-                                       'sw'               => $SW,
                                        'target_account'   => $content['target_account'],
                                        'payout_total'     => $content['payout_total'],
                                        'target_bank'      => $content['target_bank'],
                                        'target_account'   => $content['target_account'],
                                        'payout_total'     => $content['payout_total'],
                                        'target_bank'      => $content['target_bank'],
@@ -129,12 +128,11 @@ ORDER BY
 
                                // Load row template and switch colors
                                $OUT .= loadTemplate('member_payout_row', true, $content);
 
                                // Load row template and switch colors
                                $OUT .= loadTemplate('member_payout_row', true, $content);
-                               $SW = 3 - $SW;
-                       }
+                       } // END - while
 
                        // Load template
                        loadTemplate('member_payout', false, $OUT);
 
                        // Load template
                        loadTemplate('member_payout', false, $OUT);
-               }
+               } // END - if
 
                // Free memory
                SQL_FREERESULT($result_payouts);
 
                // Free memory
                SQL_FREERESULT($result_payouts);
index 794689bdb5fedaf9401e2a2d41219c1052eb2512..a683c4777e1cce86eebd276b0c75b7f2ae399a53 100644 (file)
@@ -80,15 +80,14 @@ if (!isGetRequestParameterSet('mode')) {
                        array(getMemberId()), __FILE__, __LINE__);
 
                // Load all rows
                        array(getMemberId()), __FILE__, __LINE__);
 
                // Load all rows
-               $content['rows'] = ''; $SW = 2;
+               $content['rows'] = '';
                while ($data = SQL_FETCHARRAY($result)) {
                        // Prepare data for output
                        $rowContent['primera_timestamp'] = generateDateTime($data['primera_timestamp'], 2);
 
                        // Load row template
                        $content['rows'] .= loadTemplate('member_primera_mode_list_row', true, $rowContent);
                while ($data = SQL_FETCHARRAY($result)) {
                        // Prepare data for output
                        $rowContent['primera_timestamp'] = generateDateTime($data['primera_timestamp'], 2);
 
                        // Load row template
                        $content['rows'] .= loadTemplate('member_primera_mode_list_row', true, $rowContent);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
 
                // Free result
                SQL_FREERESULT($result);
 
                // Free result
                SQL_FREERESULT($result);
index 3f199c71d82f25b1e181a3cbd54711fda8da9b83..128e19c846f4d267726391bf7351d1cc0872db74 100644 (file)
@@ -115,7 +115,6 @@ if (SQL_NUMROWS($result) > 0) {
                // Init variables
                $rows = '';
                $content['counter'] = 0;
                // Init variables
                $rows = '';
                $content['counter'] = 0;
-               $SW = 2;
 
                // Check for users ref in this level
                foreach (getArrayFromRefbackUserRefs(getMemberId(), $content['level']) as $refRow) {
 
                // Check for users ref in this level
                foreach (getArrayFromRefbackUserRefs(getMemberId(), $content['level']) as $refRow) {
@@ -124,7 +123,6 @@ if (SQL_NUMROWS($result) > 0) {
                        if (is_null($refRow['status'])) $deleted = true;
 
                        // Add/"translate" more content
                        if (is_null($refRow['status'])) $deleted = true;
 
                        // Add/"translate" more content
-                       $refRow['sw']          = $SW;
                        // @TODO UNUSED: $refRow['status']      = translateUserStatus($refRow['status']);
                        $refRow['joined']      = generateDateTime($refRow['joined'], '3');
 
                        // @TODO UNUSED: $refRow['status']      = translateUserStatus($refRow['status']);
                        $refRow['joined']      = generateDateTime($refRow['joined'], '3');
 
@@ -137,7 +135,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                        // Count this ref and switch color
                        $content['counter']++;
 
                        // Count this ref and switch color
                        $content['counter']++;
-                       $SW = 3 - $SW;
                } // END - foreach
 
                // Remember the content
                } // END - foreach
 
                // Remember the content
index 211272e06810791f72bebb3fe0369f0f8aa7bac4..04ecf577420afae10125f2b5449f36a2ac1a1f99 100644 (file)
@@ -71,7 +71,7 @@ $result = SQL_QUERY("SELECT `id`, `url`, `alternate`, `counter`, `clicks` FROM `
 
 if (SQL_NUMROWS($result) > 0) {
        // List available ref banners
 
 if (SQL_NUMROWS($result) > 0) {
        // List available ref banners
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($row = SQL_FETCHARRAY($result)) {
                $test = str_replace(getConfig('URL'), getConfig('PATH'), $row['url']); $size = '0';
                if ($test == $row['url']) {
        while ($row = SQL_FETCHARRAY($result)) {
                $test = str_replace(getConfig('URL'), getConfig('PATH'), $row['url']); $size = '0';
                if ($test == $row['url']) {
@@ -98,14 +98,10 @@ if (SQL_NUMROWS($result) > 0) {
                if ($size > 0) $row['alternate'] .= ' ('  .translateComma(round($size / 102.4) / 10) . ' {--KBYTES--})';
 
                // Add some more data
                if ($size > 0) $row['alternate'] .= ' ('  .translateComma(round($size / 102.4) / 10) . ' {--KBYTES--})';
 
                // Add some more data
-               $row['sw']     = $SW;
                $row['userid'] = getMemberId();
 
                // Add row
                $OUT .= loadTemplate('member_reflinks_row', true, $row);
                $row['userid'] = getMemberId();
 
                // Add row
                $OUT .= loadTemplate('member_reflinks_row', true, $row);
-
-               // Switchcolors
-               $SW = 3 - $SW;
        } // END - while
 
        // Load final template
        } // END - while
 
        // Load final template
index 0740acbdef23b4b3147061846f01e0563b16dace..d4b3e97f5e450ded54fe9d46a9c01706b612535a 100644 (file)
@@ -66,12 +66,10 @@ if (SQL_NUMROWS($result) > 0) {
                // Init variables
                $rows = '';
                $counter = '0';
                // Init variables
                $rows = '';
                $counter = '0';
-               $SW = 2;
 
                // Check for users ref in this level
                foreach (getUserReferalPoints(getMemberId(), $content['level']) as $refRow) {
                        // Add/"translate" more content
 
                // Check for users ref in this level
                foreach (getUserReferalPoints(getMemberId(), $content['level']) as $refRow) {
                        // Add/"translate" more content
-                       $refRow['sw']          = $SW;
                        $refRow['clickrate']   = translateComma($refRow['clickrate'], true, 1);
 
                        // Load row template
                        $refRow['clickrate']   = translateComma($refRow['clickrate'], true, 1);
 
                        // Load row template
@@ -79,7 +77,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                        // Count this ref and switch color
                        $counter++;
 
                        // Count this ref and switch color
                        $counter++;
-                       $SW = 3 - $SW;
                } // END - foreach
 
                // Remember the content
                } // END - foreach
 
                // Remember the content
index 75a93fa8b0bf549fae7ebb5d734ab2ceef51651d..400537f49510769214e37fd06c7d30458e422c9c 100644 (file)
@@ -65,14 +65,14 @@ ORDER BY
 // Are there mails left in pool?
 if (SQL_NUMROWS($result) > 0) {
        // Load all orders
 // Are there mails left in pool?
 if (SQL_NUMROWS($result) > 0) {
        // Load all orders
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Is the ZIP code set? If not, set dashes
                if (empty($content['zip'])) $content['zip'] =  '---';
 
                // Prepare content for output
        while ($content = SQL_FETCHARRAY($result)) {
                // Is the ZIP code set? If not, set dashes
                if (empty($content['zip'])) $content['zip'] =  '---';
 
                // Prepare content for output
+               // @TODO More usage of EL at this array
                $content = array(
                $content = array(
-                       'sw'          => $SW,
                        'id'          => $content['id'],
                        'cat'         => getCategory($content['cat_id']),
                        'pay'         => getPaymentTitlePrice($content['payment_id']),
                        'id'          => $content['id'],
                        'cat'         => getCategory($content['cat_id']),
                        'pay'         => getPaymentTitlePrice($content['payment_id']),
@@ -86,9 +86,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load template
                $OUT .= loadTemplate('member_pool_row', true, $content);
 
                // Load template
                $OUT .= loadTemplate('member_pool_row', true, $content);
-
-               // Switch color
-               $SW = 3 - $SW;
        } // END - if
 
        // Load main template
        } // END - if
 
        // Load main template
@@ -114,11 +111,10 @@ ORDER BY
 
 if (SQL_NUMROWS($result) > 0) {
        // Mail orders are in pool so we can display them
 
 if (SQL_NUMROWS($result) > 0) {
        // Mail orders are in pool so we can display them
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
                $content = array(
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
                $content = array(
-                       'sw'                => $SW,
                        'cat_id'            => $content['cat_id'],
                        'payment_id'        => $content['payment_id'],
                        'url'               => $content['url'],
                        'cat_id'            => $content['cat_id'],
                        'payment_id'        => $content['payment_id'],
                        'url'               => $content['url'],
@@ -132,7 +128,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load row template and switch colors
                $OUT .= loadTemplate('member_stats_row', true, $content);
 
                // Load row template and switch colors
                $OUT .= loadTemplate('member_stats_row', true, $content);
-               $SW = 3 - $SW;
        } // END - if
 
        // Load main template
        } // END - if
 
        // Load main template
index 83210ee9d7512cd89dcd8bb790dc62e5d9632dd2..2b1de42a38172a51a333ab4f90536b61a010c3c5 100644 (file)
@@ -70,10 +70,9 @@ if ((isFormSent()) && (isPostRequestParameterSet(('action'))) && (isPostRequestP
        }
 } elseif (count($urlArray) > 0) {
        // List all URLs
        }
 } elseif (count($urlArray) > 0) {
        // List all URLs
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        foreach ($urlArray as $id => $content) {
                // "Translate"/insert data
        foreach ($urlArray as $id => $content) {
                // "Translate"/insert data
-               $content['sw'] = $SW;
                if ($content['views_total'] > 0) {
                        // Include link to stats
                        $content['views_total'] = '[<a href="{%url=modules.php?module=login&amp;what=surfbar_list%}">' . translateComma($content['views_total']) . '</a>]';
                if ($content['views_total'] > 0) {
                        // Include link to stats
                        $content['views_total'] = '[<a href="{%url=modules.php?module=login&amp;what=surfbar_list%}">' . translateComma($content['views_total']) . '</a>]';
@@ -84,9 +83,6 @@ if ((isFormSent()) && (isPostRequestParameterSet(('action'))) && (isPostRequestP
 
                // Load row template
                $OUT .= loadTemplate('member_surfbar_list_row', true, $content);
 
                // Load row template
                $OUT .= loadTemplate('member_surfbar_list_row', true, $content);
-
-               // Switch color
-               $SW = 3 - $SW;
        } // END - if
 
        // Load main template
        } // END - if
 
        // Load main template
index e298d8789bed5b23ffd56bdc253b7c5252c39bb0..f7381e612ba3d4b036de2d4fa3e20cf64db44b18 100644 (file)
@@ -107,35 +107,35 @@ unset($GLOBALS['theme_data']);
 array_pk_sort($THEMES, array('theme_name'));
 
 // Generate output lines for the template
 array_pk_sort($THEMES, array('theme_name'));
 
 // Generate output lines for the template
-$OUT = ''; $SW = 2;
+$OUT = '';
 foreach ($THEMES['theme_unix'] as $key => $unix) {
        $default = '';
        if (getCurrentTheme() == $unix) $default = ' selected="selected"';
 
        // Add row
 foreach ($THEMES['theme_unix'] as $key => $unix) {
        $default = '';
        if (getCurrentTheme() == $unix) $default = ' selected="selected"';
 
        // Add row
+       // @TODO Move this code into a template
        $OUT .= "<tr>
        $OUT .= "<tr>
-  <td class=\"switch_sw".$SW." bottom right\" align=\"center\" height=\"30\">
+  <td class=\"{%template,ColorSwitch%} bottom right\" align=\"center\" height=\"30\">
     <input type=\"radio\" name=\"member_theme\" class=\"member_normal\" value=\"".$unix."\"".$default." />
   </td>
     <input type=\"radio\" name=\"member_theme\" class=\"member_normal\" value=\"".$unix."\"".$default." />
   </td>
-  <td class=\"switch_sw".$SW." bottom right\" align=\"center\">".$THEMES['theme_name'][$key]."</td>
-  <td class=\"switch_sw".$SW." bottom right\" align=\"center\">
+  <td class=\"{%template,ColorSwitch%} bottom right\" align=\"center\">".$THEMES['theme_name'][$key]."</td>
+  <td class=\"{%template,ColorSwitch%} bottom right\" align=\"center\">
     <a href=\"mailto:".$THEMES['theme_email'][$key]."?Subject=[Theme:] ".$THEMES['theme_name'][$key]." (".$unix.")'.'\">".$THEMES['theme_author'][$key]."</a>
   </td>
     <a href=\"mailto:".$THEMES['theme_email'][$key]."?Subject=[Theme:] ".$THEMES['theme_name'][$key]." (".$unix.")'.'\">".$THEMES['theme_author'][$key]."</a>
   </td>
-  <td class=\"switch_sw".$SW." bottom right\" align=\"center\">
+  <td class=\"{%template,ColorSwitch%} bottom right\" align=\"center\">
     <a href=\"".generateDerefererUrl($THEMES['theme_url'][$key])."\" target=\"_blank\">".$THEMES['theme_url'][$key]."</a>
   </td>
     <a href=\"".generateDerefererUrl($THEMES['theme_url'][$key])."\" target=\"_blank\">".$THEMES['theme_url'][$key]."</a>
   </td>
-  <td class=\"switch_sw".$SW." bottom\" align=\"center\">v".$THEMES['theme_version'][$key]."</td>
+  <td class=\"{%template,ColorSwitch%} bottom\" align=\"center\">v".$THEMES['theme_version'][$key]."</td>
 </tr>\n";
 </tr>\n";
-       $SW = 3 - $SW;
 } // END - foreach
 
 if (empty($OUT)) {
        // No themes found???
 } // END - foreach
 
 if (empty($OUT)) {
        // No themes found???
-       $OUT = "<tr>
-  <td colspan=\"5\" class=\"bottom\" height=\"80\">
-    ".loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_THEMES_FOUND--}')."
+       $OUT = '<tr>
+  <td colspan="5" class="bottom" height="80">
+    ' . loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_THEMES_FOUND--}') . '
   </td>
   </td>
-</tr>\n";
+</tr>';
 } // END - if
 
 // Load template
 } // END - if
 
 // Load template
index e0d8f1fbc9a49c8e3f989163cc5ca07ce84f4d21..699dc3d867079e40c2422fd2b3831a396e4deb4c 100644 (file)
@@ -300,7 +300,7 @@ switch ($mode) {
 
                // Do we have entries?
                if (SQL_NUMROWS($result) > 0) {
 
                // Do we have entries?
                if (SQL_NUMROWS($result) > 0) {
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        // @TODO This should be somehow rewritten to $row = SQL_FETCHARRAY(), see switch() block above for SQL queries
                        while (list($tid, $userid, $points, $reason, $stamp) = SQL_FETCHROW($result)) {
                                // Rewrite points
                        // @TODO This should be somehow rewritten to $row = SQL_FETCHARRAY(), see switch() block above for SQL queries
                        while (list($tid, $userid, $points, $reason, $stamp) = SQL_FETCHROW($result)) {
                                // Rewrite points
@@ -309,7 +309,6 @@ switch ($mode) {
                                // Prepare content for template
                                // @TODO Rewrite: tid->trans_id,stamp->time_trans
                                $row = array(
                                // Prepare content for template
                                // @TODO Rewrite: tid->trans_id,stamp->time_trans
                                $row = array(
-                                       'sw'       => $SW,
                                        'trans_id' => $tid,
                                        'stamp'    => generateDateTime($stamp, 3),
                                        'userid'   => $userid,
                                        'trans_id' => $tid,
                                        'stamp'    => generateDateTime($stamp, 3),
                                        'userid'   => $userid,
@@ -322,7 +321,6 @@ switch ($mode) {
 
                                // Add points and switch color
                                $totalPoints += $points;
 
                                // Add points and switch color
                                $totalPoints += $points;
-                               $SW = 3 - $SW;
                        } // END - while
 
                        // Free memory
                        } // END - while
 
                        // Free memory
@@ -393,13 +391,12 @@ KEY (`party_userid`)
                                __FILE__, __LINE__);
 
                        // Output rows
                                __FILE__, __LINE__);
 
                        // Output rows
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        while ($content = SQL_FETCHARRAY($result)) {
                                // Rewrite points
                                if ($content['trans_type'] == 'OUT') $content['points'] = '-'.$content['points']."";
 
                                // Prepare content for template
                        while ($content = SQL_FETCHARRAY($result)) {
                                // Rewrite points
                                if ($content['trans_type'] == 'OUT') $content['points'] = '-'.$content['points']."";
 
                                // Prepare content for template
-                               $content['sw']     = $SW;
                                $content['time']   = generateDateTime($content['time_trans'], 3);
                                $content['points'] = translateComma($content['points']);
 
                                $content['time']   = generateDateTime($content['time_trans'], 3);
                                $content['points'] = translateComma($content['points']);
 
@@ -408,7 +405,6 @@ KEY (`party_userid`)
 
                                // Add points and switch color
                                $total += $content['points'];
 
                                // Add points and switch color
                                $total += $content['points'];
-                               $SW = 3 - $SW;
                        } // END - while
 
                        // Free memory
                        } // END - while
 
                        // Free memory
index a7b77699b20df4f316dda45c35db149173c89709..b0e26fb04e5e041dd86eaeeac555f1fb2125af2a 100644 (file)
@@ -135,7 +135,7 @@ if (isExtensionActive('bonus')) {
 // Mails left for confirmation?
 if (SQL_NUMROWS($result) > 0) {
        // Please confirm these mails!
 // Mails left for confirmation?
 if (SQL_NUMROWS($result) > 0) {
        // Please confirm these mails!
-       $sum = '0'; $OUT = ''; $SW = 2;
+       $sum = '0'; $OUT = '';
 
        // Init content
        $content = array();
 
        // Init content
        $content = array();
@@ -204,7 +204,6 @@ LIMIT 1",
 
                        // Prepare data for template
                        $content = array(
 
                        // Prepare data for template
                        $content = array(
-                               'sw'        => $SW,
                                'userid'    => getMemberId(),
                                'data'      => bigintval($DATA),
                                'type'      => $type,
                                'userid'    => getMemberId(),
                                'data'      => bigintval($DATA),
                                'type'      => $type,
@@ -226,7 +225,6 @@ LIMIT 1",
                } else {
                        // Prepare data for template
                        $content = array(
                } else {
                        // Prepare data for template
                        $content = array(
-                               'sw'    => $SW,
                                'data'  => $DATA,
                                'probl' => $PROBLEM,
                        );
                                'data'  => $DATA,
                                'probl' => $PROBLEM,
                        );
@@ -241,9 +239,6 @@ LIMIT 1",
 
                // Free result
                SQL_FREERESULT($result_data);
 
                // Free result
                SQL_FREERESULT($result_data);
-
-               // Switch color
-               $SW = 3 - $SW;
        } // END - while
 
        // Free memory
        } // END - while
 
        // Free memory
index 4729c81f1de3cd656f1efcb93709c5032ab9a716..8cd3a295f5e5dc990327d7a0dffb951480f68b9d 100644 (file)
@@ -79,7 +79,7 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
                        array(getMemberId()), __FILE__, __LINE__);
 
                // Load all rows
                        array(getMemberId()), __FILE__, __LINE__);
 
                // Load all rows
-               $content['rows'] = ''; $SW = 2;
+               $content['rows'] = '';
                while ($data = SQL_FETCHARRAY($result)) {
                        // Prepare data for output
                        $rowContent = array(
                while ($data = SQL_FETCHARRAY($result)) {
                        // Prepare data for output
                        $rowContent = array(
@@ -87,13 +87,11 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
                                'wernis_amount'    => $data['wernis_amount'],
                                'wernis_account'   => $data['wernis_account'],
                                'wernis_type'      => $data['wernis_type'],
                                'wernis_amount'    => $data['wernis_amount'],
                                'wernis_account'   => $data['wernis_account'],
                                'wernis_type'      => $data['wernis_type'],
-                               'sw'               => $SW,
                        );
 
                        // Load row template
                        $content['rows'] .= loadTemplate('member_wernis_mode_list_row', true, $rowContent);
                        );
 
                        // Load row template
                        $content['rows'] .= loadTemplate('member_wernis_mode_list_row', true, $rowContent);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
 
                // Free result
                SQL_FREERESULT($result);
 
                // Free result
                SQL_FREERESULT($result);
diff --git a/inc/template-functions.php b/inc/template-functions.php
new file mode 100644 (file)
index 0000000..ac4d856
--- /dev/null
@@ -0,0 +1,1690 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 04/04/2009 *
+ * ===================                          Last change: 04/04/2009 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : template-functions.php                           *
+ * -------------------------------------------------------------------- *
+ * Short description : Template functions                               *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Template-Funktionen                              *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 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
+
+// Wrapper until we merged to the EL branch
+function preCompileCode ($code, $template = '', $compiled = false, $full = true, $overwrite = false) {
+       return compileCode($code, false, true, $full);
+}
+
+// Setter for 'is_template_html'
+function enableTemplateHtml ($enable = true) {
+       $GLOBALS['is_template_html'] = (bool) $enable;
+}
+
+// Checks wether the template is HTML or not by previously set flag
+// Default: true
+function isTemplateHtml () {
+       // Is the output_mode other than 0 (HTML), then no comments are enabled
+       if (getOutputMode() != 0) {
+               // No HTML
+               return false;
+       } else {
+               // Maybe HTML?
+               return $GLOBALS['is_template_html'];
+       }
+}
+
+// Wrapper for writing debug informations to the browser
+function debugOutput ($message) {
+       outputHtml('<div class="debug_message">' . $message . '</div>');
+}
+
+// "Fixes" an empty string into three dashes (use for templates)
+function fixEmptyContentToDashes ($str) {
+       // Trim the string
+       $str = trim($str);
+
+       // Is the string empty?
+       if (empty($str)) $str = '---';
+
+       // Return string
+       return $str;
+}
+
+// Color-switch helper function
+function doTemplateColorSwitch ($template, $clear = false, $return = true) {
+       // Is it there?
+       if (!isset($GLOBALS['color_switch'][$template])) {
+               // Initialize it
+               initTemplateColorSwitch($template);
+       } elseif ($clear === false) {
+               // Switch color if called from loadTemplate()
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'SWITCH:' . $template);
+               $GLOBALS['color_switch'][$template] = 3 - $GLOBALS['color_switch'][$template];
+       } // END - if
+
+       // Return CSS class name
+       if ($return === true) {
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'RETURN:' . $template . '=' . $GLOBALS['color_switch'][$template]);
+               return 'switch_sw' . $GLOBALS['color_switch'][$template];
+       } // END - if
+}
+
+// Init color switch
+function initTemplateColorSwitch ($template) {
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'INIT:' . $template);
+       $GLOBALS['color_switch'][$template] = 2;
+}
+
+// "Getter" for color switch code
+function getColorSwitchCode ($template) {
+       // Prepare the code
+       $code = "{DQUOTE} . doTemplateColorSwitch('" . $template . "', false, false) . {DQUOTE}";
+
+       // And return it
+       return $code;
+}
+
+// Output HTML code directly or 'render' it. You addionally switch the new-line character off
+function outputHtml ($htmlCode, $newLine = true) {
+       // Init output
+       if (!isset($GLOBALS['output'])) {
+               $GLOBALS['output'] = '';
+       } // END - if
+
+       // Do we have HTML-Code here?
+       if (!empty($htmlCode)) {
+               // Yes, so we handle it as you have configured
+               switch (getConfig('OUTPUT_MODE')) {
+                       case 'render':
+                               // That's why you don't need any \n at the end of your HTML code... :-)
+                               if (getPhpCaching() == 'on') {
+                                       // Output into PHP's internal buffer
+                                       outputRawCode($htmlCode);
+
+                                       // That's why you don't need any \n at the end of your HTML code... :-)
+                                       if ($newLine === true) print("\n");
+                               } else {
+                                       // Render mode for old or lame servers...
+                                       $GLOBALS['output'] .= $htmlCode;
+
+                                       // That's why you don't need any \n at the end of your HTML code... :-)
+                                       if ($newLine === true) $GLOBALS['output'] .= "\n";
+                               }
+                               break;
+
+                       case 'direct':
+                               // If we are switching from render to direct output rendered code
+                               if ((!empty($GLOBALS['output'])) && (getPhpCaching() != 'on')) { outputRawCode($GLOBALS['output']); $GLOBALS['output'] = ''; }
+
+                               // The same as above... ^
+                               outputRawCode($htmlCode);
+                               if ($newLine === true) print("\n");
+                               break;
+
+                       default:
+                               // Huh, something goes wrong or maybe you have edited config.php ???
+                               debug_report_bug(__FUNCTION__, __LINE__, '<strong>{--FATAL_ERROR--}:</strong> {--LANG_NO_RENDER_DIRECT--}');
+                               break;
+               } // END - switch
+       } elseif ((getPhpCaching() == 'on') && ((!isset($GLOBALS['header'])) || (count($GLOBALS['header']) == 0))) {
+               // Output cached HTML code
+               $GLOBALS['output'] = ob_get_contents();
+
+               // Clear output buffer for later output if output is found
+               if (!empty($GLOBALS['output'])) {
+                       clearOutputBuffer();
+               } // END - if
+
+               // Send all HTTP headers
+               sendHttpHeaders();
+
+               // Compile and run finished rendered HTML code
+               compileFinalOutput();
+
+               // Output code here, DO NOT REMOVE! ;-)
+               outputRawCode($GLOBALS['output']);
+       } elseif ((getConfig('OUTPUT_MODE') == 'render') && (!empty($GLOBALS['output']))) {
+               // Send all HTTP headers
+               sendHttpHeaders();
+
+               // Compile and run finished rendered HTML code
+               compileFinalOutput();
+
+               // Output code here, DO NOT REMOVE! ;-)
+               outputRawCode($GLOBALS['output']);
+       } else {
+               // And flush all headers
+               flushHeaders();
+       }
+}
+
+// Compiles the final output
+function compileFinalOutput () {
+       // Add page header and footer
+       addPageHeaderFooter();
+
+       // Do the final compilation
+       $GLOBALS['output'] = doFinalCompilation($GLOBALS['output']);
+
+       // Extension 'rewrite' installed?
+       if ((isExtensionActive('rewrite')) && (getOutputMode() != 1)) {
+               $GLOBALS['output'] = rewriteLinksInCode($GLOBALS['output']);
+       } // END - if
+
+       // Compress it?
+       if (!empty($_SERVER['HTTP_ACCEPT_ENCODING']) && (strpos('gzip', $_SERVER['HTTP_ACCEPT_ENCODING']) !== null)) {
+               // Compress it for HTTP gzip
+               $GLOBALS['output'] = gzencode($GLOBALS['output'], 9, true);
+
+               // Add header
+               sendHeader('Content-Encoding: gzip');
+       } elseif (!empty($_SERVER['HTTP_ACCEPT_ENCODING']) && (strpos('deflate', $_SERVER['HTTP_ACCEPT_ENCODING']) !== null)) {
+               // Compress it for HTTP deflate
+               $GLOBALS['output'] = gzcompress($GLOBALS['output'], 9);
+
+               // Add header
+               sendHeader('Content-Encoding: deflate');
+       }
+
+       // Add final length
+       sendHeader('Content-Length: ' . strlen($GLOBALS['output']));
+
+       // Flush all headers
+       flushHeaders();
+}
+
+// Main compilation loop
+function doFinalCompilation ($code, $insertComments = true) {
+       // Insert comments? (Only valid with HTML templates, of course)
+       enableTemplateHtml($insertComments);
+
+       // Init counter
+       $cnt = 0;
+
+       // Compile all out
+       while (((strpos($code, '{--') !== false) || (strpos($code, '{DQUOTE}') !== false) || (strpos($code, '{?') !== false) || (strpos($code, '{%') !== false)) && ($cnt < 4)) {
+               // Init common variables
+               $content = array();
+               $newContent = '';
+
+               // Compile it
+               //* DEBUG: */ debugOutput('<pre>'.encodeEntities($code).'</pre>');
+               $eval = '$newContent = "' . str_replace('{DQUOTE}', '"', compileCode(escapeQuotes($code))) . '";';
+               //* DEBUG: */ if ($insertComments) die('<pre>'.linenumberCode($eval).'</pre>');
+               eval($eval);
+               //* DEBUG: */ die('<pre>'.encodeEntities($newContent).'</pre>');
+
+               // Was that eval okay?
+               if (empty($newContent)) {
+                       // Something went wrong!
+                       debug_report_bug(__FUNCTION__, __LINE__, 'Evaluation error:<pre>' . linenumberCode($eval) . '</pre>', false);
+               } // END - if
+
+               // Use it again
+               $code = $newContent;
+
+               // Count round
+               $cnt++;
+       } // END - while
+
+       // Return the compiled code
+       return $code;
+}
+
+// Output the raw HTML code
+function outputRawCode ($htmlCode) {
+       // Output stripped HTML code to avoid broken JavaScript code, etc.
+       print(str_replace('{BACK}', "\\", $htmlCode));
+
+       // Flush the output if only getPhpCaching() is not 'on'
+       if (getPhpCaching() != 'on') {
+               // Flush it
+               flush();
+       } // END - if
+}
+
+// Load a template file and return it's content (only it's name; do not use ' or ")
+function loadTemplate ($template, $return = false, $content = array()) {
+       // @TODO Remove this sanity-check if all is fine
+       if (!is_bool($return)) debug_report_bug(__FUNCTION__, __LINE__, 'return is not bool (' . gettype($return) . ')');
+
+       // Set current template
+       $GLOBALS['current_template'] = $template;
+
+       // Do we have cache?
+       if ((isDebuggingTemplateCache() === false) && (isTemplateCached($template))) {
+               // Evaluate the cache
+               eval(readTemplateCache($template));
+       } elseif (!isset($GLOBALS['template_eval'][$template])) {
+               // Make all template names lowercase
+               $template = strtolower($template);
+
+               // Init some data
+               $ret = '';
+               if (empty($GLOBALS['refid'])) $GLOBALS['refid'] = '0';
+
+               // Base directory
+               $basePath = sprintf("%stemplates/%s/html/", getConfig('PATH'), getLanguage());
+               $extraPath = detectExtraTemplatePath($template);;
+
+               ////////////////////////
+               // Generate file name //
+               ////////////////////////
+               $FQFN = $basePath . $extraPath . $template . '.tpl';
+
+               // Does the special template exists?
+               if (!isFileReadable($FQFN)) {
+                       // Reset to default template
+                       $FQFN = $basePath . $template . '.tpl';
+               } // END - if
+
+               // Now does the final template exists?
+               if (isFileReadable($FQFN)) {
+                       // Count the template load
+                       incrementConfigEntry('num_templates');
+
+                       // The local file does exists so we load it. :)
+                       $GLOBALS['tpl_content'] = readFromFile($FQFN);
+
+                       // Do we have to compile the code?
+                       $ret = '';
+                       if ((strpos($GLOBALS['tpl_content'], '$') !== false) || (strpos($GLOBALS['tpl_content'], '{--') !== false) || (strpos($GLOBALS['tpl_content'], '{?') !== false) || (strpos($GLOBALS['tpl_content'], '{%') !== false)) {
+                               // Normal HTML output?
+                               if (getOutputMode() == '0') {
+                                       // Add surrounding HTML comments to help finding bugs faster
+                                       $ret = '<!-- Template ' . $template . ' - Start //-->' . $GLOBALS['tpl_content'] . '<!-- Template ' . $template . ' - End //-->';
+
+                                       // Prepare eval() command
+                                       $GLOBALS['template_eval'][$template] = '$ret = "' . getColorSwitchCode($template) . compileCode(escapeQuotes($ret)) . '";';
+                               } elseif (substr($template, 0, 3) == 'js_') {
+                                       // JavaScripts don't like entities and timings
+                                       $GLOBALS['template_eval'][$template] = '$ret = decodeEntities("' . compileRawCode(escapeJavaScriptQuotes($GLOBALS['tpl_content'])) . '");';
+                               } else {
+                                       // Prepare eval() command, other output doesn't like entities, maybe
+                                       $GLOBALS['template_eval'][$template] = '$ret = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['tpl_content'])) . '");';
+                               }
+                       } else {
+                               // Add surrounding HTML comments to help finding bugs faster
+                               $ret = '<!-- Template ' . $template . ' - Start //-->' . $GLOBALS['tpl_content'] . '<!-- Template ' . $template . ' - End //-->';
+                               $GLOBALS['template_eval'][$template] = '$ret = "' . getColorSwitchCode($template) . compileRawCode(escapeQuotes($ret)) . '";';
+                       } // END - if
+               } elseif ((isAdmin()) || ((isInstalling()) && (!isInstalled()))) {
+                       // Only admins shall see this warning or when installation mode is active
+                       $ret = '<div class="para">
+       <span class="guest_failed">{--TEMPLATE_404--}</span>
+</div>
+<div class="para">
+       (' . $template . ')
+</div>
+<div class="para">
+       {--TEMPLATE_CONTENT--}
+       <pre>' . print_r($content, true) . '</pre>
+       {--TEMPLATE_DATA--}
+       <pre>' . print_r($DATA, true) . '</pre>
+</div>';
+               } else {
+                       // No file!
+                       $GLOBALS['template_eval'][$template] = '404';
+               }
+       }
+
+       // Code set?
+       if ((isset($GLOBALS['template_eval'][$template])) && ($GLOBALS['template_eval'][$template] != '404')) {
+               // Eval the code
+               eval($GLOBALS['template_eval'][$template]);
+       } // END - if
+
+       // Do we have some content to output or return?
+       if (!empty($ret)) {
+               // Not empty so let's put it out! ;)
+               if ($return === true) {
+                       // Return the HTML code
+                       return $ret;
+               } else {
+                       // Output directly
+                       outputHtml($ret);
+               }
+       } elseif (isDebugModeEnabled()) {
+               // Warning, empty output!
+               return 'E:' . $template . ',content=<pre>' . print_r($content, true) . '</pre>';
+       }
+}
+
+// Detects the extra template path from given template name
+function detectExtraTemplatePath ($template) {
+       // Default is empty
+       $extraPath = '';
+
+       // Do we have cache?
+       if (!isset($GLOBALS['extra_path'][$template])) {
+               // Check for admin/guest/member/etc. templates
+               if (substr($template, 0, 6) == 'admin_') {
+                       // Admin template found
+                       $extraPath = 'admin/';
+               } elseif (substr($template, 0, 6) == 'guest_') {
+                       // Guest template found
+                       $extraPath = 'guest/';
+               } elseif (substr($template, 0, 7) == 'member_') {
+                       // Member template found
+                       $extraPath = 'member/';
+               } elseif (substr($template, 0, 7) == 'select_') {
+                       // Selection template found
+                       $extraPath = 'select/';
+               } elseif (substr($template, 0, 8) == 'install_') {
+                       // Installation template found
+                       $extraPath = 'install/';
+               } elseif (substr($template, 0, 4) == 'ext_') {
+                       // Extension template found
+                       $extraPath = 'ext/';
+               } elseif (substr($template, 0, 3) == 'la_') {
+                       // 'Logical-area' template found
+                       $extraPath = 'la/';
+               } elseif (substr($template, 0, 3) == 'js_') {
+                       // JavaScript template found
+                       $extraPath = 'js/';
+               } elseif (substr($template, 0, 5) == 'menu_') {
+                       // Menu template found
+                       $extraPath = 'menu/';
+               } else {
+                       // Test for extension
+                       $test = substr($template, 0, strpos($template, '_'));
+
+                       // Probe for valid extension name
+                       if (isExtensionNameValid($test)) {
+                               // Set extra path to extension's name
+                               $extraPath = $test . '/';
+                       } // END - if
+               }
+
+               // Store it in cache
+               $GLOBALS['extra_path'][$template] = $extraPath;
+       } // END - if
+
+       // Return result
+       return $GLOBALS['extra_path'][$template];
+}
+
+// Loads an email template and compiles it
+function loadEmailTemplate ($template, $content = array(), $userid = '0') {
+       global $DATA;
+
+       // Make sure all template names are lowercase!
+       $template = strtolower($template);
+
+       // Is content an array?
+       if (is_array($content)) {
+               // Add expiration to array
+               if ((isConfigEntrySet('auto_purge')) && (getConfig('auto_purge') == '0')) {
+                       // Will never expire!
+                       $content['expiration'] = '{--MAIL_WILL_NEVER_EXPIRE--}';
+               } elseif (isConfigEntrySet('auto_purge')) {
+                       // Create nice date string
+                       $content['expiration'] = createFancyTime(getConfig('auto_purge'));
+               } else {
+                       // Missing entry
+                       $content['expiration'] = '{--MAIL_NO_CONFIG_AUTO_PURGE--}';
+               }
+       } // END - if
+
+       // Load user's data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "UID={$userid},template={$template},content[]=".gettype($content));
+       if (($userid > 0) && (is_array($content))) {
+               // If nickname extension is installed, fetch nickname as well
+               if ((isExtensionActive('nickname')) && (isNicknameUsed($userid))) {
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "NICKNAME!<br />");
+                       // Load by nickname
+                       fetchUserData($userid, 'nickname');
+               } else {
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "NO-NICK!<br />");
+                       /// Load by userid
+                       fetchUserData($userid);
+               }
+
+               // Merge data if valid
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "content()=".count($content)." - PRE<br />");
+               if (isUserDataValid()) {
+                       $content = merge_array($content, getUserDataArray());
+               } // END - if
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "content()=".count($content)." - AFTER<br />");
+       } // END - if
+
+       // Base directory
+       $basePath = sprintf("%stemplates/%s/emails/", getConfig('PATH'), getLanguage());
+
+       // Detect extra path
+       $extraPath = detectExtraTemplatePath($template);
+
+       // Generate full FQFN
+       $FQFN = $basePath . $extraPath . $template . '.tpl';
+
+       // Does the special template exists?
+       if (!isFileReadable($FQFN)) {
+               // Reset to default template
+               $FQFN = $basePath . $template . '.tpl';
+       } // END - if
+
+       // Now does the final template exists?
+       $newContent = '';
+       if (isFileReadable($FQFN)) {
+               // The local file does exists so we load it. :)
+               $GLOBALS['tpl_content'] = readFromFile($FQFN);
+
+               // Run code
+               $GLOBALS['tpl_content'] = '$newContent = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['tpl_content'])) . '");';
+               eval($GLOBALS['tpl_content']);
+       } elseif (!empty($template)) {
+               // Template file not found!
+               $newContent = '<div class="para">
+       {--TEMPLATE_404--}: ' . $template . '
+</div>
+<div class="para">
+       {--TEMPLATE_CONTENT--}
+       <pre>' . print_r($content, true) . '</pre>
+       {--TEMPLATE_DATA--}
+       <pre>' . print_r($DATA, true) . '</pre>
+</div>';
+
+               // Debug mode not active? Then remove the HTML tags
+               if (!isDebugModeEnabled()) $newContent = secureString($newContent);
+       } else {
+               // No template name supplied!
+               $newContent = '{--NO_TEMPLATE_SUPPLIED--}';
+       }
+
+       // Is there some content?
+       if (empty($newContent)) {
+               // Compiling failed
+               $newContent = "Compiler error for template " . $template . " !\nUncompiled content:\n" . $GLOBALS['tpl_content'];
+
+               // Add last error if the required function exists
+               if (function_exists('error_get_last')) $newContent .= "\n--------------------------------------\nDebug:\n".print_r(error_get_last(), true)."--------------------------------------\nPlease don't alter these informations!\nThanx.";
+       } // END - if
+
+       // Remove content and data
+       unset($content);
+       unset($DATA);
+
+       // Return content
+       return $newContent;
+}
+
+// "Getter" for menu CSS classes, mainly used in templates
+function getMenuCssClasses ($data) {
+       // $data needs to be converted into an array
+       $content = explode('|', $data);
+
+       // Non-existent index 2 will happen in menu blocks
+       if (!isset($content[2])) $content[2] = '';
+
+       // Re-construct the array: 0=visible,1=locked,2=prefix
+       $content['visible'] = $content[0];
+       $content['locked']  = $content[1];
+
+       // Call our "translator" function
+       $content = translateMenuVisibleLocked($content, $content[2]);
+
+       // Return CSS classes
+       return ($content['visible_css'] . ' ' . $content['locked_css']);
+}
+
+// Generate XHTML code for the CAPTCHA
+function generateCaptchaCode ($code, $type, $DATA, $userid) {
+       return '<img border="0" alt="Code ' . $code . '" src="{%url=mailid_top.php?userid=' . $userid . '&amp;' . $type . '=' . $DATA . '&amp;mode=img&amp;code=' . $code . '%}" />';
+}
+
+// Compiles the given HTML/mail code
+function compileCode ($code, $simple = false, $constants = true, $full = true) {
+       // Is the code a string?
+       if (!is_string($code)) {
+               // Silently return it
+               return $code;
+       } // END - if
+
+       // Start couting
+       $startCompile = microtime(true);
+
+       // Comile the code
+       $code = compileRawCode($code, $simple, $constants, $full);
+
+       // Get timing
+       $compiled = microtime(true);
+
+       // Add timing if enabled
+       if (isTemplateHtml()) {
+               // Add timing, this should be disabled in
+               $code .= '<!-- Compilation time: ' . (($compiled - $startCompile) * 1000). 'ms //-->';
+       } // END - if
+
+       // Return compiled code
+       return $code;
+}
+
+// Compiles the code (use compileCode() only for HTML because of the comments)
+// @TODO $simple/$constants are deprecated
+function compileRawCode ($code, $simple = false, $constants = true, $full = true) {
+       // Is the code a string?
+       if (!is_string($code)) {
+               // Silently return it
+               return $code;
+       } // END - if
+
+       // Init replacement-array with smaller set of security characters
+       $secChars = $GLOBALS['url_chars'];
+
+       // Select full set of chars to replace when we e.g. want to compile URLs
+       if ($full === true) $secChars = $GLOBALS['security_chars'];
+
+       // Compile more through a filter
+       $code = runFilterChain('compile_code', $code);
+
+       // Compile message strings
+       $code = str_replace('{--', '{%message,', str_replace('--}', '%}', $code));
+
+       // Compile QUOT and other non-HTML codes
+       foreach ($secChars['to'] as $k => $to) {
+               // Do the reversed thing as in inc/libs/security_functions.php
+               $code = str_replace($to, $secChars['from'][$k], $code);
+       } // END - foreach
+
+       // Find $content[bla][blub] entries
+       // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
+       preg_match_all('/\$(content|GLOBALS|DATA)((\[([a-zA-Z0-9-_]+)\])*)/', $code, $matches);
+
+       // Are some matches found?
+       if ((count($matches) > 0) && (count($matches[0]) > 0)) {
+               // Replace all matches
+               $matchesFound = array();
+               foreach ($matches[0] as $key => $match) {
+                       // Fuzzy look has failed by default
+                       $fuzzyFound = false;
+
+                       // Fuzzy look on match if already found
+                       foreach ($matchesFound as $found => $set) {
+                               // Get test part
+                               $test = substr($found, 0, strlen($match));
+
+                               // Does this entry exist?
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "found={$found},match={$match},set={$set}<br />");
+                               if ($test == $match) {
+                                       // Match found!
+                                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "fuzzyFound!<br />");
+                                       $fuzzyFound = true;
+                                       break;
+                               } // END - if
+                       } // END - foreach
+
+                       // Skip this entry?
+                       if ($fuzzyFound === true) continue;
+
+                       // Take all string elements
+                       if ((is_string($matches[4][$key])) && (!isset($matchesFound[$match])) && (!isset($matchesFound[$key.'_' . $matches[4][$key]]))) {
+                               // Replace it in the code
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "key={$key},match={$match}<br />");
+                               $newMatch = str_replace('[', "['", str_replace(']', "']", $match));
+                               $code = str_replace($match, '".' . $newMatch . '."', $code);
+                               $matchesFound[$key . '_' . $matches[4][$key]] = 1;
+                               $matchesFound[$match] = 1;
+                       } elseif (!isset($matchesFound[$match])) {
+                               // Not yet replaced!
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "match={$match}<br />");
+                               $code = str_replace($match, '".' . $match . '."', $code);
+                               $matchesFound[$match] = 1;
+                       }
+               } // END - foreach
+       } // END - if
+
+       // Return it
+       return $code;
+}
+
+//
+function addSelectionBox ($type, $default, $prefix = '', $id = '0', $class = 'register_select') {
+       $OUT = '';
+
+       if ($type == 'yn') {
+               // This is a yes/no selection only!
+               if ($id > 0) $prefix .= '[' . $id . ']';
+               $OUT .= '<select name="' . $prefix . '" class="' . $class . '" size="1">';
+       } else {
+               // Begin with regular selection box here
+               if (!empty($prefix)) $prefix .= '_';
+               $type2 = $type;
+               if ($id > 0) $type2 .= '[' . $id . ']';
+               $OUT .= '<select name="' . strtolower($prefix . $type2) . '" class="' . $class . '" size="1">';
+       }
+
+       switch ($type) {
+               case 'day': // Day
+                       for ($idx = 1; $idx < 32; $idx++) {
+                               $OUT .= '<option value="' . $idx . '"';
+                               if ($default == $idx) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       break;
+
+               case 'month': // Month
+                       foreach ($GLOBALS['month_descr'] as $idx => $descr) {
+                               $OUT .= '<option value="' . $idx . '"';
+                               if ($default == $idx) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $descr . '</option>';
+                       } // END - for
+                       break;
+
+               case 'year': // Year
+                       // Get current year
+                       $year = date('Y', time());
+
+                       // Use configured min age or fixed?
+                       if (isExtensionInstalledAndNewer('order', '0.2.1')) {
+                               // Configured
+                               $startYear = $year - getConfig('min_age');
+                       } else {
+                               // Fixed 16 years
+                               $startYear = $year - 16;
+                       }
+
+                       // Calculate earliest year (100 years old people can still enter Internet???)
+                       $minYear = $year - 100;
+
+                       // Check if the default value is larger than minimum and bigger than actual year
+                       if (($default > $minYear) && ($default >= $year)) {
+                               for ($idx = $year; $idx < ($year + 11); $idx++) {
+                                       $OUT .= '<option value="' . $idx . '"';
+                                       if ($default == $idx) $OUT .= ' selected="selected"';
+                                       $OUT .= '>' . $idx . '</option>';
+                               } // END - for
+                       } elseif ($default == -1) {
+                               // Current year minus 1
+                               for ($idx = $startYear; $idx <= ($year + 1); $idx++) {
+                                       $OUT .= '<option value="' . $idx . '">' . $idx . '</option>';
+                               } // END - for
+                       } else {
+                               // Get current year and subtract the configured minimum age
+                               $OUT .= '<option value="' . ($minYear - 1) . '">&lt;' . $minYear . '</option>';
+                               // Calculate earliest year depending on extension version
+                               if (isExtensionInstalledAndNewer('order', '0.2.1')) {
+                                       // Use configured minimum age
+                                       $year = date('Y', time()) - getConfig('min_age');
+                               } else {
+                                       // Use fixed 16 years age
+                                       $year = date('Y', time()) - 16;
+                               }
+
+                               // Construct year selection list
+                               for ($idx = $minYear; $idx <= $year; $idx++) {
+                                       $OUT .= '<option value="' . $idx . '"';
+                                       if ($default == $idx) $OUT .= ' selected="selected"';
+                                       $OUT .= '>' . $idx . '</option>';
+                               } // END - for
+                       }
+                       break;
+
+               case 'sec':
+               case 'min':
+                       for ($idx = 0; $idx < 60; $idx+=5) {
+                               if (strlen($idx) == 1) $idx = '0' . $idx;
+                               $OUT .= '<option value="' . $idx . '"';
+                               if ($default == $idx) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       break;
+
+               case 'hour':
+                       for ($idx = 0; $idx < 24; $idx++) {
+                               if (strlen($idx) == 1) $idx = '0' . $idx;
+                               $OUT .= '<option value="' . $idx . '"';
+                               if ($default == $idx) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       break;
+
+               case 'yn':
+                       $OUT .= '<option value="Y"';
+                       if ($default == 'Y') $OUT .= ' selected="selected"';
+                       $OUT .= '>{--YES--}</option><option value="N"';
+                       if ($default != 'Y') $OUT .= ' selected="selected"';
+                       $OUT .= '>{--NO--}</option>';
+                       break;
+       }
+       $OUT .= '</select>';
+       return $OUT;
+}
+
+// Insert the code in $img_code into jpeg or PNG image
+function generateImageOrCode ($img_code, $headerSent = true) {
+       // Is the code size oversized or shouldn't we display it?
+       if ((strlen($img_code) > 6) || (empty($img_code)) || (getConfig('code_length') == '0')) {
+               // Stop execution of function here because of over-sized code length
+               debug_report_bug(__FUNCTION__, __LINE__, 'img_code ' . $img_code .' has invalid length. img_code()=' . strlen($img_code) . ' code_length=' . getConfig('code_length'));
+       } elseif ($headerSent === false) {
+               // Return an HTML code here
+               return '<img src="{%url=img.php?code=' . $img_code . '%}" alt="Image" />';
+       }
+
+       // Load image
+       $img = sprintf("%s/theme/%s/images/code_bg.%s",
+               getConfig('PATH'),
+               getCurrentTheme(),
+               getConfig('img_type')
+       );
+
+       // Is it readable?
+       if (isFileReadable($img)) {
+               // Switch image type
+               switch (getConfig('img_type')) {
+                       case 'jpg':
+                               // Okay, load image and hide all errors
+                               $image = imagecreatefromjpeg($img);
+                               break;
+
+                       case 'png':
+                               // Okay, load image and hide all errors
+                               $image = imagecreatefrompng($img);
+                               break;
+               } // END - switch
+       } else {
+               // Exit function here
+               logDebugMessage(__FUNCTION__, __LINE__, sprintf("File for image type %s not found.", getConfig('img_type')));
+               return;
+       }
+
+       // Generate text color (red/green/blue; 0 = dark, 255 = bright)
+       $text_color = imagecolorallocate($image, 0, 0, 0);
+
+       // Insert code into image
+       imagestring($image, 5, 14, 2, $img_code, $text_color);
+
+       // Return to browser
+       sendHeader('Content-Type: image/' . getConfig('img_type'));
+
+       // Output image with matching image factory
+       switch (getConfig('img_type')) {
+               case 'jpg': imagejpeg($image); break;
+               case 'png': imagepng($image);  break;
+       } // END - switch
+
+       // Remove image from memory
+       imagedestroy($image);
+}
+// Create selection box or array of splitted timestamp
+function createTimeSelections ($timestamp, $prefix = '', $display = '', $align = 'center', $return_array=false) {
+       // Do not continue if ONE_DAY is absend
+       if (!isConfigEntrySet('ONE_DAY')) {
+               // And return the timestamp itself or empty array
+               if ($return_array === true) {
+                       return array();
+               } else {
+                       return $timestamp;
+               }
+       } // END - if
+
+       // Calculate 2-seconds timestamp
+       $stamp = round($timestamp);
+       //* DEBUG: */ debugOutput('*' . $stamp .'/' . $timestamp . '*');
+
+       // Do we have a leap year?
+       $SWITCH = '0';
+       $TEST = date('Y', time()) / 4;
+       $M1 = date('m', time());
+       $M2 = date('m', (time() + $timestamp));
+
+       // If so and if current time is before 02/29 and estimated time is after 02/29 then add 86400 seconds (one day)
+       if ((floor($TEST) == $TEST) && ($M1 == '02') && ($M2 > '02'))  $SWITCH = getConfig('ONE_DAY');
+
+       // First of all years...
+       $Y = abs(floor($timestamp / (31536000 + $SWITCH)));
+       //* DEBUG: */ debugOutput('Y=' . $Y);
+       // Next months...
+       $M = abs(floor($timestamp / 2628000 - $Y * 12));
+       //* DEBUG: */ debugOutput('M=' . $M);
+       // Next weeks
+       $W = abs(floor($timestamp / 604800 - $Y * ((365 + $SWITCH / getConfig('ONE_DAY')) / 7) - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY')) / 7)));
+       //* DEBUG: */ debugOutput('W=' . $W);
+       // Next days...
+       $D = abs(floor($timestamp / 86400 - $Y * (365 + $SWITCH / getConfig('ONE_DAY')) - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY'))) - $W * 7));
+       //* DEBUG: */ debugOutput('D=' . $D);
+       // Next hours...
+       $h = abs(floor($timestamp / 3600 - $Y * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY')) * 24) - $W * 7 * 24 - $D * 24));
+       //* DEBUG: */ debugOutput('h=' . $h);
+       // Next minutes..
+       $m = abs(floor($timestamp / 60 - $Y * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 * 60 - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 * 60) - $W * 7 * 24 * 60 - $D * 24 * 60 - $h * 60));
+       //* DEBUG: */ debugOutput('m=' . $m);
+       // And at last seconds...
+       $s = abs(floor($timestamp - $Y * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 * 3600 - ($M / 12 * (365 + $SWITCH / getConfig('ONE_DAY')) * 24 * 3600) - $W * 7 * 24 * 3600 - $D * 24 * 3600 - $h * 3600 - $m * 60));
+       //* DEBUG: */ debugOutput('s=' . $s);
+
+       // Is seconds zero and time is < 60 seconds?
+       if (($s == '0') && ($timestamp < 60)) {
+               // Fix seconds
+               $s = round($timestamp);
+       } // END - if
+
+       //
+       // Now we convert them in seconds...
+       //
+       if ($return_array) {
+               // Just put all data in an array for later use
+               $OUT = array(
+                       'YEARS'   => $Y,
+                       'MONTHS'  => $M,
+                       'WEEKS'   => $W,
+                       'DAYS'    => $D,
+                       'HOURS'   => $h,
+                       'MINUTES' => $m,
+                       'SECONDS' => $s
+               );
+       } else {
+               // Generate table
+               $OUT  = '<div align="' . $align . '">';
+               $OUT .= '<table border="0" cellspacing="0" cellpadding="0" class="timebox_table dashed">';
+               $OUT .= '<tr>';
+
+               if (isInString('Y', $display) || (empty($display))) {
+                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_YEARS--}</strong></td>';
+               } // END - if
+
+               if (isInString('M', $display) || (empty($display))) {
+                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_MONTHS--}</strong></td>';
+               } // END - if
+
+               if (isInString('W', $display) || (empty($display))) {
+                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_WEEKS--}</strong></td>';
+               } // END - if
+
+               if (isInString('D', $display) || (empty($display))) {
+                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_DAYS--}</strong></td>';
+               } // END - if
+
+               if (isInString('h', $display) || (empty($display))) {
+                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_HOURS--}</strong></td>';
+               } // END - if
+
+               if (isInString('m', $display) || (empty($display))) {
+                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_MINUTES--}</strong></td>';
+               } // END - if
+
+               if (isInString('s', $display) || (empty($display))) {
+                       $OUT .= '<td align="center" class="timebox_column bottom"><div class="tiny">{--_SECONDS--}</strong></td>';
+               } // END - if
+
+               $OUT .= '</tr>';
+               $OUT .= '<tr>';
+
+               if (isInString('Y', $display) || (empty($display))) {
+                       // Generate year selection
+                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_ye" size="1">';
+                       for ($idx = 0; $idx <= 10; $idx++) {
+                               $OUT .= '<option class="mini_select" value="' . $idx . '"';
+                               if ($idx == $Y) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       $OUT .= '</select></td>';
+               } else {
+                       $OUT .= '<input type="hidden" name="' . $prefix . '_ye" value="0" />';
+               }
+
+               if (isInString('M', $display) || (empty($display))) {
+                       // Generate month selection
+                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_mo" size="1">';
+                       for ($idx = 0; $idx <= 11; $idx++) {
+                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
+                               if ($idx == $M) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       $OUT .= '</select></td>';
+               } else {
+                       $OUT .= '<input type="hidden" name="' . $prefix . '_mo" value="0" />';
+               }
+
+               if (isInString('W', $display) || (empty($display))) {
+                       // Generate week selection
+                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_we" size="1">';
+                       for ($idx = 0; $idx <= 4; $idx++) {
+                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
+                               if ($idx == $W) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       $OUT .= '</select></td>';
+               } else {
+                       $OUT .= '<input type="hidden" name="' . $prefix . '_we" value="0" />';
+               }
+
+               if (isInString('D', $display) || (empty($display))) {
+                       // Generate day selection
+                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_da" size="1">';
+                       for ($idx = 0; $idx <= 31; $idx++) {
+                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
+                               if ($idx == $D) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       $OUT .= '</select></td>';
+               } else {
+                       $OUT .= '<input type="hidden" name="' . $prefix . '_da" value="0" />';
+               }
+
+               if (isInString('h', $display) || (empty($display))) {
+                       // Generate hour selection
+                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_ho" size="1">';
+                       for ($idx = 0; $idx <= 23; $idx++) {
+                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
+                               if ($idx == $h) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       $OUT .= '</select></td>';
+               } else {
+                       $OUT .= '<input type="hidden" name="' . $prefix . '_ho" value="0" />';
+               }
+
+               if (isInString('m', $display) || (empty($display))) {
+                       // Generate minute selection
+                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_mi" size="1">';
+                       for ($idx = 0; $idx <= 59; $idx++) {
+                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
+                               if ($idx == $m) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       $OUT .= '</select></td>';
+               } else {
+                       $OUT .= '<input type="hidden" name="' . $prefix . '_mi" value="0" />';
+               }
+
+               if (isInString('s', $display) || (empty($display))) {
+                       // Generate second selection
+                       $OUT .= '<td align="center"><select class="mini_select" name="' . $prefix . '_se" size="1">';
+                       for ($idx = 0; $idx <= 59; $idx++) {
+                               $OUT .= '  <option class="mini_select" value="' . $idx . '"';
+                               if ($idx == $s) $OUT .= ' selected="selected"';
+                               $OUT .= '>' . $idx . '</option>';
+                       } // END - for
+                       $OUT .= '</select></td>';
+               } else {
+                       $OUT .= '<input type="hidden" name="' . $prefix . '_se" value="0" />';
+               }
+               $OUT .= '</tr>';
+               $OUT .= '</table>';
+               $OUT .= '</div>';
+       }
+
+       // Return generated HTML code
+       return $OUT;
+}
+
+// Generate a list of administrative links to a given userid
+function generateMemberAdminActionLinks ($userid) {
+       // Make sure userid is a number
+       if ($userid != bigintval($userid)) debug_report_bug(__FUNCTION__, __LINE__, 'userid is not a number!');
+
+       // Define all main targets
+       $targetArray = array('del_user', 'edit_user', 'lock_user', 'add_points', 'sub_points');
+
+       // Get user status
+       $status = getFetchedUserData('userid', $userid, 'status');
+
+       // Begin of navigation links
+       $OUT = '[';
+
+       foreach ($targetArray as $tar) {
+               $OUT .= '<span class="admin_user_link"><a href="{%url=modules.php?module=admin&amp;what=' . $tar . '&amp;userid=' . $userid . '%}" title="{--ADMIN_LINK_';
+               //* DEBUG: */ debugOutput('*' . $tar.'/' . $status.'*');
+               if (($tar == 'lock_user') && ($status == 'LOCKED')) {
+                       // Locked accounts shall be unlocked
+                       $OUT .= 'UNLOCK_USER';
+               } else {
+                       // All other status is fine
+                       $OUT .= strtoupper($tar);
+               }
+               $OUT .= '_TITLE--}">{--ADMIN_';
+               if (($tar == 'lock_user') && ($status == 'LOCKED')) {
+                       // Locked accounts shall be unlocked
+                       $OUT .= 'UNLOCK_USER';
+               } else {
+                       // All other status is fine
+                       $OUT .= strtoupper($tar);
+               }
+               $OUT .= '--}</a></span>|';
+       } // END - foreach
+
+       // Finish navigation link
+       $OUT = substr($OUT, 0, -1) . ']';
+
+       // Return string
+       return $OUT;
+}
+
+// Generate an email link
+function generateEmailLink ($email, $table = 'admins') {
+       // Default email link (INSECURE! Spammer can read this by harvester programs)
+       $EMAIL = 'mailto:' . $email;
+
+       // Check for several extensions
+       if ((isExtensionActive('admins')) && ($table == 'admins')) {
+               // Create email link for contacting admin in guest area
+               $EMAIL = generateAdminEmailLink($email);
+       } elseif ((isExtensionInstalledAndNewer('user', '0.3.3')) && ($table == 'user_data')) {
+               // Create email link for contacting a member within admin area (or later in other areas, too?)
+               $EMAIL = generateUserEmailLink($email, 'admin');
+       } elseif ((isExtensionActive('sponsor')) && ($table == 'sponsor_data')) {
+               // Create email link to contact sponsor within admin area (or like the link above?)
+               $EMAIL = generateSponsorEmailLink($email, 'sponsor_data');
+       }
+
+       // Shall I close the link when there is no admin?
+       if ((!isAdmin()) && ($EMAIL == $email)) $EMAIL = '#'; // Closed!
+
+       // Return email link
+       return $EMAIL;
+}
+
+// Output error messages in a fasioned way and die...
+function app_die ($F, $L, $message) {
+       // Check if Script is already dieing and not let it kill itself another 1000 times
+       if (!isset($GLOBALS['app_died'])) {
+               // Make sure, that the script realy realy diese here and now
+               $GLOBALS['app_died'] = true;
+
+               // Set content type as text/html
+               setContentType('text/html');
+
+               // Load header
+               loadIncludeOnce('inc/header.php');
+
+               // Rewrite message for output
+               $message = sprintf(getMessage('MAILER_HAS_DIED'), basename($F), $L, $message);
+
+               // Load the message template
+               loadTemplate('app_die_message', false, $message);
+
+               // Load footer
+               loadIncludeOnce('inc/footer.php');
+       } else {
+               // Script tried to kill itself twice
+               die('['.__FUNCTION__.':'.__LINE__.']: Script wanted to kill itself more than once! Raw message=' . $message . ', file/function=' . $F . ', line=' . $L);
+       }
+}
+
+// Display parsing time and number of SQL queries in footer
+function displayParsingTime () {
+       // Is the timer started?
+       if (!isset($GLOBALS['startTime'])) {
+               // Abort here
+               return false;
+       } // END - if
+
+       // Get end time
+       $endTime = microtime(true);
+
+       // "Explode" both times
+       $start = explode(' ', $GLOBALS['startTime']);
+       $end = explode(' ', $endTime);
+       $runTime = $end[0] - $start[0];
+       if ($runTime < 0) $runTime = '0';
+
+       // Prepare output
+       // @TODO This can be easily moved out after the merge from EL branch to this is complete
+       $content = array(
+               'run_time' => $runTime,
+               'sql_time' => translateComma(getConfig('sql_time') * 1000),
+       );
+
+       // Load the template
+       $GLOBALS['page_footer'] .= loadTemplate('show_timings', true, $content);
+}
+
+// Output a debug backtrace to the user
+function debug_report_bug ($F, $L, $message = '', $sendEmail = true) {
+       // Is this already called?
+       if (isset($GLOBALS[__FUNCTION__])) {
+               // Other backtrace
+               print 'Message:'.$message.'<br />Backtrace:<pre>';
+               debug_print_backtrace();
+               die('</pre>');
+       } // END - if
+
+       // Set this function as called
+       $GLOBALS[__FUNCTION__] = true;
+
+       // Init message
+       $debug = '';
+
+       // Is the optional message set?
+       if (!empty($message)) {
+               // Use and log it
+               $debug = sprintf("Note: %s<br />\n",
+                       $message
+               );
+
+               // @TODO Add a little more infos here
+               logDebugMessage($F, $L, strip_tags($message));
+       } // END - if
+
+       // Add output
+       $debug .= 'Please report this bug at <a title="Direct link to the bug-tracker" href="http://bugs.mxchange.org" rel="external" target="_blank">http://bugs.mxchange.org</a> and include the logfile from <strong>' . str_replace(getConfig('PATH'), '', getConfig('CACHE_PATH')) . 'debug.log</strong> in your report (you can now attach files):<pre>';
+       $debug .= debug_get_printable_backtrace();
+       $debug .= '</pre>';
+       $debug .= '<div>Request-URI: ' . getRequestUri() . '</div>';
+       $debug .= '<div>Thank you for finding bugs.</div>';
+
+       // Send an email? (e.g. not wanted for evaluation errors)
+       if (($sendEmail === true) && (!isInstallationPhase())) {
+               // Prepare content
+               $content = array(
+                       'message'   => trim($message),
+                       'backtrace' => trim(debug_get_mailable_backtrace())
+               );
+
+               // Send email to webmaster
+               sendAdminNotification('{--DEBUG_REPORT_BUG_SUBJECT--}', 'admin_report_bug', $content);
+       } // END - if
+
+       // And abort here
+       app_die($F, $L, $debug);
+}
+
+// Compile characters which are allowed in URLs
+function compileUriCode ($code, $simple = true) {
+       // Compile constants
+       if ($simple === false) $code = str_replace('{--', '".', str_replace('--}', '."', $code));
+
+       // Compile QUOT and other non-HTML codes
+       $code = str_replace('{DOT}', '.',
+               str_replace('{SLASH}', '/',
+               str_replace('{QUOT}', "'",
+               str_replace('{DOLLAR}', '$',
+               str_replace('{OPEN_ANCHOR}', '(',
+               str_replace('{CLOSE_ANCHOR}', ')',
+               str_replace('{OPEN_SQR}', '[',
+               str_replace('{CLOSE_SQR}', ']',
+               str_replace('{PER}', '%',
+               $code
+       )))))))));
+
+       // Return compiled code
+       return $code;
+}
+
+// Handle message codes from URL
+function handleCodeMessage () {
+       if (isGetRequestParameterSet('code')) {
+               // Default extension is 'unknown'
+               $ext = 'unknown';
+
+               // Is extension given?
+               if (isGetRequestParameterSet('ext')) $ext = getRequestParameter('ext');
+
+               // Convert the 'code' parameter from URL to a human-readable message
+               $message = getMessageFromErrorCode(getRequestParameter('code'));
+
+               // Load message template
+               loadTemplate('message', false, $message);
+       } // END - if
+}
+
+// Generates a 'extension foo inactive' message
+function generateExtensionInactiveMessage ($ext_name) {
+       // Is the extension empty?
+       if (empty($ext_name)) {
+               // This should not happen
+               debug_report_bug(__FUNCTION__, __LINE__, 'Parameter ext is empty. This should not happen.');
+       } // END - if
+
+       // Default message
+       $message = getMaskedMessage('EXTENSION_PROBLEM_EXT_INACTIVE', $ext_name);
+
+       // Is an admin logged in?
+       if (isAdmin()) {
+               // Then output admin message
+               $message = getMaskedMessage('ADMIN_EXTENSION_PROBLEM_EXT_INACTIVE', $ext_name);
+       } // END - if
+
+       // Return prepared message
+       return $message;
+}
+
+// Generates a 'extension foo not installed' message
+function generateExtensionNotInstalledMessage ($ext_name) {
+       // Is the extension empty?
+       if (empty($ext_name)) {
+               // This should not happen
+               debug_report_bug(__FUNCTION__, __LINE__, 'Parameter ext is empty. This should not happen.');
+       } // END - if
+
+       // Default message
+       $message = getMaskedMessage('EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED', $ext_name);
+
+       // Is an admin logged in?
+       if (isAdmin()) {
+               // Then output admin message
+               $message = getMaskedMessage('ADMIN_EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED', $ext_name);
+       } // END - if
+
+       // Return prepared message
+       return $message;
+}
+
+// Generates a message depending on if the extension is not installed or not
+// just activated
+function generateExtensionInactiveNotInstalledMessage ($ext_name) {
+       // Init message
+       $message = '';
+
+       // Is the extension not installed or just deactivated?
+       switch (isExtensionInstalled($ext_name)) {
+               case true; // Deactivated!
+                       $message = generateExtensionInactiveMessage($ext_name);
+                       break;
+
+               case false; // Not installed!
+                       $message = generateExtensionNotInstalledMessage($ext_name);
+                       break;
+
+               default: // Should not happen!
+                       logDebugMessage(__FUNCTION__, __LINE__, sprintf("Invalid state of extension %s detected.", $ext_name));
+                       $message = sprintf("Invalid state of extension %s detected.", $ext_name);
+                       break;
+       } // END - switch
+
+       // Return the message
+       return $message;
+}
+
+// Print code with line numbers
+function linenumberCode ($code)    {
+       if (!is_array($code)) $codeE = explode("\n", $code); else $codeE = $code;
+       $count_lines = count($codeE);
+
+       $r = 'Line | Code:<br />';
+       foreach($codeE as $line => $c) {
+               $r .= '<div class="line"><span class="linenum">';
+               if ($count_lines == 1) {
+                       $r .= 1;
+               } else {
+                       $r .= ($line == ($count_lines - 1)) ? '' :  ($line+1);
+               }
+               $r .= '</span>|';
+
+               // Add code
+               $r .= '<span class="linetext">' . encodeEntities($c) . '</span></div>';
+       }
+
+       return '<div class="code">' . $r . '</div>';
+}
+
+// Determines the right page title
+function determinePageTitle () {
+       // Config and database connection valid?
+       if ((isConfigLocalLoaded()) && (isConfigurationLoaded()) && (SQL_IS_LINK_UP()) && (isExtensionInstalledAndNewer('sql_patches', '0.1.6'))) {
+               // Init title
+               $TITLE = '';
+
+               // Title decoration enabled?
+               if ((getConfig('enable_title_deco') == 'Y') && (getConfig('title_left') != '')) $TITLE .= trim(getConfig('title_left')) . ' ';
+
+               // Do we have some extra title?
+               if (isExtraTitleSet()) {
+                       // Then prepent it
+                       $TITLE .= getExtraTitle() . ' by ';
+               } // END - if
+
+               // Add main title
+               $TITLE .= getConfig('MAIN_TITLE');
+
+               // Add title of module? (middle decoration will also be added!)
+               if ((getConfig('enable_mod_title') == 'Y') || ((!isWhatSet()) && (!isActionSet())) || (getModule() == 'admin')) {
+                       $TITLE .= ' ' . trim(getConfig('title_middle')) . ' ' . getModuleTitle(getModule());
+               } // END - if
+
+               // Add title from what file
+               $mode = '';
+               if (getModule() == 'login') $mode = 'member';
+               elseif (getModule() == 'index') $mode = 'guest';
+               if ((!empty($mode)) && (getConfig('enable_what_title') == 'Y')) $TITLE .= ' ' . trim(getConfig('title_middle')) . ' ' . getTitleFromMenu($mode, getWhat());
+
+               // Add title decorations? (right)
+               if ((getConfig('enable_title_deco') == 'Y') && (getConfig('title_right') != '')) $TITLE .= ' ' . trim(getConfig('title_right'));
+
+               // Remember title in constant for the template
+               $pageTitle = $TITLE;
+       } elseif ((isInstalled()) && (isAdminRegistered())) {
+               // Installed, admin registered but no ext-sql_patches
+               $pageTitle = '[-- ' . getConfig('MAIN_TITLE') . ' - ' . getModuleTitle(getModule()) . ' --]';
+       } elseif ((isInstalled()) && (!isAdminRegistered())) {
+               // Installed but no admin registered
+               $pageTitle = '{--SETUP_OF_MAILER--}';
+       } elseif ((!isInstalled()) || (!isAdminRegistered())) {
+               // Installation mode
+               $pageTitle = '{--INSTALLATION_OF_MAILER--}';
+       } else {
+               // Configuration not found!
+               $pageTitle = '{--NO_CONFIG_FOUND_TITLE--}';
+
+               // Do not add the fatal message in installation mode
+               if ((!isInstalling()) && (!isConfigurationLoaded())) addFatalMessage(__FUNCTION__, __LINE__, '{--NO_CONFIG_FOUND--}');
+       }
+
+       // Return title
+       return decodeEntities($pageTitle);
+}
+
+// Checks wethere there is a cache file there. This function is cached.
+function isTemplateCached ($template) {
+       // Do we have cached this result?
+       if (!isset($GLOBALS['template_cache'][$template])) {
+               // Generate FQFN
+               $FQFN = generateCacheFqfn($template);
+
+               // Is it there?
+               $GLOBALS['template_cache'][$template] = isFileReadable($FQFN);
+       } // END - if
+
+       // Return it
+       return $GLOBALS['template_cache'][$template];
+}
+
+// Flushes non-flushed template cache to disk
+function flushTemplateCache ($template, $eval) {
+       // Is this cache flushed?
+       if ((isDebuggingTemplateCache() === false) && (isTemplateCached($template) === false) && ($eval != '404')) {
+               // Generate FQFN
+               $FQFN = generateCacheFqfn($template);
+
+               // And flush it
+               writeToFile($FQFN, $eval, true);
+       } // END - if
+}
+
+// Reads a template cache
+function readTemplateCache ($template) {
+       // Check it again
+       if ((isDebuggingTemplateCache()) || (!isTemplateCached($template))) {
+               // This should not happen
+               debug_report_bug('Wether debugging of template cache is enabled or template ' . $template . ' is not cached while expected.');
+       } // END - if
+
+       // Is it cached?
+       if (!isset($GLOBALS['template_eval'][$template])) {
+               // Generate FQFN
+               $FQFN = generateCacheFqfn($template);
+
+               // And read from it
+               $GLOBALS['template_eval'][$template] = readFromFile($FQFN);
+       } // END - if
+
+       // And return it
+       return $GLOBALS['template_eval'][$template];
+}
+
+// Escapes quotes (default is only double-quotes)
+function escapeQuotes ($str, $single = false) {
+       // Should we escape all?
+       if ($single === true) {
+               // Escape all (including null)
+               $str = addslashes($str);
+       } else {
+               // Escape only double-quotes but prevent double-quoting
+               $str = str_replace("\\\\", "\\", str_replace('"', "\\\"", $str));
+       }
+
+       // Return the escaped string
+       return $str;
+}
+
+// Escapes the JavaScript code, prevents \r and \n becoming char 10/13
+function escapeJavaScriptQuotes ($str) {
+       // Replace all double-quotes and secure back-ticks
+       $str = str_replace('"', '\"', str_replace("\\", '{BACK}', $str));
+
+       // Return it
+       return $str;
+}
+
+// Send out mails depending on the 'mod/modes' combination
+// @TODO Lame description for this function
+function sendModeMails ($mod, $modes) {
+       // Load hash
+       if (fetchUserData(getMemberId())) {
+               // Extract salt from cookie
+               $salt = substr(getSession('u_hash'), 0, -40);
+
+               // Now let's compare passwords
+               $hash = encodeHashForCookie(getUserData('password'));
+
+               // Does the hash match or should we change it?
+               if (($hash == getSession('u_hash')) || (postRequestParameter('pass1') == postRequestParameter('pass2'))) {
+                       // Load the data
+                       $content = getUserDataArray();
+
+                       // Clear/init the content variable
+                       $content['message'] = '';
+
+                       // Which mail?
+                       // @TODO Move this in a filter
+                       switch ($mod) {
+                               case 'mydata':
+                                       foreach ($modes as $mode) {
+                                               switch ($mode) {
+                                                       case 'normal': break; // Do not add any special lines
+                                                       case 'email': // Email was changed!
+                                                               $content['message'] = '{--MEMBER_CHANGED_EMAIL--}' . ': ' . postRequestParameter('old_email') . "\n";
+                                                               break;
+
+                                                       case 'pass': // Password was changed
+                                                               $content['message'] = '{--MEMBER_CHANGED_PASS--}' . "\n";
+                                                               break;
+
+                                                       default:
+                                                               logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown mode %s detected.", $mode));
+                                                               $content['message'] = '{--MEMBER_UNKNOWN_MODE--}' . ': ' . $mode . "\n\n";
+                                                               break;
+                                               } // END - switch
+                                       } // END - foreach
+
+                                       if (isExtensionActive('country')) {
+                                               // Replace code with description
+                                               $content['country'] = generateCountryInfo(postRequestParameter('country_code'));
+                                       } // END - if
+
+                                       // Merge content with data from POST
+                                       $content = merge_array($content, postRequestArray());
+
+                                       // Load template
+                                       $message = loadEmailTemplate('member_mydata_notify', $content, getMemberId());
+
+                                       if (getConfig('admin_notify') == 'Y') {
+                                               // The admin needs to be notified about a profile change
+                                               $message_admin = 'admin_mydata_notify';
+                                               $sub_adm   = '{--ADMIN_CHANGED_DATA--}';
+                                       } else {
+                                               // No mail to admin
+                                               $message_admin = '';
+                                               $sub_adm   = '';
+                                       }
+
+                                       // Set subject lines
+                                       $sub_mem = '{--MEMBER_CHANGED_DATA--}';
+
+                                       // Output success message
+                                       $content = '<span class="member_done">{--MYDATA_MAIL_SENT--}</span>';
+                                       break;
+
+                               default: // Unsupported module!
+                                       logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unsupported module %s detected.", $mod));
+                                       $content = '<span class="member_failed">{--UNKNOWN_MODULE--}</span>';
+                                       break;
+                       } // END - switch
+               } else {
+                       // Passwords mismatch
+                       $content = '<span class="member_failed">{--MEMBER_PASSWORD_ERROR--}</span>';
+               }
+       } else {
+               // Could not load profile
+               $content = '<span class="member_failed">{--MEMBER_CANNOT_LOAD_PROFILE--}</span>';
+       }
+
+       // Send email to user if required
+       if ((!empty($sub_mem)) && (!empty($message))) {
+               // Send member mail
+               sendEmail($content['email'], $sub_mem, $message);
+       } // END - if
+
+       // Send only if no other error has occured
+       if (empty($content)) {
+               if ((!empty($sub_adm)) && (!empty($message_admin))) {
+                       // Send admin mail
+                       sendAdminNotification($sub_adm, $message_admin, $content, getMemberId());
+               } elseif (getConfig('admin_notify') == 'Y') {
+                       // Cannot send mails to admin!
+                       $content = '{--CANNOT_SEND_ADMIN_MAILS--}';
+               } else {
+                       // No mail to admin
+                       $content = '<span class="member_done">{--MYDATA_MAIL_SENT--}</span>';
+               }
+       } // END - if
+
+       // Load template
+       loadTemplate('admin_settings_saved', false, $content);
+}
+
+// Generates a 'selection box' from given array
+function generateSelectionBoxFromArray ($options, $name, $optionValue, $optionContent = '', $extraName = '') {
+       // Start the output
+       $OUT = '<select name="' . $name . '" size="1" class="admin_select">
+<option value="X" disabled="disabled">{--PLEASE_SELECT--}</option>';
+
+       // Walk through all options
+       foreach ($options as $option) {
+               // Add the <option> entry
+               if (empty($optionContent)) {
+                       // ... from template
+                       $OUT .= loadTemplate('select_' . $name . $extraName . '_option', true, $option);
+               } else {
+                       // Direct HTML code
+                       $OUT .= '<option value="' . $option[$optionValue] . '">' . $option[$optionContent] . '</option>';
+               }
+       } // END - foreach
+
+       // Finish selection box
+       $OUT .= '</select>';
+
+       // Prepare output
+       $content = array(
+               'selection_box' => $OUT,
+               'module'        => getModule(),
+               'what'          => getWhat()
+       );
+
+       // Load template and return it
+       return loadTemplate('select_' . $name . $extraName . '_box', true, $content);
+}
+
+// Prepares the header for HTML output
+function loadHtmlHeader () {
+       // Run two filters:
+       // 1.) pre_page_header (mainly loads the page_header template and includes
+       //     meta description)
+       runFilterChain('pre_page_header');
+
+       // Here can be something be added, but normally one of the two filters
+       // around this line should do the job for you.
+
+       // 2.) post_page_header (mainly to load stylesheet, extra JavaScripts and
+       //     to close the head-tag)
+       // Include more header data here
+       runFilterChain('post_page_header');
+}
+
+// Adds page header and footer to output array element
+function addPageHeaderFooter () {
+       // Init output
+       $OUT = '';
+
+       // Add them all together. This is maybe to simple
+       foreach (array('page_header', 'output', 'page_footer') as $pagePart) {
+               // Add page part if set
+               if (isset($GLOBALS[$pagePart])) $OUT .= $GLOBALS[$pagePart];
+       } // END - foreach
+
+       // Transfer $OUT to 'output'
+       $GLOBALS['output'] = $OUT;
+}
+
+// Generates meta description for current module and 'what' value
+function generateMetaDescriptionCode () {
+       // Only include from guest area and if sql_patches has correct version
+       if ((getModule() == 'index') && (isExtensionInstalledAndNewer('sql_patches', '0.1.6'))) {
+               // Construct dynamic description
+               $DESCR = '{?MAIN_TITLE?} ' . trim(getConfig('title_middle')) . ' ' . getTitleFromMenu('guest', getWhat());
+
+               // Output it directly
+               $GLOBALS['page_header'] .= '<meta name="description" content="' . $DESCR . '" />';
+       } // END - if
+
+       // Remove depth
+       unset($GLOBALS['ref_level']);
+}
+
+// Generates an FQFN for template cache from the given template name
+function generateCacheFqfn ($template, $mode = 'html') {
+       // Is this cached?
+       if (!isset($GLOBALS['template_cache_fqfn'][$template])) {
+               // Generate the FQFN
+               $GLOBALS['template_cache_fqfn'][$template] = sprintf(
+                       "%s_compiled/%s/%s.tpl.cache",
+                       getConfig('CACHE_PATH'),
+                       $mode,
+                       $template
+               );
+       } // END - if
+
+       // Return it
+       return $GLOBALS['template_cache_fqfn'][$template];
+}
+
+// "Fixes" null or empty string to count of dashes
+function fixNullEmptyToDashes ($str, $num) {
+       // Use str as default
+       $return = $str;
+
+       // Is it empty?
+       if ((is_null($str)) || (trim($str) == '')) {
+               // Set it
+               $return = str_repeat('-', $num);
+       } // END - if
+
+       // Return final string
+       return $return;
+}
+
+// [EOF]
+?>
index e44abe4e868658b818d5c9e3498666976357d1e0..dee0ad81ac815be93cf0539b73315a133cb4e125 100644 (file)
@@ -694,6 +694,12 @@ function addPointsDirectly ($subject, $userid, $points) {
        return addPointsThroughReferalSystem($subject, $userid, $points, false, 0, false, 'direct');
 }
 
        return addPointsThroughReferalSystem($subject, $userid, $points, false, 0, false, 'direct');
 }
 
+// Wrapper for redirectToUrl but URL comes from a configuration entry
+function redirectToConfiguredUrl ($configEntry) {
+       // Load the URL
+       redirectToUrl(getConfig($configEntry));
+}
+
 // Wrapper function to redirect from member-only modules to index
 function redirectToIndexMemberOnlyModule () {
        // Do the redirect here
 // Wrapper function to redirect from member-only modules to index
 function redirectToIndexMemberOnlyModule () {
        // Do the redirect here
@@ -926,11 +932,6 @@ function ifFatalErrorsDetected () {
        return (getTotalFatalErrors() > 0);
 }
 
        return (getTotalFatalErrors() > 0);
 }
 
-// Wrapper until we merged to the EL branch
-function preCompileCode ($code, $template = '', $compiled = false, $full = true, $overwrite = false) {
-       return compileCode($code, false, true, $full);
-}
-
 // Setter for HTTP status
 function setHttpStatus ($status) {
        $GLOBALS['http_status'] = (string) $status;
 // Setter for HTTP status
 function setHttpStatus ($status) {
        $GLOBALS['http_status'] = (string) $status;
@@ -941,24 +942,6 @@ function getHttpStatus () {
        return $GLOBALS['http_status'];
 }
 
        return $GLOBALS['http_status'];
 }
 
-// Setter for 'is_template_html'
-function enableTemplateHtml ($enable = true) {
-       $GLOBALS['is_template_html'] = (bool) $enable;
-}
-
-// Checks wether the template is HTML or not by previously set flag
-// Default: true
-function isTemplateHtml () {
-       // Is the output_mode other than 0 (HTML), then no comments are enabled
-       if (getOutputMode() != 0) {
-               // No HTML
-               return false;
-       } else {
-               // Maybe HTML?
-               return $GLOBALS['is_template_html'];
-       }
-}
-
 /**
  * Send a HTTP redirect to the browser. This function was taken from DokuWiki
  * (GNU GPL 2; http://www.dokuwiki.org) and modified to fit into mailer project.
 /**
  * Send a HTTP redirect to the browser. This function was taken from DokuWiki
  * (GNU GPL 2; http://www.dokuwiki.org) and modified to fit into mailer project.
@@ -1029,11 +1012,6 @@ function getTotalConfirmedUser () {
        return $GLOBALS['total_confirmed_users'];
 }
 
        return $GLOBALS['total_confirmed_users'];
 }
 
-// Wrapper for writing debug informations to the browser
-function debugOutput ($message) {
-       outputHtml('<div class="debug_message">' . $message . '</div>');
-}
-
 // Is given userid valid?
 function isValidUserId ($userid) {
        // Do we have cache?
 // Is given userid valid?
 function isValidUserId ($userid) {
        // Do we have cache?
@@ -1058,17 +1036,5 @@ function encodeEntities ($str) {
        return $str;
 }
 
        return $str;
 }
 
-// "Fixes" an empty string into three dashes (use for templates)
-function fixEmptyContentToDashes ($str) {
-       // Trim the string
-       $str = trim($str);
-
-       // Is the string empty?
-       if (empty($str)) $str = '---';
-
-       // Return string
-       return $str;
-}
-
 // [EOF]
 ?>
 // [EOF]
 ?>
index 7c0c5de7d2709adf6115f079fc3ce6fc5fb26dd3..21cc423c7562b25d02c14014210de95a0f62fccc 100644 (file)
@@ -1,9 +1,9 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[mail_template]
                <input type="hidden" name="template[$content[id]]" value="$content[mail_template]" />
        </td>
                $content[mail_template]
                <input type="hidden" name="template[$content[id]]" value="$content[mail_template]" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[content]
        </td>
 </tr>
                $content[content]
        </td>
 </tr>
index 8ef6b7bedf3d355e52b4e18fd38b7aafb7dbbd67..17503c9b9297212d245f5ca8248e32ff70f2cbc9 100644 (file)
@@ -1,11 +1,11 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[mail_template]]" class="admin_normal" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[mail_template]]" class="admin_normal" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[mail_template]
        </td>
                $content[mail_template]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                {%pipe,generateAdminLink=$content[admin_id]%}
        </td>
 </tr>
                {%pipe,generateAdminLink=$content[admin_id]%}
        </td>
 </tr>
index afd28258c79fe549099c7d649616b065bf2693c1..bfc25d36e10cce46b2b5f8e97a391e7d1d7884a1 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" align="right">
+       <td class="{%template,ColorSwitch%} bottom" align="right">
                $content[cnt]. {--ENTRY_DELETE--}:
        </td>
                $content[cnt]. {--ENTRY_DELETE--}:
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                $content[menu]
                <input type="hidden" name="sel[$content[sel]]" value="$content[menu]" />
        </td>
                $content[menu]
                <input type="hidden" name="sel[$content[sel]]" value="$content[menu]" />
        </td>
index 2ff6ea8aea7094e476ba03380a6845c272ec0ecf..bf98e436ae1967e78828f652486c27fbb21504f2 100644 (file)
@@ -1,37 +1,37 @@
 <tr>
 <tr>
-       <td colspan="2" class="admin_edit switch_sw$content[sw]">
+       <td colspan="2" class="admin_edit {%template,ColorSwitch%}">
                $content[cnt]. {--ENTRY_MODIFY--}:
        </td>
 </tr>
 <tr>
                $content[cnt]. {--ENTRY_MODIFY--}:
        </td>
 </tr>
 <tr>
-       <td align="right" class="admin_edit switch_sw$content[sw]">
+       <td align="right" class="admin_edit {%template,ColorSwitch%}">
                {--EDIT_ACTION--}:
        </td>
                {--EDIT_ACTION--}:
        </td>
-       <td class="admin_edit switch_sw$content[sw]">
+       <td class="admin_edit {%template,ColorSwitch%}">
                $content[action]
        </td>
 </tr>
 <tr>
                $content[action]
        </td>
 </tr>
 <tr>
-       <td class="admin_edit switch_sw$content[sw]" align="right">
+       <td class="admin_edit {%template,ColorSwitch%}" align="right">
                {--EDIT_WHAT--}:
        </td>
                {--EDIT_WHAT--}:
        </td>
-       <td class="admin_edit switch_sw$content[sw]">
+       <td class="admin_edit {%template,ColorSwitch%}">
                $content[what]
        </td>
 </tr>
 <tr>
                $content[what]
        </td>
 </tr>
 <tr>
-       <td class="admin_edit switch_sw$content[sw]" align="right">
+       <td class="admin_edit {%template,ColorSwitch%}" align="right">
                {--EDIT_TITLE--}:
        </td>
                {--EDIT_TITLE--}:
        </td>
-       <td class="admin_edit switch_sw$content[sw]">
+       <td class="admin_edit {%template,ColorSwitch%}">
                <input type="text" name="sel[$content[sel]]" value="$content[menu]" class="admin_normal" size="30" maxlength="50" />
        </td>
 </tr>
 <tr>
                <input type="text" name="sel[$content[sel]]" value="$content[menu]" class="admin_normal" size="30" maxlength="50" />
        </td>
 </tr>
 <tr>
-       <td class="admin_edit switch_sw$content[sw] bottom" align="right">
+       <td class="admin_edit {%template,ColorSwitch%} bottom" align="right">
                {--EDIT_DESCR--}:
        </td>
                {--EDIT_DESCR--}:
        </td>
-       <td class="admin_edit switch_sw$content[sw] bottom">
+       <td class="admin_edit {%template,ColorSwitch%} bottom">
                <textarea name="sel_desc[$content[sel]]" class="admin_normal" rows="10" cols="30">$content[descr]</textarea>
        </td>
 </tr>
                <textarea name="sel_desc[$content[sel]]" class="admin_normal" rows="10" cols="30">$content[descr]</textarea>
        </td>
 </tr>
index 06aaafa9f85debcf132ae28a05b813ae53461b8c..d5227825682c47d0852b7f6f9032ce80214c5fc9 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center"><strong>$content[id]</strong>
+       <td class="{%template,ColorSwitch%} bottom right" align="center"><strong>$content[id]</strong>
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,generateAdminLink=$content[admin_id]%}
        </td>
                {%pipe,generateAdminLink=$content[admin_id]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,fixEmptyContentToDashes=$content[action_menu]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[action_menu]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,fixEmptyContentToDashes=$content[what_menu]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[what_menu]%}
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[access_mode]
        </td>
 </tr>
                $content[access_mode]
        </td>
 </tr>
index 35311f7037a323e1d0501b62a3eb90880c611505..cd344680eb7e70d637f1e740f74ae8a75fe48598 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <strong>$content[id]</strong>
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
                <strong>$content[id]</strong>
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <select name="admin[$content[id]]" size="1" class="admin_select">
                        $content[admins_selection]
                </select>
        </td>
                <select name="admin[$content[id]]" size="1" class="admin_select">
                        $content[admins_selection]
                </select>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[action_selection]
        </td>
                $content[action_selection]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[what_selection]
        </td>
                $content[what_selection]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                <select name="mode[$content[id]]" size="1" class="admin_select">
                        $content[mode_options]
                </select>
                <select name="mode[$content[id]]" size="1" class="admin_select">
                        $content[mode_options]
                </select>
index aa0846f50151a8932f6bcf04d69a850d6d0205cc..86c2fa2f39ece8c3922a5dd870943ff502fad5cf 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,generateAdminLink=$content[admin_id]%}
        </td>
                {%pipe,generateAdminLink=$content[admin_id]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,fixEmptyContentToDashes=$content[action_menu]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[action_menu]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,fixEmptyContentToDashes=$content[what_menu]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[what_menu]%}
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[access_mode]
        </td>
 </tr>
                $content[access_mode]
        </td>
 </tr>
index 0aecf5d0dbfe162543eb3211ca5af393fc71a8d5..7a6b5ae668eb2ab78790ffa3e93a4c43c803d9a3 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="bottom right switch_sw$content[sw]">
+       <td class="bottom right {%template,ColorSwitch%}">
                $content[cat]
        </td>
                $content[cat]
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                $content[vis]
        </td>
                $content[vis]
        </td>
-       <td align="center" class="bottom switch_sw$content[sw]">
+       <td align="center" class="bottom {%template,ColorSwitch%}">
                $content[sort]
        </td>
 </tr>
                $content[sort]
        </td>
 </tr>
index 3330987605815149dc88d20c5fc13307c04ba629..79d8c63161ac69cf693c8fe891f89b91722ccaf9 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="center">
+       <td class="{%template,ColorSwitch%}" align="center">
                <strong>{--MRECEIVE_ID--} $content[id]:</strong>
        </td>
 </tr>
 <tr>
                <strong>{--MRECEIVE_ID--} $content[id]:</strong>
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[value] ({%pipe,fixEmptyContentToDashes=$content[comment]%})
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
                $content[value] ({%pipe,fixEmptyContentToDashes=$content[comment]%})
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
index 5b0843dc5f6e320e749d3eac12f41b4de57b1f29..8f6514093b272df02706eb512386e36808290bd4 100644 (file)
@@ -1,18 +1,18 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" colspan="2" align="center">
+       <td class="{%template,ColorSwitch%}" colspan="2" align="center">
                <strong>{--MRECEIVE_ID--} $content[id]:</strong>
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
 </tr>
 <tr>
                <strong>{--MRECEIVE_ID--} $content[id]:</strong>
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">{--MREC_VALUE--}:&nbsp;</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" align="right">{--MREC_VALUE--}:&nbsp;</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="val[$content[id]]" class="admin_normal" value="$content[value]" size="3" maxlength="5" />
        </td>
 </tr>
 <tr>
                <input type="text" name="val[$content[id]]" class="admin_normal" value="$content[value]" size="3" maxlength="5" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" align="right">{--MREC_COMMENT--}:&nbsp;</td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom" align="right">{--MREC_COMMENT--}:&nbsp;</td>
+       <td class="{%template,ColorSwitch%} bottom">
                <input type="text" name="comm[$content[id]]" class="admin_normal" value="$content[comment]" size="25" maxlength="255" />
        </td>
 </tr>
                <input type="text" name="comm[$content[id]]" class="admin_normal" value="$content[comment]" size="25" maxlength="255" />
        </td>
 </tr>
index 61de8d522e2be59b290af0a3c64e90cc45e1d007..a3ef0e8f99b7d419ea3240429bbb70092b893716 100644 (file)
@@ -1,11 +1,11 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="bottom right switch_sw$content[sw]">
+       <td class="bottom right {%template,ColorSwitch%}">
                $content[value]
        </td>
                $content[value]
        </td>
-       <td class="bottom switch_sw$content[sw]">
+       <td class="bottom {%template,ColorSwitch%}">
                {%pipe,fixEmptyContentToDashes=$content[comment]%}
        </td>
 </tr>
                {%pipe,fixEmptyContentToDashes=$content[comment]%}
        </td>
 </tr>
index 5e6f82dee3ce2496734b4ee963206fcfc2b1abbe..7e2f60b3f274c321dc8b5d72d01bfd8a924cc8e7 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-  <td class="switch_sw$content[sw] bottom right">$content[id]</td>
-  <td class="switch_sw$content[sw] bottom right">$content[title]</td>
-  <td class="switch_sw$content[sw] bottom" align="center">
+  <td class="{%template,ColorSwitch%} bottom right">$content[id]</td>
+  <td class="{%template,ColorSwitch%} bottom right">$content[title]</td>
+  <td class="{%template,ColorSwitch%} bottom" align="center">
     $content[link]
   </td>
 </tr>
     $content[link]
   </td>
 </tr>
index 36dae2a68f21b83e91619d354096599f0cdc9fa3..4897d49ee06ab281f9eb2f5a7eb62b0391e0a341 100644 (file)
@@ -1,15 +1,15 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right" height="25">
+       <td align="center" class="{%template,ColorSwitch%} bottom right" height="25">
                $content[id]
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
                $content[id]
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[title]
        </td>
                $content[title]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[rate]
        </td>
                $content[rate]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[min_points]
        </td>
 </tr>
                $content[min_points]
        </td>
 </tr>
index 7664e74d54f4cb0863ec40f0f4d5a2ed2ca6b66c..e4a29cb7ae2aa79a09ece24fa9a91cccab39abc9 100644 (file)
@@ -1,18 +1,18 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right" height="25">
+       <td align="center" class="{%template,ColorSwitch%} bottom right" height="25">
                $content[id]
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
                $content[id]
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="text" name="title[$content[id]]" class="admin_normal" value="$content[title]" size="20" maxlength="255" />
        </td>
                <input type="text" name="title[$content[id]]" class="admin_normal" value="$content[title]" size="20" maxlength="255" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="text" name="rate[$content[id]]" class="admin_normal" value="$content[rate]" size="5" maxlength="10" />
        </td>
                <input type="text" name="rate[$content[id]]" class="admin_normal" value="$content[rate]" size="5" maxlength="10" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="text" name="min_points[$content[id]]" class="admin_normal" value="$content[min_points]" size="5" maxlength="10" />
        </td>
                <input type="text" name="min_points[$content[id]]" class="admin_normal" value="$content[min_points]" size="5" maxlength="10" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[allow]
        </td>
 </tr>
                $content[allow]
        </td>
 </tr>
index 7e5f0297564a5466ea65354ec35aa2daceaab0a4..1bac739f423e4136e1eade4ea57fd4a44534f49e 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[from_account]
        </td>
                &nbsp;$content[from_account]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[type]
        </td>
                &nbsp;$content[type]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[rate]
        </td>
                &nbsp;$content[rate]
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                &nbsp;$content[min_points]
        </td>
 </tr>
                &nbsp;$content[min_points]
        </td>
 </tr>
index c4815e28d4d4d9d337e0c0807923ec4b6897828d..6396fe30cf23cb0063dd8785f0173d73678f9d4d 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[rallye_id] <input type="hidden" claass="admin_normal" name="sel[$content[rallye_id]]" value="1" />
        </td>
                $content[rallye_id] <input type="hidden" claass="admin_normal" name="sel[$content[rallye_id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[price_level]
        </td>
                $content[price_level]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[points]%}
        </td>
                {%pipe,translateComma=$content[points]%}
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                {%pipe,fixEmptyContentToDashes=$content[info]%}
        </td>
 </tr>
                {%pipe,fixEmptyContentToDashes=$content[info]%}
        </td>
 </tr>
index c7b75929de42b9e093bb29e65cb2a34610913f3a..a74ffebb0da830999207e4f6b42e0ece385836cf 100644 (file)
@@ -1,16 +1,16 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <select name="rallye_id[$content[rallye_id]]" size="1" class="admin_select">
                        $content[rallye_content]
                </select>
        </td>
                <select name="rallye_id[$content[rallye_id]]" size="1" class="admin_select">
                        $content[rallye_content]
                </select>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="text" name="level[$content[rallye_id]]" class="admin_normal" size="5" maxlength="20" value="$content[price_level]" />
        </td>
                <input type="text" name="level[$content[rallye_id]]" class="admin_normal" size="5" maxlength="20" value="$content[price_level]" />
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                <input type="text" name="points[$content[rallye_id]]" class="admin_normal" size="8" maxlength="20" value="$content[points]" />
        </td>
                <input type="text" name="points[$content[rallye_id]]" class="admin_normal" size="8" maxlength="20" value="$content[points]" />
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                <input type="text" name="infos[$content[rallye_id]]" class="admin_normal" size="15" maxlength="255" value="$content[info]" />
        </td>
 </tr>
                <input type="text" name="infos[$content[rallye_id]]" class="admin_normal" size="15" maxlength="255" value="$content[info]" />
        </td>
 </tr>
index 94542e7fd19a7774a74a752aa189239ba914483a..4c9ae55f11d9ebf5267ed79bb4629fc0a1b3df82 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[price_level]
        </td>
                $content[price_level]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[points]%}
        </td>
                {%pipe,translateComma=$content[points]%}
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
 </tr>
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
 </tr>
index 0451c4ef505cf8c2e6c438d0617c9632fa3bd104..59a5c79f9582c917f5017d09f73e4026bc17275c 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[id]</td>
-       <td class="switch_sw$content[sw] bottom right">$content[field_name]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[id]</td>
+       <td class="{%template,ColorSwitch%} bottom right">$content[field_name]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[selection]
        </td>
 </tr>
                $content[selection]
        </td>
 </tr>
index d55eba6409fc8ea5b7db99d400eead5cc9516ab2..6ce668b4f4c6f288654e691638703b4fabd9951d 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[module]</td>
-       <td class="switch_sw$content[sw] bottom right">{%pipe,fixEmptyContentToDashes=$content[title]%}</td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[module]</td>
+       <td class="{%template,ColorSwitch%} bottom right">{%pipe,fixEmptyContentToDashes=$content[title]%}</td>
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                <input type="radio" name="mod[$content[module]]" class="admin_normal" value="Y"$content[y_default] /> {--YES--}<br />
                <input type="radio" name="mod[$content[module]]" class="admin_normal" value="N"$content[n_default] /> {--NO--}
        </td>
                <input type="radio" name="mod[$content[module]]" class="admin_normal" value="Y"$content[y_default] /> {--YES--}<br />
                <input type="radio" name="mod[$content[module]]" class="admin_normal" value="N"$content[n_default] /> {--NO--}
        </td>
index 5f41797bc37f097bf45773c0d1b36490c6c1fcb6..d1ccf91c1d1193368278e03359fb11d79bd2a501 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[id]&nbsp;<input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
                $content[id]&nbsp;<input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[login]
        </td>
                $content[login]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[email]
        </td>
                $content[email]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[mode]
        </td>
                $content[mode]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[la_mode]
        </td>
 </tr>
                $content[la_mode]
        </td>
 </tr>
index e7d7c9de3df4973e0216abfb6a3075e49337a097..f0865e90b46d5211c6001b93b0722f16df2ba7aa 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="id[$content[id]]" value="1" checked="checked" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="id[$content[id]]" value="1" checked="checked" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>$content[id]</strong>
        </td>
                <strong>$content[id]</strong>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[title]
        </td>
                $content[title]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[description]
        </td>
                $content[description]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[account_fee] {?POINTS?}
        </td>
 </tr>
                $content[account_fee] {?POINTS?}
        </td>
 </tr>
index 79bba30c8d106cc9217c5d4a46f97ece91348077..a5c887cb62d17ab0f1b406a79643c3420976758b 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw]">
+       <td align="center" class="{%template,ColorSwitch%}">
                <strong>{--CATEGORY_ID--} $content[id]:</strong>
        </td>
 </tr>
 <tr>
                <strong>{--CATEGORY_ID--} $content[id]:</strong>
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[cat] <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
 </tr>
                $content[cat] <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
 </tr>
index f9a9a94acbfcbfc5c5fb32d3d7dca30cd5c8e6bb..418ed8e4fa11ff25105ed0a6bc865971f155938a 100644 (file)
@@ -1,25 +1,25 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="hidden" name="sel[$content[network_param_id]]" value="1" />
                $content[network_type_data][network_type_handle]
        </td>
 </tr>
 <tr>
                <input type="hidden" name="sel[$content[network_param_id]]" value="1" />
                $content[network_type_data][network_type_handle]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_KEY--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_KEY--}:</td>
+       <td class="{%template,ColorSwitch%}">
                $content[request_param_key]
        </td>
 </tr>
 <tr>
                $content[request_param_key]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_VALUE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_VALUE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                $content[request_param_value]
        </td>
 </tr>
 <tr>
                $content[request_param_value]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_DEFAULT--}:</td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_DEFAULT--}:</td>
+       <td class="{%template,ColorSwitch%} bottom">
                {%pipe,fixEmptyContentToDashes=$content[request_param_default]%}
        </td>
 </tr>
                {%pipe,fixEmptyContentToDashes=$content[request_param_default]%}
        </td>
 </tr>
index c5f5977182adda785d74a525995a8f1126befd2b..31029ca48011a58909f9e69d36e6e0d3b0dc61c3 100644 (file)
@@ -1,25 +1,25 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="hidden" name="sel[$content[network_type_id]]" value="1" />
                $content[network_type_handle]
        </td>
 </tr>
 <tr>
                <input type="hidden" name="sel[$content[network_type_id]]" value="1" />
                $content[network_type_handle]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
+       <td class="{%template,ColorSwitch%}">
                $content[network_type_api_url]
        </td>
 </tr>
 <tr>
                $content[network_type_api_url]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
+       <td class="{%template,ColorSwitch%}">
                $content[network_type_click_url]
        </td>
 </tr>
 <tr>
                $content[network_type_click_url]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
+       <td class="{%template,ColorSwitch%} bottom">
                {%pipe,fixEmptyContentToDashes=$content[network_type_banner_url]%}
        </td>
 </tr>
                {%pipe,fixEmptyContentToDashes=$content[network_type_banner_url]%}
        </td>
 </tr>
index 2222e1295db4b6788f105ffd0f11e3aede8d5a84..329cfe6ebb08df91b7d9c9c590c9ab1acc51467a 100644 (file)
@@ -1,38 +1,38 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TITLE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TITLE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="hidden" name="sel[$content[network_id]]" value="1" />
                $content[network_title]
        </td>
                <input type="hidden" name="sel[$content[network_id]]" value="1" />
                $content[network_title]
        </td>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_SHORT_NAME--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_SHORT_NAME--}:</td>
+       <td class="{%template,ColorSwitch%}">
                $content[network_short_name]
        </td>
 </tr>
 <tr>
                $content[network_short_name]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_REFLINK--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_REFLINK--}:</td>
+       <td class="{%template,ColorSwitch%}">
                $content[network_reflink]
        </td>
                $content[network_reflink]
        </td>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_DATA_SEPERATOR--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_DATA_SEPERATOR--}:</td>
+       <td class="{%template,ColorSwitch%}">
                $content[network_data_seperator]
        </td>
 </tr>
 <tr>
                $content[network_data_seperator]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_TYPE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_TYPE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                $content[network_request_type]
        </td>
                $content[network_request_type]
        </td>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_ROW_SEPERATOR--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_ROW_SEPERATOR--}:</td>
+       <td class="{%template,ColorSwitch%}">
                $content[network_row_seperator]
        </td>
 </tr>
 <tr>
                $content[network_row_seperator]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_CHARSET--}:</td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom" style="padding-left:5px">{--ADMIN_NETWORK_CHARSET--}:</td>
+       <td class="{%template,ColorSwitch%} bottom">
                $content[network_charset]
        </td>
                $content[network_charset]
        </td>
-       <td class="switch_sw$content[sw] bottom seperator" colspan="2">&nbsp;</td>
+       <td class="{%template,ColorSwitch%} bottom seperator" colspan="2">&nbsp;</td>
 </tr>
 </tr>
index 08e22f3574f6cc7d4f6d8d11cca2d975a74f66c1..70f2ef6628f6095db7531605bcc9a75071ab5e3d 100644 (file)
@@ -4,7 +4,7 @@
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[time] {--_SECONDS--} ($content[title])
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
                $content[time] {--_SECONDS--} ($content[title])
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
index 6d193e73065cb605902c8e6140eeb70d41a2389f..55c0060e6813a0a7b4e2b174fa4557233ca08a8f 100644 (file)
@@ -1,13 +1,13 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
                <input type="hidden" name="url_userid[content[url_id]]" value="$content[url_userid_raw]" />
                $content[url_userid]
        </td>
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
                <input type="hidden" name="url_userid[content[url_id]]" value="$content[url_userid_raw]" />
                $content[url_userid]
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <a href="$content[url]" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
                <a href="$content[url]" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
-       <td align="center" class="bottom switch_sw$content[sw]">
+       <td align="center" class="bottom {%template,ColorSwitch%}">
                $content[url_registered]
        </td>
 </tr>
                $content[url_registered]
        </td>
 </tr>
index 90d342036ac2b174e8c7680dc458e9e7f00ebff6..9cddafabb7e34658553fa69cb303686a710f0a2f 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[trans_id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[trans_id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                $content[time_trans]
        </td>
                $content[time_trans]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                {%pipe,generateUserProfileLink=$content[from_userid]%}
        </td>
                {%pipe,generateUserProfileLink=$content[from_userid]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                {%pipe,generateUserProfileLink=$content[to_userid]%}
        </td>
                {%pipe,generateUserProfileLink=$content[to_userid]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                $content[reason]
        </td>
                $content[reason]
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                {%pipe,translateComma=$content[points]%}
        </td>
 </tr>
                {%pipe,translateComma=$content[points]%}
        </td>
 </tr>
index 4d903b590b7b16f481299358669d20e73ecf09f0..9262bb1cb66e0d635968a272f040382d913b0815 100644 (file)
@@ -1,21 +1,21 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[id]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[id]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="text" name="login[$content[id]]" class="admin_normal" value="$content[login]" size="20" maxlength="255" />
        </td>
                <input type="text" name="login[$content[id]]" class="admin_normal" value="$content[login]" size="20" maxlength="255" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="text" name="email[$content[id]]" class="admin_normal" value="$content[email]" size="25" maxlength="255" />
        </td>
                <input type="text" name="email[$content[id]]" class="admin_normal" value="$content[email]" size="25" maxlength="255" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="password" name="pass1[$content[id]]" class="admin_normal" size="10" maxlength="255" />
                <input type="password" name="pass2[$content[id]]" class="admin_normal" size="10" maxlength="255" />
        </td>
                <input type="password" name="pass1[$content[id]]" class="admin_normal" size="10" maxlength="255" />
                <input type="password" name="pass2[$content[id]]" class="admin_normal" size="10" maxlength="255" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                <select name="mode[$content[id]]" size="1" class="admin_select">
                        $content[mode]
                </select>
        </td>
                <select name="mode[$content[id]]" size="1" class="admin_select">
                        $content[mode]
                </select>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                <select name="la_mode[$content[id]]" size="1" class="admin_select">
                        $content[la_mode]
                </select>
                <select name="la_mode[$content[id]]" size="1" class="admin_select">
                        $content[la_mode]
                </select>
index e99e3d830533e6a3a42037ed5c173f70e84530a1..f35f81dd80f12b44b0cd8cda76efb0751f28468b 100644 (file)
@@ -1,72 +1,72 @@
 <tr>
 <tr>
-       <td width="33%" align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td width="33%" align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_TITLE--}:<br />
                <input type="text" name="title[$content[id]]" size="20" maxlength="255" value="$content[title]" />
        </td>
                {--ADMIN_BANK_PACKAGE_TITLE--}:<br />
                <input type="text" name="title[$content[id]]" size="20" maxlength="255" value="$content[title]" />
        </td>
-       <td width="34%" align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td width="34%" align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_DESCRIPTION--}:<br />
                <textarea class="admin_normal" name="description[$content[id]]" rows="3" cols="30">$content[description]</textarea>
        </td>
                {--ADMIN_BANK_PACKAGE_DESCRIPTION--}:<br />
                <textarea class="admin_normal" name="description[$content[id]]" rows="3" cols="30">$content[description]</textarea>
        </td>
-       <td width="33%" align="center" valign="top" class="switch_sw$content[sw] bottom">
+       <td width="33%" align="center" valign="top" class="{%template,ColorSwitch%} bottom">
                {--ADMIN_BANK_PACKAGE_ACCOUNT_FEE--}:<br />
                <input type="text" name="account_fee[$content[id]]" size="5" maxlength="10" value="$content[account_fee]" />
                <span class="tiny">({?POINTS?})</span>
        </td>
 </tr>
 <tr>
                {--ADMIN_BANK_PACKAGE_ACCOUNT_FEE--}:<br />
                <input type="text" name="account_fee[$content[id]]" size="5" maxlength="10" value="$content[account_fee]" />
                <span class="tiny">({?POINTS?})</span>
        </td>
 </tr>
 <tr>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_FREE_TRANSFERS--}:<br />
                <input type="text" name="free_transfers[$content[id]]" size="5" maxlength="10" value="$content[free_transfers]" />
        </td>
                {--ADMIN_BANK_PACKAGE_FREE_TRANSFERS--}:<br />
                <input type="text" name="free_transfers[$content[id]]" size="5" maxlength="10" value="$content[free_transfers]" />
        </td>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_TRANSFER_FEE--}:<br />
                <input type="text" name="transfer_fee[$content[id]]" size="5" maxlength="10" value="$content[transfer_fee]" />
                <span class="tiny">({?POINTS?})</span>
        </td>
                {--ADMIN_BANK_PACKAGE_TRANSFER_FEE--}:<br />
                <input type="text" name="transfer_fee[$content[id]]" size="5" maxlength="10" value="$content[transfer_fee]" />
                <span class="tiny">({?POINTS?})</span>
        </td>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom">
                {--ADMIN_BANK_PACKAGE_OUTPUT_MODE--}:<br />
 [output_system_mode] => EMAIL
        </td>
 </tr>
 <tr>
                {--ADMIN_BANK_PACKAGE_OUTPUT_MODE--}:<br />
 [output_system_mode] => EMAIL
        </td>
 </tr>
 <tr>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_EDIT_ACTIVE--}:<br />
 [package_active] => Y
        </td>
                {--ADMIN_BANK_PACKAGE_EDIT_ACTIVE--}:<br />
 [package_active] => Y
        </td>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_FREE_TRANSFERS--}:<br />
                <input type="text" name="free_months_no_fee[$content[id]]" size="5" maxlength="10" value="$content[free_months_no_fee]" />
        </td>
                {--ADMIN_BANK_PACKAGE_FREE_TRANSFERS--}:<br />
                <input type="text" name="free_months_no_fee[$content[id]]" size="5" maxlength="10" value="$content[free_months_no_fee]" />
        </td>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom">
                {--ADMIN_BANK_PACKAGE_INTEREST_PLUS--}:<br />
                <input type="text" name="interest_plus[$content[id]]" size="5" maxlength="10" value="$content[interest_plus]" />&#37;
        </td>
 </tr>
 <tr>
                {--ADMIN_BANK_PACKAGE_INTEREST_PLUS--}:<br />
                <input type="text" name="interest_plus[$content[id]]" size="5" maxlength="10" value="$content[interest_plus]" />&#37;
        </td>
 </tr>
 <tr>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_INTEREST_MINUS--}:<br />
                <input type="text" name="interest_minus[$content[id]]" size="5" maxlength="10" value="$content[interest_minus]" />&#37;
        </td>
                {--ADMIN_BANK_PACKAGE_INTEREST_MINUS--}:<br />
                <input type="text" name="interest_minus[$content[id]]" size="5" maxlength="10" value="$content[interest_minus]" />&#37;
        </td>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_FIRST_PAYMENT--}:<br />
                <input type="text" name="first_payment[$content[id]]" size="5" maxlength="10" value="$content[first_payment]" />
        </td>
                {--ADMIN_BANK_PACKAGE_FIRST_PAYMENT--}:<br />
                <input type="text" name="first_payment[$content[id]]" size="5" maxlength="10" value="$content[first_payment]" />
        </td>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom">
                {--ADMIN_BANK_PACKAGE_FREE_ACCOUNT_INCOME--}:<br />
                <input type="text" name="free_account_income[$content[id]]" size="10" maxlength="20" value="$content[free_account_income]" />
                <span class="tiny">({?POINTS?})</span>
        </td>
 </tr>
 <tr>
                {--ADMIN_BANK_PACKAGE_FREE_ACCOUNT_INCOME--}:<br />
                <input type="text" name="free_account_income[$content[id]]" size="10" maxlength="20" value="$content[free_account_income]" />
                <span class="tiny">({?POINTS?})</span>
        </td>
 </tr>
 <tr>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_FREE_ACCOUNT_STUFF--}:<br />
                <textarea class="admin_normal" name="free_account_stuff[$content[id]]" rows="3" cols="30">$content[free_account_stuff]</textarea>
        </td>
                {--ADMIN_BANK_PACKAGE_FREE_ACCOUNT_STUFF--}:<br />
                <textarea class="admin_normal" name="free_account_stuff[$content[id]]" rows="3" cols="30">$content[free_account_stuff]</textarea>
        </td>
-       <td align="center" valign="top" class="switch_sw$content[sw] bottom right">
+       <td align="center" valign="top" class="{%template,ColorSwitch%} bottom right">
                {--ADMIN_BANK_PACKAGE_EDIT_TAN_LOCK--}:<br />
                <input type="text" name="tan_lock[$content[id]]" size="5" maxlength="10" value="$content[tan_lock]" />
        </td>
                {--ADMIN_BANK_PACKAGE_EDIT_TAN_LOCK--}:<br />
                <input type="text" name="tan_lock[$content[id]]" size="5" maxlength="10" value="$content[tan_lock]" />
        </td>
-       <td class="switch_sw$content[sw] seperator bottom">
+       <td class="{%template,ColorSwitch%} seperator bottom">
                <input type="hidden" name="id[]" value="$content[id]" />
        </td>
 </tr>
                <input type="hidden" name="id[]" value="$content[id]" />
        </td>
 </tr>
index 97c0016213ea2f6d49ad1ddbb399479e0825c600..7373efd6c179d6baf00fd4a50c2fc65fda5c54fa 100644 (file)
@@ -4,18 +4,18 @@
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
-       <td align="right" class="switch_sw$content[sw]">{--CAT_DESCRIPTION--}:&nbsp;</td>
-       <td class="switch_sw$content[sw]">
+       <td align="right" class="{%template,ColorSwitch%}">{--CAT_DESCRIPTION--}:&nbsp;</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="id[$content[id]]" class="admin_normal" value="$content[cat]" size="32" maxlength="255" />
        </td>
 </tr>
 <tr>
                <input type="text" name="id[$content[id]]" class="admin_normal" value="$content[cat]" size="32" maxlength="255" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">{--CAT_IS_VISIBLE--}&nbsp;</td>
-       <td class="switch_sw$content[sw]">$content[vis]</td>
+       <td class="{%template,ColorSwitch%}" align="right">{--CAT_IS_VISIBLE--}&nbsp;</td>
+       <td class="{%template,ColorSwitch%}">$content[vis]</td>
 </tr>
 <tr>
 </tr>
 <tr>
-       <td align="right" class="switch_sw$content[sw]">{--SORT_KEY--}:&nbsp;</td>
-       <td class="switch_sw$content[sw]">
+       <td align="right" class="{%template,ColorSwitch%}">{--SORT_KEY--}:&nbsp;</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="sort[$content[id]]" class="admin_normal" value="$content[sort]" size="3" maxlength="10" />
        </td>
 </tr>
                <input type="text" name="sort[$content[id]]" class="admin_normal" value="$content[sort]" size="3" maxlength="10" />
        </td>
 </tr>
index abc760f6884d93c15331d92b4b89f4cd9d46ddb0..f75b846144fb229d333e359a967036e64243dd4c 100644 (file)
@@ -1,9 +1,9 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                <strong>$content[id]</strong>
                <input type="radio" name="id" class="admin_normal" value="$content[id]" />
        </td>
                <strong>$content[id]</strong>
                <input type="radio" name="id" class="admin_normal" value="$content[id]" />
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                $content[subject]
                ({--EMAIL_SENDER--}: {%pipe,generateUserProfileLink=$content[userid]%}; {%pipe,getPaymentTitlePrice=$content[payment_id]%}; {%pipe,getCategory=$content[cat_id]%})
        </td>
                $content[subject]
                ({--EMAIL_SENDER--}: {%pipe,generateUserProfileLink=$content[userid]%}; {%pipe,getPaymentTitlePrice=$content[payment_id]%}; {%pipe,getCategory=$content[cat_id]%})
        </td>
index 066463928f975e4bf1ea5ec4f598523ea578c4c7..e2cc056e1289c01d9c24ad1e65e8b46faee9db79 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="hidden" name="sel[$content[network_param_id]]" value="1" />
                <select name="network_type_id[$content[network_param_id]]" class="admin_select" size="1">
                        $content[type_options]
                <input type="hidden" name="sel[$content[network_param_id]]" value="1" />
                <select name="network_type_id[$content[network_param_id]]" class="admin_select" size="1">
                        $content[type_options]
@@ -8,22 +8,22 @@
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_KEY--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_KEY--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <select name="request_param_key[$content[network_param_id]]" class="admin_select" size="1">
                        $content[key_options]
                </select>
        </td>
 </tr>
 <tr>
                <select name="request_param_key[$content[network_param_id]]" class="admin_select" size="1">
                        $content[key_options]
                </select>
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_VALUE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_VALUE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="request_param_value[$content[network_param_id]]" class="admin_normal" size="10" maxlength="10" value="$content[request_param_value]" />
        </td>
 </tr>
 <tr>
                <input type="text" name="request_param_value[$content[network_param_id]]" class="admin_normal" size="10" maxlength="10" value="$content[request_param_value]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_DEFAULT--}:</td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_PARAMETER_DEFAULT--}:</td>
+       <td class="{%template,ColorSwitch%} bottom">
                <input type="text" name="request_param_default[$content[network_param_id]]" class="admin_normal" size="50" maxlength="255" value="$content[request_param_default]" />
        </td>
 </tr>
                <input type="text" name="request_param_default[$content[network_param_id]]" class="admin_normal" size="50" maxlength="255" value="$content[request_param_default]" />
        </td>
 </tr>
index 188b03504bbc5a980a9bce9bde2276d0af5e268b..dbc4ce1c353dc1a14ebcfd3b3c0c01b5ac9400b6 100644 (file)
@@ -1,25 +1,25 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="hidden" name="sel[$content[network_type_id]]" value="1" />
                <input type="text" name="network_type_handle[$content[network_type_id]]" class="admin_normal" size="20" maxlength="255" value="$content[network_type_handle]" />
        </td>
 </tr>
 <tr>
                <input type="hidden" name="sel[$content[network_type_id]]" value="1" />
                <input type="text" name="network_type_handle[$content[network_type_id]]" class="admin_normal" size="20" maxlength="255" value="$content[network_type_handle]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="network_type_api_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_api_url]" />
        </td>
 </tr>
 <tr>
                <input type="text" name="network_type_api_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_api_url]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="network_type_click_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_click_url]" />
        </td>
 </tr>
 <tr>
                <input type="text" name="network_type_click_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_click_url]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
+       <td class="{%template,ColorSwitch%} bottom">
                <input type="text" name="network_type_banner_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_banner_url]" />
        </td>
 </tr>
                <input type="text" name="network_type_banner_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_banner_url]" />
        </td>
 </tr>
index 112153658be1446acf6e8ea9f37ca53622fc8a5f..943a57e612f63c156d6efc1c719094d050fffe32 100644 (file)
@@ -1,40 +1,40 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TITLE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_TITLE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="hidden" name="sel[$content[network_id]]" value="1" />
                <input type="text" name="network_title[$content[network_id]]" class="admin_normal" size="20" maxlength="255" value="$content[network_title]" />
        </td>
                <input type="hidden" name="sel[$content[network_id]]" value="1" />
                <input type="text" name="network_title[$content[network_id]]" class="admin_normal" size="20" maxlength="255" value="$content[network_title]" />
        </td>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_SHORT_NAME--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_SHORT_NAME--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="network_short_name[$content[network_id]]" class="admin_normal" size="10" maxlength="50" value="$content[network_short_name]" />
        </td>
 </tr>
 <tr>
                <input type="text" name="network_short_name[$content[network_id]]" class="admin_normal" size="10" maxlength="50" value="$content[network_short_name]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_REFLINK--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_REFLINK--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="network_reflink[$content[network_id]]" class="admin_normal" size="30" maxlength="255" value="$content[network_reflink]" />
        </td>
                <input type="text" name="network_reflink[$content[network_id]]" class="admin_normal" size="30" maxlength="255" value="$content[network_reflink]" />
        </td>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_DATA_SEPERATOR--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_DATA_SEPERATOR--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="network_data_seperator[$content[network_id]]" class="admin_normal" size="4" maxlength="4" value="$content[network_data_seperator]" />
        </td>
 </tr>
 <tr>
                <input type="text" name="network_data_seperator[$content[network_id]]" class="admin_normal" size="4" maxlength="4" value="$content[network_data_seperator]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_TYPE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_TYPE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <select name="network_request_type[$content[network_id]]" class="admin_select" size="1">
                        $content[network_request_type]
                </select>
        </td>
                <select name="network_request_type[$content[network_id]]" class="admin_select" size="1">
                        $content[network_request_type]
                </select>
        </td>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_ROW_SEPERATOR--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_ROW_SEPERATOR--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="network_row_seperator[$content[network_id]]" class="admin_normal" size="4" maxlength="4" value="$content[network_row_seperator]" />
        </td>
 </tr>
 <tr>
                <input type="text" name="network_row_seperator[$content[network_id]]" class="admin_normal" size="4" maxlength="4" value="$content[network_row_seperator]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_CHARSET--}:</td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom" style="padding-left:5px">{--ADMIN_NETWORK_CHARSET--}:</td>
+       <td class="{%template,ColorSwitch%} bottom">
                <input type="text" name="network_charset[$content[network_id]]" class="admin_normal" size="15" maxlength="20" value="$content[network_charset]" />
        </td>
                <input type="text" name="network_charset[$content[network_id]]" class="admin_normal" size="15" maxlength="20" value="$content[network_charset]" />
        </td>
-       <td class="switch_sw$content[sw] bottom seperator" colspan="2">&nbsp;</td>
+       <td class="{%template,ColorSwitch%} bottom seperator" colspan="2">&nbsp;</td>
 </tr>
 </tr>
index d7d8e78076773e656cbf7a2f77607fcada3325cf..9f55cbdc762b45f46563067ba5b58a9989cda178 100644 (file)
@@ -4,27 +4,27 @@
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">{--PAY_TIME--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" align="right">{--PAY_TIME--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="time[$content[id]]" class="admin_normal" value="$content[time]" size="3" maxlength="5" />{--_SECONDS--}
        </td>
 </tr>
 <tr>
                <input type="text" name="time[$content[id]]" class="admin_normal" value="$content[time]" size="3" maxlength="5" />{--_SECONDS--}
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">{--PAY_PAYMENT--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" align="right">{--PAY_PAYMENT--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="pay[$content[id]]" class="admin_normal" value="$content[pay]" size="5" maxlength="8" />{?POINTS?}
        </td>
 </tr>
 <tr>
                <input type="text" name="pay[$content[id]]" class="admin_normal" value="$content[pay]" size="5" maxlength="8" />{?POINTS?}
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">{--PAY_PRICE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" align="right">{--PAY_PRICE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="price[$content[id]]" class="admin_normal" value="$content[price]" size="5" maxlength="8" />
                <span class="tiny">({?POINTS?})</span>
        </td>
 </tr>
 <tr>
                <input type="text" name="price[$content[id]]" class="admin_normal" value="$content[price]" size="5" maxlength="8" />
                <span class="tiny">({?POINTS?})</span>
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" align="right">{--PAY_TITLE--}:</td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom" align="right">{--PAY_TITLE--}:</td>
+       <td class="{%template,ColorSwitch%} bottom">
                <input type="text" name="title[$content[id]]" class="admin_normal" value="$content[title]" size="25" maxlength="255" />
        </td>
 </tr>
                <input type="text" name="title[$content[id]]" class="admin_normal" value="$content[title]" size="25" maxlength="255" />
        </td>
 </tr>
index 8c6e874413e36bdcc6b3da1f0b5d2b3471824633..5c58eedac191e8f690dce13ad3aae7ffc22412dc 100644 (file)
@@ -1,42 +1,42 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" width="305" align="right">{--RALLYE_TITLE--}:</td>
-       <td class="switch_sw$content[sw]" width="265" align="center">
+       <td class="{%template,ColorSwitch%}" width="305" align="right">{--RALLYE_TITLE--}:</td>
+       <td class="{%template,ColorSwitch%}" width="265" align="center">
                <input type="text" name="title[$content[id]]" class="admin_normal" size="30" maxlength="255" value="$content[title]" />
        </td>
 </tr>
 <tr>
                <input type="text" name="title[$content[id]]" class="admin_normal" size="30" maxlength="255" value="$content[title]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right" valign="top">{--RALLYE_DESCR--}:</td>
-       <td class="switch_sw$content[sw]" align="center">
+       <td class="{%template,ColorSwitch%}" align="right" valign="top">{--RALLYE_DESCR--}:</td>
+       <td class="{%template,ColorSwitch%}" align="center">
                <textarea name="descr[$content[id]]" cols="30" rows="6" class="admin_normal">$content[descr]</textarea>
        </td>
 </tr>
 <tr>
                <textarea name="descr[$content[id]]" cols="30" rows="6" class="admin_normal">$content[descr]</textarea>
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">{--RALLYE_TEMPLATE--}:</td>
-       <td class="switch_sw$content[sw]" align="center">$content[templ]</td>
+       <td class="{%template,ColorSwitch%}" align="right">{--RALLYE_TEMPLATE--}:</td>
+       <td class="{%template,ColorSwitch%}" align="center">$content[templ]</td>
 </tr>
 <tr>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" width="200" align="right" valign="top">{--RALLYE_START_DAY--}:</td>
-       <td class="switch_sw$content[sw]" width="290" align="center">
+       <td class="{%template,ColorSwitch%}" width="200" align="right" valign="top">{--RALLYE_START_DAY--}:</td>
+       <td class="{%template,ColorSwitch%}" width="290" align="center">
                <div>$content[s_day]. $content[s_month]. $content[s_year]</div>
                <div>$content[s_hour]: $content[s_min]: $content[s_sec]</div>
        </td>
 </tr>
 <tr>
                <div>$content[s_day]. $content[s_month]. $content[s_year]</div>
                <div>$content[s_hour]: $content[s_min]: $content[s_sec]</div>
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" width="200" align="right" valign="top">{--RALLYE_END_DAY--}:</td>
-       <td class="switch_sw$content[sw]" width="290" align="center">
+       <td class="{%template,ColorSwitch%}" width="200" align="right" valign="top">{--RALLYE_END_DAY--}:</td>
+       <td class="{%template,ColorSwitch%}" width="290" align="center">
                <div>$content[e_day]. $content[e_month]. $content[e_year]</div>
                <div>$content[e_hour]: $content[e_min]: $content[e_sec]</div>
        </td>
 </tr>
 <tr>
                <div>$content[e_day]. $content[e_month]. $content[e_year]</div>
                <div>$content[e_hour]: $content[e_min]: $content[e_sec]</div>
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" width="305" align="right">{--RALLYE_MIN_USERS_MINI--}:</td>
-       <td class="switch_sw$content[sw]" width="265" align="center">
+       <td class="{%template,ColorSwitch%}" width="305" align="right">{--RALLYE_MIN_USERS_MINI--}:</td>
+       <td class="{%template,ColorSwitch%}" width="265" align="center">
                <input type="text" name="min_users[$content[id]]" class="admin_normal" size="5" maxlength="20" value="$content[min_users]" />
        </td>
 </tr>
 <tr>
                <input type="text" name="min_users[$content[id]]" class="admin_normal" size="5" maxlength="20" value="$content[min_users]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" width="305" align="right">{--RALLYE_MIN_PRICES_MINI--}:</td>
-       <td class="switch_sw$content[sw]" width="265" align="center">
+       <td class="{%template,ColorSwitch%}" width="305" align="right">{--RALLYE_MIN_PRICES_MINI--}:</td>
+       <td class="{%template,ColorSwitch%}" width="265" align="center">
                <input type="text" name="min_prices[$content[id]]" class="admin_normal" size="5" maxlength="20" value="$content[min_prices]" >
        </td>
 </tr>
                <input type="text" name="min_prices[$content[id]]" class="admin_normal" size="5" maxlength="20" value="$content[min_prices]" >
        </td>
 </tr>
index 1047c62308fbf2ae1125e90d3f89e2f6d26f8f3b..21ee45a2233b36f3320903fd374c4bb1cbf0e38b 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
                <input type="hidden" name="url_userid[$content[url_id]]" value="$content[url_userid_raw]" />
                $content[url_userid]
        </td>
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
                <input type="hidden" name="url_userid[$content[url_id]]" value="$content[url_userid_raw]" />
                $content[url_userid]
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="text" name="url[$content[url_id]]" size="20" maxlength="255" value="$content[url]" />
        </td>
 </tr>
                <input type="text" name="url[$content[url_id]]" size="20" maxlength="255" value="$content[url]" />
        </td>
 </tr>
index bf64afbcf797a8e4d5ff303cf07579a41e20e263..a001ddb298bca28efd353809a1271f3a1c005b03 100644 (file)
@@ -1,69 +1,69 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" width="23%" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" width="23%" align="center">
                {--EMAIL_SENDER--}:<br />
                <strong class="admin_misc">{%pipe,generateUserProfileLink=$content[sender]%}</strong>
        </td>
                {--EMAIL_SENDER--}:<br />
                <strong class="admin_misc">{%pipe,generateUserProfileLink=$content[sender]%}</strong>
        </td>
-       <td class="switch_sw$content[sw] bottom right" width="23%" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" width="23%" align="center">
                {--EMAIL_SUBJECT--}:<br />
                <strong class="admin_misc">{%pipe,encodeEntities=$content[subject]%}</strong>
        </td>
                {--EMAIL_SUBJECT--}:<br />
                <strong class="admin_misc">{%pipe,encodeEntities=$content[subject]%}</strong>
        </td>
-       <td class="switch_sw$content[sw] bottom" width="54%" align="center">
+       <td class="{%template,ColorSwitch%} bottom" width="54%" align="center">
                {--EMAIL_TEXT--}:<br />
                <strong class="admin_misc">$content[text]</strong>
        </td>
 </tr>
 <tr>
                {--EMAIL_TEXT--}:<br />
                <strong class="admin_misc">$content[text]</strong>
        </td>
 </tr>
 <tr>
-       <td colspan="2" align="center" class="switch_sw$content[sw] bottom right">
+       <td colspan="2" align="center" class="{%template,ColorSwitch%} bottom right">
                {--EMAIL_PAYMENT--}:<br />
                <strong class="admin_misc">{%pipe,getPaymentTitlePrice,translateComma=$content[payment_id]%}</strong>
        </td>
                {--EMAIL_PAYMENT--}:<br />
                <strong class="admin_misc">{%pipe,getPaymentTitlePrice,translateComma=$content[payment_id]%}</strong>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                {--EMAIL_CATEGORY--}:<br />
                <strong class="admin_misc">{%pipe,getCategory=$content[cat_id]%}</strong>
        </td>
 </tr>
 <tr>
                {--EMAIL_CATEGORY--}:<br />
                <strong class="admin_misc">{%pipe,getCategory=$content[cat_id]%}</strong>
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {--EMAIL_RECEIVERS--}:<br />
                <strong class="admin_misc">$content[sent]</strong> ({--EMAIL_RUIDS--}:
                <strong class="admin_misc">{%pipe,convertReceivers=$content[receivers]%}</strong>)
        </td>
                {--EMAIL_RECEIVERS--}:<br />
                <strong class="admin_misc">$content[sent]</strong> ({--EMAIL_RUIDS--}:
                <strong class="admin_misc">{%pipe,convertReceivers=$content[receivers]%}</strong>)
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {--USERS_LINKS--}:<br />
                <strong class="admin_misc">$content[unconfirmed]</strong>
        </td>
                {--USERS_LINKS--}:<br />
                <strong class="admin_misc">$content[unconfirmed]</strong>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                {--EMAIL_POOL_TYPE--}:<br />
                <strong class="admin_misc">{%pipe,translatePoolType=$content[data_type]%}</strong>
        </td>
 </tr>
 <tr>
                {--EMAIL_POOL_TYPE--}:<br />
                <strong class="admin_misc">{%pipe,translatePoolType=$content[data_type]%}</strong>
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {--EMAIL_TSEND--}:<br />
                <strong class="admin_misc">$content[target_send]</strong>
        </td>
                {--EMAIL_TSEND--}:<br />
                <strong class="admin_misc">$content[target_send]</strong>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {--EMAIL_URL--}:<br />
                <strong class="admin_misc"><a href="{%pipe,generateFrametesterUrl=$content[url]%}"
                        target="_blank">{--ADMIN_TEST_URL--}</a></strong>
        </td>
                {--EMAIL_URL--}:<br />
                <strong class="admin_misc"><a href="{%pipe,generateFrametesterUrl=$content[url]%}"
                        target="_blank">{--ADMIN_TEST_URL--}</a></strong>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                {--EMAIL_TIMESTAMP--}:<br />
                <strong class="admin_misc">$content[timestamp]</strong>
        </td>
 </tr>
 <tr>
                {--EMAIL_TIMESTAMP--}:<br />
                <strong class="admin_misc">$content[timestamp]</strong>
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right" colspan="2">
+       <td align="center" class="{%template,ColorSwitch%} bottom right" colspan="2">
                <div>{--EMAIL_URL--}:</div>
                <div><strong class="admin_misc">$content[url]</strong></div>
        </td>
                <div>{--EMAIL_URL--}:</div>
                <div><strong class="admin_misc">$content[url]</strong></div>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                {--_UNUSED--}:<br />
                <strong class="admin_misc">---</strong>
        </td>
 </tr>
 <tr>
                {--_UNUSED--}:<br />
                <strong class="admin_misc">---</strong>
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom admin_del_link" colspan="3">
+       <td align="center" class="{%template,ColorSwitch%} bottom admin_del_link" colspan="3">
                <a href="{%url=modules.php?module=admin&amp;what=del_email&amp;mid=$content[id]%}">{--ADMIN_DELETE_NORMAL_MAIL--}</a>
        </td>
 </tr>
                <a href="{%url=modules.php?module=admin&amp;what=del_email&amp;mid=$content[id]%}">{--ADMIN_DELETE_NORMAL_MAIL--}</a>
        </td>
 </tr>
index 6b38f7fb59ec06f89da07524b083f66580d70e2f..8f979715cb07d95c8031a4673066f95709e1d609 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-  <td class="switch_sw$content[sw] bottom" style="padding-left: 2px" width="30">$content[i].</td>
-  <td class="switch_sw$content[sw] bottom" style="padding-left: 5px; padding-right: 5px">
+  <td class="{%template,ColorSwitch%} bottom" style="padding-left: 2px" width="30">$content[i].</td>
+  <td class="{%template,ColorSwitch%} bottom" style="padding-left: 5px; padding-right: 5px">
     $content[sql]
   </td>
 </tr>
     $content[sql]
   </td>
 </tr>
index 8e94566bf08f1f6092f54e301e6108c65ad7bb83..b14a076c6ebc7ffe885798788c976878958fbf95 100644 (file)
@@ -1,12 +1,12 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center" rowspan="2">
+       <td class="{%template,ColorSwitch%} bottom right" align="center" rowspan="2">
                <strong>$content[id]</strong>
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
                <strong>$content[id]</strong>
                <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                $content[ext_name]
        </td>
                $content[ext_name]
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                v$content[ext_ver]
        </td>
 </tr>
                v$content[ext_ver]
        </td>
 </tr>
index 2f7949456021e5571e58f78ee09df7755837d0d6..ca9cf056dc7108925c97a54f72ebf7a2514d4fad 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <strong>$content[id]</strong>
        </td>
                <strong>$content[id]</strong>
        </td>
-       <td class="switch_sw$content[sw] bottom" colspan="3" align="center">
+       <td class="{%template,ColorSwitch%} bottom" colspan="3" align="center">
                Erweiterung nicht auffindbar!
        </td>
 </tr>
                Erweiterung nicht auffindbar!
        </td>
 </tr>
index 015f0ec95926dbc4aef60da502f84164a5102652..95f70983c4cc57928d9e8daced8cc33353655d40 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center"><strong>$content[id]</strong>
+       <td class="{%template,ColorSwitch%} bottom right" align="center"><strong>$content[id]</strong>
        <input type="hidden" name="sel[$content[id]]" value="1" /></td>
        <input type="hidden" name="sel[$content[id]]" value="1" /></td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
        &nbsp;&nbsp;$content[name]</td>
        &nbsp;&nbsp;$content[name]</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
        $content[css]</td>
        $content[css]</td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
        $content[active]</td>
 </tr>
        $content[active]</td>
 </tr>
index b28a4d4188caee7533446937854a9f4617b83e74..9881110db9d6f116eb174cc701da2635fca646f1 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admoin_normal" name="sel[$content[id]]" value="$content[act_val]" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admoin_normal" name="sel[$content[id]]" value="$content[act_val]" />
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;&nbsp;$content[name]
        </td>
                &nbsp;&nbsp;$content[name]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[css]
        </td>
                $content[css]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[active]
        </td>
                $content[active]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                &nbsp;&nbsp;v$content[ver]
        </td>
 </tr>
                &nbsp;&nbsp;v$content[ver]
        </td>
 </tr>
index b217296ee10d18d5aa63f44b82402197a45710ac..5bd16ab67c25d3cd046029774bd4d74e9eec8227 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td class="bottom switch_sw$content[sw]" align="right">
+       <td class="bottom {%template,ColorSwitch%}" align="right">
                $content[cnt]. {--ENTRY_DELETE--}:
        </td>
                $content[cnt]. {--ENTRY_DELETE--}:
        </td>
-       <td class="bottom switch_sw$content[sw]">
+       <td class="bottom {%template,ColorSwitch%}">
                $content[menu]
                <input type="hidden" name="sel[$content[sel]]" value="$content[menu]" />
        </td>
                $content[menu]
                <input type="hidden" name="sel[$content[sel]]" value="$content[menu]" />
        </td>
index f8c8b3f6e47dc104fc3f700cf720dd01ad2c2659..57f9cb2a955e8b138de31ffdf11e4872f5a21e63 100644 (file)
@@ -1,29 +1,29 @@
 <tr>
 <tr>
-       <td colspan="2" class="admin_edit switch_sw$content[sw]">
+       <td colspan="2" class="admin_edit {%template,ColorSwitch%}">
                $content[cnt]. {--ENTRY_MODIFY--}:
        </td>
 </tr>
 <tr>
                $content[cnt]. {--ENTRY_MODIFY--}:
        </td>
 </tr>
 <tr>
-       <td align="right" class="admin_edit switch_sw$content[sw]">
+       <td align="right" class="admin_edit {%template,ColorSwitch%}">
                {--EDIT_ACTION--}:
        </td>
                {--EDIT_ACTION--}:
        </td>
-       <td class="admin_edit switch_sw$content[sw]">
+       <td class="admin_edit {%template,ColorSwitch%}">
                $content[action]
        </td>
 </tr>
 <tr>
                $content[action]
        </td>
 </tr>
 <tr>
-       <td class="admin_edit switch_sw$content[sw]" align="right">
+       <td class="admin_edit {%template,ColorSwitch%}" align="right">
                {--EDIT_WHAT--}:
        </td>
                {--EDIT_WHAT--}:
        </td>
-       <td class="admin_edit switch_sw$content[sw]">
+       <td class="admin_edit {%template,ColorSwitch%}">
                $content[what]
        </td>
 </tr>
 <tr>
                $content[what]
        </td>
 </tr>
 <tr>
-       <td class="admin_edit switch_sw$content[sw] bottom" align="right">
+       <td class="admin_edit {%template,ColorSwitch%} bottom" align="right">
                {--EDIT_TITLE--}:
        </td>
                {--EDIT_TITLE--}:
        </td>
-       <td class="admin_edit switch_sw$content[sw] bottom">
+       <td class="admin_edit {%template,ColorSwitch%} bottom">
                <input type="text" name="sel[$content[sel]]" value="$content[menu]" class="admin_normal" size="30" maxlength="50" />
        </td>
 </tr>
                <input type="text" name="sel[$content[sel]]" value="$content[menu]" class="admin_normal" size="30" maxlength="50" />
        </td>
 </tr>
index 46d75c40221df150ef95b94bf87a6aeb86552b8c..148f0488fcbb80ea49a780c1bbcc9343c25dc2a3 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;&nbsp;<a href="$content[email_link]">$content[login]</a>
        </td>
                &nbsp;&nbsp;<a href="$content[email_link]">$content[login]</a>
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;&nbsp;<a href="mailto:$content[email]">$content[email]</a>
        </td>
                &nbsp;&nbsp;<a href="mailto:$content[email]">$content[email]</a>
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;&nbsp;$content[mode]
        </td>
                &nbsp;&nbsp;$content[mode]
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                &nbsp;&nbsp;$content[la_mode]
        </td>
 </tr>
                &nbsp;&nbsp;$content[la_mode]
        </td>
 </tr>
index 4f1e3c707d5a2d7a28da52125d31d96a810f1e95..cf02eb6a08692e18bf82d0bfc59feb1223a4a499 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,translateGender=$content[gender]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[surname]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[family]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[email]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[joined]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[last_online]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[notified]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,translateGender=$content[gender]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[surname]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[family]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[email]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[joined]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[last_online]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[notified]</td>
 </tr>
 </tr>
index dbe4b2d8fc58da59ccf848f2cbe064f6faf99a95..dad944014ff208fc365f7418180f91b8dd61ec60 100644 (file)
@@ -1,26 +1,26 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="id[$content[id]]" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="id[$content[id]]" value="1" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>$content[id]</strong>
        </td>
                <strong>$content[id]</strong>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[title]
        </td>
                $content[title]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[description]
        </td>
                $content[description]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[account_fee]%} {?POINTS?}
        </td>
                {%pipe,translateComma=$content[account_fee]%} {?POINTS?}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[interest_plus]%}%
        </td>
                {%pipe,translateComma=$content[interest_plus]%}%
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[interest_minus]%}%
        </td>
                {%pipe,translateComma=$content[interest_minus]%}%
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                {%pipe,translateComma=$content[package_active]%}
        </td>
 </tr>
                {%pipe,translateComma=$content[package_active]%}
        </td>
 </tr>
index d680eb2bec3637bd005d04fa6336df9264a9baf5..261ae7759b57baf243bf621b8cdfef0a46233565 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[win1]$content[cnt]$content[win2]</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[win1]<a href="{%url=modules.php?module=admin&amp;what=list_user&amp;userid=$content[userid]%}">$content[userid]</a>$content[win2]</td>
-       <td class="switch_sw$content[sw] bottom right">$content[win1]<a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>$content[win2]</td>
-       <td class="switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[beg_points]%} {?POINTS?}</td>
-       <td class="switch_sw$content[sw] bottom">$content[last_online]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[win1]$content[cnt]$content[win2]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[win1]<a href="{%url=modules.php?module=admin&amp;what=list_user&amp;userid=$content[userid]%}">$content[userid]</a>$content[win2]</td>
+       <td class="{%template,ColorSwitch%} bottom right">$content[win1]<a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>$content[win2]</td>
+       <td class="{%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[beg_points]%} {?POINTS?}</td>
+       <td class="{%template,ColorSwitch%} bottom">$content[last_online]</td>
 </tr>
 </tr>
index 04b8a9fafbf68df45f9712b31cf0c72005e025f6..cf5ae916c46c7b02acf9cdd32584498c3f0a4ad4 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[win1]$content[cnt]$content[win2]</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[win1]{%pipe,generateUserProfileLink=$content[userid]%}$content[win2]</td>
-       <td class="switch_sw$content[sw] bottom right">$content[win1]<a href="$content[email]">{%pipe,translateGender$content[gender]%} $content[surname] $content[family]</a>$content[win2]</td>
-       <td class="switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[points]%} {?POINTS?}</td>
-       <td class="switch_sw$content[sw] bottom">$content[last_online]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[win1]$content[cnt]$content[win2]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[win1]{%pipe,generateUserProfileLink=$content[userid]%}$content[win2]</td>
+       <td class="{%template,ColorSwitch%} bottom right">$content[win1]<a href="$content[email]">{%pipe,translateGender$content[gender]%} $content[surname] $content[family]</a>$content[win2]</td>
+       <td class="{%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%} {?POINTS?}</td>
+       <td class="{%template,ColorSwitch%} bottom">$content[last_online]</td>
 </tr>
 </tr>
index b31b720baf6ab80a5b28f5e7df0b9abb46d4d67f..6f9a7cb40f8eb63b9bb4cf1f4d1e6b7feb08f9d5 100644 (file)
@@ -1,11 +1,11 @@
 <tr>
 <tr>
-       <td class="bottom switch_sw$content[sw]" width="30" align="right">
+       <td class="bottom {%template,ColorSwitch%}" width="30" align="right">
                $content[cnt].
        </td>
                $content[cnt].
        </td>
-       <td class="bottom switch_sw$content[sw]">
+       <td class="bottom {%template,ColorSwitch%}">
                $content[cat]
        </td>
                $content[cat]
        </td>
-       <td class="bottom switch_sw$content[sw] left" width="50" align="center">
+       <td class="bottom {%template,ColorSwitch%} left" width="50" align="center">
                $content[sel]
        </td>
 </tr>
                $content[sel]
        </td>
 </tr>
index ac7f67848432bc3078a931c4aff5d41d00b8e9d7..29df9fb4944230a3a9b14851e2b592811bb5d9df 100644 (file)
@@ -1,12 +1,12 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] top right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
-       <td align="center" class="switch_sw$content[sw] top right">{%pipe,translateGender=$content[gender]%}</td>
-       <td align="center" class="switch_sw$content[sw] top right">$content[surname]</td>
-       <td align="center" class="switch_sw$content[sw] top right">$content[family]</td>
-       <td align="center" class="switch_sw$content[sw] top right">$content[email]</td>
-       <td align="center" class="switch_sw$content[sw] top right">$content[remote_addr]</td>
-       <td align="center" class="switch_sw$content[sw] top right">{%pipe,generateUserProfileLink=$content[refid]%}</td>
-       <td align="center" class="switch_sw$content[sw] top">
+       <td align="center" class="{%template,ColorSwitch%} top right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} top right">{%pipe,translateGender=$content[gender]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} top right">$content[surname]</td>
+       <td align="center" class="{%template,ColorSwitch%} top right">$content[family]</td>
+       <td align="center" class="{%template,ColorSwitch%} top right">$content[email]</td>
+       <td align="center" class="{%template,ColorSwitch%} top right">$content[remote_addr]</td>
+       <td align="center" class="{%template,ColorSwitch%} top right">{%pipe,generateUserProfileLink=$content[refid]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} top">
                <a href="{%url=confirm.php?hash=$content[user_hash]%}" target="_blank">{--CONFIRMATION_LINK--}</a>
        </td>
 </tr>
                <a href="{%url=confirm.php?hash=$content[user_hash]%}" target="_blank">{--CONFIRMATION_LINK--}</a>
        </td>
 </tr>
index 9dbd0f977242ebe9b2211d6f597bd639e0b07552..6a353cb2f69aec093fbd9a6f8c9e179840ab103c 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right"><strong>$content[id]</strong>
+       <td align="center" class="{%template,ColorSwitch%} bottom right"><strong>$content[id]</strong>
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[code]
        </td>
                $content[code]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[descr]
        </td>
                $content[descr]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[status]
        </td>
 </tr>
                $content[status]
        </td>
 </tr>
index 219aaffbd0c5ef42da57c67c12a3cb339ee774b0..459db3d8db967dbfc0612161f4312fc906b804fe 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right"><strong>$content[id]</strong>
+       <td align="center" class="{%template,ColorSwitch%} bottom right"><strong>$content[id]</strong>
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="text" name="code[$content[id]]" class="admin_normal" size="2" maxelength="2" value="$content[code]" />
        </td>
                <input type="text" name="code[$content[id]]" class="admin_normal" size="2" maxelength="2" value="$content[code]" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="text" name="descr[$content[id]]" class="admin_normal" size="20" maxelength="255" value="$content[descr]" />
        </td>
                <input type="text" name="descr[$content[id]]" class="admin_normal" size="20" maxelength="255" value="$content[descr]" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                <select name="is_active[$content[id]]" class="admin_select" size="1">
                        $content[status]
                </select>
                <select name="is_active[$content[id]]" class="admin_select" size="1">
                        $content[status]
                </select>
index d8db8c00c948a3d7b522976d6a1b9bc2a17103c1..5d5464ededf96272bc59ae56758aacd5c04c4933 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" value="$content[is_active]" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" value="$content[is_active]" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[code]
        </td>
                $content[code]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[descr]
        </td>
                $content[descr]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[active]
        </td>
 </tr>
                $content[active]
        </td>
 </tr>
index f4699cb7b79f814e2a985d0921f272a348617dba..0766dedd93b880a77654062c6e6be54365266479 100644 (file)
                <td class="right" align="center" style="padding-left: 5px; padding-right: 5px; padding-top: 5px; padding-bottom: 5px">
                <table border="0" cellspacing="0" cellpadding="0" class="dashed">
                        <tr>
                <td class="right" align="center" style="padding-left: 5px; padding-right: 5px; padding-top: 5px; padding-bottom: 5px">
                <table border="0" cellspacing="0" cellpadding="0" class="dashed">
                        <tr>
-                               <td class="switch_sw1 bottom" align="right" width="245">
+                               <td class="{%template,ColorSwitch%} bottom" align="right" width="245">
                                        {--ADMIN_DOUBLER_ALREADY_ALL--}:
                                </td>
                                        {--ADMIN_DOUBLER_ALREADY_ALL--}:
                                </td>
-                               <td class="switch_sw1 bottom" align="center" width="30">
+                               <td class="{%template,ColorSwitch%} bottom" align="center" width="30">
                                        <strong>$content[already_all_link]</strong>
                                </td>
                        </tr>
                        <tr>
                                        <strong>$content[already_all_link]</strong>
                                </td>
                        </tr>
                        <tr>
-                               <td class="switch_sw2 bottom" align="right">
+                               <td class="{%template,ColorSwitch%} bottom" align="right">
                                        {--ADMIN_DOUBLER_ALREADY_DIRECT--}:
                                </td>
                                        {--ADMIN_DOUBLER_ALREADY_DIRECT--}:
                                </td>
-                               <td class="switch_sw2 bottom" align="center">
+                               <td class="{%template,ColorSwitch%} bottom" align="center">
                                        <strong>$content[already_direct_link]</strong>
                                </td>
                        </tr>
                        <tr>
                                        <strong>$content[already_direct_link]</strong>
                                </td>
                        </tr>
                        <tr>
-                               <td class="switch_sw1" align="right">
+                               <td class="{%template,ColorSwitch%}" align="right">
                                        {--ADMIN_DOUBLER_ALREADY_REF--}:
                                </td>
                                        {--ADMIN_DOUBLER_ALREADY_REF--}:
                                </td>
-                               <td class="switch_sw1" align="center">
+                               <td class="{%template,ColorSwitch%}" align="center">
                                        <strong>$content[already_ref_link]</strong>
                                </td>
                        </tr>
                                        <strong>$content[already_ref_link]</strong>
                                </td>
                        </tr>
                <td align="center" style="padding-left: 5px; padding-right: 5px; padding-top: 5px; padding-bottom: 5px">
                <table border="0" cellspacing="0" cellpadding="0" class="dashed">
                        <tr>
                <td align="center" style="padding-left: 5px; padding-right: 5px; padding-top: 5px; padding-bottom: 5px">
                <table border="0" cellspacing="0" cellpadding="0" class="dashed">
                        <tr>
-                               <td class="switch_sw1 bottom" align="right" width="245">
+                               <td class="{%template,ColorSwitch%} bottom" align="right" width="245">
                                        {--ADMIN_DOUBLER_WAITING_ALL--}:
                                </td>
                                        {--ADMIN_DOUBLER_WAITING_ALL--}:
                                </td>
-                               <td class="switch_sw1 bottom" align="center" width="30">
+                               <td class="{%template,ColorSwitch%} bottom" align="center" width="30">
                                        <strong>$content[waiting_all_link]</strong>
                                </td>
                        </tr>
                        <tr>
                                        <strong>$content[waiting_all_link]</strong>
                                </td>
                        </tr>
                        <tr>
-                               <td class="switch_sw2 bottom" align="right">
+                               <td class="{%template,ColorSwitch%} bottom" align="right">
                                        {--ADMIN_DOUBLER_WAITING_DIRECT--}:
                                </td>
                                        {--ADMIN_DOUBLER_WAITING_DIRECT--}:
                                </td>
-                               <td class="switch_sw2 bottom" align="center">
+                               <td class="{%template,ColorSwitch%} bottom" align="center">
                                        <strong>$content[waiting_direct_link]</strong>
                                </td>
                        </tr>
                        <tr>
                                        <strong>$content[waiting_direct_link]</strong>
                                </td>
                        </tr>
                        <tr>
-                               <td class="switch_sw1" align="right">
+                               <td class="{%template,ColorSwitch%}" align="right">
                                        {--ADMIN_DOUBLER_WAITING_REF--}:
                                </td>
                                        {--ADMIN_DOUBLER_WAITING_REF--}:
                                </td>
-                               <td class="switch_sw1" align="center">
+                               <td class="{%template,ColorSwitch%}" align="center">
                                        <strong>$content[waiting_ref_link]</strong>
                                </td>
                        </tr>
                                        <strong>$content[waiting_ref_link]</strong>
                                </td>
                        </tr>
index fe8a46714a7751c21a7e7ea12c31497105a20de5..89d6a68b6a6f9c24df6660929effbeafa4af6b7e 100644 (file)
@@ -1,25 +1,25 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,generateUserProfileLink=$content[userid]%}
        </td>
                {%pipe,generateUserProfileLink=$content[userid]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[start]
        </td>
                $content[start]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[end]
        </td>
                $content[end]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <div class="pre">
                        {%pipe,fixEmptyContentToDashes=$content[comments]%}
                </div>
        </td>
                <div class="pre">
                        {%pipe,fixEmptyContentToDashes=$content[comments]%}
                </div>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,translateUserStatus=$content[status]%}
        </td>
                {%pipe,translateUserStatus=$content[status]%}
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[last_online]
        </td>
 </tr>
                $content[last_online]
        </td>
 </tr>
index 959ecc42a0f2808f4e8ce70b2b98cab1d1e7b22d..a46e8727eae1d2c33b9ab2bc720d3fda4c69e949 100644 (file)
@@ -1,11 +1,11 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="checkbox" class="admin_normal" title="{--ADMIN_IMPRINT_SELECT_ROW--} - $content[imprint_key]" name="id[$content[imprint_key]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ADMIN_IMPRINT_SELECT_ROW--} - $content[imprint_key]" name="id[$content[imprint_key]]" value="1" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[imprint_key]
        </td>
                $content[imprint_key]
        </td>
-       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">
+       <td class="{%template,ColorSwitch%} bottom" style="padding-left:5px">
                $content[imprint_value]
        </td>
 </tr>
                $content[imprint_value]
        </td>
 </tr>
index 7a3e4d135c035e0f90cee08e5916c40fccec0a22..032d6f84ff9aba0b72b875857d77d746c3b40d65 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-  <td align="center" class="switch_sw$content[sw] bottom" colspan="4">
+  <td align="center" class="{%template,ColorSwitch%} bottom" colspan="4">
     <span class="admin_failed large">$content[problem]:</span>&nbsp;$content[data]
   </td>
 </tr>
     <span class="admin_failed large">$content[problem]:</span>&nbsp;$content[data]
   </td>
 </tr>
index edf856095ee6879a9bb7fc4b8527441853e5eb27..404e2061be9b7afe9c5d554be3b28ac57b9dd7e6 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[link]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[subject]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[timestamp]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[cat]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[link]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[subject]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[timestamp]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[cat]</td>
 </tr>
 </tr>
index 7ef5f779a6586890364210c5b009356819feefcb..b9c051b4c581212a1eb98cae4c246f83196c97c0 100644 (file)
@@ -1,23 +1,23 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                $content[module]
        </td>
                $content[module]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                {%pipe,fixEmptyContentToDashes=$content[title]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[title]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,translateYesNo=$content[locked]%}
        </td>
                {%pipe,translateYesNo=$content[locked]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,translateYesNo=$content[hidden]%}
        </td>
                {%pipe,translateYesNo=$content[hidden]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,translateYesNo=$content[admin_only]%}
        </td>
                {%pipe,translateYesNo=$content[admin_only]%}
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                {%pipe,translateYesNo=$content[mem_only]%}
        </td>
 </tr>
                {%pipe,translateYesNo=$content[mem_only]%}
        </td>
 </tr>
index 3ec8ccb40243a5eb9a2506148f287c239447dbc1..a75bcd7c4b229c20c934682c69a954fa1adf2ffd 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[network_param_id]" class="admin_normal" name="sel[$content[network_param_id]]" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[network_param_id]" class="admin_normal" name="sel[$content[network_param_id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[network_type_handle]
        </td>
                $content[network_type_handle]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[request_param_key]
        </td>
                $content[request_param_key]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[request_param_value]
        </td>
                $content[request_param_value]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[request_param_default]
        </td>
 </tr>
                $content[request_param_default]
        </td>
 </tr>
index 6228b21823651f7dd3041d98b38fe6039dd06057..67d22a00f57b814d76f607277b4c39bbb1d53b59 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[network_type_id]" class="admin_normal" name="sel[$content[network_type_id]]" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[network_type_id]" class="admin_normal" name="sel[$content[network_type_id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[network_type_handle]
        </td>
                $content[network_type_handle]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[network_type_api_url]
        </td>
                $content[network_type_api_url]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[network_type_click_url]
        </td>
                $content[network_type_click_url]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[network_type_banner_url]
        </td>
 </tr>
                $content[network_type_banner_url]
        </td>
 </tr>
index 06e29521420eeca4a5e3069275a547c7f2b68a89..b42ddaa67bf48fc7b20d2803423c052b72e31cea 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[network_id]" class="admin_normal" name="sel[$content[network_id]]" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[network_id]" class="admin_normal" name="sel[$content[network_id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[network_short_name]:<br />
                [<a
                 href="{%url=modules.php?module=admin&amp;what=list_network_types&amp;network=$content[network_id]%}" title="{--ADMIN_NETWORK_LIST_TYPES_LINK_TITLE--}">T</a>|<a
                $content[network_short_name]:<br />
                [<a
                 href="{%url=modules.php?module=admin&amp;what=list_network_types&amp;network=$content[network_id]%}" title="{--ADMIN_NETWORK_LIST_TYPES_LINK_TITLE--}">T</a>|<a
                 href="{%url=modules.php?module=admin&amp;what=list_network_ARRAY_TRANSLATION&amp;network=$content[network_id]%}" title="{--ADMIN_NETWORK_LIST_ARRAY_TRANSLATION_LINK_TITLE--}">RC</a>|<a
                 href="{%url=modules.php?module=admin&amp;what=list_network_error_codes&amp;network=$content[network_id]%}" title="{--ADMIN_NETWORK_LIST_ERROR_CODES_LINK_TITLE--}">EC</a>]
        </td>
                 href="{%url=modules.php?module=admin&amp;what=list_network_ARRAY_TRANSLATION&amp;network=$content[network_id]%}" title="{--ADMIN_NETWORK_LIST_ARRAY_TRANSLATION_LINK_TITLE--}">RC</a>|<a
                 href="{%url=modules.php?module=admin&amp;what=list_network_error_codes&amp;network=$content[network_id]%}" title="{--ADMIN_NETWORK_LIST_ERROR_CODES_LINK_TITLE--}">EC</a>]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                [<a href="$content[network_reflink]" target="_blank" title="$content[network_title]">$content[network_title]</a>]
        </td>
                [<a href="$content[network_reflink]" target="_blank" title="$content[network_title]">$content[network_title]</a>]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[network_data_seperator]
        </td>
                $content[network_data_seperator]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[network_row_seperator]
        </td>
                $content[network_row_seperator]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[network_request_type]
        </td>
                $content[network_request_type]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[network_charset]
        </td>
 </tr>
                $content[network_charset]
        </td>
 </tr>
index faf51310d38dacd0fc8e8b4d455cfb71de8d3d9f..3ac7144feee95b797b5254e3aadeb228c0dab39f 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
 <tr>
-  <td align="center" width="5%" class="switch_sw$content[sw] bottom right">$content[id]</td>
-  <td align="center" width="15%" class="switch_sw$content[sw] bottom right">$content[userid]</td>
-  <td align="center" width="10%" class="switch_sw$content[sw] bottom right">$content[ip]</td>
-  <td align="center" width="5%" class="switch_sw$content[sw] bottom right">{%pipe,generateUserProfileLink=$content[refid]%}</td>
-  <td align="center" width="10%" class="switch_sw$content[sw] bottom right">{%pipe,fixEmptyContentToDashes=$content[module]%}</td>
-  <td align="center" width="10%" class="switch_sw$content[sw] bottom right">{%pipe,fixEmptyContentToDashes=$content[action]%}</td>
-  <td align="center" width="5%" class="switch_sw$content[sw] bottom right">{%pipe,fixEmptyContentToDashes=$content[what]%}</td>
-  <td align="center" width="10%" class="switch_sw$content[sw] bottom">$content[timestamp]</td>
+  <td align="center" width="5%" class="{%template,ColorSwitch%} bottom right">$content[id]</td>
+  <td align="center" width="15%" class="{%template,ColorSwitch%} bottom right">$content[userid]</td>
+  <td align="center" width="10%" class="{%template,ColorSwitch%} bottom right">$content[ip]</td>
+  <td align="center" width="5%" class="{%template,ColorSwitch%} bottom right">{%pipe,generateUserProfileLink=$content[refid]%}</td>
+  <td align="center" width="10%" class="{%template,ColorSwitch%} bottom right">{%pipe,fixEmptyContentToDashes=$content[module]%}</td>
+  <td align="center" width="10%" class="{%template,ColorSwitch%} bottom right">{%pipe,fixEmptyContentToDashes=$content[action]%}</td>
+  <td align="center" width="5%" class="{%template,ColorSwitch%} bottom right">{%pipe,fixEmptyContentToDashes=$content[what]%}</td>
+  <td align="center" width="10%" class="{%template,ColorSwitch%} bottom">$content[timestamp]</td>
 </tr>
 </tr>
index 9fa07451c7b5d76281587bbe25c3133aca7ae89f..64e06741471481de9bc53981387e03ba9c1b3e0c 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[payout_total]%} $content[type]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,fixEmptyContentToDashes=$content[target_account]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,fixEmptyContentToDashes=$content[target_bank]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[payout_timestamp]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[status]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[payout_total]%} $content[type]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,fixEmptyContentToDashes=$content[target_account]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,fixEmptyContentToDashes=$content[target_bank]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[payout_timestamp]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[status]</td>
 </tr>
 </tr>
index af5f5e35d6dda4843fe1cd63efdfe22551b7c133..317989df3cd087e78100a702dfbb1ffc99920c71 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[id]</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[primera_account]</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">{%pipe,translateComma=$content[primera_amount]%}</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[primera_timestamp]</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right" align="center">{%pipe,PRIMERA_TRANSFER_STATUS=$content[primera_type]%}</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right" align="center">{%pipe,fixEmptyContentToDashes=$content[primera_api_message]%}</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom" align="center">$content[primera_api_status]</td>
+       <td class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right">$content[id]</td>
+       <td class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
+       <td class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right">$content[primera_account]</td>
+       <td class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right">{%pipe,translateComma=$content[primera_amount]%}</td>
+       <td class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right">$content[primera_timestamp]</td>
+       <td class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right" align="center">{%pipe,PRIMERA_TRANSFER_STATUS=$content[primera_type]%}</td>
+       <td class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right" align="center">{%pipe,fixEmptyContentToDashes=$content[primera_api_message]%}</td>
+       <td class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom" align="center">$content[primera_api_status]</td>
 </tr>
 </tr>
index 071cd09f52a4a95fc86ba1cbb0a97684a52d06c2..f3454446c6d478685fe173ed05258506968e2640 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right"><a href="{%url=modules.php?module=admin&amp;what=config_rallye_prices&amp;rallye=$content[id]%}">$content[title]</a></td>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,generateAdminLink=$content[admin_id]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[start]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[end]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right"><a href="{%url=modules.php?module=admin&amp;what=config_rallye_prices&amp;rallye=$content[id]%}">$content[title]</a></td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,generateAdminLink=$content[admin_id]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[start]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[end]</td>
 </tr>
 </tr>
index de9f9d126c755c10738b5fedcd3d250a2389b4ee..a1a456086a0c76b5637f889164f4c3696c2fe729 100644 (file)
@@ -1,15 +1,15 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
        $content[bold_l]<a
                href="{%url=modules.php?module=admin&amp;what=list_user&amp;userid=$content[userid]%}">$content[userid]</a>$content[bold_r]
        </td>
        $content[bold_l]<a
                href="{%url=modules.php?module=admin&amp;what=list_user&amp;userid=$content[userid]%}">$content[userid]</a>$content[bold_r]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[bold_l]$content[rews]$content[bold_r]
        </td>
                $content[bold_l]$content[rews]$content[bold_r]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[bold_l]$content[cnt]$content[bold_r]
        </td>
                $content[bold_l]$content[cnt]$content[bold_r]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[bold_l]{%pipe,translateComma=$content[opoints]%}$content[bold_r]
        </td>
 </tr>
                $content[bold_l]{%pipe,translateComma=$content[opoints]%}$content[bold_r]
        </td>
 </tr>
index 0e5f882978ad578120f37542792b6f3293b98d0e..327562ecbaf59f502cd7a37ca70ae716e2b66ebb 100644 (file)
@@ -1,54 +1,54 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right" rowspan="5">$content[select]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right" rowspan="5">$content[select]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>{--RALLYE_TITLE--}:</strong><br />
                $content[title]
        </td>
                <strong>{--RALLYE_TITLE--}:</strong><br />
                $content[title]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>{--RALLYE_DESCR2--}:</strong><br />
                {%pipe,fixEmptyContentToDashes=$content[descr]%}
        </td>
                <strong>{--RALLYE_DESCR2--}:</strong><br />
                {%pipe,fixEmptyContentToDashes=$content[descr]%}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>{--RALLYE_ADMIN_ID--}:</strong><br />
                {%pipe,generateAdminLink=$content[admin_id]%}
        </td>
                <strong>{--RALLYE_ADMIN_ID--}:</strong><br />
                {%pipe,generateAdminLink=$content[admin_id]%}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>{--RALLYE_TSTART--}:</strong><br />
                $content[start_date]
        </td>
                <strong>{--RALLYE_TSTART--}:</strong><br />
                $content[start_date]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                <strong>{--RALLYE_TEND--}:</strong><br />
                $content[end_date]
        </td>
 </tr>
 <tr>
                <strong>{--RALLYE_TEND--}:</strong><br />
                $content[end_date]
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>{--RALLYE_TEMPLATE2--}:</strong><br />
                {%pipe,fixEmptyContentToDashes=$content[template]%}
        </td>
                <strong>{--RALLYE_TEMPLATE2--}:</strong><br />
                {%pipe,fixEmptyContentToDashes=$content[template]%}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>{--RALLYE_AUTO_ADD--}:</strong><br />
                <a href="{%url=modules.php?module=admin&amp;what=list_rallyes&amp;rallye=$content[id]&amp;auto=$content[auto]%}" title="$content[auto_title]">{%pipe,translateYesNo=$content[auto_add_new_user]%}</a>
        </td>
                <strong>{--RALLYE_AUTO_ADD--}:</strong><br />
                <a href="{%url=modules.php?module=admin&amp;what=list_rallyes&amp;rallye=$content[id]&amp;auto=$content[auto]%}" title="$content[auto_title]">{%pipe,translateYesNo=$content[auto_add_new_user]%}</a>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>{--RALLYE_ACTIVE--}:</strong><br />
                <a href="{%url=modules.php?module=admin&amp;what=list_rallyes&amp;rallye=$content[id]&amp;activate=$content[active]%}" title="$content[active_title]">{%pipe,translateYesNo=$content[is_active]%}</a>
        </td>
                <strong>{--RALLYE_ACTIVE--}:</strong><br />
                <a href="{%url=modules.php?module=admin&amp;what=list_rallyes&amp;rallye=$content[id]&amp;activate=$content[active]%}" title="$content[active_title]">{%pipe,translateYesNo=$content[is_active]%}</a>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <strong>{--RALLYE_NOTIFY--}:</strong><br />
                <a ref="{%url=modules.php?module=admin&amp;what=list_rallyes&amp;rallye=$content[id]&amp;notify=$content[notify]%}" title="$content[notify_title]">{%pipe,translateYesNo=$content[send_notify]%}</a>
        </td>
                <strong>{--RALLYE_NOTIFY--}:</strong><br />
                <a ref="{%url=modules.php?module=admin&amp;what=list_rallyes&amp;rallye=$content[id]&amp;notify=$content[notify]%}" title="$content[notify_title]">{%pipe,translateYesNo=$content[send_notify]%}</a>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                <strong>{--RALLYE_NOTIFIED--}:</strong><br />
                {%pipe,translateYesNo=$content[notified]%}
        </td>
 </tr>
 <tr>
                <strong>{--RALLYE_NOTIFIED--}:</strong><br />
                {%pipe,translateYesNo=$content[notified]%}
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right" colspan="3">
+       <td align="center" class="{%template,ColorSwitch%} bottom right" colspan="3">
                <strong>{--RALLYE_ASSIGNED_PRICES--}:</strong><br />
                <a href="{%url=modules.php?module=admin&amp;what=config_rallye_prices&amp;rallye=$content[id]%}">{%pipe,translateComma=$content[prices_cnt]%}</a>
        </td>
                <strong>{--RALLYE_ASSIGNED_PRICES--}:</strong><br />
                <a href="{%url=modules.php?module=admin&amp;what=config_rallye_prices&amp;rallye=$content[id]%}">{%pipe,translateComma=$content[prices_cnt]%}</a>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom" colspan="2">
+       <td align="center" class="{%template,ColorSwitch%} bottom" colspan="2">
                <strong>{--RALLYE_ASSIGNED_USERS--}:</strong><br />
                $content[users_content]
        </td>
                <strong>{--RALLYE_ASSIGNED_USERS--}:</strong><br />
                $content[users_content]
        </td>
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right" colspan="3">
+       <td align="center" class="{%template,ColorSwitch%} bottom right" colspan="3">
                <strong>{--RALLYE_MIN_USERS_MINI--}:</strong><br />
                $content[min_users]
        </td>
                <strong>{--RALLYE_MIN_USERS_MINI--}:</strong><br />
                $content[min_users]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom" colspan="2">
+       <td align="center" class="{%template,ColorSwitch%} bottom" colspan="2">
                <strong>{--RALLYE_MIN_PRICES_MINI--}:</strong><br />
                $content[min_prices]
        </td>
                <strong>{--RALLYE_MIN_PRICES_MINI--}:</strong><br />
                $content[min_prices]
        </td>
index 2d6f648558e8442ed7ec6cadcf6eff7e5f7fbe1b..d7ba771963b46a4b2ca2221ad15ce6023ff8291a 100644 (file)
@@ -1,15 +1,15 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
        $content[bold_l]<a
                href="{%url=modules.php?module=admin&amp;what=list_user&amp;userid=$content[userid]%}">$content[userid]</a>$content[bold_r]
        </td>
        $content[bold_l]<a
                href="{%url=modules.php?module=admin&amp;what=list_user&amp;userid=$content[userid]%}">$content[userid]</a>$content[bold_r]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[bold_l]$content[old]$content[bold_r]
        </td>
                $content[bold_l]$content[old]$content[bold_r]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[bold_l]$content[cnt]$content[bold_r]
        </td>
                $content[bold_l]$content[cnt]$content[bold_r]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[bold_l]$content[points]$content[bold_r]
        </td>
 </tr>
                $content[bold_l]$content[points]$content[bold_r]
        </td>
 </tr>
index cd177e0859f73f854f3d147203cc4984dbb10a44..36fe1fa2e3d3326c316f261c45f1b540164064bd 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td align="right" class="bottom right switch_sw$content[sw]" valign="top">{%pipe,generateUserProfileLink=$content[userid]%}</td>
-       <td align="center" class="bottom right switch_sw$content[sw]">$content[refs_link]</td>
-       <td class="bottom right switch_sw$content[sw]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</td>
-       <td class="bottom right switch_sw$content[sw]">$content[email]</td>
-       <td align="center" class="bottom right switch_sw$content[sw]">{%pipe,translateUserStatus=$content[status]%}</td>
-       <td class="bottom switch_sw$content[sw]">$content[registered]</td>
+       <td align="right" class="bottom right {%template,ColorSwitch%}" valign="top">{%pipe,generateUserProfileLink=$content[userid]%}</td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">$content[refs_link]</td>
+       <td class="bottom right {%template,ColorSwitch%}">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</td>
+       <td class="bottom right {%template,ColorSwitch%}">$content[email]</td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">{%pipe,translateUserStatus=$content[status]%}</td>
+       <td class="bottom {%template,ColorSwitch%}">$content[registered]</td>
 </tr>
 </tr>
index 8e17bc1d01f5ee7e4dfd25118f0473d71ee113a0..be56254d608936440e4c84ac2a0e57e285639cce 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-  <td colspan="5" align="center" class="switch_sw$content[sw] bottom">
+  <td colspan="5" align="center" class="{%template,ColorSwitch%} bottom">
     <strong>{--ENTRY_404_1--}$content{--ENTRY_404_2--}</strong>
   </td>
 </tr>
\ No newline at end of file
     <strong>{--ENTRY_404_1--}$content{--ENTRY_404_2--}</strong>
   </td>
 </tr>
\ No newline at end of file
index cd5d3b609a843d63c686433e2df47d793164ea70..9ef5bbf588103f6ea3e17d0e27fb0ea606ea96ec 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[name]
        </td>
                &nbsp;$content[name]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[rate]
        </td>
                &nbsp;$content[rate]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[min]
        </td>
                &nbsp;$content[min]
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                &nbsp;$content[curr]
        </td>
 </tr>
                &nbsp;$content[curr]
        </td>
 </tr>
index 6b0834a2eeca0c20eb4689d4e2a46d070055e847..109145a0a19cb6f960ae6190a5d7197bdb5658e3 100644 (file)
@@ -1,18 +1,18 @@
 <tr>
 <tr>
-  <td class="switch_sw$content[sw] bottom right" align="center" height="29">
+  <td class="{%template,ColorSwitch%} bottom right" align="center" height="29">
     <strong>$content[id]</strong>
     <input type="hidden" name="id[$content[id]]" class="admin_normal" value="1" />
   </td>
     <strong>$content[id]</strong>
     <input type="hidden" name="id[$content[id]]" class="admin_normal" value="1" />
   </td>
-  <td class="switch_sw$content[sw] bottom right">
+  <td class="{%template,ColorSwitch%} bottom right">
     &nbsp;<input type="text" name="name[$content[id]]" class="admin_normal" size="16" maxlength="255" value="$content[name]" />
   </td>
     &nbsp;<input type="text" name="name[$content[id]]" class="admin_normal" size="16" maxlength="255" value="$content[name]" />
   </td>
-  <td class="switch_sw$content[sw] bottom right">
+  <td class="{%template,ColorSwitch%} bottom right">
     &nbsp;<input type="text" name="rate[$content[id]]" class="admin_normal" size="19" maxlength="255" value="$content[rate]" />
   </td>
     &nbsp;<input type="text" name="rate[$content[id]]" class="admin_normal" size="19" maxlength="255" value="$content[rate]" />
   </td>
-  <td class="switch_sw$content[sw] bottom right">
+  <td class="{%template,ColorSwitch%} bottom right">
     &nbsp;<input type="text" name="min[$content[id]]" class="admin_normal" size="3" maxlength="20" value="$content[min]" />
   </td>
     &nbsp;<input type="text" name="min[$content[id]]" class="admin_normal" size="3" maxlength="20" value="$content[min]" />
   </td>
-  <td class="switch_sw$content[sw] bottom">
+  <td class="{%template,ColorSwitch%} bottom">
     &nbsp;<input type="text" name="curr[$content[id]]" class="admin_normal" size="5" maxlength="255" value="$content[curr]" />
   </td>
 </tr>
\ No newline at end of file
     &nbsp;<input type="text" name="curr[$content[id]]" class="admin_normal" size="5" maxlength="255" value="$content[curr]" />
   </td>
 </tr>
\ No newline at end of file
index 67ff334d8be93967fdae5bbbe6e3990025f0c494..2cbe8ad1eed436097babe3d88e348696ceb547c3 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[name]
        </td>
                &nbsp;$content[name]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[rate]
        </td>
                &nbsp;$content[rate]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[min]
        </td>
                &nbsp;$content[min]
        </td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom">
                &nbsp;$content[currency]
        </td>
 </tr>
                &nbsp;$content[currency]
        </td>
 </tr>
index fb9513103f6e3fc7dbb382d5d29f21f2dcfedc4c..731d151424d420bae58216abf3a8d4a10728efad 100644 (file)
@@ -1,38 +1,38 @@
 <tr>
 <tr>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="100"><strong>{--ID_SELECT--}</strong></td>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="240" colspan="2"><strong>{--SURNAME_FAMILY--}:</strong></td>
-  <td align="center" class="switch_sw$content[sw] bottom" width="160"><strong>{--SPONSOR_POINTS_LEFT--}:</strong></td>
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="100"><strong>{--ID_SELECT--}</strong></td>
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="240" colspan="2"><strong>{--SURNAME_FAMILY--}:</strong></td>
+  <td align="center" class="{%template,ColorSwitch%} bottom" width="160"><strong>{--SPONSOR_POINTS_LEFT--}:</strong></td>
 </tr>
 <tr>
 </tr>
 <tr>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="100">
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="100">
     [<strong><a href="{%url=modules.php?module=admin&amp;what=list_sponsor&amp;id=$content[id]%}" title="{--ADMIN_SPONSOR_DETAILS_LINK_TITLE--}">$content[id]</a></strong>]
   </td>
     [<strong><a href="{%url=modules.php?module=admin&amp;what=list_sponsor&amp;id=$content[id]%}" title="{--ADMIN_SPONSOR_DETAILS_LINK_TITLE--}">$content[id]</a></strong>]
   </td>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="240" colspan="2">
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="240" colspan="2">
     <a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>
   </td>
     <a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>
   </td>
-  <td align="center" class="switch_sw$content[sw] bottom" width="160">
+  <td align="center" class="{%template,ColorSwitch%} bottom" width="160">
     [<strong><a href="{%url=modules.php?module=admin&amp;what=edit_sponsor&amp;id=$content[id]&amp;mode=add_points%}" title="{--ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE--}">$content[points]</a></strong>]
   </td>
 </tr>
 <tr>
     [<strong><a href="{%url=modules.php?module=admin&amp;what=edit_sponsor&amp;id=$content[id]&amp;mode=add_points%}" title="{--ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE--}">$content[points]</a></strong>]
   </td>
 </tr>
 <tr>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="100">
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="100">
     <strong>{--_STATUS--}</strong>:
   </td>
     <strong>{--_STATUS--}</strong>:
   </td>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="160"><strong>{--SPONSOR_CREATED--}:</strong></td>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="160"><strong>{--ADMIN_LAST_ONLINE--}:</strong></td>
-  <td align="center" class="switch_sw$content[sw] bottom" width="160"><strong>{--REMOTE_IP--}:</strong></td>
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="160"><strong>{--SPONSOR_CREATED--}:</strong></td>
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="160"><strong>{--ADMIN_LAST_ONLINE--}:</strong></td>
+  <td align="center" class="{%template,ColorSwitch%} bottom" width="160"><strong>{--REMOTE_IP--}:</strong></td>
 </tr>
 <tr>
 </tr>
 <tr>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="100">
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="100">
     [<strong><a href="{%url=modules.php?module=admin&amp;what=lock_sponsor&amp;id=$content[id]%}">{%pipe,sponsorTranslateUserStatus=$content[status]%}</a></strong>]
   </td>
     [<strong><a href="{%url=modules.php?module=admin&amp;what=lock_sponsor&amp;id=$content[id]%}">{%pipe,sponsorTranslateUserStatus=$content[status]%}</a></strong>]
   </td>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="120">
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="120">
     $content[sponsor_created]
   </td>
     $content[sponsor_created]
   </td>
-  <td align="center" class="switch_sw$content[sw] bottom right" width="120">
+  <td align="center" class="{%template,ColorSwitch%} bottom right" width="120">
     $content[last_online]
   </td>
     $content[last_online]
   </td>
-  <td align="center" class="switch_sw$content[sw] bottom" width="160">
+  <td align="center" class="{%template,ColorSwitch%} bottom" width="160">
     $content[remote_addr]
   </td>
 </tr>
     $content[remote_addr]
   </td>
 </tr>
index 533781b436195668dc180c2baac05d3d8bf73e1d..aae61cd7b9e08a5c5a66af939a21709e05113571 100644 (file)
@@ -7,16 +7,16 @@
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
-       <td align="center" class="header_column bottom right switch_sw$content[sw]">
+       <td align="center" class="header_column bottom right {%template,ColorSwitch%}">
                <strong>{--ID_SELECT--}</strong>
        </td>
                <strong>{--ID_SELECT--}</strong>
        </td>
-       <td align="center" class="header_column bottom right switch_sw$content[sw]">
+       <td align="center" class="header_column bottom right {%template,ColorSwitch%}">
                <strong>{--ADMIN_SURFBAR_CURRENT_STATUS--}</strong>
        </td>
                <strong>{--ADMIN_SURFBAR_CURRENT_STATUS--}</strong>
        </td>
-       <td align="center" class="header_column bottom right switch_sw$content[sw]">
+       <td align="center" class="header_column bottom right {%template,ColorSwitch%}">
                <strong>{--ADMIN_SURFBAR_MEMBER_ACTION--}</strong>
        </td>
                <strong>{--ADMIN_SURFBAR_MEMBER_ACTION--}</strong>
        </td>
-       <td align="center" class="header_column bottom switch_sw$content[sw]">
+       <td align="center" class="header_column bottom {%template,ColorSwitch%}">
                <strong>{--ADMIN_SURFBAR_NEW_STATUS--}</strong>
        </td>
 </tr>
                <strong>{--ADMIN_SURFBAR_NEW_STATUS--}</strong>
        </td>
 </tr>
index 277c2dabd928496e0fe2e4807d66993f6954ec0e..41b85c6f3cf63aaf63bedc92d503b0c55ff8e1c9 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[actions_id]" name="id[$content[actions_id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[actions_id]" name="id[$content[actions_id]]" value="1" />
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                {%pipe,translateSurfbarUrlStatus=$content[actions_status]%}
        </td>
                {%pipe,translateSurfbarUrlStatus=$content[actions_status]%}
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                $content[actions_action]
        </td>
                $content[actions_action]
        </td>
-       <td align="center" class="bottom switch_sw$content[sw]">
+       <td align="center" class="bottom {%template,ColorSwitch%}">
                $content[actions_new_status]
        </td>
 </tr>
                $content[actions_new_status]
        </td>
 </tr>
index a635ac1aa2a4c0c7b2d1bd0483a16f0155bfd1e3..8981a85fc7285bb55e108593ac49dae99b755e2b 100644 (file)
@@ -1,26 +1,26 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[url_id]" name="url_id[$content[url_id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[url_id]" name="url_id[$content[url_id]]" value="1" />
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                {%pipe,generateUserProfileLink=$content[url_userid]%}
        </td>
                {%pipe,generateUserProfileLink=$content[url_userid]%}
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <a href="{%pipe,generateFrametesterUrl=$content[url]%}" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
                <a href="{%pipe,generateFrametesterUrl=$content[url]%}" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <a href="{%url=modules.php?module=admin&amp;what=surfbar_stats&amp;url_id=$content[url_id]%}">{%pipe,translateComma=$content[url_views_total]%}</a>
        </td>
                <a href="{%url=modules.php?module=admin&amp;what=surfbar_stats&amp;url_id=$content[url_id]%}">{%pipe,translateComma=$content[url_views_total]%}</a>
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                {%pipe,translateSurfbarUrlStatus=$content[url_status]%}
        </td>
                {%pipe,translateSurfbarUrlStatus=$content[url_status]%}
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                $content[url_registered]
        </td>
                $content[url_registered]
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                $content[url_last_locked]
        </td>
                $content[url_last_locked]
        </td>
-       <td align="center" class="bottom switch_sw$content[sw]">
+       <td align="center" class="bottom {%template,ColorSwitch%}">
                {%pipe,fixEmptyContentToDashes=$content[url_lock_reason]%}
        </td>
 </tr>
                {%pipe,fixEmptyContentToDashes=$content[url_lock_reason]%}
        </td>
 </tr>
index 00af78719b8f33ae32ad23041f30e37046b0cf2c..da740827c650d2e19581ea649389f0d5a1dc1ea9 100644 (file)
@@ -1,23 +1,23 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,generateAdminLink=$content[assigned_admin]%}
        </td>
                {%pipe,generateAdminLink=$content[assigned_admin]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <a title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{%url=modules.php?module=admin&amp;what=extensions&amp;reg_ext=$content[id]%}">{--ADMIN_REGISTER_EXTENSION--}</a>
        </td>
                <a title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{%url=modules.php?module=admin&amp;what=extensions&amp;reg_ext=$content[id]%}">{--ADMIN_REGISTER_EXTENSION--}</a>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[userid]
        </td>
                $content[userid]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[task_type_msg]
        </td>
                $content[task_type_msg]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[task_created]
        </td>
 </tr>
                $content[task_created]
        </td>
 </tr>
index e297a2a41c4b4916340c01735d1fabf5135f2648..585ca460fc95a61a11ffece5bb8a85e95b49e443 100644 (file)
@@ -1,23 +1,23 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,generateAdminLink=$content[assigned_admin]%}
        </td>
                {%pipe,generateAdminLink=$content[assigned_admin]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                ---
        </td>
                ---
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[userid]
        </td>
                $content[userid]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[task_type_msg]
        </td>
                $content[task_type_msg]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[task_created]
        </td>
 </tr>
                $content[task_created]
        </td>
 </tr>
index 4de9fd5ad6d5de20a3694f56e2db17ca5f939dcc..dc69e81bc05a1d7971952f6902e56478c43820c9 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <strong>$content[trans_id]</strong>
        </td>
                <strong>$content[trans_id]</strong>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[time_trans]
        </td>
                $content[time_trans]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,generateUserProfileLink=$content[from_userid]%}
        </td>
                {%pipe,generateUserProfileLink=$content[from_userid]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,generateUserProfileLink=$content[to_userid]%}
        </td>
                {%pipe,generateUserProfileLink=$content[to_userid]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                $content[reason]
        </td>
                $content[reason]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                {%pipe,translateComma=$content[points]%}
        </td>
 </tr>
                {%pipe,translateComma=$content[points]%}
        </td>
 </tr>
index 35d691db9677046f0e63905b672f64aaee06f712..3d0dccf51a250f5273a7199b417eae31b9e30c3d 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <a href="{%url=mailid.php?userid=$content[userid]&amp;$content[link]=$content[id]%}" target="_blank">{--CLICK_NOW--}</a>
        </td>
                <a href="{%url=mailid.php?userid=$content[userid]&amp;$content[link]=$content[id]%}" target="_blank">{--CLICK_NOW--}</a>
        </td>
-       <td class="switch_sw$content[sw] bottom right">$content[email]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">{%pipe,translateUserStatus=$content[status]%}</td>
+       <td class="{%template,ColorSwitch%} bottom right">$content[email]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">{%pipe,translateUserStatus=$content[status]%}</td>
 </tr>
 </tr>
index 5e0b6e83952ef39affad02c7a7b5b1ef2bb81639..350b2b647329f0df38477f36ece1d4e1d9308757 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom" colspan="4">
+       <td align="center" class="{%template,ColorSwitch%} bottom" colspan="4">
                {%message,ADMIN_USER_DATA_NOT_FOUND=$content[userid]%}
        </td>
 </tr>
                {%message,ADMIN_USER_DATA_NOT_FOUND=$content[userid]%}
        </td>
 </tr>
index b85ec7bf6dd48154c2babdcc456f0bdf26e18dd8..c37d6c23ac5c4b24e2ffbcf75e9507009ab57d6d 100644 (file)
@@ -1,58 +1,58 @@
 <tr>
 <tr>
-       <td width="20%" align="center" class="right top switch_sw$content[sw]"><strong>{--_UID--}:</strong></td>
-       <td width="20%" align="center" class="right top switch_sw$content[sw]"><strong>{--GENDER--}:</strong></td>
-       <td width="20%" align="center" class="right top switch_sw$content[sw]"><strong>{--SURNAME--}:</strong></td>
-       <td width="20%" align="center" class="right top switch_sw$content[sw]"><strong>{--FAMILY--}:</strong></td>
-       <td width="20%" align="center" class="switch_sw$content[sw] top"><strong>{--USER_NICKNAME--}:</strong></td>
+       <td width="20%" align="center" class="right top {%template,ColorSwitch%}"><strong>{--_UID--}:</strong></td>
+       <td width="20%" align="center" class="right top {%template,ColorSwitch%}"><strong>{--GENDER--}:</strong></td>
+       <td width="20%" align="center" class="right top {%template,ColorSwitch%}"><strong>{--SURNAME--}:</strong></td>
+       <td width="20%" align="center" class="right top {%template,ColorSwitch%}"><strong>{--FAMILY--}:</strong></td>
+       <td width="20%" align="center" class="{%template,ColorSwitch%} top"><strong>{--USER_NICKNAME--}:</strong></td>
 </tr>
 <tr>
 </tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">{%pipe,generateUserProfileLink=$content[userid]%}</td>
-       <td align="center" class="bottom right switch_sw$content[sw]">{%pipe,translateGender=$content[gender]%}</td>
-       <td align="center" class="bottom right switch_sw$content[sw]">$content[surname]</td>
-       <td align="center" class="bottom right switch_sw$content[sw]">$content[family]</td>
-       <td align="center" class="bottom switch_sw$content[sw]">{%pipe,fixEmptyContentToDashes=$content[nickname]%}</td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">{%pipe,generateUserProfileLink=$content[userid]%}</td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">{%pipe,translateGender=$content[gender]%}</td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">$content[surname]</td>
+       <td align="center" class="bottom right {%template,ColorSwitch%}">$content[family]</td>
+       <td align="center" class="bottom {%template,ColorSwitch%}">{%pipe,fixEmptyContentToDashes=$content[nickname]%}</td>
 </tr>
 <tr>
 </tr>
 <tr>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--EMAIL--}:</strong></td>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--REMOTE_IP--}:</strong></td>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--REF_UID--}:</strong></td>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--ACCOUNT_STATUS--}:</strong></td>
-       <td align="center" class="switch_sw$content[sw]"><strong>{--UNCONFIRMED_LINKS--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--EMAIL--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--REMOTE_IP--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--REF_UID--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--ACCOUNT_STATUS--}:</strong></td>
+       <td align="center" class="{%template,ColorSwitch%}"><strong>{--UNCONFIRMED_LINKS--}:</strong></td>
 </tr>
 <tr>
 </tr>
 <tr>
-       <td align="center" class="right switch_sw$content[sw] bottom">$content[email]</td>
-       <td align="center" class="right switch_sw$content[sw] bottom">$content[REMOTE_ADDR]</td>
-       <td align="center" class="right switch_sw$content[sw] bottom">{%pipe,generateUserProfileLink=$content[refid]%}</td>
-       <td align="center" class="right switch_sw$content[sw] bottom">{%pipe,translateUserStatus=$content[status]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[links]</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">$content[email]</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">$content[REMOTE_ADDR]</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,generateUserProfileLink=$content[refid]%}</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateUserStatus=$content[status]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[links]</td>
 </tr>
 <tr>
 </tr>
 <tr>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--TOTAL_POINTS--}:</strong></td>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--MAILS_SENT--}:</strong></td>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--CLICK_RATE--}:</strong></td>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--POINTS_LOCKED--}:</strong></td>
-       <td align="center" class="switch_sw$content[sw]"><strong>{--TOTAL_REFERALS--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--TOTAL_POINTS--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--MAILS_SENT--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--CLICK_RATE--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--POINTS_LOCKED--}:</strong></td>
+       <td align="center" class="{%template,ColorSwitch%}"><strong>{--TOTAL_REFERALS--}:</strong></td>
 </tr>
 <tr>
 </tr>
 <tr>
-       <td align="center" class="right switch_sw$content[sw] bottom">{%pipe,translateComma=$content[points]%} {?POINTS?}</td>
-       <td align="center" class="right switch_sw$content[sw] bottom">$content[emails_sent]</td>
-       <td align="center" class="right switch_sw$content[sw] bottom">{%pipe,translateComma=$content[rate]%}%</td>
-       <td align="center" class="right switch_sw$content[sw] bottom">{%pipe,translateComma=$content[locked]%} {?POINTS?}</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[refs]</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[points]%} {?POINTS?}</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">$content[emails_sent]</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[rate]%}%</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[locked]%} {?POINTS?}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[refs]</td>
 </tr>
 <tr>
 </tr>
 <tr>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--LOCK_REASON--}:</strong></td>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--LOCK_TIMESTAMP--}:</strong></td>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--_UNUSED--}:</strong></td>
-       <td align="center" class="right switch_sw$content[sw]"><strong>{--_UNUSED--}:</strong></td>
-       <td align="center" class="switch_sw$content[sw]"><strong>{--_UNUSED--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--LOCK_REASON--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--LOCK_TIMESTAMP--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--_UNUSED--}:</strong></td>
+       <td align="center" class="right {%template,ColorSwitch%}"><strong>{--_UNUSED--}:</strong></td>
+       <td align="center" class="{%template,ColorSwitch%}"><strong>{--_UNUSED--}:</strong></td>
 </tr>
 <tr>
 </tr>
 <tr>
-       <td align="center" class="right switch_sw$content[sw] bottom">{%pipe,fixEmptyContentToDashes=$content[lock_reason]%}</td>
-       <td align="center" class="right switch_sw$content[sw] bottom">$content[lock_timestamp]</td>
-       <td align="center" class="right switch_sw$content[sw] bottom">---</td>
-       <td align="center" class="right switch_sw$content[sw] bottom">---</td>
-       <td align="center" class="switch_sw$content[sw] bottom">---</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,fixEmptyContentToDashes=$content[lock_reason]%}</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">$content[lock_timestamp]</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">---</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">---</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">---</td>
 </tr>
 <tr>
        <td height="22" colspan="5" class="admin_title">{%pipe,generateMemberAdminActionLinks=$content[userid]%}</td>
 </tr>
 <tr>
        <td height="22" colspan="5" class="admin_title">{%pipe,generateMemberAdminActionLinks=$content[userid]%}</td>
index 7f3cdce2971c70e08c9c4beaf41eb0be1fb01820..2d05901f198185e5559046983b1c5f773ae5548d 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] wernis_type_$content[wernis_type] bottom right">$content[id]</td>
-       <td class="switch_sw$content[sw] wernis_type_$content[wernis_type] bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
-       <td class="switch_sw$content[sw] wernis_type_$content[wernis_type] bottom right">$content[wernis_account]</td>
-       <td class="switch_sw$content[sw] wernis_type_$content[wernis_type] bottom right">{%pipe,translateComma=$content[wernis_amount]%}</td>
-       <td class="switch_sw$content[sw] wernis_type_$content[wernis_type] bottom right">$content[wernis_timestamp]</td>
-       <td class="switch_sw$content[sw] wernis_type_$content[wernis_type] bottom right" align="center">{%pipe,translateWernisTransferStatus=$content[wernis_type]%}</td>
-       <td class="switch_sw$content[sw] wernis_type_$content[wernis_type] bottom right" align="center">{%pipe,fixEmptyContentToDashes=$content[wernis_api_message]%}</td>
-       <td class="switch_sw$content[sw] wernis_type_$content[wernis_type] bottom" align="center">$content[wernis_api_status]</td>
+       <td class="{%template,ColorSwitch%} wernis_type_$content[wernis_type] bottom right">$content[id]</td>
+       <td class="{%template,ColorSwitch%} wernis_type_$content[wernis_type] bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
+       <td class="{%template,ColorSwitch%} wernis_type_$content[wernis_type] bottom right">$content[wernis_account]</td>
+       <td class="{%template,ColorSwitch%} wernis_type_$content[wernis_type] bottom right">{%pipe,translateComma=$content[wernis_amount]%}</td>
+       <td class="{%template,ColorSwitch%} wernis_type_$content[wernis_type] bottom right">$content[wernis_timestamp]</td>
+       <td class="{%template,ColorSwitch%} wernis_type_$content[wernis_type] bottom right" align="center">{%pipe,translateWernisTransferStatus=$content[wernis_type]%}</td>
+       <td class="{%template,ColorSwitch%} wernis_type_$content[wernis_type] bottom right" align="center">{%pipe,fixEmptyContentToDashes=$content[wernis_api_message]%}</td>
+       <td class="{%template,ColorSwitch%} wernis_type_$content[wernis_type] bottom" align="center">$content[wernis_api_status]</td>
 </tr>
 </tr>
index bf39680cdb8281ccccb0d84100aacffc9e143081..e9a64b12e4f47c6859e170f09db554fa25ec9f89 100644 (file)
@@ -1,11 +1,11 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[id]</td>
-       <td class="switch_sw$content[sw] bottom right">$content[name]</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[reload] {--_HOURS--}</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[wait] {--_SECONDS--}</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">{%pipe,translateComma=$content[remain]%}</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[pay] &euro;</td>
-       <td class="switch_sw$content[sw] bottom">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[id]</td>
+       <td class="{%template,ColorSwitch%} bottom right">$content[name]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[reload] {--_HOURS--}</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[wait] {--_SECONDS--}</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">{%pipe,translateComma=$content[remain]%}</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[pay] &euro;</td>
+       <td class="{%template,ColorSwitch%} bottom">
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                        <td align="center">
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                        <td align="center">
index f0840d01d3dd0474f4d7464a37095fdca293e6d8..381337dea85938b82196e87561ecb451bd5459f9 100644 (file)
@@ -1,11 +1,11 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[id]</td>
-       <td class="switch_sw$content[sw] bottom right">$content[name]</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[reload] {--_HOURS--}</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[wait] {--_SECONDS--}</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">{%pipe,translateComma=$content[remain]%}</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[pay] &euro;</td>
-       <td class="switch_sw$content[sw] bottom" align="center" style="padding-left:1px;padding-right:1px;padding-top:2px;padding-bottom:2px">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[id]</td>
+       <td class="{%template,ColorSwitch%} bottom right">$content[name]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[reload] {--_HOURS--}</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[wait] {--_SECONDS--}</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">{%pipe,translateComma=$content[remain]%}</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[pay] &euro;</td>
+       <td class="{%template,ColorSwitch%} bottom" align="center" style="padding-left:1px;padding-right:1px;padding-top:2px;padding-bottom:2px">
                <form accept-charset="utf-8" action="{%url=modules.php?module=admin&amp;what=list_yoomedia_tm%}" method="post">
                        <input type="hidden" name="id" value="$content[id]" />
                        <input type="hidden" name="name" value="$content[name]" />
                <form accept-charset="utf-8" action="{%url=modules.php?module=admin&amp;what=list_yoomedia_tm%}" method="post">
                        <input type="hidden" name="id" value="$content[id]" />
                        <input type="hidden" name="name" value="$content[name]" />
index cd6cbc493681f1bf8ce47723c62a661116dd48c9..8643d1df8cf1869c4c930e7cdf2c887fd96f370c 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
                <input type="hidden" name="url_userid[$content[url_id]]" value="$content[url_url_userid_raw]" />
                <input type="hidden" name="last_locked[$content[url_id]]" value="NOW()" />
                $content[url_userid]
        </td>
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
                <input type="hidden" name="url_userid[$content[url_id]]" value="$content[url_url_userid_raw]" />
                <input type="hidden" name="last_locked[$content[url_id]]" value="NOW()" />
                $content[url_userid]
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <a href="$content[url]" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
                <a href="$content[url]" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                {%pipe,translateSurfbarUrlStatus=$content[url_status]%}
        </td>
                {%pipe,translateSurfbarUrlStatus=$content[url_status]%}
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                $content[url_registered]
        </td>
                $content[url_registered]
        </td>
-       <td align="center" class="bottom switch_sw$content[sw]">
+       <td align="center" class="bottom {%template,ColorSwitch%}">
                Bitte angeben:<br />
                <textarea name="lock_reason[$content[url_id]]" rows="2" cols="15"></textarea>
        </td>
                Bitte angeben:<br />
                <textarea name="lock_reason[$content[url_id]]" rows="2" cols="15"></textarea>
        </td>
index 8845e432594cc98d712cf6f1d8c97c86da19a5c4..0ee46b49bd92851306d17ecf2c63235fdb93bbe8 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-       <td colspan="2" align="center" class="error fatal switch_sw$content[sw]">
+       <td colspan="2" align="center" class="error fatal {%template,ColorSwitch%}">
                <strong>{--ENTRY_404_1--}$content[sel]{--ENTRY_404_2--}</strong>
        </td>
 </tr>
                <strong>{--ENTRY_404_1--}$content[sel]{--ENTRY_404_2--}</strong>
        </td>
 </tr>
index d7077bfc0233332206f1d8708d7104a13b229912..bb61dc0e46919ef5e5affbadad3dce8bf5df1bba 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <a href="{%url=modules.php?module=admin&amp;what=$content[mode]edit&amp;sub=$content[action]%}">$content[action]</a>
        </td>
                <a href="{%url=modules.php?module=admin&amp;what=$content[mode]edit&amp;sub=$content[action]%}">$content[action]</a>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[what]
        </td>
                $content[what]
        </td>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;&nbsp;$content[title]
        </td>
                &nbsp;&nbsp;$content[title]
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                &nbsp;&nbsp;$content[navi]
        </td>
 </tr>
                &nbsp;&nbsp;$content[navi]
        </td>
 </tr>
index 882717fdbeb62f40c64845901f59fccfd1ef47c8..fe549f5bf4175de921458542f68e27f1b0ba54f6 100644 (file)
@@ -1,11 +1,11 @@
 <tr>
 <tr>
-       <td width="25%" align="right" class="switch_sw$content[sw] bottom">$content[cnt].
+       <td width="25%" align="right" class="{%template,ColorSwitch%} bottom">$content[cnt].
        {--ENTRY_MODIFY--}:&nbsp;&nbsp;
        {--ENTRY_MODIFY--}:&nbsp;&nbsp;
-       <td width="25%" class="switch_sw$content[sw] bottom">
+       <td width="25%" class="{%template,ColorSwitch%} bottom">
        $content[menu] <input type="hidden" name="sel[$content[sel]]"
                value="$content[menu]"></td>
        $content[menu] <input type="hidden" name="sel[$content[sel]]"
                value="$content[menu]"></td>
-       <td width="25%" class="switch_sw$content[sw] bottom">
+       <td width="25%" class="{%template,ColorSwitch%} bottom">
        {--IS_VISIBLE--}&nbsp; $content[visible]</td>
        {--IS_VISIBLE--}&nbsp; $content[visible]</td>
-       <td width="25%" class="switch_sw$content[sw] bottom">
+       <td width="25%" class="{%template,ColorSwitch%} bottom">
        {--IS_LOCKED--}&nbsp; $content[locked]</td>
 </tr>
\ No newline at end of file
        {--IS_LOCKED--}&nbsp; $content[locked]</td>
 </tr>
\ No newline at end of file
index 474f1b5b3c24cf406e08d4fb655ebb1d9798d786..2224ff8988e5b611976162412a238cefba7f972c 100644 (file)
@@ -1,29 +1,29 @@
 <tr>
 <tr>
-       <td colspan="2" class="switch_sw$content[sw]">
+       <td colspan="2" class="{%template,ColorSwitch%}">
                $content[cnt]. {--ENTRY_MODIFY--}:
        </td>
 </tr>
 <tr>
                $content[cnt]. {--ENTRY_MODIFY--}:
        </td>
 </tr>
 <tr>
-       <td align="right" class="switch_sw$content[sw]">
+       <td align="right" class="{%template,ColorSwitch%}">
                {--EDIT_ACTION--}:
        </td>
                {--EDIT_ACTION--}:
        </td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}">
                $content[action]
        </td>
 </tr>
 <tr>
                $content[action]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">
+       <td class="{%template,ColorSwitch%}" align="right">
                {--EDIT_WHAT--}:
        </td>
                {--EDIT_WHAT--}:
        </td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}">
                $content[what]
        </td>
 </tr>
 <tr>
                $content[what]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">
+       <td class="{%template,ColorSwitch%}" align="right">
                {--EDIT_TITLE--}:
        </td>
                {--EDIT_TITLE--}:
        </td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="sel[$content[sel]]" value="$content[menu]" class="admin_normal" size="30" maxlength="50" />
        </td>
 </tr>
                <input type="text" name="sel[$content[sel]]" value="$content[menu]" class="admin_normal" size="30" maxlength="50" />
        </td>
 </tr>
index 1c50693b05d9077a009add94829386ea1d678dca..425ed1e97c472ead74e3eeb1140b51665ee7660e 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;$content[mod] <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
                &nbsp;$content[mod] <input type="hidden" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="text" class="admin_normal" name="title[$content[id]]" size="20" maxlength="255" value="$content[title]" />
        </td>
                <input type="text" class="admin_normal" name="title[$content[id]]" size="20" maxlength="255" value="$content[title]" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[locked]
        </td>
                $content[locked]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[hidden]
        </td>
                $content[hidden]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[admin]
        </td>
                $content[admin]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[mem]
        </td>
 </tr>
                $content[mem]
        </td>
 </tr>
index 3ffabc3e981c9515b874b2b8438e3599b7feeb54..ca7ddb52c89102c95bdd9b66cc8d632f286407c7 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                {%pipe,fixEmptyContentToDashes=$content[title]%} ($content[action])
        </td>
                {%pipe,fixEmptyContentToDashes=$content[title]%} ($content[action])
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[counter]
        </td>
 </tr>
                $content[counter]
        </td>
 </tr>
index 3f9be95aa2b45b04b34f83ed43695d698ee43af2..0c1ba4ba09ddad8f7b9f79acc554931ed90cd29a 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right">
+       <td class="{%template,ColorSwitch%} bottom right">
                {%pipe,fixEmptyContentToDashes=$content[title]%} (<span class="admin_misc">$content[module]</span>)
        </td>
                {%pipe,fixEmptyContentToDashes=$content[title]%} (<span class="admin_misc">$content[module]</span>)
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[clicks]
        </td>
 </tr>
                $content[clicks]
        </td>
 </tr>
index cabc6d39bf7bd0d002a5e6776c3594f4d0249f0d..45fb79dc642c4d0cfdfaa4cef9d4a5ed1f6283b9 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right">$content[b1]$content[tpl]$content[b2]</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[b1]$content[rep]$content[b2]</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[b1]$content[opt]$content[b2]</td>
-       <td class="switch_sw$content[sw] bottom right">$content[b1]$content[sum]$content[b2]</td>
-       <td class="switch_sw$content[sw] bottom">$content[b1]$content[sav]$content[b2]</td>
+       <td class="{%template,ColorSwitch%} bottom right">$content[b1]$content[tpl]$content[b2]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[b1]$content[rep]$content[b2]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[b1]$content[opt]$content[b2]</td>
+       <td class="{%template,ColorSwitch%} bottom right">$content[b1]$content[sum]$content[b2]</td>
+       <td class="{%template,ColorSwitch%} bottom">$content[b1]$content[sav]$content[b2]</td>
 </tr>
 </tr>
index ebb0e92792f6348aa3ff6d84fafbd30648209739..39e33839ed7a9661b4ce14e927e70c8974bf628f 100644 (file)
@@ -1,4 +1,4 @@
-<div id="sql_row_$content[i]" class="sql_row switch_sw$content[sw] bottom">
+<div id="sql_row_$content[i]" class="sql_row {%template,ColorSwitch%} bottom">
        SQL-Abfrage: <span class="sql_data">{%pipe,secureString=$content[sql_str]%}</span>
        (numRows=<span class="sql_data">{%pipe,translateComma=$content[num_rows]%}</span>,affected=<span class="sql_data">{%pipe,translateComma=$content[affected]%}</span>) |
        Script: <span class="sql_data">$content[file]</span> |
        SQL-Abfrage: <span class="sql_data">{%pipe,secureString=$content[sql_str]%}</span>
        (numRows=<span class="sql_data">{%pipe,translateComma=$content[num_rows]%}</span>,affected=<span class="sql_data">{%pipe,translateComma=$content[affected]%}</span>) |
        Script: <span class="sql_data">$content[file]</span> |
index 1bc19697a9b1c2d0a6b999a8dd2fd2c41c173a47..d6f07292b667043f1bc8521f7ba547a656518b64 100644 (file)
@@ -1,23 +1,23 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right left" align="center">
+       <td class="{%template,ColorSwitch%} bottom right left" align="center">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,generateAdminLink=$content[assigned_admin]%}
        </td>
                {%pipe,generateAdminLink=$content[assigned_admin]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <a title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{%url=modules.php?module=admin&amp;what=extensions&amp;reg_ext=$content[id]%}">{--ADMIN_REGISTER_EXTENSION--}</a>
        </td>
                <a title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{%url=modules.php?module=admin&amp;what=extensions&amp;reg_ext=$content[id]%}">{--ADMIN_REGISTER_EXTENSION--}</a>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[userid]
        </td>
                $content[userid]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[task_type_msg]
        </td>
                $content[task_type_msg]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[task_created]
        </td>
 </tr>
                $content[task_created]
        </td>
 </tr>
index 51a580ea9e5415598b29eadb5052c02519e2c2b4..ebfdd204a32626c1ee5f69e57edb87b8975a4939 100644 (file)
@@ -1,23 +1,23 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right left" align="center">
+       <td class="{%template,ColorSwitch%} bottom right left" align="center">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,generateAdminLink=$content[assigned_admin]%}
        </td>
                {%pipe,generateAdminLink=$content[assigned_admin]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                ---
        </td>
                ---
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[infos]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[userid]
        </td>
                $content[userid]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[task_type_msg]
        </td>
                $content[task_type_msg]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[task_created]
        </td>
 </tr>
                $content[task_created]
        </td>
 </tr>
index 8c57ea531f04c6492a67bb93bdcbdbb6de2df72c..c5483ebd49dd0e49cd1a852d22445fab527ac09a 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-       <td width="80%" class="switch_sw$content[sw] bottom">
+       <td width="80%" class="{%template,ColorSwitch%} bottom">
                <ul style="margin-left: 0px">
                        <li style="white-space: normal">{--ADMIN_TASK_SUBJECT--}: <strong>$content[subject]</strong></li>
                        $content[add]
                <ul style="margin-left: 0px">
                        <li style="white-space: normal">{--ADMIN_TASK_SUBJECT--}: <strong>$content[subject]</strong></li>
                        $content[add]
@@ -8,4 +8,4 @@
                        <li style="white-space: normal">{--ADMIN_TASK_CREATED--}: <strong>$content[task_created]</strong></li>
                </ul>
        </td>
                        <li style="white-space: normal">{--ADMIN_TASK_CREATED--}: <strong>$content[task_created]</strong></li>
                </ul>
        </td>
-       <td width="20%" class="switch_sw$content[sw] bottom" align="right" valign="top" style="padding-top: 40px">
+       <td width="20%" class="{%template,ColorSwitch%} bottom" align="right" valign="top" style="padding-top: 40px">
index bd78d5a90380a7b1f3939815dfd86dc173bf45dc..e2c0659453fd8d117c5677dd5cbcf3e7f810e625 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
 <tr>
-       <td align="right" class="admin_task_left switch_sw$content[row_sw] $content[bottom]">
+       <td align="right" class="admin_task_left {%template,ColorSwitch%} $content[bottom]">
                $content[row_descr]:
        </td>
                $content[row_descr]:
        </td>
-       <td align="center" class="admin_task_right switch_sw$content[row_sw] $content[bottom]">
+       <td align="center" class="admin_task_right {%template,ColorSwitch%} $content[bottom]">
                <strong>$content[row_link]</strong>
        </td>
 </tr>
                <strong>$content[row_link]</strong>
        </td>
 </tr>
index 68bb3255e0d6254f7ad88a3adb84e5bf69b4ba41..84d163389d728b993a5a717f580dc89ab5a25b10 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                $content[time] {--_SECONDS--}
        </td>
                $content[time] {--_SECONDS--}
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                {%pipe,translateComma=$content[pay]%}
        </td>
                {%pipe,translateComma=$content[pay]%}
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                $content[price]
        </td>
                $content[price]
        </td>
-       <td align="center" class="bottom switch_sw$content[sw]">
+       <td align="center" class="bottom {%template,ColorSwitch%}">
                $content[title]
        </td>
 </tr>
                $content[title]
        </td>
 </tr>
index 6c00c806210d85e6dfb3d77d3d3f635610dd8c18..c0efe41e0a4aa1a0b6f140cd62772250cba7c985 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw]">
+       <td align="center" class="{%template,ColorSwitch%}">
                <strong>{--REF_LEVEL--} $content[level]:</strong>
        </td>
 </tr>
 <tr>
                <strong>{--REF_LEVEL--} $content[level]:</strong>
        </td>
 </tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[percents]% <span class="tiny">({--ID_SELECT--} $content[id])</span>
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
                $content[percents]% <span class="tiny">({--ID_SELECT--} $content[id])</span>
                <input type="hidden" name="id[$content[id]]" value="1" />
        </td>
index 97db2855d7f547b3590b9056fb47336fc5a3b98a..0a304caacf5f22c4e7b4ac1aa0e6078768ef81fc 100644 (file)
@@ -4,14 +4,14 @@
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">{--REF_LEVEL--}:&nbsp;</td>
-       <td class="switch_sw$content[sw]" align="left">
+       <td class="{%template,ColorSwitch%}" align="right">{--REF_LEVEL--}:&nbsp;</td>
+       <td class="{%template,ColorSwitch%}" align="left">
                <input type="text" name="level[$content[id]]" class="admin_normal" value="$content[level]" size="3" maxlength="5" />
        </td>
 </tr>
 <tr>
                <input type="text" name="level[$content[id]]" class="admin_normal" value="$content[level]" size="3" maxlength="5" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" align="right">{--REF_PERCENT--}:&nbsp;</td>
-       <td class="switch_sw$content[sw] bottom" align="left">
+       <td class="{%template,ColorSwitch%} bottom" align="right">{--REF_PERCENT--}:&nbsp;</td>
+       <td class="{%template,ColorSwitch%} bottom" align="left">
                <input type="text" name="perc[$content[id]]" class="admin_normal" value="$content[percents]" size="3" maxlength="5" />&#37;
        </td>
 </tr>
                <input type="text" name="perc[$content[id]]" class="admin_normal" value="$content[percents]" size="3" maxlength="5" />&#37;
        </td>
 </tr>
index 92d57ee88911fbe87c007a77efc224fa3f394dd0..5dc0ff022cdd9ac13e985fe305ab3d735b9a27cf 100644 (file)
@@ -1,11 +1,11 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                $content[level]
        </td>
                $content[level]
        </td>
-       <td align="center" class="bottom switch_sw$content[sw]">
+       <td align="center" class="bottom {%template,ColorSwitch%}">
                $content[percents]%
        </td>
 </tr>
                $content[percents]%
        </td>
 </tr>
index 6a58a9273125060767187318267a25f72e73af75..14b7106ec41aaff63ad2795d7064697bad092288 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right" width="200">{--ADMIN_EDIT_BANNER_URL--}:</td>
-       <td class="switch_sw$content[sw]" width="350">
+       <td class="{%template,ColorSwitch%}" align="right" width="200">{--ADMIN_EDIT_BANNER_URL--}:</td>
+       <td class="{%template,ColorSwitch%}" width="350">
                <input type="hidden" name="sel[$content[id]]" value="1" />
                <input type="text" name="url[$content[id]]" class="admin_normal" value="$content[url]" size="40" maxlength="255" />
        </td>
 </tr>
 <tr>
                <input type="hidden" name="sel[$content[id]]" value="1" />
                <input type="text" name="url[$content[id]]" class="admin_normal" value="$content[url]" size="40" maxlength="255" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" align="right">{--ADMIN_EDIT_ALTERNATE--}:</td>
-       <td class="switch_sw$content[sw]">
+       <td class="{%template,ColorSwitch%}" align="right">{--ADMIN_EDIT_ALTERNATE--}:</td>
+       <td class="{%template,ColorSwitch%}">
                <input type="text" name="alternate[$content[id]]" class="admin_normal" value="$content[alt]" size="30" maxlength="255" />
        </td>
 </tr>
 <tr>
                <input type="text" name="alternate[$content[id]]" class="admin_normal" value="$content[alt]" size="30" maxlength="255" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" align="right">{--ADMIN_SELECT_BANNER_ACTIVE--}:</td>
-       <td class="switch_sw$content[sw] bottom">$content[vis]</td>
+       <td class="{%template,ColorSwitch%} bottom" align="right">{--ADMIN_SELECT_BANNER_ACTIVE--}:</td>
+       <td class="{%template,ColorSwitch%} bottom">$content[vis]</td>
 </tr>
 </tr>
index 469107f526bcb6f8fa5bddc476832318db13dff9..1364e053d59e811205005422e1463a5a1f0f1846 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right" colspan="2">
+       <td align="center" class="{%template,ColorSwitch%} bottom right" colspan="2">
                <input type="checkbox" class="admin_normal" name="sel[$content[id]]" title="{--ID_SELECT--} $content[id]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" name="sel[$content[id]]" title="{--ID_SELECT--} $content[id]" value="1" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <img src="$content[url]" alt="$content[alt]" border="0" title="$content[alt]" />
        </td>
                <img src="$content[url]" alt="$content[alt]" border="0" title="$content[alt]" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[alt]
        </td>
                $content[alt]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[cnt]
        </td>
                $content[cnt]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[clx]
        </td>
                $content[clx]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom" colspan="2">
+       <td align="center" class="{%template,ColorSwitch%} bottom" colspan="2">
                $content[vis]
        </td>
 </tr>
                $content[vis]
        </td>
 </tr>
index a73a75fe8079c71777f55784a2f3f64025cb25c8..128a5cbe43b6e206f322c8979b659da81de0da20 100644 (file)
@@ -1,4 +1,4 @@
-<div class="switch_sw$content[sw] bottom2">
+<div class="{%template,ColorSwitch%} bottom2">
        <div>
                Das Sprachpaket <span class="data">$content[file]</span> (Sprache:
                <span class="data">$content[lang]</span>) wurde nicht gefunden.
        <div>
                Das Sprachpaket <span class="data">$content[file]</span> (Sprache:
                <span class="data">$content[lang]</span>) wurde nicht gefunden.
index ba86d8e772ea15222ab7c314c2b558ea1aa33726..3c1888ddc7d79f45b215dababfd84429991b60aa 100644 (file)
@@ -1,4 +1,4 @@
-<div class="switch_sw$content[sw] bottom2">
+<div class="{%template,ColorSwitch%} bottom2">
        <div>
                Das Sprachpaket <span class="data">$content[target]</span> hat genau so viele Eintr&auml;ge wie <span class="data">$content[source]</span>.
        </div>
        <div>
                Das Sprachpaket <span class="data">$content[target]</span> hat genau so viele Eintr&auml;ge wie <span class="data">$content[source]</span>.
        </div>
index abf4688e0bd4a2fd76c8f6486e3c27f1ef43770d..5295a164c05f39f0b163e27563acc64161787ec6 100644 (file)
@@ -1,4 +1,4 @@
-<div class="switch_sw$content[sw] bottom2">
+<div class="{%template,ColorSwitch%} bottom2">
        <div>
                Das Sprachpaket <span class="data">$content[target]</span> hat <span class="data">$content[diff_count]</span> Unterschiede zu <span class="data">$content[source]</span>:
        </div>
        <div>
                Das Sprachpaket <span class="data">$content[target]</span> hat <span class="data">$content[diff_count]</span> Unterschiede zu <span class="data">$content[source]</span>:
        </div>
index 7532662a57f1677830d1dcb9427a528f39c98935..cb1aa02659bf79e674a5c393b21b6b366f4e369c 100644 (file)
@@ -1,24 +1,24 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <input type="checkbox" name="sel[$content[id]]" title="{--ID_SELECT--} $content[id]" class="admin_normal" value="1" />
                <input type="hidden" name="active[$content[id]]" value="$content[theme_active]" />
        </td>
                <input type="checkbox" name="sel[$content[id]]" title="{--ID_SELECT--} $content[id]" class="admin_normal" value="1" />
                <input type="hidden" name="active[$content[id]]" value="$content[theme_active]" />
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[link]
        </td>
                $content[link]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[theme_name]
        </td>
                $content[theme_name]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                {%pipe,translateYesNo=$content[theme_active]%}
        </td>
                {%pipe,translateYesNo=$content[theme_active]%}
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                $content[email]
        </td>
                $content[email]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <a href="{%pipe,generateDerefererUrl=$content[url]%}" target="_blank">$content[url]</a>
        </td>
                <a href="{%pipe,generateDerefererUrl=$content[url]%}" target="_blank">$content[url]</a>
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                v$content[theme_ver]
        </td>
 </tr>
                v$content[theme_ver]
        </td>
 </tr>
index 90ab8273451b0b220eabecd4e5b43760f7c06055..60bcacfc5f8bf2756628cb089f3dd6aa23b9d931 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[unix]</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">$content[theme_name]</td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[unix]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">$content[theme_name]</td>
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <a href="mailto:$content[theme_email]?Subject=[Theme:] $content[name] ($content[unix])">$content[theme_author]</a>
        </td>
                <a href="mailto:$content[theme_email]?Subject=[Theme:] $content[name] ($content[unix])">$content[theme_author]</a>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">
                <a href="{%pipe,generateDerefererUrl=$content[theme_url]%}" target="_blank">$content[theme_url]</a>
        </td>
                <a href="{%pipe,generateDerefererUrl=$content[theme_url]%}" target="_blank">$content[theme_url]</a>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">v$content[theme_ver]</td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom right" align="center">v$content[theme_ver]</td>
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                $content[form_content]
        </td>
 </tr>
                $content[form_content]
        </td>
 </tr>
index b35074df51c9a2d7d188848b0e6b76397d79b155..fc98a14eedd6741d054d193e69b646e5b0792bf3 100644 (file)
@@ -1,16 +1,16 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
                <input type="hidden" name="url_userid[content[url_id]]" value="$content[url_url_userid_raw]" />
                $content[url_userid]
        </td>
                <input type="hidden" name="url_id[$content[url_id]]" value="1" />
                <input type="hidden" name="url_userid[content[url_id]]" value="$content[url_url_userid_raw]" />
                $content[url_userid]
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <a href="$content[url]" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
                <a href="$content[url]" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                {%pipe,translateSurfbarUrlStatus=$content[url_status]%}
        </td>
                {%pipe,translateSurfbarUrlStatus=$content[url_status]%}
        </td>
-       <td align="center" class="bottom switch_sw$content[sw]">
+       <td align="center" class="bottom {%template,ColorSwitch%}">
                $content[url_registered]
        </td>
 </tr>
                $content[url_registered]
        </td>
 </tr>
index 7c86549f21529885ee363e01cc9a292429ef479d..06186b6b7d76d9c379cf18a292de10306da97175 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td class="bottom switch_sw$content[sw]" align="center">
+       <td class="bottom {%template,ColorSwitch%}" align="center">
                <input type="radio" name="sel[$content[id]]" value="$content[url]" />
        </td>
                <input type="radio" name="sel[$content[id]]" value="$content[url]" />
        </td>
-       <td class="bottom switch_sw$content[sw]">$content[url]</td>
+       <td class="bottom {%template,ColorSwitch%}">$content[url]</td>
 </tr>
 </tr>
index 38985524d5aacae4a311820afd1b90eeda41a321..2bf955045fab392c2549090cbc3c75b3ed103fab 100644 (file)
@@ -1,28 +1,28 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] top right" align="center">
+       <td class="{%template,ColorSwitch%} top right" align="center">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
                <input type="hidden" name="sender[$content[id]]" value="$content[sender]" />
                <input type="hidden" name="url[$content[id]]" value="$content[url]" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
                <input type="hidden" name="sender[$content[id]]" value="$content[sender]" />
                <input type="hidden" name="url[$content[id]]" value="$content[url]" />
        </td>
-       <td class="switch_sw$content[sw] top right admin_misc" align="center">
+       <td class="{%template,ColorSwitch%} top right admin_misc" align="center">
                {%pipe,generateUserProfileLink=$content[sender]%}
        </td>
                {%pipe,generateUserProfileLink=$content[sender]%}
        </td>
-       <td class="switch_sw$content[sw] top right admin_misc">
+       <td class="{%template,ColorSwitch%} top right admin_misc">
                $content[subject]
        </td>
                $content[subject]
        </td>
-       <td class="switch_sw$content[sw] top right" align="center">
+       <td class="{%template,ColorSwitch%} top right" align="center">
                <a href="{%pipe,generateFrametesterUrl=$content[url]%}" target="_blank">{--ADMIN_TEST_URL--}</a>
        </td>
                <a href="{%pipe,generateFrametesterUrl=$content[url]%}" target="_blank">{--ADMIN_TEST_URL--}</a>
        </td>
-       <td class="switch_sw$content[sw] top right admin_misc" align="center">
+       <td class="{%template,ColorSwitch%} top right admin_misc" align="center">
                <span class="admin_note" title="{%pipe,getCategory=$content[cat_id]%}">$content[cat_link]</span>
        </td>
                <span class="admin_note" title="{%pipe,getCategory=$content[cat_id]%}">$content[cat_link]</span>
        </td>
-       <td class="switch_sw$content[sw] top right admin_misc" align="center">
+       <td class="{%template,ColorSwitch%} top right admin_misc" align="center">
                <span class="admin_note" title="{%pipe,getPaymentTitlePrice=$content[payment_id]%}">$content[pay_link]</span>
        </td>
                <span class="admin_note" title="{%pipe,getPaymentTitlePrice=$content[payment_id]%}">$content[pay_link]</span>
        </td>
-       <td class="switch_sw$content[sw] top right admin_misc" align="center">
+       <td class="{%template,ColorSwitch%} top right admin_misc" align="center">
                $content[timestamp]
        </td>
                $content[timestamp]
        </td>
-       <td class="switch_sw$content[sw] top admin_misc" align="center">
+       <td class="{%template,ColorSwitch%} top admin_misc" align="center">
                {%pipe,translateComma=$content[target_send]%}
        </td>
 </tr>
                {%pipe,translateComma=$content[target_send]%}
        </td>
 </tr>
index f48afec366cd6631bcd1f895d254bcab2858d12c..773302f0ffe5e98c6ff2253c88bbcd2def623642 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
        </td>
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>
        </td>
                <a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[remote_addr]
        </td>
                $content[remote_addr]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[sponsor_created]
        </td>
 </tr>
                $content[sponsor_created]
        </td>
 </tr>
index ef0368729b1b2e7bc87ab53ecef1b04e81d447fa..b3d7b757f8d82e55f23aac846aea90e2f194a491 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[url_id]" name="url_id[$content[url_id]]" value="1" />
        </td>
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[url_id]" name="url_id[$content[url_id]]" value="1" />
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                {%pipe,generateUserProfileLink=$content[url_userid]%}
        </td>
                {%pipe,generateUserProfileLink=$content[url_userid]%}
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                $content[url]
        </td>
                $content[url]
        </td>
-       <td align="center" class="bottom right switch_sw$content[sw]">
+       <td align="center" class="bottom right {%template,ColorSwitch%}">
                <a href="{%pipe,generateFrametesterUrl=$content[url]%}" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
                <a href="{%pipe,generateFrametesterUrl=$content[url]%}" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
        </td>
-       <td align="center" class="bottom switch_sw$content[sw]">
+       <td align="center" class="bottom {%template,ColorSwitch%}">
                $content[url_registered]
        </td>
 </tr>
                $content[url_registered]
        </td>
 </tr>
index 512e8a163451aba42de3e108e0cff6f71e7de77c..bd77e31aeaae6e6d73bf86054d6fc35ccb38375c 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-       <td class="active_row1 switch_sw$content[sw] bottom right">$content[userid] ($content[nickname])</td>
-       <td class="active_row2 switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[points]%}</td>
-       <td class="active_row3 switch_sw$content[sw] bottom">$content[last_online]</td>
+       <td class="active_row1 {%template,ColorSwitch%} bottom right">$content[userid] ($content[nickname])</td>
+       <td class="active_row2 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%}</td>
+       <td class="active_row3 {%template,ColorSwitch%} bottom">$content[last_online]</td>
 </tr>
 </tr>
index fa10aa107674a4798dddae1e4438411a28a473af..237493a3d8ad15aea00835ddb517ef93d1e25297 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-       <td class="register_right switch_sw$content[sw]">$content[cat]</td>
+       <td class="register_right {%template,ColorSwitch%}">$content[cat]</td>
        <td width="20" class="guest_normal switch_$content[sw]">
                {--YES--}
                <input type="radio" class="guest_normal" name="cat[$content[id]]" value="Y"$content[def_y] />
        <td width="20" class="guest_normal switch_$content[sw]">
                {--YES--}
                <input type="radio" class="guest_normal" name="cat[$content[id]]" value="Y"$content[def_y] />
index e83f10857e970420e595afbaf37b2c79d8baad8e..af038899d4f9c8dca4f7930ad17764852ecc559d 100644 (file)
@@ -1,11 +1,11 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center" width="100">
+       <td class="{%template,ColorSwitch%} bottom right" align="center" width="100">
                $content[userid]
        </td>
                $content[userid]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center" width="160">
+       <td class="{%template,ColorSwitch%} bottom right" align="center" width="160">
                {%pipe,translateComma=$content[points]%}
        </td>
                {%pipe,translateComma=$content[points]%}
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center" width="160">
+       <td class="{%template,ColorSwitch%} bottom" align="center" width="160">
                $content[timemark]
        </td>
 </tr>
                $content[timemark]
        </td>
 </tr>
index 57cc6241c900fae276aa70da869a816391b37bc8..56f1877c55c5ffa362a8a9b25674d3eedcc68404 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-  <td class="switch_sw$content[sw] bottom">$content[idx].</td>
-  <td align="center" class="switch_sw$content[sw] bottom">$content[start].{%pipe,fixEmptyContentToDashes=$content[userid]%}.$content[end]</td>
-  <td align="center" class="switch_sw$content[sw] bottom">$content[start].{%pipe,fixEmptyContentToDashes=$content[ref]%}.$content[end]</td>
-  <td align="center" class="switch_sw$content[sw] bottom">$content[start].{%pipe,fixEmptyContentToDashes=$content[infos]%}.$content[end]</td>
+  <td class="{%template,ColorSwitch%} bottom">$content[idx].</td>
+  <td align="center" class="{%template,ColorSwitch%} bottom">$content[start].{%pipe,fixEmptyContentToDashes=$content[userid]%}.$content[end]</td>
+  <td align="center" class="{%template,ColorSwitch%} bottom">$content[start].{%pipe,fixEmptyContentToDashes=$content[ref]%}.$content[end]</td>
+  <td align="center" class="{%template,ColorSwitch%} bottom">$content[start].{%pipe,fixEmptyContentToDashes=$content[infos]%}.$content[end]</td>
 </tr>
 </tr>
index 409ad9b21508262d01c7c551fb71c8d0f75716aa..64394adfafa1e1095d182aff04f89a554af6e01f 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-  <td align="right" class="switch_sw$content[sw] bottom right" width="225">$content[title]:&nbsp;</td>
+  <td align="right" class="{%template,ColorSwitch%} bottom right" width="225">$content[title]:&nbsp;</td>
   <td class="guest_title bottom" style="padding-left: 2px; padding-right: 2px" width="225">
     <div class="nobr"><strong>1 {?POINTS?}</strong> = <strong>$content[conv] $content[name]</strong></div>
   </td>
   <td class="guest_title bottom" style="padding-left: 2px; padding-right: 2px" width="225">
     <div class="nobr"><strong>1 {?POINTS?}</strong> = <strong>$content[conv] $content[name]</strong></div>
   </td>
index 09712bdbedc645db3a09274e32ffc07b067cb89d..954c11e8c37a28fb63807a67ee2ca8349e1bc338 100644 (file)
@@ -4,13 +4,13 @@
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
-       <td align="right" class="switch_sw$content[sw] right" width="225" height="24">{--SPONSOR_PAYTYPE_COUNT--}:</td>
+       <td align="right" class="{%template,ColorSwitch%} right" width="225" height="24">{--SPONSOR_PAYTYPE_COUNT--}:</td>
        <td class="guest_title bottom" style="padding-left: 2px; padding-right: 2px" width="225">
                <div class="nobr"><strong>{%pipe,translateComma=$content[pay_rate]%} {?POINTS?}</strong></div>
        </td>
 </tr>
 <tr>
        <td class="guest_title bottom" style="padding-left: 2px; padding-right: 2px" width="225">
                <div class="nobr"><strong>{%pipe,translateComma=$content[pay_rate]%} {?POINTS?}</strong></div>
        </td>
 </tr>
 <tr>
-       <td align="right" class="switch_sw$content[sw] bottom right" width="225" height="24">{--SPONSOR_PAYTYPE_VALUE--}:</td>
+       <td align="right" class="{%template,ColorSwitch%} bottom right" width="225" height="24">{--SPONSOR_PAYTYPE_VALUE--}:</td>
        <td class="guest_title bottom" style="padding-left: 2px; padding-right: 2px" width="225">
                <div class="nobr"><strong>{%pipe,translateComma=$content[pay_min_count]%} $content[pay_currency]</strong></div>
        </td>
        <td class="guest_title bottom" style="padding-left: 2px; padding-right: 2px" width="225">
                <div class="nobr"><strong>{%pipe,translateComma=$content[pay_min_count]%} $content[pay_currency]</strong></div>
        </td>
index ee0fab337cf70f578331a5055baecb12db87a5ba..a15cc4f23775950d1ce9e7c927c7f5f4e8a187ac 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-  <td class="bottom switch_sw$content[sw]" height="50" style="padding-left: 2px; padding-right: 2px">
+  <td class="bottom {%template,ColorSwitch%}" height="50" style="padding-left: 2px; padding-right: 2px">
     <input type="radio" name="pay_type" class="guest_normal" value="$content[id]" />
     $content[pay_name]
     <div align="right">($content[pay_min_count] $content[pay_currency] = $content[res] {?POINTS?})</div>
     <input type="radio" name="pay_type" class="guest_normal" value="$content[id]" />
     $content[pay_name]
     <div align="right">($content[pay_min_count] $content[pay_currency] = $content[res] {?POINTS?})</div>
index cf2d55b9a59bfd8ffb77fe029fa390ae5a9d6109..bccf6eab9420614a6e83b80bb84ec524e4bdfe4d 100644 (file)
@@ -1,4 +1,4 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] guest_stats_l bottom" colspan="3">$content[cat]</td>
-       <td class="switch_sw$content[sw] guest_stats_r bottom">$content[cnt]</td>
+       <td class="{%template,ColorSwitch%} guest_stats_l bottom" colspan="3">$content[cat]</td>
+       <td class="{%template,ColorSwitch%} guest_stats_r bottom">$content[cnt]</td>
 </tr>
 </tr>
index 6d94eb0bc217daa8a2292b8acf2ee5bbe0aa8a2b..86679f56f6fee65c06f99df638ed0282587d6af8 100644 (file)
@@ -1,4 +1,4 @@
 <tr>
 <tr>
-  <td class="switch_sw$content[sw] bottom right" align="right" width="250">$content[title]</td>
-  <td class="switch_sw$content[sw] bottom" width="50">$content[counter]</td>
+  <td class="{%template,ColorSwitch%} bottom right" align="right" width="250">$content[title]</td>
+  <td class="{%template,ColorSwitch%} bottom" width="50">$content[counter]</td>
 </tr>
 </tr>
index 89b672b57d1264006c0ef8a70c5b1339f03b40fe..b8a8f99acbfc68a6c2b0cb3664a91a379af659d3 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td class="top10_row1 switch_sw$content[sw] bottom right" align="center">$content[index]</td>
-       <td class="top10_row2 switch_sw$content[sw] bottom right">---</td>
-       <td class="top10_row3 switch_sw$content[sw] bottom right">---</td>
-       <td class="top10_row4 switch_sw$content[sw] bottom">---</td>
+       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[index]</td>
+       <td class="top10_row2 {%template,ColorSwitch%} bottom right">---</td>
+       <td class="top10_row3 {%template,ColorSwitch%} bottom right">---</td>
+       <td class="top10_row4 {%template,ColorSwitch%} bottom">---</td>
 </tr>
 </tr>
index b1fb9966fc73e41dfecb65b89df55b50525b7cff..c9e9e8c05fba8d68eef5516fdf6d30582f879804 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-       <td class="top10_row1 switch_sw$content[sw] bottom right" align="center">$content[index]</td>
-       <td class="top10_row2 switch_sw$content[sw] bottom right">---</td>
-       <td class="top10_row3 switch_sw$content[sw] bottom right">---</td>
-       <td class="top10_row4 switch_sw$content[sw] bottom right">---</td>
-       <td class="top10_row5 switch_sw$content[sw] bottom">---</td>
+       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[index]</td>
+       <td class="top10_row2 {%template,ColorSwitch%} bottom right">---</td>
+       <td class="top10_row3 {%template,ColorSwitch%} bottom right">---</td>
+       <td class="top10_row4 {%template,ColorSwitch%} bottom right">---</td>
+       <td class="top10_row5 {%template,ColorSwitch%} bottom">---</td>
 </tr>
 </tr>
index 3a01b1845d0435349943f30bd6a3d150458b53e3..ce7b6499477042df28b9199473e2c187b865423a 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td class="top10_row1 switch_sw$content[sw] bottom right" align="center">$content[cnt]</td>
-       <td class="top10_row2 switch_sw$content[sw] bottom right">$content[userid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})</td>
-       <td class="top10_row3 switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[points]%}</td>
-       <td class="top10_row5 switch_sw$content[sw] bottom">$content[last_online]</td>
+       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[cnt]</td>
+       <td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})</td>
+       <td class="top10_row3 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%}</td>
+       <td class="top10_row5 {%template,ColorSwitch%} bottom">$content[last_online]</td>
 </tr>
 </tr>
index 52592ff2cd43b52b67a4c6c6f2378322cde9090b..0293b25c4c94548400f3bb4ca4c37ce85b6cb6fe 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-       <td class="top10_row1 switch_sw$content[sw] bottom right" align="center">$content[cnt]</td>
-       <td class="top10_row2 switch_sw$content[sw] bottom right">$content[userid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})</td>
-       <td class="top10_row3 switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[total_logins]%}</td>
-       <td class="top10_row4 switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[points]%}</td>
-       <td class="top10_row5 switch_sw$content[sw] bottom">$content[last_online]</td>
+       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[cnt]</td>
+       <td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})</td>
+       <td class="top10_row3 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[total_logins]%}</td>
+       <td class="top10_row4 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%}</td>
+       <td class="top10_row5 {%template,ColorSwitch%} bottom">$content[last_online]</td>
 </tr>
 </tr>
index 80f5059535836970db4f828944c265429b4eccfc..1cb2e7f810d910d88eb989adb8821b2a59ed8629 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-       <td class="top10_row1 switch_sw$content[sw] bottom right" align="center">$content[cnt]</td>
-       <td class="top10_row2 switch_sw$content[sw] bottom right">$content[userid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})</td>
-       <td class="top10_row3 switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[refs]%}</td>
-       <td class="top10_row4 switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[points]%}</td>
-       <td class="top10_row5 switch_sw$content[sw] bottom">$content[last_online]</td>
+       <td class="top10_row1 {%template,ColorSwitch%} bottom right" align="center">$content[cnt]</td>
+       <td class="top10_row2 {%template,ColorSwitch%} bottom right">$content[userid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})</td>
+       <td class="top10_row3 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[refs]%}</td>
+       <td class="top10_row4 {%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[points]%}</td>
+       <td class="top10_row5 {%template,ColorSwitch%} bottom">$content[last_online]</td>
 </tr>
 </tr>
index 759650f8a56516d401bd67974d28af647d660b21..6812612af1ed8e17034c43c190f5e59273f75b39 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[cnt]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[userid]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">{%pipe,translateComma=$content[points]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[last_online]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[cnt]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[userid]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[points]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[last_online]</td>
 </tr>
 </tr>
index c97540d1f07b5e619e495702807aa30201f1e883..1e7ca5ecea75003c355d350dfeac564e4bed994a 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" align="right">$content[cat]</td>
-       <td class="switch_sw$content[sw] bottom" align="center">
+       <td class="{%template,ColorSwitch%} bottom" align="right">$content[cat]</td>
+       <td class="{%template,ColorSwitch%} bottom" align="center">
                {--YES--} <input type="radio" name="cat[$content[id]]" class="member_normal" value="Y"$content[jy] />
                {--NO--} <input type="radio" name="cat[$content[id]]" class="member_normal" value="N"$content[jn] />
        </td>
                {--YES--} <input type="radio" name="cat[$content[id]]" class="member_normal" value="Y"$content[jy] />
                {--NO--} <input type="radio" name="cat[$content[id]]" class="member_normal" value="N"$content[jn] />
        </td>
index 92af06aba312f0cf5dedc3aea1caed676fadda18..a7451f8aa9ef8a07a97fd6e567942b8809c55a9e 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom right" align="center" width="100">
+       <td class="{%template,ColorSwitch%} bottom right" align="center" width="100">
                $content[userid]
        </td>
                $content[userid]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center" width="100">
+       <td class="{%template,ColorSwitch%} bottom right" align="center" width="100">
                $content[rid]
        </td>
                $content[rid]
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center" width="160">
+       <td class="{%template,ColorSwitch%} bottom right" align="center" width="160">
                {%pipe,translateComma=$content[points]%}
        </td>
                {%pipe,translateComma=$content[points]%}
        </td>
-       <td class="switch_sw$content[sw] bottom" align="center" width="160">
+       <td class="{%template,ColorSwitch%} bottom" align="center" width="160">
                $content[timemark]
        </td>
 </tr>
                $content[timemark]
        </td>
 </tr>
index 759650f8a56516d401bd67974d28af647d660b21..6812612af1ed8e17034c43c190f5e59273f75b39 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[cnt]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[userid]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">{%pipe,translateComma=$content[points]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[last_online]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[cnt]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[userid]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[points]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[last_online]</td>
 </tr>
 </tr>
index ed94ae476a622fd644dbe491ef16834a57f8794d..be80123045a1b96cf2f75ac31a905533effbdc4b 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[payout_total]%} $content[type]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,fixEmptyContentToDashes=$content[target_account]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,fixEmptyContentToDashes=$content[target_bank]%}</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[payout_timestamp]</td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[status]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,translateComma=$content[payout_total]%} $content[type]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,fixEmptyContentToDashes=$content[target_account]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,fixEmptyContentToDashes=$content[target_bank]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[payout_timestamp]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[status]</td>
 </tr>
 </tr>
index cc56baf4da11bace3372201ff18986334ac0915a..db70d7e4a04cdf71f0c6ae3b86ccbfd7b9cffc83 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">{%pipe,translateComma=$content[primera_amount]%} Primera</td>
-       <td align="center" class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[primera_account]</td>
-       <td align="center" class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[primera_timestamp]</td>
-       <td align="center" class="switch_sw$content[sw] primera_type_$content[raw_type] bottom">{%pipe,PRIMERA_TRANSFER_STATUS=$content[primera_type]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right">{%pipe,translateComma=$content[primera_amount]%} Primera</td>
+       <td align="center" class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right">$content[primera_account]</td>
+       <td align="center" class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom right">$content[primera_timestamp]</td>
+       <td align="center" class="{%template,ColorSwitch%} primera_type_$content[raw_type] bottom">{%pipe,PRIMERA_TRANSFER_STATUS=$content[primera_type]%}</td>
 </tr>
 </tr>
index 5b28825cb1711a03c1ce0f74a3f182111e703268..c76dd275056072e3a27b16aafe28e2685b8d6038 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[refid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})
        </td>
                $content[refid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateUserStatus=$content[status]%}
        </td>
                {%pipe,translateUserStatus=$content[status]%}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[points]%} {?POINTS?}
        </td>
                {%pipe,translateComma=$content[points]%} {?POINTS?}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[unconfirmed]%}
        </td>
                {%pipe,translateComma=$content[unconfirmed]%}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[clickrate]&#37;
        </td>
                $content[clickrate]&#37;
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[activity]
        </td>
 </tr>
                $content[activity]
        </td>
 </tr>
index f222933a067bd6857a29e0aaa85111f09696921d..e3bb26d99e8b8a9e798ff085e6abf8e02691e2a5 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[refid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})
        </td>
                $content[refid] ({%pipe,fixEmptyContentToDashes=$content[nickname]%})
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[level_refid]
        </td>
                $content[level_refid]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[refback]%}%
        </td>
                {%pipe,translateComma=$content[refback]%}%
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[points]%} {?POINTS?}
        </td>
                {%pipe,translateComma=$content[points]%} {?POINTS?}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[joined]
        </td>
                $content[joined]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                <form accept-charset="utf-8" action="{%url=modules.php?module=login&amp;what=refback%}" method="post">
                        <input type="hidden" name="id" value="$content[id]" />
                        <input type="submit" name="edit" class="member_submit" value="{--MEMBER_REFBACK_EDIT_SUBMIT--}" />
                <form accept-charset="utf-8" action="{%url=modules.php?module=login&amp;what=refback%}" method="post">
                        <input type="hidden" name="id" value="$content[id]" />
                        <input type="submit" name="edit" class="member_submit" value="{--MEMBER_REFBACK_EDIT_SUBMIT--}" />
index 111243b12eff3bbf0574e9d3617fa3926ef99443..2066f3cfff2cac5d9a7e0ede05471f7f40128a39 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[refid] ($content[nickname])
        </td>
                $content[refid] ($content[nickname])
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[level_refid]
        </td>
                $content[level_refid]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[refback]%}%
        </td>
                {%pipe,translateComma=$content[refback]%}%
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateComma=$content[points]%} {?POINTS?}
        </td>
                {%pipe,translateComma=$content[points]%} {?POINTS?}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[joined]
        </td>
                $content[joined]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                <form accept-charset="utf-8" style="paddin-bottom:0px">
                        <input type="button" name="edit" class="member_submit disabled" title="{--MEMBER_REFBACK_DELETED_TITLE--}"
                         disabled="disabled" value="{--MEMBER_REFBACK_DELETED_SUBMIT--}" />
                <form accept-charset="utf-8" style="paddin-bottom:0px">
                        <input type="button" name="edit" class="member_submit disabled" title="{--MEMBER_REFBACK_DELETED_TITLE--}"
                         disabled="disabled" value="{--MEMBER_REFBACK_DELETED_SUBMIT--}" />
index 4b03539373c1b1f4d2c9222dcf12788ef1b9b1f9..73605ce29a0536b6869fd9f231474188ad501461 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-       <td align="center" class="member_refbanner switch_sw$content[sw]">
+       <td align="center" class="member_refbanner {%template,ColorSwitch%}">
                <div>
                        <img src="$content[url]" alt="$content[alternate]" title="$content[alternate]" border="0" />
                </div>
                <div>
                        <img src="$content[url]" alt="$content[alternate]" title="$content[alternate]" border="0" />
                </div>
@@ -10,7 +10,7 @@
        </td>
 </tr>
 <tr>
        </td>
 </tr>
 <tr>
-       <td align="center" class="member_refbanner switch_sw$content[sw]">
+       <td align="center" class="member_refbanner {%template,ColorSwitch%}">
        <div class="pre">&lt;a href=&quot;{?URL?}/click.php?user=$content[userid]&amp;banner=$content[id]&quot;
  target=&quot;_blank&quot;&gt;&lt;img src=&quot;{?URL?}/view.php?user=$content[userid]&amp;banner=$content[id]&quot;
  alt=&quot;$content[alternate]&quot; title=&quot;$content[alternate]&quot; border=&quot;0&quot;&nbsp;/&gt;&lt;/a&gt;</div>
        <div class="pre">&lt;a href=&quot;{?URL?}/click.php?user=$content[userid]&amp;banner=$content[id]&quot;
  target=&quot;_blank&quot;&gt;&lt;img src=&quot;{?URL?}/view.php?user=$content[userid]&amp;banner=$content[id]&quot;
  alt=&quot;$content[alternate]&quot; title=&quot;$content[alternate]&quot; border=&quot;0&quot;&nbsp;/&gt;&lt;/a&gt;</div>
index 65bf7c5eb63ed01815b7a51000db846a903aa7b6..9d3893c29830e49b7dde0d9535742aaa13408def 100644 (file)
@@ -1,20 +1,20 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                <a href="{%pipe,generateDerefererUrl=$content[url]%}" target="_blank" title="{--MEMBER_TEST_URL--}">{--MEMBER_SURFBAR_TEST_URL--}</a>
        </td>
                <a href="{%pipe,generateDerefererUrl=$content[url]%}" target="_blank" title="{--MEMBER_TEST_URL--}">{--MEMBER_SURFBAR_TEST_URL--}</a>
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,translateSurfbarUrlStatus=$content[url_status]%}
        </td>
                {%pipe,translateSurfbarUrlStatus=$content[url_status]%}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[url_registered]
        </td>
                $content[url_registered]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[url_last_locked]
        </td>
                $content[url_last_locked]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                {%pipe,fixEmptyContentToDashes=$content[url_lock_reason]%}
        </td>
                {%pipe,fixEmptyContentToDashes=$content[url_lock_reason]%}
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">
+       <td align="center" class="{%template,ColorSwitch%} bottom">
                $content[actions]
        </td>
 </tr>
                $content[actions]
        </td>
 </tr>
index 641ad0d823592ea4f6b0265915f49281d758f0b4..923faafc8ab776e265f7e9c58360ce93783bf103 100644 (file)
@@ -1,17 +1,17 @@
 <tr>
 <tr>
-  <td class="transfer_row1 switch_sw$content[sw] bottom right">
+  <td class="transfer_row1 {%template,ColorSwitch%} bottom right">
     <div class="transfer_row1">$content[trans_id]</div>
   </td>
     <div class="transfer_row1">$content[trans_id]</div>
   </td>
-  <td class="transfer_row2 switch_sw$content[sw] bottom right">
+  <td class="transfer_row2 {%template,ColorSwitch%} bottom right">
     <div class="transfer_row2">$content[time]</div>
   </td>
     <div class="transfer_row2">$content[time]</div>
   </td>
-  <td class="transfer_row3 switch_sw$content[sw] bottom right">
+  <td class="transfer_row3 {%template,ColorSwitch%} bottom right">
     <div class="transfer_row3">$content[party_userid]</div>
   </td>
     <div class="transfer_row3">$content[party_userid]</div>
   </td>
-  <td class="transfer_row4 switch_sw$content[sw] bottom right">
+  <td class="transfer_row4 {%template,ColorSwitch%} bottom right">
     <div class="transfer_row4">$content[reason]</div>
   </td>
     <div class="transfer_row4">$content[reason]</div>
   </td>
-  <td class="transfer_row5 switch_sw$content[sw] bottom">
+  <td class="transfer_row5 {%template,ColorSwitch%} bottom">
     <div class="transfer_row5">$content[points]</div>
   </td>
 </tr>
     <div class="transfer_row5">$content[points]</div>
   </td>
 </tr>
index 17b10a06f9a37ce34585c3afa3a1bc4d6882b715..ad573171182605434781cf568420d53bbd459e4b 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] top" colspan="5">
+       <td align="center" class="{%template,ColorSwitch%} top" colspan="5">
                <span class="member_failed large">$content[probl]:</span> $content[data]
        </td>
                <span class="member_failed large">$content[probl]:</span> $content[data]
        </td>
-</tr>
\ No newline at end of file
+</tr>
index 72da1ac447e137457113a4975e263878e529cc25..1984a826371438d7d1e6d30e8326a975f3e10d80 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] top" colspan="4">
+       <td align="center" class="{%template,ColorSwitch%} top" colspan="4">
                <span class="member_failed large">$content[probl]:</span> $content[data]
        </td>
                <span class="member_failed large">$content[probl]:</span> $content[data]
        </td>
-</tr>
\ No newline at end of file
+</tr>
index 245dc798a3a42181fa0ea9f36ff762a089f64ac4..ca8899ec41ac0762e383da2a7d5e3aeba289f0f3 100644 (file)
@@ -1,15 +1,15 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                [<a href="{%url=mailid.php?userid=$content[userid]&amp;$content[type]=$content[data]%}" target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
        </td>
                [<a href="{%url=mailid.php?userid=$content[userid]&amp;$content[type]=$content[data]%}" target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[sender]
        </td>
                $content[sender]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                [<a href="{%url=modules.php?module=login&amp;what=unconfirmed&amp;$content[type]=$content[data]%}">{--EMAIL_DETAILS_LINK--}</a>]
        </td>
                [<a href="{%url=modules.php?module=login&amp;what=unconfirmed&amp;$content[type]=$content[data]%}">{--EMAIL_DETAILS_LINK--}</a>]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[timestamp]</td>
-       <td align="right" class="switch_sw$content[sw] bottom" style="padding-right:5px">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">$content[timestamp]</td>
+       <td align="right" class="{%template,ColorSwitch%} bottom" style="padding-right:5px">
                {%pipe,translateComma=$content[points]%} {?POINTS?}
        </td>
 </tr>
                {%pipe,translateComma=$content[points]%} {?POINTS?}
        </td>
 </tr>
index 5f31231d5f4d94cc7334bed55379cdf8366d8e43..d99178748b015fa88cc64852769b0cd8b4a45fb8 100644 (file)
@@ -1,13 +1,13 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                [<a href="{%url=mailid.php?userid=$content[userid]&amp;$content[type]=$content[data]%}"
                 target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
        </td>
                [<a href="{%url=mailid.php?userid=$content[userid]&amp;$content[type]=$content[data]%}"
                 target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                $content[sender]
        </td>
                $content[sender]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom right">
+       <td align="center" class="{%template,ColorSwitch%} bottom right">
                [<a href="{%url=modules.php?module=login&amp;what=unconfirmed&amp;$content[type]=$content[data]%}">{--EMAIL_DETAILS_LINK--}</a>]
        </td>
                [<a href="{%url=modules.php?module=login&amp;what=unconfirmed&amp;$content[type]=$content[data]%}">{--EMAIL_DETAILS_LINK--}</a>]
        </td>
-       <td align="center" class="switch_sw$content[sw] bottom">$content[timestamp]</td>
+       <td align="center" class="{%template,ColorSwitch%} bottom">$content[timestamp]</td>
 </tr>
 </tr>
index 7f8dc2531f3ccece1f465b1fd5dfed39bb38eaba..864398b1a9e6cd76daa5c4276441a7cb849fe505 100644 (file)
@@ -1,6 +1,6 @@
 <tr>
 <tr>
-       <td align="center" class="switch_sw$content[sw] wernis_type_$content[raw_type] bottom right">{%pipe,translateComma=$content[wernis_amount]%} Wernis</td>
-       <td align="center" class="switch_sw$content[sw] wernis_type_$content[raw_type] bottom right">{%pipe,bigintval=$content[wernis_account]%}</td>
-       <td align="center" class="switch_sw$content[sw] wernis_type_$content[raw_type] bottom right">$content[wernis_timestamp]</td>
-       <td align="center" class="switch_sw$content[sw] wernis_type_$content[raw_type] bottom">{%pipe,translateWernisTransferStatus=$content[wernis_type]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} wernis_type_$content[raw_type] bottom right">{%pipe,translateComma=$content[wernis_amount]%} Wernis</td>
+       <td align="center" class="{%template,ColorSwitch%} wernis_type_$content[raw_type] bottom right">{%pipe,bigintval=$content[wernis_account]%}</td>
+       <td align="center" class="{%template,ColorSwitch%} wernis_type_$content[raw_type] bottom right">$content[wernis_timestamp]</td>
+       <td align="center" class="{%template,ColorSwitch%} wernis_type_$content[raw_type] bottom">{%pipe,translateWernisTransferStatus=$content[wernis_type]%}</td>
 </tr>
 </tr>