| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- include_once 'Database.php';
- include_once 'WebFunctions.php';
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset='utf-8'>
- <meta http-equiv='X-UA-Compatible'>
- <title>Odds webspace</title>
- <meta name='viewport' content='width=device-width, initial-scale=1'>
- <link rel='stylesheet' type='text/css' media='screen' href='styles.css'>
- <link href="https://cdn.datatables.net/1.13.3/css/jquery.dataTables.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
- <script src="https://cdn.datatables.net/1.13.3/js/jquery.dataTables.js"></script>
- </head>
- <body>
- <h1> Odds better </h1>
- <?php
- $betAmount = 0.25;
- $bank = 500;
- echo '<label>Bank: </label><form><input type="number" id="bankInput" size="10" value="' .
- $bank .
- '"></form>';
- $database = new Database();
- $matches = $database->getTodaysPrioMatches();
- $wf = new WebFunctions();
- $wf->createMatchTable($matches, $betAmount, $bank);
- $wf->createOutstandingBetsTable();
- ?>
- <p>Another test p tag 2/p>
- <script>
- $(document).ready( function () {
- $('#soccerMatchTable').DataTable();
- } );
- </script>
- <script>
- $(document).ready( function () {
- $('#outstandingBetsTable').DataTable();
- } );
- </script>
- <!-- Script to handle submit button -->
- </body>
- </html>
|