- 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;
-
- case "F":
- define('_GENDER_M', "");
- define('_GENDER_F', " selected=\"selected\"");
- define('_GENDER_C', "");
- break;
-
- case "C":
- define('_GENDER_M', "");
- define('_GENDER_F', "");
- define('_GENDER_C', " selected=\"selected\"");
- break;
- }
-
- define('_SURNAME', $surname); define('_FAMILY', $family); define('_CITY' , $city);
- define('_STREET' , $street); define('_ZIP' , $zip); define('_MAX_MAILS', $max);
- define('_COUNTRY', $country); define('_EMAIL' , $email);