You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

174 lines
11 KiB

  1. <?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:70:"F:\www\fastadmin\shop\public/../application/index\view\user\login.html";i:1600572858;s:64:"F:\www\fastadmin\shop\application\index\view\layout\default.html";i:1600572858;s:61:"F:\www\fastadmin\shop\application\index\view\common\meta.html";i:1600572858;s:63:"F:\www\fastadmin\shop\application\index\view\common\script.html";i:1600572858;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title><?php echo (isset($title) && ($title !== '')?$title:''); ?> – <?php echo $site['name']; ?></title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  8. <meta name="renderer" content="webkit">
  9. <?php if(isset($keywords)): ?>
  10. <meta name="keywords" content="<?php echo $keywords; ?>">
  11. <?php endif; if(isset($description)): ?>
  12. <meta name="description" content="<?php echo $description; ?>">
  13. <?php endif; ?>
  14. <link rel="shortcut icon" href="/assets/img/favicon.ico" />
  15. <link href="/assets/css/frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  16. <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
  17. <!--[if lt IE 9]>
  18. <script src="/assets/js/html5shiv.js"></script>
  19. <script src="/assets/js/respond.min.js"></script>
  20. <![endif]-->
  21. <script type="text/javascript">
  22. var require = {
  23. config: <?php echo json_encode($config); ?>
  24. };
  25. </script>
  26. <link href="/assets/css/user.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  27. </head>
  28. <body>
  29. <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  30. <div class="container">
  31. <div class="navbar-header">
  32. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#header-navbar">
  33. <span class="sr-only">Toggle navigation</span>
  34. <span class="icon-bar"></span>
  35. <span class="icon-bar"></span>
  36. <span class="icon-bar"></span>
  37. </button>
  38. <a class="navbar-brand" href="<?php echo url('/'); ?>"><?php echo $site['name']; ?></a>
  39. </div>
  40. <div class="collapse navbar-collapse" id="header-navbar">
  41. <ul class="nav navbar-nav navbar-right">
  42. <li><a href="<?php echo url('/'); ?>"><?php echo __('Home'); ?></a></li>
  43. <li class="dropdown">
  44. <?php if($user): ?>
  45. <a href="<?php echo url('user/index'); ?>" class="dropdown-toggle" data-toggle="dropdown" style="padding-top: 10px;height: 50px;">
  46. <span class="avatar-img"><img src="<?php echo cdnurl($user['avatar']); ?>" alt=""></span>
  47. </a>
  48. <?php else: ?>
  49. <a href="<?php echo url('user/index'); ?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo __('User center'); ?> <b class="caret"></b></a>
  50. <?php endif; ?>
  51. <ul class="dropdown-menu">
  52. <?php if($user): ?>
  53. <li><a href="<?php echo url('user/index'); ?>"><i class="fa fa-user-circle fa-fw"></i><?php echo __('User center'); ?></a></li>
  54. <li><a href="<?php echo url('user/profile'); ?>"><i class="fa fa-user-o fa-fw"></i><?php echo __('Profile'); ?></a></li>
  55. <li><a href="<?php echo url('user/changepwd'); ?>"><i class="fa fa-key fa-fw"></i><?php echo __('Change password'); ?></a></li>
  56. <li><a href="<?php echo url('user/logout'); ?>"><i class="fa fa-sign-out fa-fw"></i><?php echo __('Sign out'); ?></a></li>
  57. <?php else: ?>
  58. <li><a href="<?php echo url('user/login'); ?>"><i class="fa fa-sign-in fa-fw"></i> <?php echo __('Sign in'); ?></a></li>
  59. <li><a href="<?php echo url('user/register'); ?>"><i class="fa fa-user-o fa-fw"></i> <?php echo __('Sign up'); ?></a></li>
  60. <?php endif; ?>
  61. </ul>
  62. </li>
  63. </ul>
  64. </div>
  65. </div>
  66. </nav>
  67. <main class="content">
  68. <div id="content-container" class="container">
  69. <div class="user-section login-section">
  70. <div class="logon-tab clearfix"> <a class="active"><?php echo __('Sign in'); ?></a> <a href="<?php echo url('user/register'); ?>?url=<?php echo urlencode($url); ?>"><?php echo __('Sign up'); ?></a> </div>
  71. <div class="login-main">
  72. <form name="form" id="login-form" class="form-vertical" method="POST" action="">
  73. <input type="hidden" name="url" value="<?php echo $url; ?>" />
  74. <?php echo token(); ?>
  75. <div class="form-group">
  76. <label class="control-label" for="account"><?php echo __('Account'); ?></label>
  77. <div class="controls">
  78. <input class="form-control input-lg" id="account" type="text" name="account" value="" data-rule="required" placeholder="<?php echo __('Email/Mobile/Username'); ?>" autocomplete="off">
  79. <div class="help-block"></div>
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label" for="password"><?php echo __('Password'); ?></label>
  84. <div class="controls">
  85. <input class="form-control input-lg" id="password" type="password" name="password" data-rule="required;password" placeholder="<?php echo __('Password'); ?>" autocomplete="off">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <div class="controls">
  90. <input type="checkbox" name="keeplogin" checked="checked" value="1"> <?php echo __('Keep login'); ?>
  91. <div class="pull-right"><a href="javascript:;" class="btn-forgot"><?php echo __('Forgot password'); ?></a></div>
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <button type="submit" class="btn btn-primary btn-lg btn-block"><?php echo __('Sign in'); ?></button>
  96. </div>
  97. </form>
  98. </div>
  99. </div>
  100. </div>
  101. <script type="text/html" id="resetpwdtpl">
  102. <form id="resetpwd-form" class="form-horizontal form-layer" method="POST" action="<?php echo url('api/user/resetpwd'); ?>">
  103. <div class="form-body">
  104. <input type="hidden" name="action" value="resetpwd" />
  105. <div class="form-group">
  106. <label class="control-label col-xs-12 col-sm-3"><?php echo __('Type'); ?>:</label>
  107. <div class="col-xs-12 col-sm-8">
  108. <div class="radio">
  109. <label for="type-email"><input id="type-email" checked="checked" name="type" data-send-url="<?php echo url('api/ems/send'); ?>" data-check-url="<?php echo url('api/validate/check_ems_correct'); ?>" type="radio" value="email"> <?php echo __('Reset password by email'); ?></label>
  110. <label for="type-mobile"><input id="type-mobile" name="type" type="radio" data-send-url="<?php echo url('api/sms/send'); ?>" data-check-url="<?php echo url('api/validate/check_sms_correct'); ?>" value="mobile"> <?php echo __('Reset password by mobile'); ?></label>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="form-group" data-type="email">
  115. <label for="email" class="control-label col-xs-12 col-sm-3"><?php echo __('Email'); ?>:</label>
  116. <div class="col-xs-12 col-sm-8">
  117. <input type="text" class="form-control" id="email" name="email" value="" data-rule="required(#type-email:checked);email;remote(<?php echo url('api/validate/check_email_exist'); ?>, event=resetpwd, id=<?php echo $user['id']; ?>)" placeholder="">
  118. <span class="msg-box"></span>
  119. </div>
  120. </div>
  121. <div class="form-group hide" data-type="mobile">
  122. <label for="mobile" class="control-label col-xs-12 col-sm-3"><?php echo __('Mobile'); ?>:</label>
  123. <div class="col-xs-12 col-sm-8">
  124. <input type="text" class="form-control" id="mobile" name="mobile" value="" data-rule="required(#type-mobile:checked);mobile;remote(<?php echo url('api/validate/check_mobile_exist'); ?>, event=resetpwd, id=<?php echo $user['id']; ?>)" placeholder="">
  125. <span class="msg-box"></span>
  126. </div>
  127. </div>
  128. <div class="form-group">
  129. <label for="captcha" class="control-label col-xs-12 col-sm-3"><?php echo __('Captcha'); ?>:</label>
  130. <div class="col-xs-12 col-sm-8">
  131. <div class="input-group">
  132. <input type="text" name="captcha" class="form-control" data-rule="required;length(4);integer[+];remote(<?php echo url('api/validate/check_ems_correct'); ?>, event=resetpwd, email:#email)" />
  133. <span class="input-group-btn" style="padding:0;border:none;">
  134. <a href="javascript:;" class="btn btn-info btn-captcha" data-url="<?php echo url('api/ems/send'); ?>" data-type="email" data-event="resetpwd"><?php echo __('Send verification code'); ?></a>
  135. </span>
  136. </div>
  137. <span class="msg-box"></span>
  138. </div>
  139. </div>
  140. <div class="form-group">
  141. <label for="newpassword" class="control-label col-xs-12 col-sm-3"><?php echo __('New password'); ?>:</label>
  142. <div class="col-xs-12 col-sm-8">
  143. <input type="password" class="form-control" id="newpassword" name="newpassword" value="" data-rule="required;password" placeholder="">
  144. <span class="msg-box"></span>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="form-group form-footer">
  149. <label class="control-label col-xs-12 col-sm-3"></label>
  150. <div class="col-xs-12 col-sm-8">
  151. <button type="submit" class="btn btn-md btn-info"><?php echo __('Ok'); ?></button>
  152. </div>
  153. </div>
  154. </form>
  155. </script>
  156. </main>
  157. <footer class="footer" style="clear:both">
  158. <p class="copyright">Copyright&nbsp;©&nbsp;2017-2020 <?php echo $site['name']; ?> All Rights Reserved <a href="http://www.beian.miit.gov.cn" target="_blank"><?php echo htmlentities($site['beian']); ?></a></p>
  159. </footer>
  160. <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
  161. </body>
  162. </html>