]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_doubler.php
Code style changed, ext-user continued:
[mailer.git] / inc / modules / admin / what-list_doubler.php
index 39fbab603b0f2d39a851f610ff644a27e90864c0..190be0268fb1c9786c0527a9a3769f7600160a94 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * 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 *
  * it under the terms of the GNU General Public License as published by *
@@ -43,21 +43,21 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (!isGetRequestParameterSet('mode')) {
+if (!isGetRequestElementSet('do')) {
        // Chosse the overview page as default
-       setGetRequestParameter('mode', 'overview');
+       setGetRequestElement('do', 'overview');
 } else {
        // Set table title automatically
-       if (!isGetRequestParameterSet('select')) {
-               setGetRequestParameter('select', 'all');
+       if (!isGetRequestElementSet('select')) {
+               setGetRequestElement('select', 'all');
        } // END - if
 
        // Prepare header
-       $content['list_' . strtolower(getRequestParameter('mode'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestParameter('mode') . '_' . getRequestParameter('select') . '--}');
+       $content['list_' . strtolower(getRequestElement('do'))] = strtoupper('{--ADMIN_DOUBLER_LIST_' . getRequestElement('do') . '_' . getRequestElement('select') . '--}');
 }
 
 // Load data for the template
-switch (getRequestParameter('mode')) {
+switch (getRequestElement('do')) {
        case 'already':  // Already payed out points
                break;
 
@@ -70,50 +70,50 @@ switch (getRequestParameter('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'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=already&amp;select=direct%}">' . $count . '</a>';
+                       $content['already_direct_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;do=already&amp;select=direct%}">' . $count . '</a>';
                } // 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'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=already&amp;select=ref%}">' . $count . '</a>';
+                       $content['already_ref_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;do=already&amp;select=ref%}">' . $count . '</a>';
                } // 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'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=waiting&amp;select=direct%}">' . $count . '</a>';
+                       $content['waiting_direct_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;do=waiting&amp;select=direct%}">' . $count . '</a>';
                } // 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'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=waiting&amp;select=ref%}">' . $count . '</a>';
+                       $content['waiting_ref_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;do=waiting&amp;select=ref%}">' . $count . '</a>';
                } // END - if
 
                // Links for all
-               $content['already_all_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=already&amp;select=all%}">' . $sumAlready . '</a>';
-               $content['waiting_all_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;mode=waiting&amp;select=all%}">' . $sumWaiting . '</a>';
+               $content['already_all_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;do=already&amp;select=all%}">' . $sumAlready . '</a>';
+               $content['waiting_all_link'] = '<a href="{%url=modules.php?module=admin&amp;what=list_doubler&amp;do=waiting&amp;select=all%}">' . $sumWaiting . '</a>';
 
                // All data is loaded here...
                break;
 } // END - switch
 
 // Load mode template
-loadTemplate('admin_list_doubler_' . getRequestParameter('mode'), false, $content);
+loadTemplate('admin_list_doubler_' . getRequestElement('do'), FALSE, $content);
 
 // [EOF]
 ?>