'form-stacked')); $form->addElement( 'text', 'login', null, array('placeholder' => get_lang('UserName'), 'autocapitalize' => 'none') ); $form->addElement( 'password', 'password', null, array('placeholder' => get_lang('Password'), 'autocapitalize' => 'none') ); $form->addButtonNext(get_lang('LoginEnter'), 'submitAuth'); // see same text in main_api.lib.php function api_not_allowed if (api_is_cas_activated()) { $msg .= Display::return_message(sprintf(get_lang('YouHaveAnInstitutionalAccount'), api_get_setting("Institution")), '', false); $msg .= Display::div("
".getCASLogoHTML()." ".sprintf(get_lang('LoginWithYourAccount'), api_get_setting("Institution"))."

", array('align'=>'center')); $msg .= Display::return_message(get_lang('YouDontHaveAnInstitutionAccount')); $msg .= "

".get_lang('LoginWithExternalAccount')."

"; $msg .= "
"; } $msg .= '
'; $msg .= $form->returnForm(); $msg .= '
'; if (api_is_cas_activated()) { $msg .= "
"; } $msg .= '

'.get_lang('ReturnToCourseHomepage').'

'; $tpl->assign('content', '

'.get_lang('LoginToGoToThisCourse').'

'.$msg); $tpl->display_one_col_template(); } else { api_delete_firstpage_parameter(); header('Location: '.api_get_path(WEB_PATH).'index.php'); exit; }