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
|
<?php require_once 'config.php';
// Is the user already logged in? Redirect him/her to the private page
if (isSet($_SESSION['loginname']) && ($loggin == '1')) { header("Location: index.php"); exit; }
require_once 'function_login_block.php'; die_if_login_block();
if (isSet($_POST['submit'])) { $do_login = true;
include_once 'do_login.php'; }
?> <!DOCTYPE html> <html> <head> <?php require_once "_html_head.php"; ?> </head> <body class="hold-transition login-page"> <div class="login-box"> <div class="login-logo"> </div><!-- /.login-logo --> <div class="login-box-body"> <p class="text-center h2"> <?= SiteInfo::first()->companyname_en ?> </p>
<div class="thumbnail hidden"> <!--<img alt="" src="images/_logo.jpg" width="435" height="150">--> </div>
<p class="login-box-msg"> <?php if (isSet($login_error)) { ?> <?= _lang("The submitted login info is incorrect.") ?> <?php } else { ?> Sign in to start your session <?php } ?> </p>
<form action="login.php" method="POST"> <div class="form-group has-feedback"> <input type="text" name="loginname" class="form-control" placeholder="Login / Email" autofocus> <span class="glyphicon glyphicon-user form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input type="password" name="password" class="form-control" placeholder="Password"> <span class="glyphicon glyphicon-lock form-control-feedback"></span> </div> <div class="form-group has-feedback"> <select name="language" class="form-control"> <?php foreach ($arraylangcode as $langcode => $langname) { echo '<option value="'.$langcode.'" '.(!isset($_SESSION["wlangcode"]) || $langcode == "cn"?"selected":"").'>'.$langname.'</option>'; } ?> </select> </div>
<div class="row"> <div class="col-xs-8">
</div><!-- /.col --> <div class="col-xs-4"> <button type="submit" name="submit" value="submit" class="btn btn-primary btn-block btn-flat">Sign In </button> </div><!-- /.col --> </div> </form>
</div><!-- /.login-box-body --> </div><!-- /.login-box -->
<!-- REQUIRED JS SCRIPTS --> <?php require_once "_html_script.php"; ?>
</body> </html>
|