bhq@iemsoft.cn
2018-11-27 e2b48dac099e43f4b3243cdf19a7522e4b5eccbe
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
<!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>
<title>{$lang.cp_home}{if $ur_here} - {$ur_here}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/bootstrap.min.css" rel="stylesheet" type="text/css" />
<style>
        body{
            background-color: #fff;
        }
        .top{
            padding: 20px 0 10px;
        }
        .jumbotron{
 
            position: relative;
            padding: 40px 0;
            color: #fff;
            height: 542px;
            background: url("images/bg.jpg") no-repeat ;
        }
        .slogn-img>img{
            width:90%;
            /* max-width: 468px;*/
        }
        .login-box{
            background: #fff;
            width: 90%;
            height:460px;
            color: #000;
            padding: 20px 50px;
        }
        form{
            padding-top: 30px;
        }
        .form-group{
            position: relative;
            margin-bottom: 30px;
        }
        .form-group >.input{
            height: 40px;
            line-height: 40px;
            padding-left: 50px;
        }
        .form-group>.ico{
            position: absolute;
            z-index: 10;
            top: 32px;
            left: 10px;
            height: 24px;
            padding-right: 10px;
            border-right: 1px solid #ccc;
        }
        .form-group>label{
            font-weight: 500;
            font-size: 14px;
        }
        input[type="submit"]{
            height: 40px;
            margin-top: 20px;
        }
        .slogn-img{
            padding-top: 10%;
        }
        .wellcome{
            width: 90%;
        }
        .footer{
            text-align: center;
        }
        .h500{
            height: 500px;
            position: relative;
        }
        .slogn-img{
            position: absolute;
            bottom:0;
        }
    </style>
{literal}
{/literal}
{insert_scripts files="../js/utils.js,validator.js"}
<script language="JavaScript">
<!--
// 这里把JS用到的所有语言都赋值到这里
{foreach from=$lang.js_languages key=key item=item}
var {$key} = "{$item}";
{/foreach}
{literal}
if (window.parent != window)
{
  window.top.location.href = location.href;
}
{/literal}
//-->
</script>
</head>
 
<body>
<div class="container top">
    <div class="col-xs-7"><h3 class="text-left">移动电商管理中心</h3></div>
    <div class="col-xs-5"><h3 class="text-center wellcome">欢迎登录</h3></div>
</div>
<div class="jumbotron">
    <div class="container">
        <div class="col-xs-7 h500"><div class="slogn-img"><img src="images/bg2.png" class=" center-block"  alt=""></div></div>
        <div class="col-xs-5">
            <div class="login-box">
                <h3 class="text-center">用户名</h3>
                <form method="post" action="privilege.php" name='theForm' onsubmit="return validate()">
                    <div class="form-group">
                        <div class="ico"><img src="images/icon1.png" alt=""></div>
                        <label class="control-label" >{$lang.label_username}</label>
                        <input type="text" name="username" class="form-control input" placeholder="请输入用户名" >
                    </div>
                    <div class="form-group">
                        <div class="ico"><img src="images/icon2.png" alt=""></div>
                        <label class="control-label" >{$lang.label_password}</label>
                        <input type="password"  name="password"  class="form-control input" placeholder="请输入密码" >
                    </div>
                    <div class="form-group">
                        <input type="submit" class="btn btn-danger form-control" value="立即登录">
                    </div>
                    <input type="hidden" name="act" value="signin" />
                </form>
            </div>
        </div>
    </div>
</div>
<div class="container footer ">版权所有:xxxxxxx</div>
<script language="JavaScript">
    <!--
    document.forms['theForm'].elements['username'].focus();
    {literal}
    /**
     * 检查表单输入的内容
     */
    function validate()
    {
        var validator = new Validator('theForm');
        validator.required('username', user_name_empty);
        //validator.required('password', password_empty);
        if (document.forms['theForm'].elements['captcha'])
        {
            validator.required('captcha', captcha_empty);
        }
        return validator.passed();
    }
    {/literal}
    //-->
</script>
</body>