' . "\n";
-// Email
-print '| '.$langs->trans("Email").'* | |
'."\n";
-// Company
-print '| '.$langs->trans("Company");
-if (!empty(floatval($project->price_registration))) {
- print '*';
-}
-print ' | |
'."\n";
-// Address
-print '| '.$langs->trans("Address").' | '."\n";
-print ' |
'."\n";
-// Zip / Town
-print '| '.$langs->trans('Zip').' / '.$langs->trans('Town').' | ';
-print $formcompany->select_ziptown(GETPOST('zipcode'), 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6, 1);
-print ' / ';
-print $formcompany->select_ziptown(GETPOST('town'), 'town', array('zipcode', 'selectcountry_id', 'state_id'), 0, 1);
-print ' |
';
-// Country
-print '| '.$langs->trans('Country').'* | ';
-$country_id = GETPOST('country_id');
-if (!$country_id && !empty($conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE)) {
- $country_id = getCountry($conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE, 2, $db, $langs);
-}
-if (!$country_id && !empty($conf->geoipmaxmind->enabled)) {
- $country_code = dol_user_country();
- //print $country_code;
- if ($country_code) {
- $new_country_id = getCountry($country_code, 3, $db, $langs);
- //print 'xxx'.$country_code.' - '.$new_country_id;
- if ($new_country_id) {
- $country_id = $new_country_id;
+ // Email
+ print ' |
| ' . $langs->trans("Email") . '* | |
' . "\n";
+ // Company
+ print '| ' . $langs->trans("Company");
+ if (!empty(floatval($project->price_registration))) {
+ print '*';
+ }
+ print ' | |
' . "\n";
+ // Address
+ print '| ' . $langs->trans("Address") . ' | ' . "\n";
+ print ' |
' . "\n";
+ // Zip / Town
+ print '| ' . $langs->trans('Zip') . ' / ' . $langs->trans('Town') . ' | ';
+ print $formcompany->select_ziptown(GETPOST('zipcode'), 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6, 1);
+ print ' / ';
+ print $formcompany->select_ziptown(GETPOST('town'), 'town', array('zipcode', 'selectcountry_id', 'state_id'), 0, 1);
+ print ' |
';
+ // Country
+ print '| ' . $langs->trans('Country') . '* | ';
+ $country_id = GETPOST('country_id');
+ if (!$country_id && !empty($conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE)) {
+ $country_id = getCountry($conf->global->MEMBER_NEWFORM_FORCECOUNTRYCODE, 2, $db, $langs);
+ }
+ if (!$country_id && !empty($conf->geoipmaxmind->enabled)) {
+ $country_code = dol_user_country();
+ //print $country_code;
+ if ($country_code) {
+ $new_country_id = getCountry($country_code, 3, $db, $langs);
+ //print 'xxx'.$country_code.' - '.$new_country_id;
+ if ($new_country_id) {
+ $country_id = $new_country_id;
+ }
}
}
-}
-$country_code = getCountry($country_id, 2, $db, $langs);
-print $form->select_country($country_id, 'country_id');
-print ' |
';
-// State
-if (empty($conf->global->SOCIETE_DISABLE_STATE)) {
- print '| '.$langs->trans('State').' | ';
- if ($country_code) {
- print $formcompany->select_state(GETPOST("state_id"), $country_code);
- } else {
- print '';
- }
+ $country_code = getCountry($country_id, 2, $db, $langs);
+ print $form->select_country($country_id, 'country_id');
print ' |
';
+ // State
+ if (empty($conf->global->SOCIETE_DISABLE_STATE)) {
+ print '| ' . $langs->trans('State') . ' | ';
+ if ($country_code) {
+ print $formcompany->select_state(GETPOST("state_id"), $country_code);
+ } else {
+ print '';
+ }
+ print ' |
';
+ }
+
+ print "
\n";
+
+ print dol_get_fiche_end();
+
+ // Save
+ print '