forked from Wavyzz/dolibarr
Merge branch 'develop' of https://github.com/Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -89,17 +89,17 @@ $(document).ready(function () {
|
||||
<table class="left centpercent" summary="Login pass">
|
||||
<!-- Login -->
|
||||
<tr>
|
||||
<td valign="middle" class="nowrap">
|
||||
<td valign="middle" class="nowrap center">
|
||||
<span class="span-icon-user">
|
||||
<input type="text" id="username" placeholder="<?php echo $langs->trans("Login"); ?>" name="username" class="flat input-icon-user" size="15" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" autofocus="autofocus" />
|
||||
<input type="text" id="username" placeholder="<?php echo $langs->trans("Login"); ?>" name="username" class="flat input-icon-user" size="20" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" autofocus="autofocus" />
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Password -->
|
||||
<tr>
|
||||
<td valign="middle" class="nowrap">
|
||||
<td valign="middle" class="nowrap center">
|
||||
<span class="span-icon-password">
|
||||
<input id="password" placeholder="<?php echo $langs->trans("Password"); ?>" name="password" class="flat input-icon-password" type="password" size="15" value="<?php echo dol_escape_htmltag($password); ?>" tabindex="2" autocomplete="off" />
|
||||
<input id="password" placeholder="<?php echo $langs->trans("Password"); ?>" name="password" class="flat input-icon-password" type="password" size="20" value="<?php echo dol_escape_htmltag($password); ?>" tabindex="2" autocomplete="off" />
|
||||
</span>
|
||||
</td></tr>
|
||||
<?php
|
||||
@@ -115,20 +115,24 @@ if (! empty($hookmanager->resArray['options'])) {
|
||||
?>
|
||||
<?php
|
||||
if ($captcha) {
|
||||
// TODO: provide accessible captha variants
|
||||
// Add a variable param to force not using cache (jmobile)
|
||||
$php_self = preg_replace('/[&\?]time=(\d+)/','',$php_self); // Remove param time
|
||||
if (preg_match('/\?/',$php_self)) $php_self.='&time='.dol_print_date(dol_now(),'dayhourlog');
|
||||
else $php_self.='?time='.dol_print_date(dol_now(),'dayhourlog');
|
||||
// TODO: provide accessible captcha variants
|
||||
?>
|
||||
<!-- Captcha -->
|
||||
<tr>
|
||||
<td valign="top" class="nowrap none" align="left">
|
||||
<td valign="top" class="nowrap none center">
|
||||
|
||||
<table class="login_table_securitycode" style="width: 100px;"><tr>
|
||||
<table class="login_table_securitycode"><tr>
|
||||
<td>
|
||||
<span class="span-icon-security">
|
||||
<input id="securitycode" placeholder="<?php echo $langs->trans("SecurityCode"); ?>" class="flat input-icon-security" type="text" size="12" maxlength="5" name="code" tabindex="3" />
|
||||
</span>
|
||||
</td>
|
||||
<td><img src="<?php echo DOL_URL_ROOT ?>/core/antispamimage.php" border="0" width="80" height="32" id="img_securitycode" /></td>
|
||||
<td><a href="<?php echo $php_self; ?>" tabindex="4"><?php echo $captcha_refresh; ?></a></td>
|
||||
<td><a href="<?php echo $php_self; ?>" tabindex="4" data-role="button"><?php echo $captcha_refresh; ?></a></td>
|
||||
</tr></table>
|
||||
|
||||
</td></tr>
|
||||
@@ -158,7 +162,7 @@ if ($forgetpasslink || $helpcenterlink)
|
||||
if ($dol_use_jmobile) $moreparam.=(strpos($moreparam,'?')===false?'?':'&').'dol_use_jmobile='.$dol_use_jmobile;
|
||||
|
||||
echo '<br>';
|
||||
echo '<div align="center" style="margin-top: 4px;">';
|
||||
echo '<div align="center" style="margin-top: 8px;">';
|
||||
if ($forgetpasslink) {
|
||||
echo '<a class="alogin" href="'.DOL_URL_ROOT.'/user/passwordforgotten.php'.$moreparam.'">(';
|
||||
echo $langs->trans('PasswordForgotten');
|
||||
|
||||
@@ -71,13 +71,13 @@ $(document).ready(function () {
|
||||
|
||||
<div id="login_right">
|
||||
|
||||
<table class="left" summary="Login pass">
|
||||
<table summary="Login pass" class="centpercent">
|
||||
|
||||
<!-- Login -->
|
||||
<tr>
|
||||
<td valign="bottom" class="nowrap">
|
||||
<td valign="bottom" class="nowrap center">
|
||||
<span class="span-icon-user">
|
||||
<input type="text" placeholder="<?php echo $langs->trans("Login"); ?>" <?php echo $disabled; ?> id="username" name="username" class="flat input-icon-user" size="15" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" />
|
||||
<input type="text" placeholder="<?php echo $langs->trans("Login"); ?>" <?php echo $disabled; ?> id="username" name="username" class="flat input-icon-user" size="20" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" />
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -94,19 +94,24 @@ if (! empty($hookmanager->resArray['options'])) {
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ($captcha) { ?>
|
||||
<?php if ($captcha) {
|
||||
// Add a variable param to force not using cache (jmobile)
|
||||
$php_self = preg_replace('/[&\?]time=(\d+)/','',$php_self); // Remove param time
|
||||
if (preg_match('/\?/',$php_self)) $php_self.='&time='.dol_print_date(dol_now(),'dayhourlog');
|
||||
else $php_self.='?time='.dol_print_date(dol_now(),'dayhourlog');
|
||||
?>
|
||||
<!-- Captcha -->
|
||||
<tr>
|
||||
<td valign="top" class="nowrap none" align="left">
|
||||
<td valign="top" class="nowrap none center">
|
||||
|
||||
<table class="login_table_securitycode" style="width: 100px;"><tr>
|
||||
<table class="login_table_securitycode centpercent"><tr>
|
||||
<td>
|
||||
<span class="span-icon-security">
|
||||
<input id="securitycode" placeholder="<?php echo $langs->trans("SecurityCode"); ?>" class="flat input-icon-security" type="text" size="12" maxlength="5" name="code" tabindex="3" />
|
||||
</span>
|
||||
</td>
|
||||
<td><img src="<?php echo DOL_URL_ROOT ?>/core/antispamimage.php" border="0" width="80" height="32" id="img_securitycode" /></td>
|
||||
<td><a href="<?php echo $php_self; ?>" tabindex="4"><?php echo $captcha_refresh; ?></a></td>
|
||||
<td><a href="<?php echo $php_self; ?>" tabindex="4" data-role="button"><?php echo $captcha_refresh; ?></a></td>
|
||||
</tr></table>
|
||||
|
||||
</td></tr>
|
||||
@@ -127,7 +132,7 @@ if (! empty($hookmanager->resArray['options'])) {
|
||||
<br><input id="password" type="submit" <?php echo $disabled; ?> class="button" name="password" value="<?php echo $langs->trans('SendNewPassword'); ?>" tabindex="4" />
|
||||
|
||||
<br>
|
||||
<div align="center" style="margin-top: 4px;">
|
||||
<div align="center" style="margin-top: 8px;">
|
||||
<?php
|
||||
$moreparam='';
|
||||
if (! empty($conf->dol_hide_topmenu)) $moreparam.=(strpos($moreparam,'?')===false?'?':'&').'dol_hide_topmenu='.$conf->dol_hide_topmenu;
|
||||
|
||||
@@ -854,7 +854,7 @@ form#login {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.login_table_title {
|
||||
max-width: 560px;
|
||||
max-width: 530px;
|
||||
color: #888888;
|
||||
text-shadow: 1px 1px 1px #FFF;
|
||||
}
|
||||
@@ -866,7 +866,7 @@ form#login {
|
||||
margin-right: 10px;
|
||||
padding-left:6px;
|
||||
padding-right:6px;
|
||||
padding-top:12px;
|
||||
padding-top:16px;
|
||||
padding-bottom:12px;
|
||||
max-width: 560px;
|
||||
|
||||
@@ -978,10 +978,11 @@ img.login, img.printer, img.entity {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/lock.png',1); ?>);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
/*
|
||||
.span-icon-user input, .span-icon-password input {
|
||||
margin-right: 30px;
|
||||
width: 98%;
|
||||
}
|
||||
*/
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Menu gauche */
|
||||
|
||||
Reference in New Issue
Block a user