X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_doubler.php;h=e4cf4b445286cf054a045fc43e12ff77db922a6f;hb=eefb72c90c4d30b82b9277acd42754dca014302b;hp=add9a8dfd566edd5d20511bfc8b6a96b7fc2c3e9;hpb=fe8e4c180ec67e320be98e1e8dc1f9ea612c3636;p=mailer.git
diff --git a/inc/modules/admin/what-list_doubler.php b/inc/modules/admin/what-list_doubler.php
index add9a8dfd5..e4cf4b4452 100644
--- a/inc/modules/admin/what-list_doubler.php
+++ b/inc/modules/admin/what-list_doubler.php
@@ -14,10 +14,9 @@
* $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 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -42,17 +41,19 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
if (!isGetRequestElementSet('mode')) {
// Chosse the overview page as default
- setRequestGetElement('mode', 'overview');
+ setGetRequestElement('mode', 'overview');
} else {
// Set table title automatically
- if (!isGetRequestElementSet('select')) setRequestGetElement('select', 'all');
+ if (!isGetRequestElementSet('select')) {
+ setGetRequestElement('select', 'all');
+ } // END - if
// Prepare header
- $content['list_' . strtolower(getRequestElement('mode'))] = getMessage('ADMIN_DOUBLER_LIST_' . strtoupper(getRequestElement('mode')) . '_' . strtoupper(getRequestElement('select')).'');
+ $content['list_' . strtolower(getRequestElement('mode'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestElement('mode') . '_' . getRequestElement('select') . '--}');
}
// Load data for the template
@@ -70,42 +71,42 @@ switch (getRequestElement('mode')) {
$sumAlready = '0'; $sumWaiting = '0';
// Number of direct already payouts and referal
- $cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='N'");
+ $count = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='N'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumAlready += $cnt;
- $content['already_direct_link'] = "".$cnt."";
+ $sumAlready += $count;
+ $content['already_direct_link'] = '' . $count . '';
} // END - if
- $cnt = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumAlready += $cnt;
- $content['already_ref_link'] = "".$cnt."";
+ $sumAlready += $count;
+ $content['already_ref_link'] = '' . $count . '';
} // END - if
// And the same for waiting pouts (direct and referal)
- $cnt = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='N'");
+ $count = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='N'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumWaiting += $cnt;
- $content['waiting_direct_link'] = "".$cnt."";
+ $sumWaiting += $count;
+ $content['waiting_direct_link'] = '' . $count . '';
} // END - if
- $cnt = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'");
+ $count = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'");
- if ($cnt > 0) {
+ if ($count > 0) {
// Something was payed out
- $sumWaiting += $cnt;
- $content['waiting_ref_link'] = "".$cnt."";
+ $sumWaiting += $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;