PHP/JavaScript webapp to analyse spending habits
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Spending Analyser</title>
  5. <script src="externals/flot/jquery.js" type="text/javascript"></script>
  6. <script src="externals/flot/jquery.flot.js" type="text/javascript"></script>
  7. <script src="externals/flot/jquery.flot.pie.js" type="text/javascript"></script>
  8. <script src="externals/flot/jquery.flot.selection.js" type="text/javascript"></script>
  9. <script src="externals/flot/jquery.flot.stack.js" type="text/javascript"></script>
  10. <script src="externals/jquery.history/jquery.history.js" type="text/javascript"></script>
  11. <script src="data.php" type="text/javascript"></script>
  12. <script src="analyser.js" type="text/javascript"></script>
  13. <style type="text/css">
  14. .categoryIgnored td { color: gray; }
  15. .left { width: 45%; padding: 20px; float: left; }
  16. .right { margin-left: 50%; padding: 20px; }
  17. body { margin: 0; font-family: sans-serif; }
  18. #header { background: url('res/gradient.png') repeat-x; height: 100px; margin: 0 0 10px 0; overflow: hidden; z-index: 0; }
  19. #header h1 { color: white; margin: 0; font-size: 60px; position: absolute; top: 42px; left: 20px; z-index: 2; }
  20. #headershadow { font-size: 60px; position: absolute; top: 42px; left: 25px; font-weight: bold; z-index: 1; }
  21. h2 { margin-top: 10; }
  22. table { border-collapse: collapse; }
  23. tr.alt td { background-color: #ddd; }
  24. td { padding: 3px; }
  25. th { text-align: left; padding: 5px; }
  26. .graph { margin-bottom: 40px; }
  27. .link { color: blue; text-decoration: underline; cursor: pointer; }
  28. #historytable tr.collapsed { opacity: 0.6; }
  29. table tr.total td, table tr.total th { background-color: #666; color: #fff; }
  30. .amount { text-align: right; }
  31. </style>
  32. </head>
  33. <body>
  34. <div id="header">
  35. <h1>Money Analyser</h1>
  36. </div>
  37. <span id="headershadow">Money Analyser</span>
  38. <div class="left">
  39. <h2>Transaction History</h2>
  40. <div id="history" style="width: 600px; height: 300px;" class="graph"></div>
  41. <div id="historytable" style="display: none;"><h3>Transactions for ??</h3><table><tr><th>Date</th><th>Type</th><th>Category</th><th>Description</th><th>Amount</th></tr></table></div>
  42. </div>
  43. <div class="right">
  44. <h2>Categories</h2>
  45. <div id="expense" style="width: 600px; height: 300px;" class="graph"></div>
  46. <h2>Expense Categories</h2>
  47. <div id="cathistory" style="width: 600px; height: 600px;" class="graph"></div>
  48. </div>
  49. </body>
  50. </html>