statistics_header.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>统计分析</title>
  6. <link rel="stylesheet" href="css/common.css" type="text/css" />
  7. <script src="system/js/jquery-1.7.2.min.js"></script>
  8. <script src="js/chart.js"></script>
  9. <style>
  10. body {
  11. margin: 0;
  12. padding: 20px;
  13. background: #fff;
  14. font-family: Arial, sans-serif;
  15. }
  16. .container {
  17. width: 100%;
  18. max-width: 100%;
  19. margin: 0 auto;
  20. }
  21. .page-header {
  22. margin-bottom: 20px;
  23. border-bottom: 1px solid #eee;
  24. padding-bottom: 10px;
  25. display: flex;
  26. justify-content: space-between;
  27. align-items: center;
  28. }
  29. .page-title {
  30. font-size: 24px;
  31. font-weight: bold;
  32. color: #333;
  33. margin: 0;
  34. }
  35. .export-btn {
  36. padding: 8px 15px;
  37. background: #4CAF50;
  38. color: white;
  39. border: none;
  40. border-radius: 4px;
  41. cursor: pointer;
  42. text-decoration: none;
  43. display: inline-block;
  44. }
  45. .export-btn:hover {
  46. background: #45a049;
  47. }
  48. .filter-form {
  49. background: #f9f9f9;
  50. padding: 15px;
  51. border-radius: 5px;
  52. margin-bottom: 20px;
  53. display: flex;
  54. flex-wrap: wrap;
  55. gap: 15px;
  56. align-items: center;
  57. }
  58. .filter-form-inline {
  59. display: flex;
  60. flex-wrap: nowrap;
  61. align-items: flex-end;
  62. gap: 15px;
  63. width: 100%;
  64. }
  65. .filter-form-inline .form-group {
  66. margin-right: 0;
  67. flex: 0 0 auto;
  68. }
  69. .form-group {
  70. margin-right: 15px;
  71. }
  72. .form-group label {
  73. display: block;
  74. margin-bottom: 5px;
  75. font-weight: bold;
  76. }
  77. .form-control {
  78. padding: 6px;
  79. border: 1px solid #ddd;
  80. border-radius: 4px;
  81. min-width: 150px;
  82. }
  83. .btn {
  84. padding: 8px 15px;
  85. background: #337ab7;
  86. color: white;
  87. border: none;
  88. border-radius: 4px;
  89. cursor: pointer;
  90. }
  91. .btn:hover {
  92. background: #286090;
  93. }
  94. .stats-grid {
  95. display: grid;
  96. grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
  97. gap: 20px;
  98. margin-bottom: 20px;
  99. }
  100. .stat-card {
  101. background: white;
  102. border-radius: 5px;
  103. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  104. padding: 20px;
  105. }
  106. .stat-card h3 {
  107. margin-top: 0;
  108. color: #555;
  109. font-size: 16px;
  110. border-bottom: 1px solid #eee;
  111. padding-bottom: 10px;
  112. }
  113. .stat-value {
  114. font-size: 24px;
  115. font-weight: bold;
  116. color: #333;
  117. margin: 15px 0;
  118. }
  119. .chart-container {
  120. margin-bottom: 30px;
  121. background: white;
  122. border-radius: 5px;
  123. padding: 20px;
  124. }
  125. .chart-header {
  126. display: flex;
  127. justify-content: space-between;
  128. align-items: center;
  129. margin-bottom: 15px;
  130. }
  131. .chart-title {
  132. font-size: 18px;
  133. font-weight: bold;
  134. color: #333;
  135. margin: 0;
  136. }
  137. .chart-row {
  138. display: flex;
  139. flex-wrap: wrap;
  140. }
  141. .chart-column {
  142. flex: 0 0 50%;
  143. max-width: 50%;
  144. padding: 0 10px;
  145. }
  146. .data-table {
  147. width: 100%;
  148. border-collapse: collapse;
  149. margin-top: 20px;
  150. }
  151. .data-table th, .data-table td {
  152. padding: 10px;
  153. text-align: left;
  154. border-bottom: 1px solid #eee;
  155. }
  156. .data-table th {
  157. background: #f5f5f5;
  158. font-weight: bold;
  159. }
  160. .data-table tr:hover {
  161. background: #f9f9f9;
  162. }
  163. .custom-date-inputs {
  164. display: none;
  165. }
  166. #date_range[value="custom"]:checked ~ .custom-date-inputs {
  167. display: block;
  168. }
  169. .download-btn {
  170. padding: 5px 10px;
  171. background: #4CAF50;
  172. color: white;
  173. border: none;
  174. border-radius: 3px;
  175. font-size: 14px;
  176. cursor: pointer;
  177. }
  178. .download-btn:hover {
  179. background: #45a049;
  180. }
  181. /* 关键指标样式 */
  182. .key-metrics-section {
  183. margin-bottom: 30px;
  184. }
  185. .section-title {
  186. margin-bottom: 15px;
  187. }
  188. .section-title h2 {
  189. font-size: 20px;
  190. font-weight: bold;
  191. color: #333;
  192. margin: 0;
  193. }
  194. .stats-card-container {
  195. display: flex;
  196. flex-wrap: wrap;
  197. gap: 20px;
  198. justify-content: space-between;
  199. }
  200. .stats-card {
  201. background: white;
  202. border-radius: 5px;
  203. box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  204. padding: 15px;
  205. min-width: 180px;
  206. flex: 1;
  207. transition: all 0.3s ease;
  208. }
  209. .stats-card:hover {
  210. transform: translateY(-3px);
  211. box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  212. }
  213. .stats-card-header {
  214. margin-bottom: 10px;
  215. }
  216. .stats-card-header h3 {
  217. font-size: 16px;
  218. font-weight: bold;
  219. color: #555;
  220. margin: 0;
  221. }
  222. .stats-card-body {
  223. text-align: center;
  224. }
  225. .stats-card-value {
  226. font-size: 28px;
  227. font-weight: bold;
  228. color: #2196F3;
  229. }
  230. .stats-card-subtitle {
  231. font-size: 14px;
  232. color: #777;
  233. margin-top: 5px;
  234. }
  235. /* 添加客户价值分布的子值样式 */
  236. .stat-sub-value {
  237. display: block;
  238. font-size: 14px;
  239. color: #4CAF50;
  240. margin-top: 3px;
  241. }
  242. /* 转化率样式 */
  243. .stat-conversion {
  244. display: block;
  245. font-size: 13px;
  246. color: #FF5722;
  247. margin-top: 3px;
  248. font-style: italic;
  249. }
  250. </style>
  251. </head>
  252. <body>
  253. <div class="container">