echo '<div class="f-contain">', "\n\n"; if (!isset($Opt["ldapLogin"]) && !isset($Opt["httpAuthLogin"])) { echofield(0, "uemail", "Email", textinput("uemail", contact_value("uemail", "email"), 52, "account_d")); } else { if (!$newProfile) { echofield(0, "uemail", "Username", contact_value("uemail", "email")); echofield(0, "preferredEmail", "Email", textinput("preferredEmail", contact_value("preferredEmail"), 52, "account_d")); } else { echofield(0, "uemail", "Username", textinput("newUsername", contact_value("newUsername", false), 52, "account_d")); echofield(0, "preferredEmail", "Email", textinput("preferredEmail", contact_value("preferredEmail"), 52)); } } echofield(1, "firstName", "First name", textinput("firstName", contact_value("firstName"), 24)); echofield(3, "lastName", "Last name", textinput("lastName", contact_value("lastName"), 24)); echofield(0, "affiliation", "Affiliation", textinput("affiliation", contact_value("affiliation"), 52)); echofield(0, false, "Country", Countries::selector("country", contact_value("country"))); $data = $Acct->data(); $any_address = $data && @($data->address || $data->city || $data->state || $data->zip); if ($Conf->setting("acct_addr") || $any_address || $Acct->voicePhoneNumber) { echo "<div style='margin-top:20px'></div>\n"; echofield(0, false, "Address line 1", textinput("addressLine1", value("addressLine1", @$data->address ? @$data->address[0] : null), 52)); echofield(0, false, "Address line 2", textinput("addressLine2", value("addressLine2", @$data->address ? @$data->address[1] : null), 52)); echofield(0, false, "City", textinput("city", value("city", @$data->city), 52)); echofield(1, false, "State/Province/Region", textinput("state", value("state", @$data->state), 24)); echofield(3, false, "ZIP/Postal code", textinput("zipCode", value("zipCode", @$data->zip), 12)); echofield(0, false, "Phone <span class='f-cx'>(optional)</span>", textinput("voicePhoneNumber", contact_value("voicePhoneNumber"), 24)); } if (!$newProfile && !isset($Opt["ldapLogin"]) && !isset($Opt["httpAuthLogin"]) && $Me->can_change_password($Acct)) { echo '<div id="foldpassword" class="', $UserStatus->has_error("password") ? "fold3o" : "fold3c", '" style="margin-top:20px">'; // Hit a button to change your password echo Ht::js_button("Change password", "fold('password',null,3)", array("class" => "fn3"));