|
@@ -41,7 +41,7 @@ $betMarginAway = 1 + ($leagueInfo['betMarginAway'] / 100);
|
|
|
<tbody>
|
|
<tbody>
|
|
|
<?php
|
|
<?php
|
|
|
foreach ($matches as $match) {
|
|
foreach ($matches as $match) {
|
|
|
- echo "<form action='makeBet.php' method='post' target='hiddenFrame'>";
|
|
|
|
|
|
|
+ echo "<form id='makeBetFormId' action='makeBet.php' method='post' target='hiddenFrame'>";
|
|
|
echo "<tr>";
|
|
echo "<tr>";
|
|
|
echo "<td hidden><input hidden id='gameId' name='gameIdName' value='" . $match['id'] . "'/>";
|
|
echo "<td hidden><input hidden id='gameId' name='gameIdName' value='" . $match['id'] . "'/>";
|
|
|
echo "<td>".$match['gameDate'] . "</td>";
|
|
echo "<td>".$match['gameDate'] . "</td>";
|
|
@@ -50,7 +50,11 @@ $betMarginAway = 1 + ($leagueInfo['betMarginAway'] / 100);
|
|
|
echo "<td>". round((100 / $match['homeWinPercent']) * $betMarginHome, 2) . "</td>";
|
|
echo "<td>". round((100 / $match['homeWinPercent']) * $betMarginHome, 2) . "</td>";
|
|
|
echo "<td>". round((100 / $match['drawPercent']) * $betMarginDraw, 2) . "</td>";
|
|
echo "<td>". round((100 / $match['drawPercent']) * $betMarginDraw, 2) . "</td>";
|
|
|
echo "<td>". round((100 / $match['awayWinPercent']) * $betMarginAway, 2) . "</td>";
|
|
echo "<td>". round((100 / $match['awayWinPercent']) * $betMarginAway, 2) . "</td>";
|
|
|
- echo "<td><input id='betHome' name='betHomeName' type='checkbox'/></td>";
|
|
|
|
|
|
|
+ echo "<td><select form='makeBetFormId' id='betType' name='betTypeName'>
|
|
|
|
|
+ <option value='1'>1</option>
|
|
|
|
|
+ <option value='X'>X</option>
|
|
|
|
|
+ <option value='2'>2</option>
|
|
|
|
|
+ </select></td>";
|
|
|
echo "<td><input id='betOdds' name='betOddsName' type='number' step='.01'/></td>";
|
|
echo "<td><input id='betOdds' name='betOddsName' type='number' step='.01'/></td>";
|
|
|
echo "<td><input id='betAmount' name='betAmountName' type='number' step='.01'/></td>";
|
|
echo "<td><input id='betAmount' name='betAmountName' type='number' step='.01'/></td>";
|
|
|
echo "<td><input id='button' type='submit'/></td>";
|
|
echo "<td><input id='button' type='submit'/></td>";
|