| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <?php
- /* Smarty version 3.1.30, created on 2018-05-07 00:08:16
- from "D:\phpStudy\WWW\workorder\application\views\templates\index\login.html" */
- /* @var Smarty_Internal_Template $_smarty_tpl */
- if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
- 'version' => '3.1.30',
- 'unifunc' => 'content_5aef287082a627_74391072',
- 'has_nocache_code' => false,
- 'file_dependency' =>
- array (
- 'fa4ef2467082b7514b3774eceba5670dd21a1a97' =>
- array (
- 0 => 'D:\\phpStudy\\WWW\\workorder\\application\\views\\templates\\index\\login.html',
- 1 => 1524056013,
- 2 => 'file',
- ),
- ),
- 'includes' =>
- array (
- ),
- ),false)) {
- function content_5aef287082a627_74391072 (Smarty_Internal_Template $_smarty_tpl) {
- ?>
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="robots" content="noindex,nofollow">
- <title><?php echo $_smarty_tpl->tpl_vars['sys_name']->value;?>
- </title>
- <base href="<?php echo base_url();?>
- "/>
- <link rel="shortcut icon" href="favicon.ico" />
- <link href="static/css/bootstrap.min.css" rel="stylesheet">
- <link rel="stylesheet" href="static/css/style.css">
- <?php echo '<script'; ?>
- language="javascript" type="text/javascript"> var SITE_URL = "/";<?php echo '</script'; ?>
- >
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <?php echo '<script'; ?>
- src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"><?php echo '</script'; ?>
- >
- <![endif]-->
- </head>
- <body style="background:#2f5896; background-size: cover;">
- <div class="login_box clearfix">
- <div class="login_l_img"><img src="static/images/login-img.png" /></div>
- <div class="login">
- <div class="login_logo"><img src="static/images/login_logo.png" /></div>
- <div class="login_name">
- <p><?php echo $_smarty_tpl->tpl_vars['sys_name']->value;?>
- </p>
- </div>
- <form id="validateform" method="post">
- <input type="text" name="username" id="username" autocomplete="off" placeholder="用户名" datatype="s5-18" nullmsg="用户名不能为空!">
- <input type="password" name="password" id="password" autocomplete="off" placeholder="密码" datatype="*" nullmsg="密码不能为空!">
- <span class="hidden" id="msg"></span>
- <input value="登录" style="width:100%;" type="submit">
- </form>
- </div>
- <div class="copyright">版权所有©2016-2018</div>
- </div>
- <?php echo '<script'; ?>
- type="text/javascript" charset="utf-8" src="static/js/jquery.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- type="text/javascript" charset="utf-8" src="static/js/bootstrap.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- type="text/javascript" charset="utf-8" src="static/js/Validform_v5.3.2.min.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- type="text/javascript" charset="utf-8" src="static/js/layer/layer.js"><?php echo '</script'; ?>
- >
- <?php echo '<script'; ?>
- language="javascript" type="text/javascript">
- if (top.location != location)
- {
- top.location.href = location.href;
- }
- $(function(){
- $("#username,#password").focus(function () {
- $("#msg").addClass("hidden").text("");
- })
- $("#validateform").Validform({
- tiptype: function (msg, o) {
- if (o.type == 3) {
- layer.tips(msg, o.obj, {
- tips: [1, '#ff6666'] //还可配置颜色
- });
- }
- },
- beforeSubmit: function (curform) {
- $.post('checklogin',
- {
- 'username': $("#username").val(),
- 'password': $("#password").val()
- },
- function (data) {
- if (data.msg != "" && data.msg != undefined) {
- $("#msg").removeClass("hidden").text(data.msg);
- return false;
- }
- if (data.url != "" && data.url != undefined) {
- window.location.href = data.url;
- return false;
- }
- }
- );
- return false;
- }
- })
- })
- <?php echo '</script'; ?>
- >
- </body>
- </html><?php }
- }
|