templates/de/html/admin/admin_list_unconfirmed.tpl -text
templates/de/html/admin/admin_list_unconfirmed_list.tpl -text
templates/de/html/admin/admin_list_unconfirmed_row.tpl -text
+templates/de/html/admin/admin_list_unconfirmed_row_404.tpl -text
templates/de/html/admin/admin_list_user.tpl -text
templates/de/html/admin/admin_list_user_alpha.tpl -text
templates/de/html/admin/admin_list_user_pagenav.tpl -text
ON
l.userid=u.userid
WHERE
- l.%s='%s' ORDER BY l.userid LIMIT %s",
- array($col, $ID, bigintval($max)),__FILE__, __LINE__);
+ l.%s='%s'
+ORDER BY
+ l.userid ASC
+LIMIT %s",
+ array(
+ $col,
+ $ID,
+ bigintval($max)
+ ),__FILE__, __LINE__);
// Total number of unconfirmed mails
$unconfirmed = SQL_NUMROWS($result);
// At least one link left to confirm
$OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
- // Prepare data for the row template
- // @TODO Rewritings: userid->userid
- $content = array(
- 'sw' => $SW,
- 'u_link' => generateUserProfileLink($content['userid']),
- 'userid' => $content['userid'],
- 'link' => $LINK,
- 'id' => $ID,
- 'email' => '<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . translateGender($content['gender']) . ' ' . $content['surname'] . ' ' . $content['family'] . '</a>',
- 'status' => translateUserStatus($content['status']),
- );
-
- // Load row template and switch colors
- $OUT .= loadTemplate('admin_list_unconfirmed_row', true, $content);
+ // User data found? We can take any field of u.
+ if (!is_null($content['status'])) {
+ // Prepare data for the row template
+ $content = array(
+ 'sw' => $SW,
+ 'u_link' => generateUserProfileLink($content['userid']),
+ 'userid' => $content['userid'],
+ 'link' => $LINK,
+ 'id' => $ID,
+ 'email' => '<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . translateGender($content['gender']) . ' ' . $content['surname'] . ' ' . $content['family'] . '</a>',
+ 'status' => translateUserStatus($content['status']),
+ );
+
+ // Load row template and switch colors
+ $OUT .= loadTemplate('admin_list_unconfirmed_row', true, $content);
+ } else {
+ // Insert color-switch
+ $content['sw'] = $SW;
+
+ // No user data found
+ $OUT .= loadTemplate('admin_list_unconfirmed_row_404', true, $content);
+ }
+
+ // Switch color
$SW = 3 - $SW;
} // END - while
// Free result
SQL_FREERESULT($result_master);
-}
+} // END - if
// [EOF]
?>