- LOAD_TEMPLATE('admin_settings_saved', false, $content);
- }
- else
- {
- // Display form to edit
- list($gender, $surname, $family, $street, $zip, $city, $country, $email, $bday, $bmonth, $byear, $max) = SQL_FETCHROW($result_main);
- SQL_FREERESULT($result_main);
-
- // Transfer data to constants for the template
- switch ($gender)
- {
- case "M":
- define('_GENDER_M', ' selected="selected"');
- define('_GENDER_F', '');
- define('_GENDER_C', '');
- break;
+ loadTemplate('admin_settings_saved', false, $content);
+ } else {
+ // Load entry
+ $content = SQL_FETCHARRAY($result_main);