reports.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Reports using TreeGrid - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Reports using TreeGrid</h2>
  14. <div class="demo-info">
  15. <div class="demo-tip icon-tip"></div>
  16. <div>Using TreeGrid to show complex reports.</div>
  17. </div>
  18. <div style="margin:10px 0;"></div>
  19. <table title="Reports using TreeGrid" class="easyui-treegrid" style="width:700px;height:250px"
  20. data-options="
  21. url: 'treegrid_data3.json',
  22. method: 'get',
  23. rownumbers: true,
  24. showFooter: true,
  25. idField: 'id',
  26. treeField: 'region'
  27. ">
  28. <thead frozen="true">
  29. <tr>
  30. <th field="region" width="200">Region</th>
  31. </tr>
  32. </thead>
  33. <thead>
  34. <tr>
  35. <th colspan="4">2009</th>
  36. <th colspan="4">2010</th>
  37. </tr>
  38. <tr>
  39. <th field="f1" width="60" align="right">1st qrt.</th>
  40. <th field="f2" width="60" align="right">2st qrt.</th>
  41. <th field="f3" width="60" align="right">3st qrt.</th>
  42. <th field="f4" width="60" align="right">4st qrt.</th>
  43. <th field="f5" width="60" align="right">1st qrt.</th>
  44. <th field="f6" width="60" align="right">2st qrt.</th>
  45. <th field="f7" width="60" align="right">3st qrt.</th>
  46. <th field="f8" width="60" align="right">4st qrt.</th>
  47. </tr>
  48. </thead>
  49. </table>
  50. </body>
  51. </html>