// Prepare constants
// @TODO No longer needed? define('__CATEGORIES_BASE' , '<a href="{%url=modules.php?module=admin&userid=');
- $content['userid'] = bigintval(getRequestParameter('userid'));
- $content['email'] = '<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . $content['surname'] . ' ' . $content['family'] . '</a>';
+ $content['email'] = '<a href="' . generateEmailLink($content['email'], 'user_data') . '">{%pipe,translateGender=' . $content['gender'] . '%} ' . $content['surname'] . ' ' . $content['family'] . '</a>';
// Ok, list categories of this user
- $result_cats = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
+ $result_cats = SQL_QUERY("SELECT `id`,`cat` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
if (!SQL_HASZERONUMS($result_cats)) {
// List categories
} // END - if
// Add more elements
- $content['cnt'] = $count;
- $content['sel'] = $selection;
+ $content['count'] = $count;
+ $content['sel'] = $selection;
// Load row template and count up
$OUT .= loadTemplate('admin_list_user_cats_row', true, $content);