X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_doubler.php;h=190be0268fb1c9786c0527a9a3769f7600160a94;hb=4f7df133f736da124e6f7bd02008b9093f736451;hp=b031b6ff0dcf049b32b0b304abd9d6fd7b3c19b1;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689;p=mailer.git
diff --git a/inc/modules/admin/what-list_doubler.php b/inc/modules/admin/what-list_doubler.php
index b031b6ff0d..190be0268f 100644
--- a/inc/modules/admin/what-list_doubler.php
+++ b/inc/modules/admin/what-list_doubler.php
@@ -16,7 +16,7 @@
* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -43,9 +43,9 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (!isGetRequestElementSet('mode')) {
+if (!isGetRequestElementSet('do')) {
// Chosse the overview page as default
- setGetRequestElement('mode', 'overview');
+ setGetRequestElement('do', 'overview');
} else {
// Set table title automatically
if (!isGetRequestElementSet('select')) {
@@ -53,11 +53,11 @@ if (!isGetRequestElementSet('mode')) {
} // END - if
// Prepare header
- $content['list_' . strtolower(getRequestElement('mode'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestElement('mode') . '_' . getRequestElement('select') . '--}');
+ $content['list_' . strtolower(getRequestElement('do'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestElement('do') . '_' . getRequestElement('select') . '--}');
}
// Load data for the template
-switch (getRequestElement('mode')) {
+switch (getRequestElement('do')) {
case 'already': // Already payed out points
break;
@@ -70,50 +70,50 @@ switch (getRequestElement('mode')) {
// Init sums
$sumAlready = '0'; $sumWaiting = '0';
- // Number of direct already payouts and referal
- $count = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='N'");
+ // Number of direct already payouts and referral
+ $count = countSumTotalData('Y', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='N'");
if ($count > 0) {
// Something was payed out
$sumAlready += $count;
- $content['already_direct_link'] = '' . $count . '';
+ $content['already_direct_link'] = '' . $count . '';
} // END - if
- $count = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('Y', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='Y'");
if ($count > 0) {
// Something was payed out
$sumAlready += $count;
- $content['already_ref_link'] = '' . $count . '';
+ $content['already_ref_link'] = '' . $count . '';
} // END - if
- // And the same for waiting pouts (direct and referal)
- $count = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='N'");
+ // And the same for waiting pouts (direct and referral)
+ $count = countSumTotalData('N', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='N'");
if ($count > 0) {
// Something was payed out
$sumWaiting += $count;
- $content['waiting_direct_link'] = '' . $count . '';
+ $content['waiting_direct_link'] = '' . $count . '';
} // END - if
- $count = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('N', 'doubler', 'id', 'completed', TRUE, " AND `is_ref`='Y'");
if ($count > 0) {
// Something was payed out
$sumWaiting += $count;
- $content['waiting_ref_link'] = '' . $count . '';
+ $content['waiting_ref_link'] = '' . $count . '';
} // END - if
// Links for all
- $content['already_all_link'] = '' . $sumAlready . '';
- $content['waiting_all_link'] = '' . $sumWaiting . '';
+ $content['already_all_link'] = '' . $sumAlready . '';
+ $content['waiting_all_link'] = '' . $sumWaiting . '';
// All data is loaded here...
break;
} // END - switch
// Load mode template
-loadTemplate('admin_list_doubler_' . getRequestElement('mode'), false, $content);
+loadTemplate('admin_list_doubler_' . getRequestElement('do'), FALSE, $content);
// [EOF]
?>