* adjust the logic of mobile access.

This commit is contained in:
wyd621
2013-11-01 03:36:55 +00:00
parent 2c65fffa9d
commit 2158f025fc
6 changed files with 23 additions and 8 deletions
+2
View File
@@ -702,6 +702,8 @@ class user extends control
$this->view->demoUsers = $demoUsers;
}
$this->app->loadLang('misc');
$this->view->noGDLib = sprintf($this->lang->misc->noGDLib, common::getSysURL() . $this->config->webRoot);
$this->view->title = $this->lang->user->login;
$this->view->referer = $this->referer;
$this->view->s = zget($this->config->global, 'sn');
+1 -1
View File
@@ -54,7 +54,7 @@ $lang->user->update = "Upgrade";
$lang->user->delete = "Delete";
$lang->user->browse = "Browse";
$lang->user->login = "Login";
$lang->user->mobileLogin = "Mobile Login";
$lang->user->mobileLogin = "Mobile";
$lang->user->userView = "User view";
$lang->user->editProfile = "Edit profile";
$lang->user->editPassword = "Change password";
+7 -1
View File
@@ -25,7 +25,13 @@ include '../../common/view/header.lite.html.php';
</ul>
<div class="droppanel" id="qrcode">
<h4><i class="icon-mobile-phone icon-large"></i> <?php echo $lang->user->mobileLogin ?></h4>
<img src="<?php commonModel::getQRCodeLink(); ?>" alt="">
<?php if(extension_loaded('gd')):?>
<img src='<?php echo $this->createLink('misc', 'qrcode');?>' />
<?php else:?>
<table width='300' class='mt-10px bd-none'>
<tr><td><?php echo $noGDLib;?></td></tr>
</table>
<?php endif;?>
</div>
</div>
</div>