]> git.mxchange.org Git - mailer.git/commitdiff
More usage of EL
authorRoland Häder <roland@mxchange.org>
Tue, 20 Jul 2010 05:39:43 +0000 (05:39 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 20 Jul 2010 05:39:43 +0000 (05:39 +0000)
inc/libs/admins_functions.php
inc/libs/task_functions.php
inc/modules/admin/what-list_sponsor.php
templates/de/html/admin/admin_list_admins_row.tpl

index f87aff12df2aa19462b176d2f0639950167b3653..cc99398621c5041a0b847dfdcf9056fcb428c1c8 100644 (file)
@@ -400,9 +400,6 @@ function adminsListAdminAccounts() {
                $content['mode']    = '{--ADMINS_' . strtoupper($content['mode'])    . '_MODE--}';
                $content['la_mode'] = '{--ADMINS_' . strtoupper($content['la_mode']) . '_LA_SETTING--}';
 
-               // Prepare some more data
-               $content['email_link'] = generateEmailLink($content['id'], 'admins');
-
                // Load row template and switch color
                $OUT .= loadTemplate('admin_list_admins_row', true, $content);
        } // END - while
index cee84ef22a812044143a6c2f437dc2c72293a2d2..5250de06cedf368c054cb66cbf7cb09180dc1028 100644 (file)
@@ -342,11 +342,13 @@ ORDER BY
                } // END - if
 
                addSql("SELECT
-       ".$USE." AS points
+       " . $USE . " AS points
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
-       `status`='CONFIRMED' AND ".$USE." > 0".$lastOnline."
+       `status`='CONFIRMED' AND
+       " . $USE . " > 0
+       " . $lastOnline . "
 ORDER BY
        `points` DESC,
        `userid` ASC");
@@ -379,7 +381,7 @@ ORDER BY
                $WHATs[]  = 'list_beg';
                $DESCRs[] = '{--ADMIN_TASK_LIST_BEG--}';
                $TITLEs[] = '{--ADMIN_TASK_LIST_BEG_TITLE--}';
-       }
+       } // END - if
 
        if (isExtensionActive('doubler')) {
                // List waiting payouts
@@ -391,7 +393,7 @@ ORDER BY
                $WHATs[]  = 'list_doubler';
                $DESCRs[] = '{--ADMIN_TASK_LIST_DOUBLER_ALL--}';
                $TITLEs[] = '{--ADMIN_TASK_LIST_DOUBLER_ALL_TITLE--}';
-       }
+       } // END - if
 
        //
        // All referal banner
index 1e9ff87d4fe17bca25e94cf6040dbbca3a78f879..b0f0cf593da892747d5238d90b9ee4047a13c101 100644 (file)
@@ -70,15 +70,15 @@ WHERE
 
                // Prepare all data for the template
                //  Sponsor's id
-               $content['id']          = getRequestParameter('id');
+               $content['id']              = getRequestParameter('id');
                //  Contact data
-               $content['email_link']  = generateEmailLink($content['email'], 'sponsor_data');
+               $content['email_link']      = generateEmailLink($content['email'], 'sponsor_data');
                //  Timestamps
                $content['sponsor_created'] = generateDateTime($content['sponsor_created'], 2);
                $content['last_online']     = generateDateTime($content['last_online'], 2);
                $content['last_change']     = generateDateTime($content['last_change'], 2);
                //  Orders total
-               $content['orders']      = countSumTotalData(bigintval(getRequestParameter('id')), 'sponsor_orders', 'id', 'sponsorid', true);
+               $content['orders']          = countSumTotalData(bigintval(getRequestParameter('id')), 'sponsor_orders', 'id', 'sponsorid', true);
 
                // Load template
                loadTemplate('admin_list_sponsor_details', false, $content);
index 148f0488fcbb80ea49a780c1bbcc9343c25dc2a3..9dc2e10ec940a5345dabd44471e233b666e556bd 100644 (file)
@@ -3,7 +3,7 @@
                <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
        </td>
        <td class="{%template,ColorSwitch%} bottom right">
-               &nbsp;&nbsp;<a href="$content[email_link]">$content[login]</a>
+               &nbsp;&nbsp;<a href="{%pipe,generateEmailLink=$content[id]%}">$content[login]</a>
        </td>
        <td class="{%template,ColorSwitch%} bottom right">
                &nbsp;&nbsp;<a href="mailto:$content[email]">$content[email]</a>