fa4ef2467082b7514b3774eceba5670dd21a1a97_0.file.login.html.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. /* Smarty version 3.1.30, created on 2018-05-07 00:08:16
  3. from "D:\phpStudy\WWW\workorder\application\views\templates\index\login.html" */
  4. /* @var Smarty_Internal_Template $_smarty_tpl */
  5. if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  6. 'version' => '3.1.30',
  7. 'unifunc' => 'content_5aef287082a627_74391072',
  8. 'has_nocache_code' => false,
  9. 'file_dependency' =>
  10. array (
  11. 'fa4ef2467082b7514b3774eceba5670dd21a1a97' =>
  12. array (
  13. 0 => 'D:\\phpStudy\\WWW\\workorder\\application\\views\\templates\\index\\login.html',
  14. 1 => 1524056013,
  15. 2 => 'file',
  16. ),
  17. ),
  18. 'includes' =>
  19. array (
  20. ),
  21. ),false)) {
  22. function content_5aef287082a627_74391072 (Smarty_Internal_Template $_smarty_tpl) {
  23. ?>
  24. <!DOCTYPE html>
  25. <html lang="zh-CN">
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  28. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  29. <meta name="robots" content="noindex,nofollow">
  30. <title><?php echo $_smarty_tpl->tpl_vars['sys_name']->value;?>
  31. </title>
  32. <base href="<?php echo base_url();?>
  33. "/>
  34. <link rel="shortcut icon" href="favicon.ico" />
  35. <link href="static/css/bootstrap.min.css" rel="stylesheet">
  36. <link rel="stylesheet" href="static/css/style.css">
  37. <?php echo '<script'; ?>
  38. language="javascript" type="text/javascript"> var SITE_URL = "/";<?php echo '</script'; ?>
  39. >
  40. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  41. <!--[if lt IE 9]>
  42. <?php echo '<script'; ?>
  43. src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.js"><?php echo '</script'; ?>
  44. >
  45. <?php echo '<script'; ?>
  46. src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"><?php echo '</script'; ?>
  47. >
  48. <![endif]-->
  49. </head>
  50. <body style="background:#2f5896; background-size: cover;">
  51. <div class="login_box clearfix">
  52. <div class="login_l_img"><img src="static/images/login-img.png" /></div>
  53. <div class="login">
  54. <div class="login_logo"><img src="static/images/login_logo.png" /></div>
  55. <div class="login_name">
  56. <p><?php echo $_smarty_tpl->tpl_vars['sys_name']->value;?>
  57. </p>
  58. </div>
  59. <form id="validateform" method="post">
  60. <input type="text" name="username" id="username" autocomplete="off" placeholder="用户名" datatype="s5-18" nullmsg="用户名不能为空!">
  61. <input type="password" name="password" id="password" autocomplete="off" placeholder="密码" datatype="*" nullmsg="密码不能为空!">
  62. <span class="hidden" id="msg"></span>
  63. <input value="登录" style="width:100%;" type="submit">
  64. </form>
  65. </div>
  66. <div class="copyright">版权所有©2016-2018</div>
  67. </div>
  68. <?php echo '<script'; ?>
  69. type="text/javascript" charset="utf-8" src="static/js/jquery.js"><?php echo '</script'; ?>
  70. >
  71. <?php echo '<script'; ?>
  72. type="text/javascript" charset="utf-8" src="static/js/bootstrap.js"><?php echo '</script'; ?>
  73. >
  74. <?php echo '<script'; ?>
  75. type="text/javascript" charset="utf-8" src="static/js/Validform_v5.3.2.min.js"><?php echo '</script'; ?>
  76. >
  77. <?php echo '<script'; ?>
  78. type="text/javascript" charset="utf-8" src="static/js/layer/layer.js"><?php echo '</script'; ?>
  79. >
  80. <?php echo '<script'; ?>
  81. language="javascript" type="text/javascript">
  82. if (top.location != location)
  83. {
  84. top.location.href = location.href;
  85. }
  86. $(function(){
  87. $("#username,#password").focus(function () {
  88. $("#msg").addClass("hidden").text("");
  89. })
  90. $("#validateform").Validform({
  91. tiptype: function (msg, o) {
  92. if (o.type == 3) {
  93. layer.tips(msg, o.obj, {
  94. tips: [1, '#ff6666'] //还可配置颜色
  95. });
  96. }
  97. },
  98. beforeSubmit: function (curform) {
  99. $.post('checklogin',
  100. {
  101. 'username': $("#username").val(),
  102. 'password': $("#password").val()
  103. },
  104. function (data) {
  105. if (data.msg != "" && data.msg != undefined) {
  106. $("#msg").removeClass("hidden").text(data.msg);
  107. return false;
  108. }
  109. if (data.url != "" && data.url != undefined) {
  110. window.location.href = data.url;
  111. return false;
  112. }
  113. }
  114. );
  115. return false;
  116. }
  117. })
  118. })
  119. <?php echo '</script'; ?>
  120. >
  121. </body>
  122. </html><?php }
  123. }