Ejemplo n.º 1
0
function RecoveryPassFormView($model_login, $login)
{
    ?>
		<h3><?php 
    echo I18n::lang('users', 'remember_password_explain', 'Please enter the email address you registered on the website, which is where you receive your new password');
    ?>
</h3>
		<form method="post" action="<?php 
    echo $login->url_recovery_send;
    ?>
">
			<?php 
    Utils::set_csrf_key();
    ?>
			<label for="email"></label>
			<?php 
    echo PhangoApp\PhaModels\CoreForms::TextForm('email', '');
    ?>
			<p><input type="submit" value="<?php 
    echo I18n::lang('users', 'remember_password', 'Remember password');
    ?>
" /></p>
		</form>

	<?php 
}
Ejemplo n.º 2
0
function LoginFormView($model_user, $model_login)
{
    //'no_expire_session'
    $arr_fields_login = array($model_login->field_user, $model_login->field_password);
    /*
    	$model_user->forms['no_expire_session']=new ModelForm('form_login', 'no_expire_session', 'PhangoApp\PhaModels\CoreForms::CheckBoxForm', I18n::lang('users', 'automatic_login', 'Automatic login'), new BooleanField(), $required=1, $parameters='');
    	
    	$model_user->forms['no_expire_session']->label_class='expire_button';*/
    ?>
	<?php 
    echo View::show_flash();
    ?>
	<form method="post" action="<?php 
    echo $model_login->url_login;
    ?>
">
	<?php 
    Utils::set_csrf_key();
    echo View::load_view(array($model_user->forms, $arr_fields_login), 'forms/modelform');
    ?>
    <p><?php 
    echo I18n::lang('users', 'remember_login', 'Remember login?');
    ?>
 <input type="checkbox" name="no_expire_session" value="1" /></p>
	<p><a href="<?php 
    echo $model_login->url_recovery;
    ?>
"><?php 
    echo I18n::lang('users', 'remember_password', 'Remember password');
    ?>
</a></p>
	<p><input type="submit" class="submit" value="<?php 
    echo I18n::lang('common', 'login', 'Login');
    ?>
" /></p>
	</form>
	<?php 
}