71 lines
2.2 KiB
PHP
71 lines
2.2 KiB
PHP
<?php
|
|
// Lexique
|
|
include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_user.php');
|
|
|
|
echo template::formOpen('userLoginForm');
|
|
?>
|
|
<div class="row humanBot">
|
|
<div class="col6">
|
|
<?php echo template::text('userLoginId', [
|
|
'label' => $text['core_user_view']['login'][0],
|
|
'value' => $module::$userId
|
|
]); ?>
|
|
</div>
|
|
<div class="col6">
|
|
<?php echo template::password('userLoginPassword', [
|
|
'label' => $text['core_user_view']['login'][1]
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<?php if ($this->getData(['config', 'connect','captcha'])){ ?>
|
|
<?php if( ($_SESSION['humanBot']==='bot') || $this->getData(['config', 'connect', 'captchaBot'])=== false ) { ?>
|
|
<div class="row">
|
|
<div class="col12 textAlignCenter">
|
|
<?php echo template::captcha('userLoginCaptcha', ''); ?>
|
|
</div>
|
|
</div>
|
|
<?php } else { ?>
|
|
<div class="userCheckBlue">
|
|
<?php echo template::text('userInputBlue', [
|
|
'label' => 'Input Blue',
|
|
'value' => ''
|
|
]); ?>
|
|
</div>
|
|
<br>
|
|
<div class="userOuter">
|
|
<div class="userInner humanCheck">
|
|
<?php echo template::checkbox('userHumanCheck', true, $this->getData(['locale', 'captchaSimpleText']), [
|
|
'checked' => false,
|
|
'help' => $this->getData(['locale', 'captchaSimpleHelp']),
|
|
'required' => true
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<?php } } ?>
|
|
<div class="row">
|
|
<div class="col6">
|
|
<?php echo template::checkbox('userLoginLongTime', true, $text['core_user_view']['login'][4], [
|
|
'checked' => $module::$userLongtime
|
|
]); ?>
|
|
</div>
|
|
<div class="col6 textAlignRight">
|
|
<a href="<?php echo helper::baseUrl(); ?>user/forgot/<?php echo $this->getUrl(2); ?>"><?php echo $text['core_user_view']['login'][5]; ?> ?</a>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col4 offset4">
|
|
<?php echo template::button('userLoginBack', [
|
|
'href' => helper::baseUrl() . str_replace('_', '/', str_replace('__', '#', $this->getUrl(2))),
|
|
'ico' => 'left',
|
|
'value' => $text['core_user_view']['login'][2]
|
|
]); ?>
|
|
</div>
|
|
<div class="col4 humanBotClose">
|
|
<?php echo template::submit('userLoginSubmit', [
|
|
'value' => $text['core_user_view']['login'][3],
|
|
'ico' => 'lock'
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<?php echo template::formClose(); ?>
|