-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager_acc_kh.php
192 lines (184 loc) · 6.83 KB
/
manager_acc_kh.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html>
<head>
<title>Đăng nhập</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description"
content="Expand, contract, animate forms with jQuery wihtout leaving the page" />
<meta name="keywords"
content="expand, form, css3, jquery, animate, width, height, adapt, unobtrusive javascript" />
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/style_allhdft.css" />
<link rel="stylesheet" type="text/css" href="css/social.css" />
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js"><\/script>');</script>
</head>
<body>
<div class="wrap">
<!-- <div class="logo_lg">
<a href="index.php"><img src="images/logo1.png" alt="" /></a>
</div> -->
<?php include 'modules/header_top.php'; ?>
<div class="content">
<div id="form_wrapper" class="form_wrapper">
<form class="register" action="modules/xuly.php?ac=register"
method="post">
<h3>Đăng ký</h3>
<div class="column">
<div>
<label>Họ Tên:</label> <input type="text" name="name"
required="required" /> <span class="error">This is an error</span>
</div>
<div>
<label>Email:</label> <input type="email" name="email"
required="required" /> <span class="error">This is an error</span>
</div>
<div>
<label>Địa Chỉ:</label> <input type="text" name="address"
required="required" /> <span class="error">This is an error</span>
</div>
</div>
<div class="column">
<div>
<label>Tên đăng nhập:</label> <input type="text" name="username"
required="required" /> <span class="error">This is an error</span>
</div>
<div>
<label>Mật khẩu:</label> <input type="password" name="password"
required="required" /> <span class="error">This is an error</span>
</div>
<div>
<label>Số ĐT:</label> <input type="text" name="phone" id="phone"
pattern="^[0-9]\d{2}\d{3}\d{4}$" required /> <span class="error">This
is an error</span>
</div>
</div>
<div class="bottom">
<input type="submit" value="Đăng ký" /> <a href="#" rel="login"
class="linkform">Bạn đã có tài khoản? Đăng nhập tại đây</a>
<div class="clear"></div>
</div>
</form>
<form class="login" action="modules/xuly.php?ac=login" method="post">
<h3>Đăng nhập</h3>
<div>
<label>Tên đăng nhập:</label> <input type="text" name="username"
required="required" /> <span class="error">This is an error</span>
</div>
<div>
<label>Mật khẩu: <a href="#" rel="forgot_password"
class="forgot linkform">Bận quên mật khẩu?</a></label> <input
type="password" name="password" required="required" /> <span
class="error">This is an error</span>
</div>
<div class="bottom">
<div class="remember">
<input type="checkbox" /><span>Duy trì đăng nhập</span>
</div>
<input type="submit" value="Đăng nhập"></input> <a href="#"
rel="register" class="linkform">Bạn chưa có tài khoản? Đăng ký
tại đây</a>
<div class="clear"></div>
</div>
</form>
<form class="forgot_password">
<h3>Bạn quên mật khẩu?</h3>
<div>
<label>Tên đăng nhập hoặc Email:</label> <input type="text" /> <span
class="error">This is an error</span>
</div>
<div class="bottom">
<input type="submit" value="Gửi yêu cầu"></input> <a href="#"
rel="login" class="linkform">Bạn đã là thành viên? Đăng nhập tại
đây</a> <a href="#" rel="register" class="linkform">Bạn chưa đăng
ký tài khoản? Đăng ký</a>
<div class="clear"></div>
</div>
</form>
</div>
<div class="clear"></div>
</div>
</div>
<!-- The JavaScript -->
<script type="text/javascript">
$(function() {
<?php
if (isset ( $_GET ['ac'] )) {
switch ($_GET ['ac']) {
case "register" :
echo "
$('.register').addClass('active');
$('.login').removeClass('active');
$('.forgot_password').removeClass('active');";
break;
case "login" :
echo "
$('.login').addClass('active');
$('.register').removeClass('active');
$('.forgot_password').removeClass('active');";
break;
default :
break;
}
}
?>
//the form wrapper (includes all forms)
var $form_wrapper = $('#form_wrapper'),
//the current form is the one with class active
$currentForm = $form_wrapper.children('form.active'),
//the change form links
$linkform = $form_wrapper.find('.linkform');
$form_wrapper.children('form').each(function(i){
var $theForm = $(this);
if(!$theForm.hasClass('active'))
$theForm.hide();
$theForm.data({
width : $theForm.width(),
height : $theForm.height()
});
});
setWrapperWidth();
$linkform.bind('click',function(e){
var $link = $(this);
var target = $link.attr('rel');
$currentForm.fadeOut(400,function(){
//remove class active from current form
$currentForm.removeClass('active');
//new current form
$currentForm= $form_wrapper.children('form.'+target);
//animate the wrapper
$form_wrapper.stop()
.animate({
width : $currentForm.data('width') + 'px',
height : $currentForm.data('height') + 'px'
},500,function(){
//new form gets class active
$currentForm.addClass('active');
//show the new form
$currentForm.fadeIn(400);
});
});
// e.preventDefault();
});
function setWrapperWidth(){
$form_wrapper.css({
width : $currentForm.data('width') + 'px',
height : $currentForm.data('height') + 'px'
});
}
/* $form_wrapper.find('input[type="submit"]')
.click(function(e){
e.preventDefault();
}); */
});
</script>
<div class="clear"></div>
<ul id="social_side_links">
<li class="social-popout"><a href="http://facebook.com" target="_blank"><img src="images/social/facebook.png" alt="" /></a></li>
<li class="social-popout"><a href="http://skype.com" target="_blank"><img src="images/social/skype.png" alt="" /></a></li>
<li class="social-popout"><a href="http://yahoo.com" target="_blank"><img src="images/social/yahoo.png" alt="" /></a></li>
</ul>
<?php include 'modules/footer.php'; ?>
</body>
</html>