|
41 | 41 | $PHP_OUTPUT.= '<table class="standard">'; |
42 | 42 | for ($i=1;$i<=9;$i++) { |
43 | 43 | $PHP_OUTPUT.= '<tr><td class="right">Level ' . $i . ' Ports</td><td class="left">'; |
44 | | - $PHP_OUTPUT.= '<input type="text" value="'; |
| 44 | + $PHP_OUTPUT.= '<input type="number" value="'; |
45 | 45 | $PHP_OUTPUT.= $totalPorts[$i]; |
46 | 46 | $PHP_OUTPUT.= '" size="5" name="port' . $i . '" onFocus="startCalc();" onBlur="stopCalc();"></td></tr>'; |
47 | 47 | } |
48 | | -$PHP_OUTPUT.= '<tr><td class="right">Total Ports</td><td class="left"><input size="5" name="total" type="text" value="'; |
| 48 | +$PHP_OUTPUT.= '<tr><td type="number" class="right">Total Ports</td><td class="left"><input type="number" size="5" name="total" value="'; |
49 | 49 | $PHP_OUTPUT.= $total['Ports']; |
50 | 50 | $PHP_OUTPUT.= '"></td></tr>'; |
51 | 51 | $PHP_OUTPUT.= '</table>'; |
|
54 | 54 |
|
55 | 55 | $races =& Globals::getRaces(); |
56 | 56 | foreach ($races as &$race) { |
57 | | - $PHP_OUTPUT.= '<tr><td class="right">' . $race['Race Name'] . '</td><td class="left"><input size="5" name="race' . $race['Race ID'] . '" value="0" type="text" onFocus="startRaceCalc();" onBlur="stopRaceCalc();"></td></tr>'; |
| 57 | + $PHP_OUTPUT.= '<tr><td class="right">' . $race['Race Name'] . '</td><td class="left"><input type="number" size="5" name="race' . $race['Race ID'] . '" value="0" onFocus="startRaceCalc();" onBlur="stopRaceCalc();"></td></tr>'; |
58 | 58 | } |
59 | | -$PHP_OUTPUT.= '<tr><td class="right">Total</td><td class="left"><input size="5" name="racedist" value="0" type="text"></td></tr>'; |
| 59 | +$PHP_OUTPUT.= '<tr><td class="right">Total</td><td class="left"><input type="number" size="5" name="racedist" value="0"></td></tr>'; |
60 | 60 | $PHP_OUTPUT.= '<tr><td class="center" colspan="2">'; |
61 | 61 | $PHP_OUTPUT.= '<div class="buttonA"><a class="buttonA" onClick="setEven();"> Set All Equal </a></div></td></tr>'; |
62 | 62 | $PHP_OUTPUT.= '</table>'; |
63 | 63 | $PHP_OUTPUT.= '</td><td class="center"><table class="standard">'; |
64 | 64 | for ($i=1;$i<=20;$i++) { |
65 | 65 | $PHP_OUTPUT.= '<tr><td class="right">Level ' . $i . ' Mines</td><td class="left">'; |
66 | | - $PHP_OUTPUT.= '<input type="text" value="'; |
| 66 | + $PHP_OUTPUT.= '<input type="number" value="'; |
67 | 67 | $PHP_OUTPUT.= $totalMines[$i]; |
68 | 68 | $PHP_OUTPUT.= '" size="5" name="mine' . $i . '" onFocus="startCalcM();" onBlur="stopCalcM();"></td></tr>'; |
69 | 69 | } |
70 | | -$PHP_OUTPUT.= '<tr><td class="right">Total Mines</td><td class="left"><input size="5" name="totalM" type="text" value="'; |
| 70 | +$PHP_OUTPUT.= '<tr><td class="right">Total Mines</td><td class="left"><input type="number" size="5" name="totalM" value="'; |
71 | 71 | $PHP_OUTPUT.= $total['Mines']; |
72 | 72 | $PHP_OUTPUT.= '"></td></tr>'; |
73 | 73 | $PHP_OUTPUT.= '</table></td></tr>'; |
|
0 commit comments