]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_doubler.php
Way more usage of EL code:
[mailer.git] / inc / modules / admin / what-list_doubler.php
index 0bf30c0e8ed3e1d8df59b61fb5e6bc56681cce7c..39fbab603b0f2d39a851f610ff644a27e90864c0 100644 (file)
  * $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                    *
+ * 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 *
@@ -43,17 +41,19 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 if (!isGetRequestParameterSet('mode')) {
        // Chosse the overview page as default
        setGetRequestParameter('mode', 'overview');
 } else {
        // Set table title automatically
-       if (!isGetRequestParameterSet('select')) setGetRequestParameter('select', 'all');
+       if (!isGetRequestParameterSet('select')) {
+               setGetRequestParameter('select', 'all');
+       } // END - if
 
        // Prepare header
-       $content['list_' . strtolower(getRequestParameter('mode'))] = '{--ADMIN_DOUBLER_LIST_' . strtoupper(getRequestParameter('mode')) . '_' . strtoupper(getRequestParameter('select')) . '--}';
+       $content['list_' . strtolower(getRequestParameter('mode'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestParameter('mode') . '_' . getRequestParameter('select') . '--}');
 }
 
 // Load data for the template
@@ -71,37 +71,37 @@ switch (getRequestParameter('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'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=already&amp;select=direct%}">' . $cnt . '</a>';
+                       $sumAlready += $count;
+                       $content['already_direct_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=already&amp;select=direct%}">' . $count . '</a>';
                } // 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'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=already&amp;select=ref%}">' . $cnt . '</a>';
+                       $sumAlready += $count;
+                       $content['already_ref_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=already&amp;select=ref%}">' . $count . '</a>';
                } // 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'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=waiting&amp;select=direct%}">' . $cnt . '</a>';
+                       $sumWaiting += $count;
+                       $content['waiting_direct_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=waiting&amp;select=direct%}">' . $count . '</a>';
                } // 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'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=waiting&amp;select=ref%}">' . $cnt . '</a>';
+                       $sumWaiting += $count;
+                       $content['waiting_ref_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=waiting&amp;select=ref%}">' . $count . '</a>';
                } // END - if
 
                // Links for all