Deltacms/core/module/user/view/login/login.php

71 lines
2.2 KiB
PHP
Raw Normal View History

2022-11-05 09:31:32 +01:00
<?php
2022-03-06 13:35:21 +01:00
// Lexique
2022-09-11 09:42:42 +02:00
include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_user.php');
2022-11-05 09:31:32 +01:00
echo template::formOpen('userLoginForm');
2022-03-06 13:35:21 +01:00
?>
2022-11-05 09:31:32 +01:00
<div class="row humanBot">
2022-01-31 09:10:49 +01:00
<div class="col6">
<?php echo template::text('userLoginId', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_user_view']['login'][0],
2022-01-31 09:10:49 +01:00
'value' => $module::$userId
]); ?>
</div>
<div class="col6">
<?php echo template::password('userLoginPassword', [
2022-09-11 09:42:42 +02:00
'label' => $text['core_user_view']['login'][1]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
2022-11-05 09:31:32 +01:00
<?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>
2022-01-31 09:10:49 +01:00
</div>
2022-11-05 09:31:32 +01:00
<?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 } } ?>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col6">
2022-09-11 09:42:42 +02:00
<?php echo template::checkbox('userLoginLongTime', true, $text['core_user_view']['login'][4], [
2022-01-31 09:10:49 +01:00
'checked' => $module::$userLongtime
]); ?>
</div>
<div class="col6 textAlignRight">
2022-09-11 09:42:42 +02:00
<a href="<?php echo helper::baseUrl(); ?>user/forgot/<?php echo $this->getUrl(2); ?>"><?php echo $text['core_user_view']['login'][5]; ?> ?</a>
2022-01-31 09:10:49 +01:00
</div>
</div>
<div class="row">
2022-11-05 09:31:32 +01:00
<div class="col4 offset4">
2022-01-31 09:10:49 +01:00
<?php echo template::button('userLoginBack', [
'href' => helper::baseUrl() . str_replace('_', '/', str_replace('__', '#', $this->getUrl(2))),
'ico' => 'left',
2022-09-11 09:42:42 +02:00
'value' => $text['core_user_view']['login'][2]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
2022-11-05 09:31:32 +01:00
<div class="col4 humanBotClose">
2022-01-31 09:10:49 +01:00
<?php echo template::submit('userLoginSubmit', [
2022-09-11 09:42:42 +02:00
'value' => $text['core_user_view']['login'][3],
2022-01-31 09:10:49 +01:00
'ico' => 'lock'
]); ?>
</div>
</div>
<?php echo template::formClose(); ?>