index.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. include_once 'Database.php';
  3. include_once 'WebFunctions.php';
  4. ?>
  5. <!DOCTYPE html>
  6. <html lang="en">
  7. <head>
  8. <meta charset='utf-8'>
  9. <meta http-equiv='X-UA-Compatible'>
  10. <title>Odds webspace</title>
  11. <meta name='viewport' content='width=device-width, initial-scale=1'>
  12. <link rel='stylesheet' type='text/css' media='screen' href='styles.css'>
  13. <link href="https://cdn.datatables.net/1.13.3/css/jquery.dataTables.css">
  14. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
  15. <script src="https://cdn.datatables.net/1.13.3/js/jquery.dataTables.js"></script>
  16. </head>
  17. <body>
  18. <h1> Odds better </h1>
  19. <?php
  20. $betAmount = 0.25;
  21. $bank = 500;
  22. echo '<label>Bank: </label><form><input type="number" id="bankInput" size="10" value="' .
  23. $bank .
  24. '"></form>';
  25. $database = new Database();
  26. $matches = $database->getTodaysPrioMatches();
  27. $wf = new WebFunctions();
  28. $wf->createMatchTable($matches, $betAmount, $bank);
  29. $wf->createOutstandingBetsTable();
  30. ?>
  31. <p>Another test p tag 2/p>
  32. <script>
  33. $(document).ready( function () {
  34. $('#soccerMatchTable').DataTable();
  35. } );
  36. </script>
  37. <script>
  38. $(document).ready( function () {
  39. $('#outstandingBetsTable').DataTable();
  40. } );
  41. </script>
  42. <!-- Script to handle submit button -->
  43. </body>
  44. </html>