mirror of
https://e.coding.net/circlecloud/MinecraftAccount.git
synced 2025-11-24 21:26:09 +00:00
99
Application/Home/View/Common/Banner.html
Normal file
99
Application/Home/View/Common/Banner.html
Normal file
@@ -0,0 +1,99 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=7;IE=9;IE=10" />
|
||||
<include file="Common:JS_CSS" />
|
||||
<title><block name="PageTitle"></block></title>
|
||||
<block name="Head"></block>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="con">
|
||||
<h1 class="logo">Mc魔方联机</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrap">
|
||||
<div class="banner-show" id="js_ban_content">
|
||||
<div class="cell bns-01">
|
||||
<div class="con"></div>
|
||||
</div>
|
||||
<div class="cell bns-02" style="display: none;">
|
||||
<div class="con"></div>
|
||||
</div>
|
||||
<div class="cell bns-03" style="display: none;">
|
||||
<div class="con"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner-control" id="js_ban_button_box">
|
||||
<a href="javascript:;" class="left">左</a> <a href="javascript:;"
|
||||
class="right">右</a>
|
||||
</div>
|
||||
<block name="Body"></block>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var defaultInd = 0;
|
||||
var list = $('#js_ban_content').children();
|
||||
var count = 0;
|
||||
var change = function(newInd, callback) {
|
||||
if (count)
|
||||
return;
|
||||
count = 2;
|
||||
$(list[defaultInd]).fadeOut(400, function() {
|
||||
count--;
|
||||
if (count <= 0) {
|
||||
if (start.timer)
|
||||
window.clearTimeout(start.timer);
|
||||
callback && callback();
|
||||
}
|
||||
});
|
||||
$(list[newInd]).fadeIn(400, function() {
|
||||
defaultInd = newInd;
|
||||
count--;
|
||||
if (count <= 0) {
|
||||
if (start.timer)
|
||||
window.clearTimeout(start.timer);
|
||||
callback && callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
var next = function(callback) {
|
||||
var newInd = defaultInd + 1;
|
||||
if (newInd >= list.length) {
|
||||
newInd = 0;
|
||||
}
|
||||
change(newInd, callback);
|
||||
}
|
||||
var start = function() {
|
||||
if (start.timer)
|
||||
window.clearTimeout(start.timer);
|
||||
start.timer = window.setTimeout(function() {
|
||||
next(function() {
|
||||
start();
|
||||
});
|
||||
}, 8000);
|
||||
}
|
||||
start();
|
||||
$('#js_ban_button_box').on('click', 'a', function() {
|
||||
var btn = $(this);
|
||||
if (btn.hasClass('right')) {
|
||||
//next
|
||||
next(function() {
|
||||
start();
|
||||
});
|
||||
} else {
|
||||
//prev
|
||||
var newInd = defaultInd - 1;
|
||||
if (newInd < 0) {
|
||||
newInd = list.length - 1;
|
||||
}
|
||||
change(newInd, function() {
|
||||
start();
|
||||
});
|
||||
}
|
||||
return false;
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
5
Application/Home/View/Common/JS_CSS.html
Normal file
5
Application/Home/View/Common/JS_CSS.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<link href="__CSS__/home.css?v=2" rel="stylesheet" type="text/css" />
|
||||
<link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" rel="stylesheet" />
|
||||
<script src="//cdn.bootcss.com/jquery/3.0.0-alpha1/jquery.min.js"></script>
|
||||
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
|
||||
17
Application/Home/View/Common/Master.html
Normal file
17
Application/Home/View/Common/Master.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=7;IE=9;IE=10" />
|
||||
<include file="Common:JS_CSS" />
|
||||
<title><block name="PageTitle"></block></title>
|
||||
<block name="Head"></block>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<div class="con">
|
||||
<h1 class="logo">Mc魔方联机</h1>
|
||||
</div>
|
||||
</div>
|
||||
<block name="Body"></block>
|
||||
</body>
|
||||
</html>
|
||||
75
Application/Home/View/Index/Login.html
Normal file
75
Application/Home/View/Index/Login.html
Normal file
@@ -0,0 +1,75 @@
|
||||
<extend name="Common:Banner" />
|
||||
<block name="PageTitle">魔方 - 我的世界</block>
|
||||
<block name="Body">
|
||||
<div class="container">
|
||||
<div class="register-box">
|
||||
<div class="reg-slogan">
|
||||
<font size="5" face="微软雅黑">用户登录</font>
|
||||
</div>
|
||||
<form class="form-horizontal" action="{:U('User/Login')}" role="form" method="post">
|
||||
<div class="form-group">
|
||||
<label for="username" class="col-sm-offset-1 col-sm-3 control-label">用户名:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" id="username" name="username" placeholder="用户名" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-offset-1 col-sm-3 control-label">密 码:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="password" class="form-control" id="password" name="password" placeholder="密码" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="verify" class="col-sm-offset-1 col-sm-3 control-label">验证码:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" id="verify" name="verify" placeholder="验证码" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="" class="col-sm-offset-1 col-sm-3 control-label"></label>
|
||||
<div class="col-sm-6">
|
||||
<img src="{:U('Common/Verify')}" id="" class="verifyimg reloadverify" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-3 col-sm-7">
|
||||
<button id="submit" type="button" class="btn btn-primary btn-login">登陆</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<p class="check-tips text-danger col-sm-offset-3 col-sm-7"></p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("#submit").click(function() {
|
||||
var user = $("#username").val();
|
||||
var pass = $("#password").val();
|
||||
var verify = $("#verify").val();
|
||||
if (user == "") {
|
||||
alert("用户名不能为空!");
|
||||
return;
|
||||
}
|
||||
if (pass == "") {
|
||||
alert("密码不能为空!");
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
data : {
|
||||
username : user,
|
||||
password : pass,
|
||||
verify : verify
|
||||
},
|
||||
dataType : "json",
|
||||
url : "{:U('User/Login')}",
|
||||
success : function(rdata) {
|
||||
alert(rdata.info);
|
||||
window.location.href = rdata.url;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script> </block>
|
||||
131
Application/Home/View/Index/Register.html
Normal file
131
Application/Home/View/Index/Register.html
Normal file
@@ -0,0 +1,131 @@
|
||||
<extend name="Common:Banner" />
|
||||
<block name="PageTitle">魔方 - 我的世界</block>
|
||||
<block name="Body">
|
||||
<div class="container">
|
||||
<div class="register-box">
|
||||
<div class="reg-slogan">
|
||||
<font size="5" face="微软雅黑">用户登录</font>
|
||||
</div>
|
||||
<form class="form-horizontal" action="{:U('login','','')}" role="form" method="post">
|
||||
<div class="form-group">
|
||||
<label for="username" class="col-sm-offset-1 col-sm-3 control-label">用户名:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" id="username" name="username" placeholder="用户名" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-offset-1 col-sm-3 control-label">密 码:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="password" class="form-control" id="password" name="password" placeholder="密码" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="checkpassword" class="col-sm-offset-1 col-sm-3 control-label">重复密码:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" id="checkpassword" name="checkpassword" placeholder="重复密码" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="verify" class="col-sm-offset-1 col-sm-3 control-label">邮 箱:</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" id="verify" name="verify" placeholder="邮箱" required />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-3 col-sm-7">
|
||||
<button id="submit" type="button" class="btn btn-primary btn-register">注册</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<p class="check-tips text-danger col-sm-offset-3 col-sm-7"></p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$("#register").click(function() {
|
||||
var RegexEmail = /^(?:\w+\.?)*\w+@(?:\w+\.)*\w+$/;
|
||||
var RegexUserName = /^[a-zA-Z0-9_?]*$/;
|
||||
var username = $("#username");
|
||||
var password = $("#password");
|
||||
var email = $("#email");
|
||||
if (username.val() == "") {
|
||||
alert("用户名不能为空!");
|
||||
return false
|
||||
}
|
||||
if (username.val().length < 3 || username.val().length > 16) {
|
||||
alert("帐号长度不得低于3位或大于16位!");
|
||||
return
|
||||
}
|
||||
if (!RegexUserName.test(username.val())) {
|
||||
alert("帐号必须以小写字母+数字+下划线组成!");
|
||||
return
|
||||
}
|
||||
if (pass.val() == "") {
|
||||
alert("密码不能为空!");
|
||||
return false
|
||||
}
|
||||
if (pass.val().length < 6) {
|
||||
alert("密码强度不能低于6位!");
|
||||
return false
|
||||
}
|
||||
if (email.val() == "") {
|
||||
alert("邮箱不能为空!");
|
||||
return false
|
||||
}
|
||||
if (!RegexEmail.test(email.val())) {
|
||||
alert("邮箱格式不正确!");
|
||||
$('#email').val("");
|
||||
return false
|
||||
}
|
||||
$.ajax({
|
||||
url: "{:U('User/Check')}",
|
||||
type: "GET",
|
||||
data: {
|
||||
user: username.val()
|
||||
},
|
||||
dataType: "json",
|
||||
success: function(rdata) {
|
||||
switch (rdata.status) {
|
||||
case 1:
|
||||
$.ajax({
|
||||
url: "{:U('Mail/Check')}",
|
||||
type: "GET",
|
||||
data: {
|
||||
mail: email.val()
|
||||
},
|
||||
dataType: "json",
|
||||
success: function(s) {
|
||||
switch (s.status) {
|
||||
case 1:
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
data: {
|
||||
user: username.val(),
|
||||
pass: pass.val(),
|
||||
mail: email.val()
|
||||
},
|
||||
dataType: "json",
|
||||
url: "<?=Url('user_public','register')?>",
|
||||
success: function(C) {
|
||||
alert(C.info);
|
||||
location.href = "<?=Url('index','index')?>"
|
||||
}
|
||||
}) break;
|
||||
case 0:
|
||||
alert(s.info);
|
||||
return false
|
||||
}
|
||||
}
|
||||
}) break;
|
||||
case 0:
|
||||
alert(rdata.info);
|
||||
return false
|
||||
}
|
||||
},
|
||||
error: function() {
|
||||
alert("注册失败 请检查网络是否通畅!")
|
||||
}
|
||||
})
|
||||
})
|
||||
</script></block>
|
||||
@@ -0,0 +1,195 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>魔客吧整理jquery实现115网盘首页登录+注册+通栏banner广告js特效代码 魔客吧 - www.moke8.com</title>
|
||||
<meta name="title" content="jquery实现115网盘首页登录+注册+通栏banner广告js特效代码" />
|
||||
|
||||
<meta name="keywords" content="jquery实现115网盘首页登录+注册+通栏banner广告js特效代码" />
|
||||
<meta name="description" content="jquery实现115网盘首页登录+注册+通栏banner广告js特效代码" />
|
||||
<meta charset="UTF-8">
|
||||
|
||||
|
||||
<link href="css/home.css?v=2" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<div class="header">
|
||||
<div class="con">
|
||||
<h1 class="logo">Mc魔方联机</h1>
|
||||
<div class="top-login">
|
||||
<div id="js-login_box" style="">
|
||||
<form action="" id="js-login_form" method="post">
|
||||
<div class="cell">
|
||||
<label for="js-account">帐号</label>
|
||||
<input type="text" name="account" id="js-account" tabindex="1" class="text" value="" />
|
||||
</div>
|
||||
<div class="cell">
|
||||
<label for="js-passwd">密码</label>
|
||||
<input type="password" name="passwd" id="js-passwd" class="text" tabindex="2" />
|
||||
<b class="icon-form ifm-secure" >安全提示</b>
|
||||
</div>
|
||||
<button type="button" class="button" id="js-submit" tabindex="3">登录</button>
|
||||
<div class="bottom">
|
||||
|
||||
|
||||
<a href="###" id="js-forgot_passwd" tabindex="6">忘记密码?</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrap">
|
||||
<div class="banner-show" id="js_ban_content">
|
||||
<div class="cell bns-01">
|
||||
<div class="con"></div>
|
||||
</div>
|
||||
<div class="cell bns-02" style="display:none;">
|
||||
<div class="con">
|
||||
<a href="http://www.mfcraft.cn" target="_blank" class="banner-link"><i>1</i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cell bns-03" style="display:none;">
|
||||
<div class="con">
|
||||
<a href="http://www.mfcraft.cn" target="_blank" class="banner-link"><i>2</i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="banner-control" id="js_ban_button_box">
|
||||
<a href="javascript:;" class="left">左</a>
|
||||
<a href="javascript:;" class="right">右</a>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
;(function(){
|
||||
|
||||
var defaultInd = 0;
|
||||
var list = $('#js_ban_content').children();
|
||||
var count = 0;
|
||||
var change = function(newInd, callback){
|
||||
if(count) return;
|
||||
count = 2;
|
||||
$(list[defaultInd]).fadeOut(400, function(){
|
||||
count--;
|
||||
if(count <= 0){
|
||||
if(start.timer) window.clearTimeout(start.timer);
|
||||
callback && callback();
|
||||
}
|
||||
});
|
||||
$(list[newInd]).fadeIn(400, function(){
|
||||
defaultInd = newInd;
|
||||
count--;
|
||||
if(count <= 0){
|
||||
if(start.timer) window.clearTimeout(start.timer);
|
||||
callback && callback();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var next = function(callback){
|
||||
var newInd = defaultInd + 1;
|
||||
if(newInd >= list.length){
|
||||
newInd = 0;
|
||||
}
|
||||
change(newInd, callback);
|
||||
}
|
||||
|
||||
var start = function(){
|
||||
if(start.timer) window.clearTimeout(start.timer);
|
||||
start.timer = window.setTimeout(function(){
|
||||
next(function(){
|
||||
start();
|
||||
});
|
||||
}, 8000);
|
||||
}
|
||||
|
||||
start();
|
||||
|
||||
$('#js_ban_button_box').on('click', 'a', function(){
|
||||
var btn = $(this);
|
||||
if(btn.hasClass('right')){
|
||||
//next
|
||||
next(function(){
|
||||
start();
|
||||
});
|
||||
}
|
||||
else{
|
||||
//prev
|
||||
var newInd = defaultInd - 1;
|
||||
if(newInd < 0){
|
||||
newInd = list.length - 1;
|
||||
}
|
||||
change(newInd, function(){
|
||||
start();
|
||||
});
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
})();
|
||||
</script>
|
||||
<div class="container">
|
||||
|
||||
<div class="register-box">
|
||||
<div class="reg-slogan"> <font size="5" face="微软雅黑" >用户登录</font> </div>
|
||||
<div class="reg-form" id="js-form-mobile"><br>
|
||||
<div class="cell">
|
||||
|
||||
<input type="text" name="mobile" id="js-mobile_ipt" class="text" maxlength="11" placeholder="请输入账号" />
|
||||
</div>
|
||||
<div class="cell">
|
||||
|
||||
<input type="password" name="passwd" id="js-mobile_pwd_ipt" class="text" placeholder="您的密码"/>
|
||||
<input type="text" name="passwd" id="js-mobile_pwd_ipt_txt" class="text" maxlength="20" style="display:none;" />
|
||||
</div>
|
||||
<div class="cell">
|
||||
<label for="js-mobile_ipt">请输入账号</label>
|
||||
<input type="text" name="mobile" id="js-mobile_ipt" class="text" maxlength="11" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="bottom"><a id="js-mail_btn" href="javascript:;" class="button btn-green">立即注册</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div class="con">
|
||||
|
||||
<div class="copy-right">
|
||||
<div class="cell">
|
||||
|
||||
<div style="width:960px;margin:10px auto; clear:both; text-align:center; ">
|
||||
<script src="/statics/js/ad/96090.js" type="text/javascript"></script>
|
||||
</div>
|
||||
<div style="width:960px;margin:20px auto 100px auto; clear:both; text-align:center; font-size:12px; line-height:25px; ">
|
||||
<p> </p>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user