reports.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <p>Using TreeGrid to show complex reports.</p>
  15. <div style="margin:20px 0;"></div>
  16. <table title="Reports using TreeGrid" class="easyui-treegrid" style="width:700px;height:250px"
  17. data-options="
  18. url: 'treegrid_data3.json',
  19. method: 'get',
  20. rownumbers: true,
  21. showFooter: true,
  22. idField: 'id',
  23. treeField: 'region'
  24. ">
  25. <thead frozen="true">
  26. <tr>
  27. <th field="region" width="200">Region</th>
  28. </tr>
  29. </thead>
  30. <thead>
  31. <tr>
  32. <th colspan="4">2009</th>
  33. <th colspan="4">2010</th>
  34. </tr>
  35. <tr>
  36. <th field="f1" width="60" align="right">1st qrt.</th>
  37. <th field="f2" width="60" align="right">2st qrt.</th>
  38. <th field="f3" width="60" align="right">3st qrt.</th>
  39. <th field="f4" width="60" align="right">4st qrt.</th>
  40. <th field="f5" width="60" align="right">1st qrt.</th>
  41. <th field="f6" width="60" align="right">2st qrt.</th>
  42. <th field="f7" width="60" align="right">3st qrt.</th>
  43. <th field="f8" width="60" align="right">4st qrt.</th>
  44. </tr>
  45. </thead>
  46. </table>
  47. </body>
  48. </html>