Files
joomla_test/administrator/modules/mod_login/tmpl/default.php

84 lines
3.5 KiB
PHP
Raw Normal View History

2020-01-02 22:20:31 +07:00
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_login
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
JHtml::_('bootstrap.tooltip');
JHtml::_('formbehavior.chosen');
$document = JFactory::getDocument();
$mainDirection = $document->direction == 'rtl' ? 'right' : 'left';
$altDirection = $document->direction == 'rtl' ? 'left' : 'right';
?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="form-login" class="form-inline">
<fieldset class="loginform">
<div class="control-group">
<div class="controls">
<div class="input-prepend input-append">
<span class="add-on">
<i class="icon-user hasTooltip" data-placement="<?php echo $mainDirection; ?>" title="<?php echo JText::_('JGLOBAL_USERNAME'); ?>"></i>
<label for="mod-login-username" class="element-invisible">
<?php echo JText::_('JGLOBAL_USERNAME'); ?>
</label>
</span>
<input name="username" tabindex="1" id="mod-login-username" type="text" class="input-medium" placeholder="<?php echo JText::_('JGLOBAL_USERNAME'); ?>" size="15"/>
<a href="<?php echo JUri::root(); ?>index.php?option=com_users&view=remind" class="btn width-auto hasTooltip" data-placement="<?php echo $altDirection; ?>" title="<?php echo JText::_('MOD_LOGIN_REMIND'); ?>">
<i class="icon-help" title="<?php echo JText::_('MOD_LOGIN_REMIND'); ?>"></i>
</a>
</div>
</div>
</div>
<div class="control-group">
<div class="controls">
<div class="input-prepend input-append">
<span class="add-on">
<i class="icon-lock hasTooltip" data-placement="<?php echo $mainDirection; ?>" title="<?php echo JText::_('JGLOBAL_PASSWORD'); ?>"></i>
<label for="mod-login-password" class="element-invisible">
<?php echo JText::_('JGLOBAL_PASSWORD'); ?>
</label>
</span>
<input name="passwd" tabindex="2" id="mod-login-password" type="password" class="input-medium" placeholder="<?php echo JText::_('JGLOBAL_PASSWORD'); ?>" size="15"/>
<a href="<?php echo JUri::root(); ?>index.php?option=com_users&view=reset" class="btn width-auto hasTooltip" data-placement="<?php echo $altDirection; ?>" title="<?php echo JText::_('MOD_LOGIN_RESET'); ?>">
<i class="icon-help" title="<?php echo JText::_('MOD_LOGIN_RESET'); ?>"></i>
</a>
</div>
</div>
</div>
<?php if (!empty($langs)) : ?>
<div class="control-group">
<div class="controls">
<div class="input-prepend">
<span class="add-on">
<i class="icon-comment hasTooltip" data-placement="<?php echo $mainDirection; ?>" class="hasTooltip" title="<?php echo JHtml::tooltipText('MOD_LOGIN_LANGUAGE'); ?>"></i>
<label for="lang" class="element-invisible">
<?php echo JText::_('MOD_LOGIN_LANGUAGE'); ?>
</label>
</span>
<?php echo $langs; ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="control-group">
<div class="controls">
<div class="btn-group pull-left">
<button tabindex="3" class="btn btn-primary btn-large">
<i class="icon-lock icon-white"></i> <?php echo JText::_('MOD_LOGIN_LOGIN'); ?>
</button>
</div>
</div>
</div>
<input type="hidden" name="option" value="com_login"/>
<input type="hidden" name="task" value="login"/>
<input type="hidden" name="return" value="<?php echo $return; ?>"/>
<?php echo JHtml::_('form.token'); ?>
</fieldset>
</form>