while ($content = SQL_FETCHARRAY($result)) {
// Init variables
$WIN1 = ''; $WIN2 = '';
+
+ // Maybe he can win his active beg?
if ($cnt <= getConfig('beg_ranks')) {
- // Maybe he can win his active beg?
- $WIN1 = "<strong>";
- $WIN2 = "</strong>";
+ // Mark him
+ $WIN1 = '<strong>';
+ $WIN2 = '</strong>';
} // END - if
// Prepare content
- // @TODO Rewrite templates so s/family will be replaced by surname/family
- // @TODO to shorten this block. Please also do so with userid->userid
$content = array(
- 'userid' => $content['userid'],
- 'email' => generateEmailLink($content['email'], 'user_data'),
- 'gender' => translateGender($content['gender']),
- 'surname' => $content['surname'],
- 'family' => $content['family'],
- 'turbo' => translateComma($content['beg_points']),
- 'last_online' => generateDateTime($content['last_online'], 2),
- 'sw' => $SW,
- 'win1' => $WIN1,
- 'win2' => $WIN2,
- 'cnt' => $cnt,
+ 'userid' => $content['userid'],
+ 'email' => generateEmailLink($content['email'], 'user_data'),
+ 'gender' => translateGender($content['gender']),
+ 'surname' => $content['surname'],
+ 'family' => $content['family'],
+ 'turbo' => translateComma($content['beg_points']),
+ 'last_online' => generateDateTime($content['last_online'], 2),
+ 'sw' => $SW,
+ 'win1' => $WIN1,
+ 'win2' => $WIN2,
+ 'cnt' => $cnt,
);
// Load template and add it
<tr>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"
- rowspan="5">$content[select]</td>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"><strong>{--RALLYE_TITLE--}:</strong><br />
- $content[title]</td>
- <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[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 />
- $content[end_date]</td>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2" rowspan="5">$content[select]</td>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2">
+ <strong>{--RALLYE_TITLE--}:</strong><br />
+ $content[title]
+ </td>
+ <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 />
+ $content[admin_link]
+ </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 />
+ $content[end_date]
+ </td>
</tr>
<tr>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"><strong>{--RALLYE_TEMPLATE2--}:</strong><br />
- $content[template]</td>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"><strong>{--RALLYE_AUTO_ADD--}:</strong><br />
- <a
- href="{?URL?}/modules.php?module=admin&what=list_rallyes&rallye=$content[id]&auto=$content[auto]"
- title="$content[auto_title]">$content[auto_lnk]</a></td>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"><strong>{--RALLYE_ACTIVE--}:</strong><br />
- <a
- href="{?URL?}/modules.php?module=admin&what=list_rallyes&rallye=$content[id]&activate=$content[active]"
- title="$content[active_title]">$content[active_lnk]</a></td>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"><strong>{--RALLYE_NOTIFY--}:</strong><br />
- <a
- href="{?URL?}/modules.php?module=admin&what=list_rallyes&rallye=$content[id]&notify=$content[notify]"
- title="$content[notify_title]">$content[notify_lnk]</a></td>
- <td align="center" class="switch_sw$content[sw] bottom2"><strong>{--RALLYE_NOTIFIED--}:</strong><br />
- $content[notified]</td>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2">
+ <strong>{--RALLYE_TEMPLATE2--}:</strong><br />
+ $content[template]
+ </td>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2">
+ <strong>{--RALLYE_AUTO_ADD--}:</strong><br />
+ <a href="{?URL?}/modules.php?module=admin&what=list_rallyes&rallye=$content[id]&auto=$content[auto]" title="$content[auto_title]">$content[auto_lnk]</a>
+ </td>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2">
+ <strong>{--RALLYE_ACTIVE--}:</strong><br />
+ <a href="{?URL?}/modules.php?module=admin&what=list_rallyes&rallye=$content[id]&activate=$content[active]" title="$content[active_title]">$content[active_lnk]</a>
+ </td>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2">
+ <strong>{--RALLYE_NOTIFY--}:</strong><br />
+ <a ref="{?URL?}/modules.php?module=admin&what=list_rallyes&rallye=$content[id]&notify=$content[notify]" title="$content[notify_title]">$content[notify_lnk]</a>
+ </td>
+ <td align="center" class="switch_sw$content[sw] bottom2">
+ <strong>{--RALLYE_NOTIFIED--}:</strong><br />
+ $content[notified]
+ </td>
</tr>
<tr>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"
- colspan="3"><strong>{--RALLYE_ASSIGNED_PRICES--}:</strong><br />
- <a
- href="{?URL?}/modules.php?module=admin&what=config_rallye_prices&rallye=$content[id]">$content[prices_cnt]</a>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2" colspan="3">
+ <strong>{--RALLYE_ASSIGNED_PRICES--}:</strong><br />
+ <a href="{?URL?}/modules.php?module=admin&what=config_rallye_prices&rallye=$content[id]">$content[prices_cnt]</a>
</td>
<td align="center" class="switch_sw$content[sw] bottom2" colspan="2">
- <strong>{--RALLYE_ASSIGNED_USERS--}:</strong><br />
- $content[joined]</td>
+ <strong>{--RALLYE_ASSIGNED_USERS--}:</strong><br />
+ $content[joined]
+ </td>
</tr>
<tr>
<td align="center" class="admin_title bottom2" colspan="5" height="35">
- <strong>{--RALLYE_LIMITATIONS--}:</strong></td>
+ <strong>{--RALLYE_LIMITATIONS--}:</strong>
+ </td>
</tr>
<tr>
- <td align="center" class="switch_sw$content[sw] bottom2 right2"
- colspan="3"><strong>{--RALLYE_MIN_USERS_MINI--}:</strong><br />
- $content[min_users]</td>
+ <td align="center" class="switch_sw$content[sw] bottom2 right2" colspan="3">
+ <strong>{--RALLYE_MIN_USERS_MINI--}:</strong><br />
+ $content[min_users]
+ </td>
<td align="center" class="switch_sw$content[sw] bottom2" colspan="2">
- <strong>{--RALLYE_MIN_PRICES_MINI--}:</strong><br />
- $content[min_prices]</td>
+ <strong>{--RALLYE_MIN_PRICES_MINI--}:</strong><br />
+ $content[min_prices]
+ </td>
</tr>