X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_rallyes.php;h=393b026c71ede86730711599f7a6802bbf4adf8b;hb=0ddf8f6c578aa2c1ff1db9fb8eb0b93a1e247b73;hp=76bdd3eb3342351ad24dc1b6f6c44eae181ce528;hpb=cf3765c38cf0a76f396aca291f71858936e92956;p=mailer.git diff --git a/inc/modules/admin/what-list_rallyes.php b/inc/modules/admin/what-list_rallyes.php index 76bdd3eb33..393b026c71 100644 --- a/inc/modules/admin/what-list_rallyes.php +++ b/inc/modules/admin/what-list_rallyes.php @@ -14,8 +14,6 @@ * $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 * @@ -104,7 +102,7 @@ if (isGetRequestParameterSet('rallye')) { runFilterChain('run_sqls'); } elseif (isFormSent('remove')) { // Delete rallyes - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // Init SQLs initSqls(); @@ -130,7 +128,7 @@ if (isGetRequestParameterSet('rallye')) { } } elseif (isFormSent('change')) { // Change rallye - if (countSelection(postRequestParameter('title')) > 0) { + if (ifPostContainsSelections('title')) { // Init SQLs initSqls(); @@ -179,7 +177,7 @@ LIMIT 1", if (isFormSent('edit')) { // Check for selections - if (countPostSelection() > 0) { + if (ifPostContainsSelections()) { // Make all selected and deactivated rallyes editable $OUT = ''; foreach (postRequestParameter('sel') as $id => $selected) { @@ -199,20 +197,20 @@ LIMIT 1", SQL_FREERESULT($result); // Starting day - $content['s_sec'] = addSelectionBox('sec' , date('s', $content['start_time']), 'start', $id); - $content['s_min'] = addSelectionBox('min' , date('i', $content['start_time']), 'start', $id); - $content['s_hour'] = addSelectionBox('hour' , date('G', $content['start_time']), 'start', $id); - $content['s_day'] = addSelectionBox('day' , date('d', $content['start_time']), 'start', $id); - $content['s_month'] = addSelectionBox('month', date('m', $content['start_time']), 'start', $id); - $content['s_year'] = addSelectionBox('year' , date('Y', $content['start_time']), 'start', $id); + $content['s_sec'] = addSelectionBox('sec' , getSecond($content['start_time']) , 'start', $id); + $content['s_min'] = addSelectionBox('min' , getMinute($content['start_time']) , 'start', $id); + $content['s_hour'] = addSelectionBox('hour' , getShortHour($content['start_time']), 'start', $id); + $content['s_day'] = addSelectionBox('day' , getDay($content['start_time']) , 'start', $id); + $content['s_month'] = addSelectionBox('month', getMonth($content['start_time']) , 'start', $id); + $content['s_year'] = addSelectionBox('year' , getYear($content['start_time']) , 'start', $id); // Ending day - $content['e_sec'] = addSelectionBox('sec' , date('s', $content['end_time']) , 'end' , $id); - $content['e_min'] = addSelectionBox('min' , date('i', $content['end_time']) , 'end' , $id); - $content['e_hour'] = addSelectionBox('hour' , date('G', $content['end_time']) , 'end' , $id); - $content['e_day'] = addSelectionBox('day' , date('d', $content['end_time']) , 'end' , $id); - $content['e_month'] = addSelectionBox('month', date('m', $content['end_time']) , 'end' , $id); - $content['e_year'] = addSelectionBox('year' , date('Y', $content['end_time']) , 'end' , $id); + $content['e_sec'] = addSelectionBox('sec' , getSecond($content['end_time']) , 'end' , $id); + $content['e_min'] = addSelectionBox('min' , getMinute($content['end_time']) , 'end' , $id); + $content['e_hour'] = addSelectionBox('hour' , getShortHour($content['end_time']) , 'end' , $id); + $content['e_day'] = addSelectionBox('day' , getDay($content['end_time']) , 'end' , $id); + $content['e_month'] = addSelectionBox('month', getMonth($content['end_time']) , 'end' , $id); + $content['e_year'] = addSelectionBox('year' , getYear($content['end_time']) , 'end' , $id); // Remember other values $content['templ'] = addReferalRallyeTemplateSelection('templ['.$id.']', $content['template']); @@ -239,7 +237,7 @@ WHERE ORDER BY `userid` ASC", array(bigintval(getRequestParameter('rallye'))), __FILE__, __LINE__); - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { $OUT = ''; $content['rallye'] = getRequestParameter('rallye'); while ($row = SQL_FETCHARRAY($result)) { @@ -251,7 +249,10 @@ ORDER BY $br = ''; // Output row - if (($row['curr_points'] > 0) && ($cnt > 0)) { $bl = ''; $br = ''; } + if (($row['curr_points'] > 0) && ($cnt > 0)) { + $bl = ''; + $br = ''; + } // END - if // Get user points $points = countSumTotalData($row['userid'], 'user_points', 'points', 'userid', false, " AND `ref_depth`=1 LIMIT 1"); @@ -262,7 +263,7 @@ ORDER BY 'userid' => $row['userid'], 'bold_l' => $bl , 'bold_r' => $br , - 'rews' => $row['refs'], + 'refs' => $row['refs'], 'cnt' => $cnt, 'opoints' => ($points - $row['curr_points']), ); @@ -295,7 +296,7 @@ ORDER BY `start_time` DESC", __FILE__, __LINE__); // Records found? - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // List found rallyes $OUT = ''; while ($data = SQL_FETCHARRAY($result)) { @@ -316,7 +317,7 @@ ORDER BY // Transfer data into array for the template $row = array( - 'select' => '', + 'select' => '', 'admin_id' => $data['admin_id'], 'login' => $data['login'], 'id' => $data['id'],