当前位置: 首页>>代码示例>>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;未经允许,请勿转载。