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
|
<?php include('_init.php');
if (!empty($_SESSION['cmsloginid']) && ($_SESSION['member_login'] || $_SESSION['student_login'])) { header("Location: index.php"); exit; }
?> <!DOCTYPE html> <html lang="en"> <head> <?php include('_head.php'); ?> <script type="text/javascript" src="js/facebook.js"></script> <link href="css/style_k.css?v=<?= time(); ?>" type="text/css" rel="stylesheet"> <style> .form-control-feedback{ left: 0 !important; }
.has-feedback i{ border-bottom: 1px solid #fff !important; } .has-feedback .form-control{ padding-left: 35px; padding-right: 0; background-color: inherit; border: none; border-bottom: 1px solid #555;; box-shadow: none; border-radius: 0; }
.error{ padding-left: 35px; } </style> </head>
<body> <?php include('_header.php') ?>
<?php //include('_dialog.php') ?>
<div class="ProfileContent"> <div class="Profilecontainer"> <div class="row"> <div class="col-md-12 faq"> <h1 class="tc"><?= _lang("Login") ?></h1> <hr>
<form action="_process.php" method="post" enctype="multipart/form-data" role="form" id="LiLoginForm"> <input type="hidden" name="facebook_id" value=""> <input type="hidden" name="action" value="login"> <div class="form-group has-feedback"> <input type="text" name="email" class="form-control" placeholder="電子郵件"> <i class="form-control-feedback glyphicon glyphicon-envelope" style="color:#555;"></i> <div style="color:#F00; display:none;" class="error" id="emailError">請輸入你的電郵</div> <div style="color:#F00; display:none;" class="error" id="emailError2">請檢查電郵格式。</div> <div style="color:#F00; display:none;" class="error" id="loginError1">找不到這個電郵的用戶</div> </div> <div class="form-group has-feedback"> <input type="password" name="password" class="form-control" placeholder="密碼"> <i class="form-control-feedback glyphicon glyphicon-lock" style="color:#555;"></i> <div style="color:#F00; display:none;" class="error" id="lpasswordError">請輸入密碼。</div> <div style="color:#F00; display:none;" class="error" id="lpasswordError2">密碼最少要含有8個字元。</div> <div style="color:#F00; display:none;" class="error" id="loginError2">密碼不正確</div> </div> <button type="button" class="SignUpSubmit" id="LiLoginBtn">登入</button> </form> <div class="ForgotPW" style="margin-top: 10px;"> <a href="forget_password.php">忘記密碼?</a> </div>
<!--<div class="OR">或</div>
<button type="button" class="FBSignIn tc" onclick="statusChangeCallback('login')"> <img src="img/fbSignInIcon.png"> 使用Facebook登入 </button>-->
<div class="tc" style="font-size: 18px; font-weight: bold;"> <br> 未有帳戶? <br> 登記成為 <a href="register.php?type=student">學生</a> 或 <a href="register.php?type=tutor">導師</a> </div>
</div> </div> </div> </div>
<div id="loading"><img src="img/loading_icon.gif" style="width: 100px;"></div>
<? include('_footer.php') ?>
<script type="text/javascript"> $(function () { $("#LiLoginBtn").on("click", function () { //$('#loading').slideDown(100); });
<?php if(!empty($_GET["error"])) { if((int)$_GET["error"] == 1){ echo '$("#loginError1").show();'; }else if((int)$_GET["error"] == 2){ echo '$("#loginError2").show();'; }
}?> }); </script> </body> </html>
|