* adjust login for mobile.

This commit is contained in:
wangyidong
2013-07-03 08:06:05 +00:00
parent 331e0f9b04
commit c24ba92c5d
2 changed files with 20 additions and 6 deletions

View File

@@ -17,16 +17,16 @@ include '../../common/view/m.header.lite.html.php';
<form method='post' target='hiddenwin'>
<table align='center'>
<tr>
<td class='rowhead'><?php echo $lang->user->account;?></td>
<td><input type='text' name='account' id='account' /></td>
<td><input type='text' name='account' id='account' placeholder='<?php echo $lang->user->account?>' /></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->user->password;?></td>
<td><input type='password' name='password' /></td>
<td><input type='password' name='password' placeholder='<?php echo $lang->user->password?>' /></td>
</tr>
<tr><td></td><td id='keeplogin'><?php echo html::checkBox('keepLogin', $lang->user->keepLogin, $keepLogin);?></td></tr>
<tr>
<td colspan='2' align='center'>
<td><?php echo html::select('lang', $config->langs, $this->app->getClientLang(), 'class=select-2 onchange=selectLang(this.value)');?></td>
</tr>
<tr>
<td align='center'>
<?php
echo html::submitButton($lang->login, "data-inline='true' data-theme='b'");
if($app->company->guest) echo html::linkButton($lang->user->asGuest, $this->createLink($config->default->module), '', "data-inline='true'");

View File

@@ -231,6 +231,20 @@ function setLoadingIcon()
});
}
/**
* Remove anchor from the url.
*
* @param string $url
* @access public
* @return string
*/
function removeAnchor(url)
{
pos = url.indexOf('#');
if(pos > 0) return url.substring(0, pos);
return url;
}
/* Ping the server every some minutes to keep the session. */
needPing = true;