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

53 lines
1.7 KiB
PHP

<?php echo template::formOpen('userLoginForm');
// Lexique
include('./core/module/user/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_user.php');
?>
<div class="row">
<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'])): ?>
<div class="row">
<div class="col12 textAlignCenter">
<?php echo template::captcha('userLoginCaptcha', [
'limit' => $this->getData(['config','connect', 'captchaStrong']),
'type' => $this->getData(['config','connect', 'captchaType'])
]); ?>
</div>
</div>
<?php endif;?>
<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="col3 offset6">
<?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="col3">
<?php echo template::submit('userLoginSubmit', [
'value' => $text['core_user_view']['login'][3],
'ico' => 'lock'
]); ?>
</div>
</div>
<?php echo template::formClose(); ?>