]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_doubler.php
Extension ext-network continued:
[mailer.git] / inc / modules / admin / what-list_doubler.php
index b031b6ff0dcf049b32b0b304abd9d6fd7b3c19b1..4ede5eee5067722e7822c8a58ce73cb9a6ecee7c 100644 (file)
@@ -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,13 +70,13 @@ switch (getRequestElement('mode')) {
                // Init sums
                $sumAlready = '0'; $sumWaiting = '0';
 
-               // Number of direct already payouts and referal
+               // 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'");
@@ -84,16 +84,16 @@ switch (getRequestElement('mode')) {
                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)
+               // 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'");
@@ -101,19 +101,19 @@ switch (getRequestElement('mode')) {
                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_' . getRequestElement('mode'), false, $content);
+loadTemplate('admin_list_doubler_' . getRequestElement('do'), false, $content);
 
 // [EOF]
 ?>