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 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/jquery.history/jquery.history.js" type="text/javascript"></script>
  10. <script src="data.php" type="text/javascript"></script>
  11. <script src="analyser.js" type="text/javascript"></script>
  12. <style type="text/css">
  13. .categoryIgnored td { color: gray; }
  14. .left { width: 45%; padding: 20px; float: left; }
  15. .right { margin-left: 50%; padding: 20px; }
  16. body { margin: 0; font-family: sans-serif; }
  17. #header { background: url('res/gradient.png') repeat-x; height: 100px; margin: 0 0 10px 0; overflow: hidden; z-index: 0; }
  18. #header h1 { color: white; margin: 0; font-size: 60px; position: absolute; top: 42px; left: 20px; z-index: 2; }
  19. #headershadow { font-size: 60px; position: absolute; top: 42px; left: 25px; font-weight: bold; z-index: 1; }
  20. h2 { margin-top: 0; }
  21. table { border-collapse: collapse; }
  22. tr.alt td { background-color: #ddd; }
  23. td { padding: 3px; }
  24. th { text-align: left; }
  25. </style>
  26. </head>
  27. <body>
  28. <div id="header">
  29. <h1>Money Analyser</h1>
  30. </div>
  31. <span id="headershadow">Money Analyser</span>
  32. <div class="left">
  33. <h2>Transaction History</h2>
  34. <div id="history" style="width: 600px; height: 300px;"></div>
  35. <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>
  36. </div>
  37. <div class="right">
  38. <h2>Categories</h2>
  39. <div id="expense" style="width: 600px; height: 300px;"></div>
  40. </div>
  41. </body>
  42. </html>