load_lang();
$db = new Database();
$stmt =$db->query(
"SELECT u.group_desc FROM " . USERGROUP_CONTENT_TABLE . " uc, "
. USERGROUPS_TABLE ." u where uc.user_id = ? and uc.group_id = u.group_id
ORDER BY u.group_desc",array($_REQUEST['user_id']));
$groupList = '';
if ($stmt->rowCount() < 1) {
$groupList = 'no group';
} else {
while ($line = $stmt->fetchObject()) {
$groupList .= '
' . $line->group_desc . '
';
}
}
if($core->is_module_loaded("entities")) {
$stmt = $db->query(
"SELECT e.entity_label FROM " . $_SESSION['tablename']['ent_users_entities']
. " ue, ".$_SESSION['tablename']['ent_entities']
. " e WHERE ue.user_id = ? AND ue.entity_id = e.entity_id ORDER BY e.entity_label",array($_REQUEST['user_id']));
$entityList = '';
if ($stmt->rowCount() < 1) {
$entityList = 'no entity';
} else {
while ($line = $stmt->fetchObject()) {
$entityList .= '
' . $line->entity_label . '
';
}
}
}
if(isset($_REQUEST['lastname']) && isset($_REQUEST['firstname']) && isset($_REQUEST['mail']) && isset($_REQUEST['phone']) && isset($_REQUEST['user_id']))?> {
Infos
Groups
is_module_loaded("entities")) {
?>
Entities
}