245c5c90cf381b8c0801c8d45f3aa519.php 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:91:"D:\phpstudy_pro\WWW\dm.7in6.com\public/../application/admin\view\general\profile\index.html";i:1704779915;s:74:"D:\phpstudy_pro\WWW\dm.7in6.com\application\admin\view\layout\default.html";i:1704779915;s:71:"D:\phpstudy_pro\WWW\dm.7in6.com\application\admin\view\common\meta.html";i:1704779915;s:73:"D:\phpstudy_pro\WWW\dm.7in6.com\application\admin\view\common\script.html";i:1704779915;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  8. <meta name="renderer" content="webkit">
  9. <meta name="referrer" content="never">
  10. <meta name="robots" content="noindex, nofollow">
  11. <link rel="shortcut icon" href="/assets/img/favicon.ico" />
  12. <!-- Loading Bootstrap -->
  13. <link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  14. <?php if(\think\Config::get('fastadmin.adminskin')): ?>
  15. <link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  16. <?php endif; ?>
  17. <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
  18. <!--[if lt IE 9]>
  19. <script src="/assets/js/html5shiv.js"></script>
  20. <script src="/assets/js/respond.min.js"></script>
  21. <![endif]-->
  22. <script type="text/javascript">
  23. var require = {
  24. config: <?php echo json_encode($config); ?>
  25. };
  26. </script>
  27. </head>
  28. <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
  29. <div id="main" role="main">
  30. <div class="tab-content tab-addtabs">
  31. <div id="content">
  32. <div class="row">
  33. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  34. <section class="content-header hide">
  35. <h1>
  36. <?php echo __('Dashboard'); ?>
  37. <small><?php echo __('Control panel'); ?></small>
  38. </h1>
  39. </section>
  40. <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
  41. <!-- RIBBON -->
  42. <div id="ribbon">
  43. <ol class="breadcrumb pull-left">
  44. <?php if($auth->check('dashboard')): ?>
  45. <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
  46. <?php endif; ?>
  47. </ol>
  48. <ol class="breadcrumb pull-right">
  49. <?php foreach($breadcrumb as $vo): ?>
  50. <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
  51. <?php endforeach; ?>
  52. </ol>
  53. </div>
  54. <!-- END RIBBON -->
  55. <?php endif; ?>
  56. <div class="content">
  57. <style>
  58. .profile-avatar-container {
  59. position: relative;
  60. width: 100px;
  61. margin: 0 auto;
  62. }
  63. .profile-avatar-container .profile-user-img {
  64. width: 100px;
  65. height: 100px;
  66. }
  67. .profile-avatar-container .profile-avatar-text {
  68. display: none;
  69. }
  70. .profile-avatar-container:hover .profile-avatar-text {
  71. display: block;
  72. position: absolute;
  73. height: 100px;
  74. width: 100px;
  75. background: #444;
  76. opacity: .6;
  77. color: #fff;
  78. top: 0;
  79. left: 0;
  80. line-height: 100px;
  81. text-align: center;
  82. }
  83. .profile-avatar-container button {
  84. position: absolute;
  85. top: 0;
  86. left: 0;
  87. width: 100px;
  88. height: 100px;
  89. opacity: 0;
  90. }
  91. </style>
  92. <div class="row animated fadeInRight">
  93. <div class="col-md-4">
  94. <div class="box box-primary">
  95. <div class="panel-heading">
  96. <?php echo __('Profile'); ?>
  97. </div>
  98. <div class="panel-body">
  99. <form id="update-form" role="form" data-toggle="validator" method="POST" action="<?php echo url('general.profile/update'); ?>">
  100. <?php echo token(); ?>
  101. <input type="hidden" id="c-avatar" name="row[avatar]" value="<?php echo htmlentities($admin['avatar']); ?>"/>
  102. <div class="box-body box-profile">
  103. <div class="profile-avatar-container">
  104. <img class="profile-user-img img-responsive img-circle" src="<?php echo htmlentities(cdnurl($admin['avatar'])); ?>" alt="">
  105. <div class="profile-avatar-text img-circle"><?php echo __('Click to edit'); ?></div>
  106. <button type="button" id="faupload-avatar" class="faupload" data-input-id="c-avatar"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button>
  107. </div>
  108. <h3 class="profile-username text-center"><?php echo htmlentities($admin['nickname']); ?></h3>
  109. <div class="form-group">
  110. <label for="username" class="control-label"><?php echo __('Username'); ?>:</label>
  111. <input type="text" class="form-control" id="username" name="row[username]" value="<?php echo htmlentities($admin['username']); ?>" disabled/>
  112. </div>
  113. <div class="form-group">
  114. <label for="mobile" class="control-label"><?php echo __('Mobile'); ?>:</label>
  115. <input type="text" class="form-control" id="mobile" name="row[mobile]" value="<?php echo htmlentities($admin['mobile']); ?>" disabled/>
  116. </div>
  117. <div class="form-group">
  118. <label for="email" class="control-label"><?php echo __('Email'); ?>:</label>
  119. <input type="text" class="form-control" id="email" name="row[email]" value="<?php echo htmlentities($admin['email']); ?>" data-rule="required;email"/>
  120. </div>
  121. <div class="form-group">
  122. <label for="nickname" class="control-label"><?php echo __('Nickname'); ?>:</label>
  123. <input type="text" class="form-control" id="nickname" name="row[nickname]" value="<?php echo htmlentities($admin['nickname']); ?>" data-rule="required"/>
  124. </div>
  125. <div class="form-group">
  126. <label for="password" class="control-label"><?php echo __('Password'); ?>:</label>
  127. <input type="password" class="form-control" id="password" placeholder="<?php echo __('Leave password blank if dont want to change'); ?>" autocomplete="new-password" name="row[password]" value="" data-rule="password"/>
  128. </div>
  129. <div class="form-group">
  130. <button type="submit" class="btn btn-primary"><?php echo __('Submit'); ?></button>
  131. <button type="reset" class="btn btn-default"><?php echo __('Reset'); ?></button>
  132. </div>
  133. </div>
  134. </form>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="col-md-8">
  139. <div class="panel panel-default panel-intro panel-nav">
  140. <div class="panel-heading">
  141. <ul class="nav nav-tabs">
  142. <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list"></i> <?php echo __('Admin log'); ?></a></li>
  143. </ul>
  144. </div>
  145. <div class="panel-body">
  146. <div id="myTabContent" class="tab-content">
  147. <div class="tab-pane fade active in" id="one">
  148. <div class="widget-body no-padding">
  149. <div id="toolbar" class="toolbar">
  150. <?php echo build_toolbar('refresh'); ?>
  151. </div>
  152. <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
  153. </table>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
  168. </body>
  169. </html>