$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
} // 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");
$WHATs[] = 'list_beg';
$DESCRs[] = '{--ADMIN_TASK_LIST_BEG--}';
$TITLEs[] = '{--ADMIN_TASK_LIST_BEG_TITLE--}';
- }
+ } // END - if
if (isExtensionActive('doubler')) {
// List waiting payouts
$WHATs[] = 'list_doubler';
$DESCRs[] = '{--ADMIN_TASK_LIST_DOUBLER_ALL--}';
$TITLEs[] = '{--ADMIN_TASK_LIST_DOUBLER_ALL_TITLE--}';
- }
+ } // END - if
//
// All referal banner
// 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);
<input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
</td>
<td class="{%template,ColorSwitch%} bottom right">
- <a href="$content[email_link]">$content[login]</a>
+ <a href="{%pipe,generateEmailLink=$content[id]%}">$content[login]</a>
</td>
<td class="{%template,ColorSwitch%} bottom right">
<a href="mailto:$content[email]">$content[email]</a>