// Data for the formular
$result = SQL_QUERY_ESC("SELECT
- `company`, `position`, `tax_ident`,
+ `id`, `company`, `position`, `tax_ident`,
`gender`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`,
`phone`, `fax`, `cell`, `email`, `url`,
`status`, `receive_warnings`
if (!empty($message)) {
// Output message
- $OUT = loadTemplate('admin_settings_saved', true, $message);
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, $message);
} else {
// No message generated
- $OUT = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
}
} else {
// Init gender
$content['gender_' . strtolower($content['gender'])] = ' selected="selected"';
// Output formular
- $OUT = loadTemplate('sponsor_account_form', true, $content);
+ $GLOBALS['sponsor_output'] = loadTemplate('sponsor_account_form', true, $content);
}
} else {
// Locked or so?
$STATUS = sponsorTranslateUserStatus($content['status']);
- $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
}
} else {
// Sponsor account not found!
- $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
+ $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
}
// Free memory