本文整理匯總了PHP中ilTextInputGUI::setCssClass方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilTextInputGUI::setCssClass方法的具體用法?PHP ilTextInputGUI::setCssClass怎麽用?PHP ilTextInputGUI::setCssClass使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ilTextInputGUI
的用法示例。
在下文中一共展示了ilTextInputGUI::setCssClass方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: showOpenIdLoginForm
/**
* Show openid login if enabled
* @return
*/
protected function showOpenIdLoginForm($page_editor_html)
{
global $lng, $tpl;
include_once './Services/OpenId/classes/class.ilOpenIdSettings.php';
if (!ilOpenIdSettings::getInstance()->isActive()) {
return $page_editor_html;
}
$lng->loadLanguageModule('auth');
include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
$form = new ilPropertyFormGUI();
//$form->setTableWidth('500');
$form->setShowTopButtons(false);
$form->setFormAction($this->ctrl->getFormAction($this));
$form->setTitle($lng->txt('login_to_ilias_via_openid'));
$openid = new ilTextInputGUI($lng->txt('auth_openid_login'), 'oid_username');
$openid->setSize(18);
$openid->setMaxLength(255);
$openid->setRequired(true);
$openid->setCssClass('ilOpenIDBox');
$openid->setInfo($lng->txt('auth_openid_login_info_a'));
$form->addItem($openid);
include_once './Services/OpenId/classes/class.ilOpenIdProviders.php';
$pro = new ilSelectInputGUI($lng->txt('auth_openid_provider'), 'oid_provider');
$pro->setOptions(ilOpenIdProviders::getInstance()->getProviderSelection());
$pro->setValue(ilOpenIdProviders::getInstance()->getSelectedProvider());
$form->addItem($pro);
$form->addCommandButton("showLogin", $lng->txt("log_in"));
return $this->substituteLoginPageElements($tpl, $page_editor_html, $form->getHTML(), '[list-openid-login-form]', 'OID_LOGIN_FORM');
}