當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Countries::selector方法代碼示例

本文整理匯總了PHP中Countries::selector方法的典型用法代碼示例。如果您正苦於以下問題:PHP Countries::selector方法的具體用法?PHP Countries::selector怎麽用?PHP Countries::selector使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Countries的用法示例。


在下文中一共展示了Countries::selector方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: echofield

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&nbsp;name", textinput("firstName", contact_value("firstName"), 24));
echofield(3, "lastName", "Last&nbsp;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"));
開發者ID:vaskevich,項目名稱:nu-admissions-review,代碼行數:31,代碼來源:profile.php


注:本文中的Countries::selector方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。