更新分站注册时跳转总站功能。

需要总站增加按登录跳转时的分站URL注册成功后转回分站登录的功能。
This commit is contained in:
Li Heng 2013-12-26 09:07:29 +00:00
parent 5529995c9c
commit ba94ea7b7f
2 changed files with 25 additions and 5 deletions

View File

@ -39,16 +39,20 @@
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label" for="password">密码</label> <label class="control-label" for="password">&nbsp;&nbsp;&nbsp;</label>
<div class="controls"> <div class="controls">
<input id="password" type="password" value="" name="password" /> <input id="password" type="password" value="" name="password" />
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label" for="captcha">验证码</label>
<div class="controls">
</div> <input id="captcha" type="text" value="" name="captcha" />
<img id="captcha_img" src="<?php echo $this->captcha ?>" style="cursor:pointer" />
<a href="javascript:void(0);" onclick="changecaptcha()">看不清?</a>
</div>
<div class="control-group"> <div class="control-group">
<div class="controls"> <div class="controls">
<input type="hidden" name="submit" value="1" /> <input type="hidden" name="submit" value="1" />
@ -62,3 +66,18 @@
</div> </div>
</form> </form>
</div> </div>
<script>
$('#captcha_img').click(function(e) {
changecaptcha();
});
function changecaptcha(){
$.ajax({
url:"/account/captcha",
data:"<?= time() ?>",
success: function(src){
document.getElementById('captcha_img').src = src;
}
});
}
</script>

View File

@ -38,7 +38,8 @@
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i>后台</a> '; if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i>后台</a> ';
echo '<a href="/data/order"><i class="icon-shopping-cart"></i>数据篮</a> <a href="/account/logout">注销</a>'; echo '<a href="/data/order"><i class="icon-shopping-cart"></i>数据篮</a> <a href="/account/logout">注销</a>';
} else { } else {
echo '<a href="/account/login"><i class="icon-user"></i>登录</a> <a href="/account/register">注册</a>'; # echo $_SERVER['SERVER_NAME'] ;
echo '<a href="/account/login"><i class="icon-user"></i>登录</a> <a href="http://www.sanjiangyuan.org.cn/account/register/">注册</a>';
} ?> } ?>
</p> </p>
</div> </div>