} // END - if
// Check if at least one is in the active rallye
- $result = SQL_QUERY("SELECT `userid`,`gender`,`surname`,`family`,`email`,`beg_points`,`last_online`
+ $result = SQL_QUERY("SELECT
+ `userid`,`email`,`beg_points`,`last_online`
FROM
`{?_MYSQL_PREFIX?}_user_data`
WHERE
} // END - if
// Prepare content
- $content = array(
+ $row = array(
'userid' => $content['userid'],
'email' => generateEmailLink($content['email'], 'user_data'),
- 'gender' => $content['gender'],
- 'turbo' => $content['beg_points'],
- 'last_online' => generateDateTime($content['last_online'], 2),
+ 'last_online' => generateDateTime($content['last_online'], '2'),
'win1' => $WIN1,
'win2' => $WIN2,
'count' => $count,
);
// Load template and add it
- $OUT .= loadTemplate('admin_list_beg_rows', true, $content);
- $count++; $total += $content['beg_points'];
+ $OUT .= loadTemplate('admin_list_beg_rows', true, $row);
+ $count++;
+ $total += $content['beg_points'];
} // END - while
$content['rows'] = $OUT;
$result = SQL_QUERY("SELECT
`userid`,
`email`,
- `gender`,
- `surname`,
- `family`,
" . $USE . " AS `points`,
`last_online`
FROM
<tr>
<td align="center" class="table_header bottom">
<strong>{--ADMIN_CONTACT_USER--}:<br />
- $content[surname] $content[family] <<a href="mailto:$content[email]">$content[email]</a>></strong>
+ {%user,surname=$content[userid]%} {%user,family=$content[userid]%} <<a href="mailto:$content[email]">$content[email]</a>></strong>
</td>
</tr>
<tr>
<tr>
<td align="right">{--SURNAME--}:</td>
<td>
- <input type="text" class="form_field" name="surname" size="15" maxlength="255" value="$content[surname]" />
+ <input type="text" class="form_field" name="surname" size="15" maxlength="255" value="{%user,surname=$content[userid]%}" />
</td>
</tr>
<tr>
<td align="right">{--FAMILY--}:</td>
<td>
- <input type="text" class="form_field" name="family" size="15" maxlength="255" value="$content[family]" />
+ <input type="text" class="form_field" name="family" size="15" maxlength="255" value="{%user,family=$content[userid]%}" />
</td>
</tr>
<tr>
<tr>
<td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
- <td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,translateGender=$content[gender]%}</td>
- <td align="center" class="{%template,ColorSwitch%} bottom right">$content[surname]</td>
- <td align="center" class="{%template,ColorSwitch%} bottom right">$content[family]</td>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">{%user,gender,translateGender=$content[userid]%}</td>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">{%user,surname=$content[userid]%}</td>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">{%user,family=$content[userid]%}</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">$content[email]</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">$content[joined]</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">$content[last_online]</td>
$content[win1]{%pipe,generateUserProfileLink=$content[userid]%}$content[win2]
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[win1]<a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>$content[win2]
+ $content[win1]<a href="$content[email]">{%user,gender,translateGender=$content[userid]%} {%user,surname=$content[userid]%} {%user,family=$content[userid]%}</a>$content[win2]
</td>
<td class="{%template,ColorSwitch%} bottom right">
- {%pipe,translateComma=$content[beg_points]%} {?POINTS?}
+ {%user,beg_points,translateComma=$content[userid]%} {?POINTS?}
</td>
<td class="{%template,ColorSwitch%} bottom">
$content[last_online]
$content[win1]{%pipe,generateUserProfileLink=$content[userid]%}$content[win2]
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[win1]<a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>$content[win2]
+ $content[win1]<a href="$content[email]">{%user,gender,translateGender=$content[userid]%} {%user,surname=$content[userid]%} {%user,family=$content[userid]%}</a>$content[win2]
</td>
<td class="{%template,ColorSwitch%} bottom right">
{%pipe,translateComma=$content[points]%} {?POINTS?}
<pre>{%pipe,fixEmptyContentToDashes=$content[comments]%}</pre>
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
- {%pipe,translateUserStatus=$content[status]%}
+ {%user,status,translateUserStatus=$content[userid]%}
</td>
<td class="{%template,ColorSwitch%} bottom" align="center">
$content[last_online]
<tr>
<td align="right" class="bottom right {%template,ColorSwitch%}" valign="top">{%pipe,generateUserProfileLink=$content[userid]%}</td>
<td align="center" class="bottom right {%template,ColorSwitch%}">$content[refs_link]</td>
- <td class="bottom right {%template,ColorSwitch%}">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</td>
+ <td class="bottom right {%template,ColorSwitch%}">{%user,gender,translateGender=$content[userid]%} {%user,surname=$content[userid]%} {%user,family=$content[userid]%}</td>
<td class="bottom right {%template,ColorSwitch%}">$content[email]</td>
- <td align="center" class="bottom right {%template,ColorSwitch%}">{%pipe,translateUserStatus=$content[status]%}</td>
+ <td align="center" class="bottom right {%template,ColorSwitch%}">{%user,status,translateUserStatus=$content[userid]%}</td>
<td class="bottom {%template,ColorSwitch%}">$content[registered]</td>
</tr>
<a href="{%url=mailid.php?userid=$content[userid]&$content[link]=$content[id]%}" target="_blank">{--CLICK_NOW--}</a>
</td>
<td class="{%template,ColorSwitch%} bottom right">$content[email]</td>
- <td align="center" class="{%template,ColorSwitch%} bottom">{%pipe,translateUserStatus=$content[status]%}</td>
+ <td align="center" class="{%template,ColorSwitch%} bottom">{%user,status,translateUserStatus=$content[userid]%}</td>
</tr>
$content[userid]
</td>
<td align="center" class="{%template,ColorSwitch%} bottom">
- {%pipe,translateComma=$content[beg_points]%}
+ {%user,beg_points,translateComma=$content[userid]%}
</td>
<td align="center" class="{%template,ColorSwitch%} bottom">
$content[last_online]
$content[refid] ({%user,nickname,fixEmptyContentToDashes=$content[refid]%})
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- {%pipe,translateUserStatus=$content[status]%}
+ {%user,status,translateUserStatus=$content[refid]%}
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
{%pipe,getTotalPoints,translateComma=$content[refid]%} {?POINTS?}