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 f87aff1..cc99398 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 cee84ef..5250de0 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 1e9ff87..b0f0cf5 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 148f048..9dc2e10 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>