mirror of
				https://e.coding.net/circlecloud/McAccount.git
				synced 2025-11-03 17:56:24 +00:00 
			
		
		
		
	fix MySQL error and fix message.php...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
		@@ -45,7 +45,7 @@ if (empty ( $_SESSION ['username'] ))
 | 
			
		||||
	<!-- navbar -->
 | 
			
		||||
	<div class="navbar navbar-inverse">
 | 
			
		||||
		<div class="navbar-inner">
 | 
			
		||||
			<a class="brand" href="index.php"><img src="img/logo.png" /></a>
 | 
			
		||||
			<a class="brand" href="<?=Url('index' , 'index')?>"><img src="View/public/img/logo.png" /></a>
 | 
			
		||||
			<button type="button" class="btn btn-navbar" data-toggle="collapse"
 | 
			
		||||
				data-target=".nav-collapse">
 | 
			
		||||
				<span class="icon-bar"></span> <span class="icon-bar"></span> <span
 | 
			
		||||
@@ -102,7 +102,7 @@ if (empty ( $_SESSION ['username'] ))
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="field-box">
 | 
			
		||||
						<label>邮箱地址:</label> <input class="span5 inline-input" id="mail"
 | 
			
		||||
							type="text" value="" disabled="disabled" />
 | 
			
		||||
							type="text" value="" disabled="disabled" /><p id="status"></p>
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="field-box">
 | 
			
		||||
						<label>游戏币余额:</label> <input class="span5 inline-input" id="money"
 | 
			
		||||
@@ -123,9 +123,8 @@ if (empty ( $_SESSION ['username'] ))
 | 
			
		||||
	<script type="text/javascript">
 | 
			
		||||
    select();
 | 
			
		||||
    status();
 | 
			
		||||
 | 
			
		||||
    var data = "user=<?=$_SESSION['username']?>";
 | 
			
		||||
    function select(){
 | 
			
		||||
    function select(){
 | 
			
		||||
        $.ajax({
 | 
			
		||||
            type:"GET",
 | 
			
		||||
            dataType:"json",
 | 
			
		||||
@@ -135,7 +134,7 @@ if (empty ( $_SESSION ['username'] ))
 | 
			
		||||
                  $.each(rdata.info,function(index,content)
 | 
			
		||||
                  {
 | 
			
		||||
                      if(rdata.status == "success")
 | 
			
		||||
                      {
 | 
			
		||||
                      {
 | 
			
		||||
                    	 $("#mail").val(content.email);
 | 
			
		||||
                      }
 | 
			
		||||
                  }              
 | 
			
		||||
@@ -144,9 +143,9 @@ if (empty ( $_SESSION ['username'] ))
 | 
			
		||||
                  alert("数据读取失败");
 | 
			
		||||
                  return false;
 | 
			
		||||
               }
 | 
			
		||||
        }); 
 | 
			
		||||
        }); 
 | 
			
		||||
    }
 | 
			
		||||
    function status(){
 | 
			
		||||
    function status(){
 | 
			
		||||
        $.ajax({
 | 
			
		||||
            type:"GET", 
 | 
			
		||||
            dataType:"json",
 | 
			
		||||
@@ -154,7 +153,7 @@ if (empty ( $_SESSION ['username'] ))
 | 
			
		||||
            url:"<?=Url('mail_status', "stat")?>",
 | 
			
		||||
            success:function(data){
 | 
			
		||||
                  $.each(data.info,function(index,content)
 | 
			
		||||
                  {
 | 
			
		||||
                  {
 | 
			
		||||
                     if(content.statu == 0)
 | 
			
		||||
                      {
 | 
			
		||||
                          $("#status").html("邮箱验证状态:尚未验证");
 | 
			
		||||
@@ -166,18 +165,18 @@ if (empty ( $_SESSION ['username'] ))
 | 
			
		||||
            error:function(){
 | 
			
		||||
                alert("邮箱验证状态读取失败");
 | 
			
		||||
                return false;
 | 
			
		||||
               }   
 | 
			
		||||
           })	
 | 
			
		||||
               }
 | 
			
		||||
           })
 | 
			
		||||
        }
 | 
			
		||||
    window.onload = function(){
 | 
			
		||||
    	var html = $('.status').html();
 | 
			
		||||
    	var html = $('#status').html();
 | 
			
		||||
    	//document.write(html);
 | 
			
		||||
    	  if(html.indexOf("尚未验证") !== -1){
 | 
			
		||||
                $('.status').html($('.status').html()+ "  <a href='<?=Url('index', 'mail')?>' onclick='display()'>点击这里进行验证</a>")
 | 
			
		||||
    	  if(html.indexOf("尚未验证") != -1){
 | 
			
		||||
                $('#status').html($('#status').html()+ "  <a href='<?=Url('index', 'mail')?>' onclick='display()'>点击这里进行验证</a>")
 | 
			
		||||
           }
 | 
			
		||||
    }
 | 
			
		||||
    current();
 | 
			
		||||
    function current(){
 | 
			
		||||
    function current(){
 | 
			
		||||
    	 $.ajax({
 | 
			
		||||
    		 type:"GET", 
 | 
			
		||||
    		 dataType:"json", 
 | 
			
		||||
@@ -195,7 +194,7 @@ if (empty ( $_SESSION ['username'] ))
 | 
			
		||||
    		 error:function(){
 | 
			
		||||
    			 alert("尚未查询到此用户的游戏币余额");
 | 
			
		||||
    		   }  
 | 
			
		||||
         })
 | 
			
		||||
         })
 | 
			
		||||
    }
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user