X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-reflist.php;h=94339e44f0d1eaca5959d6efcc3a89bef6d84918;hp=0740acbdef23b4b3147061846f01e0563b16dace;hb=0f3a135204757cc8750262871c8e62c42300acb4;hpb=29385a0483bbcbbe940a32a49d488b1d5add15c5 diff --git a/inc/modules/member/what-reflist.php b/inc/modules/member/what-reflist.php index 0740acbdef..94339e44f0 100644 --- a/inc/modules/member/what-reflist.php +++ b/inc/modules/member/what-reflist.php @@ -14,11 +14,9 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -46,11 +44,11 @@ if (!defined('__SECURITY')) { } // Add description as navigation point -addMenuDescription('member', __FILE__); +addYouAreHereLink('member', __FILE__); // Load all referal levels $result = SQL_QUERY('SELECT - `level`, `percents` + `level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE @@ -59,27 +57,24 @@ ORDER BY `level` ASC', __FILE__, __LINE__); // Are there some entries? (Shall be!) -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // List all levels $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { // Init variables $rows = ''; $counter = '0'; - $SW = 2; // Check for users ref in this level foreach (getUserReferalPoints(getMemberId(), $content['level']) as $refRow) { // Add/"translate" more content - $refRow['sw'] = $SW; - $refRow['clickrate'] = translateComma($refRow['clickrate'], true, 1); + $refRow['click_rate'] = translateComma($refRow['click_rate'], true, 1); // Load row template $rows .= loadTemplate('member_ref_list_row', true, $refRow); // Count this ref and switch color $counter++; - $SW = 3 - $SW; } // END - foreach // Remember the content @@ -95,7 +90,7 @@ if (SQL_NUMROWS($result) > 0) { loadTemplate('member_ref_list', false, $OUT); } else { // No entries - loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_NO_ENTRIES--}'); + displayMessage('{--MEMBER_REFBACK_NO_ENTRIES--}'); } // Free result