0) {
// Something was payed out
$sumAlready += $count;
$content['already_direct_link'] = '' . $count . '';
} // END - if
$count = countSumTotalData('Y','doubler','id','completed',true, " AND `is_ref`='Y'");
if ($count > 0) {
// Something was payed out
$sumAlready += $count;
$content['already_ref_link'] = '' . $count . '';
} // END - if
// And the same for waiting pouts (direct and referal)
$count = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='N'");
if ($count > 0) {
// Something was payed out
$sumWaiting += $count;
$content['waiting_direct_link'] = '' . $count . '';
} // END - if
$count = countSumTotalData('N','doubler','id','completed',true, " AND `is_ref`='Y'");
if ($count > 0) {
// Something was payed out
$sumWaiting += $count;
$content['waiting_ref_link'] = '' . $count . '';
} // END - if
// Links for all
$content['already_all_link'] = '' . $sumAlready . '';
$content['waiting_all_link'] = '' . $sumWaiting . '';
// All data is loaded here...
break;
} // END - switch
// Load mode template
loadTemplate('admin_list_doubler_' . getRequestParameter('mode'), false, $content);
// [EOF]
?>