mirror of
https://e.coding.net/circlecloud/McAccount.git
synced 2025-09-06 07:37:40 +00:00
@ -72,11 +72,7 @@ if (empty ( $_SESSION ['username'] ))
|
||||
type="text" value="" disabled="disabled" /> <span id="status"></span>
|
||||
</div>
|
||||
<div class="field-box">
|
||||
<label>游戏币余额:</label> <input class="span3 inline-input"
|
||||
id="money" type="text" value="" disabled="disabled" />
|
||||
</div>
|
||||
<div class="field-box">
|
||||
<label>服务器信息:</label> 在线人数: <span id="now" ></span>/<span id="max" ></span>
|
||||
<label>服务器信息:</label> 在线人数: <span id="now"></span>/<span id="max"></span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -93,7 +89,6 @@ if (empty ( $_SESSION ['username'] ))
|
||||
<script type="text/javascript">
|
||||
select();
|
||||
status();
|
||||
current();
|
||||
getinfo();
|
||||
var data = "user=<?=$_SESSION['username']?>";
|
||||
function select(){
|
||||
@ -123,45 +118,22 @@ if (empty ( $_SESSION ['username'] ))
|
||||
dataType:"json",
|
||||
data:data,
|
||||
url:"<?=Url('mail_status', "stat")?>",
|
||||
success:function(data){
|
||||
$.each(data.info,function(index,content)
|
||||
{
|
||||
if(content.statu == 0)
|
||||
{
|
||||
$("#status").html("邮箱验证状态:尚未验证");
|
||||
$("#status").css("color", "red");
|
||||
}else{
|
||||
$('#status').html("邮箱验证状态:已验证");
|
||||
$("#status").css("color", "green");
|
||||
}
|
||||
})
|
||||
success:function(data){
|
||||
if(data.status == "success")
|
||||
{
|
||||
$("#status").html("邮箱验证状态:尚未验证 <a href='<?=Url('index', 'mail')?>' onclick='display()'>点击进行验证</a>");
|
||||
$("#status").css("color", "red");
|
||||
}else{
|
||||
$('#status').html("邮箱验证状态:已验证");
|
||||
$("#status").css("color", "green");
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
alert("邮箱验证状态读取失败");
|
||||
return false;
|
||||
}
|
||||
})
|
||||
}
|
||||
window.onload = function(){
|
||||
var html = $('#status').html();
|
||||
if(html.indexOf("尚未验证") != -1){
|
||||
$('#status').html($('#status').html()+ " <a href='<?=Url('index', 'mail')?>' onclick='display()'>点击这里进行验证</a>")
|
||||
}
|
||||
}
|
||||
function current(){
|
||||
$.ajax({
|
||||
type:"GET",
|
||||
dataType:"json",
|
||||
data:{user:"<?=$_SESSION['username']?>"},
|
||||
url:"<?=Url('user_current' , 'current')?>",
|
||||
success:function(rdata){
|
||||
$("#money").val( rdata.info );
|
||||
},
|
||||
error:function(){
|
||||
alert("尚未查询到此用户的游戏币余额");
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
function getinfo(){
|
||||
$.ajax({
|
||||
type:"GET",
|
||||
|
Reference in New Issue
Block a user