./inc/modules/admin/what-config_mods.php:137: // @TODO Rewritings: mod->module in template
./inc/modules/admin/what-config_rallye_prices.php:202: // @TODO Rewritings: level->price_level, infos->info in template
./inc/modules/admin/what-config_rallye_prices.php:219: // @TODO Rewrite these two constants
-./inc/modules/admin/what-config_rallye_prices.php:254: // @TODO Rewritings: admin_id->admin_id, alogin->login in template
./inc/modules/admin/what-config_register.php:67: // @TODO Move this HTML code into a template
./inc/modules/admin/what-edit_user.php:20: * @TODO Add support for ext-country *
./inc/modules/admin/what-email_archiv.php:91: // @TODO Rewrite to SQL_FETCHARRAY()
}
} else {
// a rallye was selected, so check if there are already prices assigned...
- $result = SQL_QUERY_ESC("SELECT id, price_level, points, info FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE rallye_id=%s ORDER BY price_level",
- array(bigintval(getRequestElement('rallye'))), __FILE__, __LINE__);
+ $result = SQL_QUERY_ESC("SELECT `id`, `price_level`, points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY `price_level` ASC",
+ array(bigintval(getRequestElement('rallye'))), __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// Load all prices for the selected rallye
$result = SQL_QUERY("SELECT
d.id, d.admin_id, d.start_time, d.end_time, d.title, a.login, d.is_active
FROM
- `{?_MYSQL_PREFIX?}_rallye_data` AS d,
+ `{?_MYSQL_PREFIX?}_rallye_data` AS d
LEFT JOIN
`{?_MYSQL_PREFIX?}_admins` AS a
ON
d.admin_id=a.id
ORDER BY
- `d.start_time` DESC", __FILE__, __LINE__);
+ d.start_time DESC", __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// List found rallyes
$OUT = ''; $SW = 2;
if ($content['is_active'] == 'Y') $select = "<div class=\"big\">".$content['id']."</div>";
// Prepare data for the row template
- // @TODO Rewritings: admin_id->admin_id, alogin->login in template
$content = array(
'sw' => $SW,
'id' => $content['id'],
'select' => $select,
'title' => $content['title'],
- 'admin_id' => $content['admin_id'],
+ 'admin_id' => $content['admin_id'],
'email_link' => generateEmailLink($content['admin_id']),
- 'alogin' => $content['login'],
+ 'login' => $content['login'],
'start' => generateDateTime($content['start_time'], 3),
'end' => generateDateTime($content['end_time'], 3),
);
$OUT = ''; $SW = 2;
while ($row = SQL_FETCHARRAY($result)) {
// Load admin login
- $row['alogin'] = getAdminLogin($row['admin_id']);
+ $row['login'] = getAdminLogin($row['admin_id']);
// Count joined userids
$joined = countSumTotalData($row['id'], "rallye_users", 'id', "rallye_id", true);
} // END - if
// Alter some variables
- if (empty($row['alogin'])) $row['alogin'] = '???';
+ if (empty($row['login'])) $row['login'] = '???';
if (empty($row['template'])) $row['template'] = '---';
if (empty($row['descr'])) $row['descr'] = '---';
'select' => "<input type=\"checkbox\" name=\"sel[".$row['id']."]\" class=\"admin_normal\" value=\"1\" />",
'admin_id' => $row['admin_id'],
'email_link' => generateEmailLink($row['admin_id']),
- 'alogin' => $row['alogin'],
+ 'login' => $row['login'],
'id' => $row['id'],
'sw' => $SW,
'title' => $row['title'],
<tr>
<td align="center" class="switch_sw$content[sw] bottom2 right2">$content[select]</td>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"><a
- href="{?URL?}/modules.php?module=admin&what=config_rallye_prices&rallye=$content[id]">$content[title]</a></td>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"><a
- href="$content[email_link]">$content[alogin]</a></td>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2"><a href="{?URL?}/modules.php?module=admin&what=config_rallye_prices&rallye=$content[id]">$content[title]</a></td>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2"><a href="$content[email_link]">$content[login]</a></td>
<td align="center" class="switch_sw$content[sw] bottom2 right2">$content[start]</td>
<td align="center" class="switch_sw$content[sw] bottom2">$content[end]</td>
</tr>
<td align="center" class="switch_sw$content[sw] bottom2 right2"><strong>{--RALLYE_DESCR2--}:</strong><br />
$content[descr]</td>
<td align="center" class="switch_sw$content[sw] bottom2 right2"><strong>{--RALLYE_ADMIN_ID--}:</strong><br />
- <a href="$content[email_link]">$content[alogin]</a></td>
+ <a href="$content[email_link]">$content[login]</a></td>
<td align="center" class="switch_sw$content[sw] bottom2 right2"><strong>{--RALLYE_TSTART--}:</strong><br />
$content[start_date]</td>
<td align="center" class="switch_sw$content[sw] bottom2"><strong>{--RALLYE_TEND--}:</strong><br />