server.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <!--加载公共头部文件-->
  2. {include file='Base/top'}
  3. <!--加载公共左侧文件-->
  4. {include file='Base/left'}
  5. <!--加载公共底部文件-->
  6. {include file='Base/fotter'}
  7. <!-- 内容主体区域 -->
  8. <div class="layui-body">
  9. <!--面包屑导航-->
  10. <blockquote class="layui-elem-quote">
  11. <span class="layui-breadcrumb" style="visibility: visible;">
  12. <a >控制台</a>
  13. <span lay-separator="">/</span>
  14. <a href="{:url('index/server')}">
  15. <cite>主页信息</cite>
  16. </a>
  17. </span>
  18. </blockquote>
  19. <!--面包屑导航 结束-->
  20. <div class="mainfrm">
  21. <div class="layui-row layui-col-space10" style="margin:0 5px;">
  22. <div class="layui-col-xs6">
  23. <div class="layui-card-header">管理员登录</div>
  24. <div class="layui-card-body" id="main" style="height: 450px;"></div>
  25. </div>
  26. <div class="layui-col-xs6">
  27. <!-- <table class="layui-table">
  28. <colgroup>
  29. <col width="160" height="1000">
  30. <col>
  31. </colgroup>
  32. <thead>
  33. 系统信息
  34. </thead>
  35. <tbody>
  36. {volist name="info" id="v" key="k"}
  37. <tr>
  38. <td class="text">{$key}:</td>
  39. <td class="input">{$v}</td>
  40. </tr>
  41. {/volist}
  42. </tbody>
  43. </table> -->
  44. <div class="layui-card">
  45. <div class="layui-card-header">系统信息</div>
  46. <div class="layui-card-body layui-text" >
  47. <table class="layui-table">
  48. <colgroup>
  49. <col width="110">
  50. <col>
  51. </colgroup>
  52. <tbody>
  53. {volist name="info" id="v" key="k"}
  54. <tr>
  55. <td class="text" width="16%">{$key}:</td>
  56. <td class="input">{$v}</td>
  57. </tr>
  58. {/volist}
  59. </tbody>
  60. </table>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <script type="text/javascript">
  68. var a = "{$web.date_string}";
  69. var date = a.split(",");
  70. var b = "{$web.login_sum}";
  71. var login_sum = b.split(",");
  72. var myChart = echarts.init(document.getElementById('main'));
  73. option = {
  74. tooltip: {
  75. trigger: 'axis',
  76. position: function (pt) {
  77. return [pt[0], '10%'];
  78. }
  79. },
  80. grid: {
  81. top: 50,
  82. bottom: 70,
  83. left:40,
  84. right:50
  85. },
  86. toolbox: {
  87. feature: {
  88. dataZoom: {
  89. yAxisIndex: 'none'
  90. },
  91. restore: {},
  92. saveAsImage: {}
  93. }
  94. },
  95. xAxis: {
  96. type: 'category',
  97. boundaryGap: false,
  98. data: date
  99. },
  100. yAxis: {
  101. type: 'value',
  102. boundaryGap: [0, '100%']
  103. },
  104. dataZoom: [{
  105. type: 'inside',
  106. start: 0,
  107. end: 100
  108. }, {
  109. start: 0,
  110. end: 100,
  111. handleIcon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
  112. handleSize: '100%',
  113. handleStyle: {
  114. color: '#fff',
  115. shadowBlur: 3,
  116. shadowColor: '#009688',
  117. shadowOffsetX: 2,
  118. shadowOffsetY: 2
  119. }
  120. }],
  121. series: [
  122. {
  123. name:'用户登录次数',
  124. type:'line',
  125. smooth:true,
  126. symbol: 'none',
  127. sampling: 'average',
  128. itemStyle: {
  129. normal: {
  130. color: '#009688'
  131. }
  132. },
  133. areaStyle: {
  134. normal: {
  135. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  136. offset: 0,
  137. color: '#009688'
  138. }, {
  139. offset: 1,
  140. color: '#009688'
  141. }])
  142. }
  143. },
  144. data: login_sum
  145. }
  146. ]
  147. };
  148. myChart.setOption(option);
  149. </script>