</td> </tr> </table> <br> <label><i>If NO to any of the above (or any other observations) please provide comments</i></label> <textarea id="remarks" name="remarks" rows="5" cols="70"></textarea> <hr /> <table width='75%' cellspacing=5> <tr> <td>Name of Referee</td> <td colspan=3> <?php createLazyCombo("refereeid", "id", "name", "{$_SESSION['DB_PREFIX']}referee", "", true, 40); ?> </td> </tr> </table> <hr /> <?php require_once 'signature.php'; addSignatureForm(); ?> <input class="submitbutton" type="button" onclick="prevPage()" value="Prev"></input> <input class="submitbutton" type="button" onclick="processorder()" value="Next"></input> </form> <script> $(document).ready(
<thead> <?php createHeader(); ?> </thead> </table> </div> <div id="invoiceitemdialog" class="modal"> <table width="100%" cellpadding="0" cellspacing="4" class="entryformclass"> <tbody> <tr valign="center"> <td>Product</td> <td> <?php createLazyCombo("item_productid", "id", "description", "{$_SESSION['DB_PREFIX']}product", "", true, 80); ?> </td> </tr> <tr valign="center"> <td>Product Code</td> <td> <input type="text" id="item_productcode" name="item_productcode" size=19 readonly /> </td> </tr> <tr valign="center"> <td>Quantity</td> <td> <input type="text" id="item_quantity" name="item_quantity" size=9 onchange="productid_onchange()" /> <input type="hidden" id="item_id" name="item_id" /> </td>
<td> <input type="text" size="2" id="hometeamscore" name="hometeamscore" class="score" value="<?php if (isset($_POST['hometeamscore'])) { echo $_POST['hometeamscore']; } else { echo "0"; } ?> " /> </td> </tr> <tr> <td>Away Team</td> <td> <?php createLazyCombo("oppositionid", "id", "name", "{$_SESSION['DB_PREFIX']}team", "", true, 40); ?> </td> <td>Away Team Score</td> <td> <input type="text" size="2" id="awayteamscore" name="awayteamscore" class="score" value="<?php if (isset($_POST['awayteamscore'])) { echo $_POST['awayteamscore']; } else { echo "0"; } ?> "/> </td> </tr> </table>
public function createFilterScreen() { ?> <iframe style="display:none" id="submitframe" name="submitframe"> </iframe> <div class="modal" id="filtersavedialog"> <label>Filter name</label> <input type="text" id="filtername" name="filtername" size=60 /> </div> <div class="modal" id="filterdialog"> <div id="filterpanel"> <?php $filterformaction = $_SERVER['PHP_SELF'] . "?filtering=true"; foreach ($_GET as $key => $value) { if (strpos($key, "filtering") != 0 && strpos($key, "filter_") != 0) { $filterformaction .= "&" . $key . "=" . $value; } } ?> <form id="filterform" method="POST" enctype="multipart/form-data" action="<?php echo $filterformaction; ?> " > <input type="hidden" id="triggerrefresh" name="triggerrefresh" value="" /> <input type="hidden" id="crudcmd" name="crudcmd" value="" /> <input type="hidden" id="savefiltername" name="savefiltername" value="" /> <table width='100%' cellpadding=0 cellspacing=4> <?php foreach ($this->columns as $col) { if ($col['filter']) { if ($col['type'] == "DERIVED" || $col['type'] == "PASSWORD" || $col['type'] == "IMAGE" || $col['type'] == "BASICTEXTAREA" || $col['type'] == "TEXTAREA" || $col['hidden'] == true) { continue; } echo "<tr valign=center>\n"; echo "<td valign=center nowrap>" . $col['label'] . "</td>\n"; echo "<td nowrap>"; $filterValue = ""; if (isset($_GET['filter_' . $col['name']])) { $filterValue = base64_decode($_GET['filter_' . $col['name']]); } if (isset($_POST['filter_' . $col['name']])) { $filterValue = $_POST['filter_' . $col['name']]; } if ($col['type'] == "TEXTBOX") { if ($col['datatype'] == "timestamp" || $col['datatype'] == "datetime") { echo "<input class='datepicker' type='text' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['datatype'] == "date") { echo "<input class='datepicker' type='text' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['datatype'] == "time") { echo "<input class='timepicker' type='text' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['datatype'] == "contact") { createContactCombo("filter_" . $col['name']); } else { if ($col['datatype'] == "typist") { createTypistCombo("filter_" . $col['name']); } else { if ($col['datatype'] == "user") { createUserCombo("filter_" . $col['name']); } else { echo "<input type='text' style='width:" . $col['length'] * 6 . "px' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } } } } } } } else { if ($col['type'] == "GEOLOCATION") { echo "<input type='text' style='width:" . $col['length'] * 6 . "px' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['type'] == "CHECKBOX") { echo "<input type='checkbox' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "' value='{$filterValue}' />\n"; } else { if ($col['type'] == "BASICTEXTAREA") { echo "<div style='width:600px; height: 150px; overflow:auto' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "'>{$filterValue}</div>\n"; } else { if ($col['type'] == "TEXTAREA") { echo "<div style='width:400px; height: 150px; overflow:auto' id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "'>{$filterValue}</div>\n"; } else { if ($col['type'] == "DATACOMBO") { createCombo("filter_" . $col['name'], $col['table_id'], $col['table_name'], $_SESSION['DB_PREFIX'] . $col['table'], $col['where']); } else { if ($col['type'] == "LAZYDATACOMBO") { createLazyCombo("filter_" . $col['name'], $col['table_id'], $col['table_name'], $_SESSION['DB_PREFIX'] . $col['table'], $col['where'], false, $col['length']); } else { if ($col['type'] == "MULTIDATACOMBO") { createCombo("filter_" . $col['name'], $col['table_id'], $col['table_name'], $_SESSION['DB_PREFIX'] . $col['table']); } else { if ($col['type'] == "COMBO") { echo "<SELECT id='filter_" . $col['name'] . "' name='filter_" . $col['name'] . "'>\n"; echo "<OPTION value=''></OPTION>\n"; foreach ($col['options'] as $opt) { echo "<OPTION value='" . $opt['value'] . "'>" . $opt['text'] . "</OPTION>\n"; } echo "</SELECT>"; } } } } } } } } } echo " " . $col['suffix']; echo "</td>"; echo "</tr>\n"; } } ?> </table> </form> </div> </div> <?php }
<td> <input type="text" size="2" id="hometeamscore" name="hometeamscore" class="score" value="<?php if (isset($_POST['hometeamscore'])) { echo $_POST['hometeamscore']; } else { echo "0"; } ?> " /> </td> </tr> <tr> <td>Away Team</td> <td> <?php createLazyCombo("oppositionid", "id", "name", "{$_SESSION['DB_PREFIX']}teamagegroup", "WHERE age = " . getLoggedOnTeamAge(), true, 40); ?> </td> <td>Away Team Score</td> <td> <input type="text" size="2" id="awayteamscore" name="awayteamscore" class="score" value="<?php if (isset($_POST['awayteamscore'])) { echo $_POST['awayteamscore']; } else { echo "0"; } ?> "/> </td> </tr> </table>