1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2024-11-16 00:48:57 +00:00

update...

This commit is contained in:
502647092 2015-10-29 20:52:38 +08:00
parent dc534f0e8f
commit 67ec2a329a

View File

@ -75,7 +75,7 @@ if (empty ( $_SESSION ['username'] ))
<td class="description"><input style="width: 250px;"
class="span8 inline-input" id="mail" type="text" disabled="disabled"/></td>
<td><button style="width: 90px;" id="submit" type="button"
class="btn-glow primary btn-next">发送验证码</button></td>
class="btn-glow primary btn-next" disabled="disabled">发送验证码</button></td>
</tr>
<!-- row -->
<tr>
@ -111,7 +111,31 @@ if (empty ( $_SESSION ['username'] ))
<script src="View/public/js/jquery.uniform.min.js"></script>
<script src="View/public/js/select2.min.js"></script>
<script src="View/public/js/theme.js"></script>
<script type="text/javascript">
<script type="text/javascript">
var data = "user=<?=$_SESSION['username']?>";
function select(){
$.ajax({
type:"GET",
dataType:"json",
data:data,
url:"<?=Url('mail_status', "select")?>",
success:function(rdata){
$.each(rdata.info,function(index,content)
{
if(rdata.status == "success")
{
$("#mail").val(content.email);
$("#submit").attr();
}
}
)},
error:function(){
alert("数据读取失败");
return false;
}
});
}
$(document).ready(function(){
$("#submit").click(function(){
var mail = $("#mail").val();