';
echo ''.__('User ID').' | ';
echo '';
echo "$id";
echo " | ";
// Show "Picture" (in future versions, why not, allow users to upload it's own avatar here.
echo "";
if (is_user_admin ($id)) {
echo "";
}
else {
echo "";
}
echo ' |
'.__('Full (display) name').' | ';
print_input_text_extended ("fullname", $user_info["fullname"], '', '', 35, 100, $view_mode, '', 'class="input"');
// Not used anymore. In 3.0 database schema continues storing it, but will be removed in the future, or we will 'reuse'
// the database fields for anything more useful.
/*
echo ' |
'.__('First name').' | ';
print_input_text_extended ("firstname", $user_info["firstname"], '', '', 25, 100, $view_mode, '', 'class="input"');
echo ' |
'.__('Last name').' | ';
print_input_text_extended ("lastname", $user_info["lastname"], '', '', 25, 100, $view_mode, '', 'class="input"');
*/
if ($view_mode === false) {
if ($config["user_can_update_password"]) {
echo ' |
'.__('New Password').' | ';
print_input_text_extended ("password_new", "", '', '', '15', '25', $view_mode, '', 'class="input"', false, true);
echo ' |
'.__('Password confirmation').' | ';
print_input_text_extended ("password_conf", "", '', '', '15', '25', $view_mode, '', 'class="input"', false, true);
} else {
echo ''.__('You can not change your password from Pandora FMS under the current authentication scheme').'';
}
}
echo ' |
'.__('E-mail').' | ';
print_input_text_extended ("email", $user_info["email"], '', '', '40', '100', $view_mode, '', 'class="input"');
echo ' |
'.__('Phone number').' | ';
print_input_text_extended ("phone", $user_info["phone"], '', '', '10', '30', $view_mode, '', 'class="input"');
echo ' |
'.__('Language').' | ';
echo print_select_from_sql ('SELECT id_language, name FROM tlanguage',
'language', $user_info["language"], '', '', '', true);
echo ' |
'.__('Comments').' | ';
print_textarea ("comments", 2, 60, $user_info["comments"], ($view_mode ? 'readonly="readonly"' : ''));
echo ' |
';
echo '