boinc/html/user/edit_user_info_form.php

33 lines
704 B
PHP

<?php
require_once("edit.inc");
require_once("util.inc");
db_init();
$authenticator = init_session();
$user = get_user_from_auth($authenticator);
require_login($user);
page_head("Edit user information");
echo "<form method=post action=edit_user_info_action.php>";
start_table();
row1("Edit account info");
row2("User name",
"<input name=user_name size=30 value='$user->name'>"
);
row2_init("Country",
"<select name=country>"
);
print_country_select($user->country);
echo "</select></td></tr>\n";
row2("Postal (ZIP) code",
"<input name=postal_code size=20 value='$user->postal_code'>"
);
row2("", "<input type=submit value='Update info'>");
end_table();
echo "</form>\n";
page_tail();
?>