c17c3780b823f79a26eeb4cc17847c7c.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <?php /*a:5:{s:79:"D:\phpstudy_pro\WWW\newQudou\app\admin\view\setting\system_admin\admin_info.php";i:1595820902;s:64:"D:\phpstudy_pro\WWW\newQudou\app\admin\view\public\container.php";i:1595820902;s:65:"D:\phpstudy_pro\WWW\newQudou\app\admin\view\public\frame_head.php";i:1595820902;s:60:"D:\phpstudy_pro\WWW\newQudou\app\admin\view\public\style.php";i:1595820902;s:67:"D:\phpstudy_pro\WWW\newQudou\app\admin\view\public\frame_footer.php";i:1595820902;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="zh-CN">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <?php if(empty($is_layui) || (($is_layui instanceof \think\Collection || $is_layui instanceof \think\Paginator ) && $is_layui->isEmpty())): ?>
  8. <link href="/system/frame/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
  9. <?php endif; ?>
  10. <link href="/static/plug/layui/css/layui.css" rel="stylesheet">
  11. <link href="/system/css/layui-admin.css" rel="stylesheet">
  12. <link href="/system/frame/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
  13. <link href="/system/frame/css/animate.min.css" rel="stylesheet">
  14. <link href="/system/frame/css/style.min.css?v=3.0.0" rel="stylesheet">
  15. <script src="/system/frame/js/jquery.min.js"></script>
  16. <script src="/system/frame/js/bootstrap.min.js"></script>
  17. <script src="/static/plug/layui/layui.all.js"></script>
  18. <script>
  19. $eb = parent._mpApi;
  20. window.controlle="<?php echo strtolower(trim(preg_replace("/[A-Z]/", "_\\0", app('request')->controller()), "_"));?>";
  21. window.module="<?php echo app('http')->getName();?>";
  22. </script>
  23. <title></title>
  24. <!--<script type="text/javascript" src="/static/plug/basket.js"></script>-->
  25. <script type="text/javascript" src="/static/plug/requirejs/require.js"></script>
  26. <?php /* <script type="text/javascript" src="/static/plug/requirejs/require-basket-load.js"></script> */ ?>
  27. <script>
  28. var hostname = location.hostname;
  29. if(location.port) hostname += ':' + location.port;
  30. requirejs.config({
  31. map: {
  32. '*': {
  33. 'css': '/static/plug/requirejs/require-css.js'
  34. }
  35. },
  36. shim:{
  37. 'iview':{
  38. deps:['css!iviewcss']
  39. },
  40. 'layer':{
  41. deps:['css!layercss']
  42. }
  43. },
  44. baseUrl:'//'+hostname+'/',
  45. paths: {
  46. 'static':'static',
  47. 'system':'system',
  48. 'vue':'static/plug/vue/dist/vue.min',
  49. 'axios':'static/plug/axios.min',
  50. 'iview':'static/plug/iview/dist/iview.min',
  51. 'iviewcss':'static/plug/iview/dist/styles/iview',
  52. 'lodash':'static/plug/lodash',
  53. 'layer':'static/plug/layer/layer',
  54. 'layercss':'static/plug/layer/theme/default/layer',
  55. 'jquery':'static/plug/jquery/jquery.min',
  56. 'moment':'static/plug/moment',
  57. 'sweetalert':'static/plug/sweetalert2/sweetalert2.all.min',
  58. 'formCreate':'/static/plug/form-create/form-create.min',
  59. },
  60. basket: {
  61. excludes:['system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  62. // excludes:['system/util/mpFormBuilder','system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  63. }
  64. });
  65. </script>
  66. <script type="text/javascript" src="/system/util/mpFrame.js"></script>
  67. <style>
  68. label.error{
  69. color: #a94442;
  70. margin-bottom: 0;
  71. display: inline-block;
  72. font: normal normal normal 14px/1 FontAwesome;
  73. font-size: inherit;
  74. text-rendering: auto;
  75. -webkit-font-smoothing: antialiased;
  76. -moz-osx-font-smoothing: grayscale;
  77. transform: translate(0, 0);
  78. }
  79. </style>
  80. <link href="/system/frame/css/plugins/iCheck/custom.css" rel="stylesheet">
  81. <script src="/system/plug/validate/jquery.validate.js"></script>
  82. <script src="/system/frame/js/plugins/iCheck/icheck.min.js"></script>
  83. <script src="/system/frame/js/ajaxfileupload.js"></script>
  84. </head>
  85. <body class="gray-bg">
  86. <div class="wrapper wrapper-content">
  87. <div class="row">
  88. <div class="col-sm-12">
  89. <div class="ibox">
  90. <div class="ibox-title">
  91. <div class="text-left">个人资料</div>
  92. <div class="ibox-tools">
  93. </div>
  94. </div>
  95. <div class="ibox-content">
  96. <form method="post" class="form-horizontal" id="signupForm" action="">
  97. <input type="hidden" value="<?php echo htmlentities($adminInfo['id']); ?>" name="id"/>
  98. <div class="form-group">
  99. <label class="col-sm-2 control-label">账号</label>
  100. <div class="col-sm-10">
  101. <div class="row">
  102. <div class="col-md-6">
  103. <input type="text" class="form-control" name="account" value="<?php echo htmlentities($adminInfo['account']); ?>" validate="" disabled/>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="hr-line-dashed"></div>
  109. <div class="form-group">
  110. <label class="col-sm-2 control-label">姓名</label>
  111. <div class="col-sm-10">
  112. <div class="row">
  113. <div class="col-md-6">
  114. <input type="text" class="form-control" name="real_name" value="<?php echo htmlentities($adminInfo['real_name']); ?>" validate="required:true" id="real_name"/>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <div class="hr-line-dashed"></div>
  120. <div class="form-group">
  121. <label class="col-sm-2 control-label">原始密码</label>
  122. <div class="col-sm-10">
  123. <div class="row">
  124. <div class="col-md-6">
  125. <input type="password" class="form-control" name="pwd" id="pwd"/>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="hr-line-dashed"></div>
  131. <div class="form-group">
  132. <label class="col-sm-2 control-label">新密码</label>
  133. <div class="col-sm-10">
  134. <div class="row">
  135. <div class="col-md-6">
  136. <input type="password" class="form-control" name="new_pwd" id="new_pwd"/>
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. <div class="hr-line-dashed"></div>
  142. <div class="form-group">
  143. <label class="col-sm-2 control-label">确认新密码</label>
  144. <div class="col-sm-10">
  145. <div class="row">
  146. <div class="col-md-6">
  147. <input type="password" class="form-control" name="new_pwd_ok" id="new_pwd_ok"/>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. <div class="hr-line-dashed"></div>
  153. <div class="form-group" style="text-align: center;">
  154. <div class="col-sm-4 col-sm-offset-2">
  155. <button class="btn btn-primary add" type="button">提交</button>
  156. </div>
  157. </div>
  158. </form>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <script>
  164. $eb = parent._mpApi;
  165. $().ready(function() {
  166. $("#signupForm").validate();
  167. })
  168. $('.add').on('click',function (e) {
  169. var list = [];
  170. list.real_name = $('#real_name').val();
  171. list.pwd = $('#pwd').val();
  172. list.new_pwd = $('#new_pwd').val();
  173. list.new_pwd_ok = $('#new_pwd_ok').val();
  174. if(list.real_name.length < 1) return $eb.message('error','请填写姓名');
  175. var url = "<?php echo Url('setAdminInfo'); ?>";
  176. $.ajax({
  177. url:url,
  178. data:{real_name:list.real_name,pwd:list.pwd,new_pwd:list.new_pwd,new_pwd_ok:list.new_pwd_ok},
  179. type:'post',
  180. dataType:'json',
  181. success:function (re) {
  182. if(re.code == 400)
  183. return $eb.message('error',re.msg);
  184. else
  185. return $eb.message('success',re.msg);
  186. }
  187. })
  188. })
  189. </script>
  190. </div>
  191. </body>
  192. </html>