function issue_football_injury_form($issue) { global $firow, $arr_match_type, $arr_injtime, $arr_training_type; global $arr_activity, $arr_activity_contact_count, $arr_position; global $arr_surface, $arr_condition, $arr_weather, $arr_footwear; if ($issue) { $firow = sqlQuery("SELECT * FROM lists_football_injury WHERE id = '{$issue}'"); } else { $firow = array(); } ?> <table border='1' width='98%' id='football_injury' style='display:none;margin-top:6pt;'> <tr bgcolor='#dddddd'> <td colspan='2' align='center'><b>Timing of Injury</b></td> </tr> <tr> <td nowrap>Match Play</td> <td nowrap> <table width='100%'> <tr> <td nowrap> Min of Injury <input type='text' name='form_injmin' size='4' value='<?php echo addslashes($firow['fiinjmin']); ?> ' /> </td> <?php $i = 1; foreach ($arr_injtime as $key => $value) { // Skip deprecated values except if currently selected. if (stristr($value, 'deprecated') && $firow['fiinjtime'] != $key) { continue; } // if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . rbficell('form_injtime', $key, $value, 'fiinjtime'); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </tr> </table> </td> </tr> <!-- Training Type and Match Type are all a single set of radio buttons. --> <tr> <td nowrap>Training Type</td> <td nowrap> <table width='100%'> <?php $i = 0; foreach ($arr_training_type as $key => $value) { if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . rbficell('form_matchtype', $key, $value, 'fimatchtype'); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr> <td nowrap>Match Type</td> <td nowrap> <table width='100%'> <?php $i = 0; foreach ($arr_match_type as $key => $value) { // Skip deprecated values except if currently selected. if (stristr($value, 'deprecated') && $firow['fimatchtype'] != $key) { continue; } // if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . rbficell('form_matchtype', $key, $value, 'fimatchtype'); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr bgcolor='#dddddd'> <td colspan='2' align='center'><b>Injury Mechanism</b></td> </tr> <tr> <td nowrap>Contact</td> <td nowrap> <table width='100%'> <?php $i = 0; $index = 0; foreach ($arr_activity as $key => $value) { if (++$index > $arr_activity_contact_count) { break; } // Skip deprecated values except if currently selected. if (stristr($value, 'deprecated') && empty($firow["fimech_{$key}"])) { continue; } // if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . cbficell("form_mech_{$key}", $value, "fimech_{$key}"); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> <td nowrap> Other: <input type='text' name='form_mech_othercon' size='8' title='Describe other' value='<?php echo addslashes($firow['fimech_othercon']); ?> ' /> </td> <?php ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr> <td nowrap>Non Contact</td> <td nowrap> <table width='100%'> <?php $i = 0; $index = 0; foreach ($arr_activity as $key => $value) { if (++$index <= $arr_activity_contact_count) { continue; } // Skip deprecated values except if currently selected. if (stristr($value, 'deprecated') && empty($firow["fimech_{$key}"])) { continue; } // if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . cbficell("form_mech_{$key}", $value, "fimech_{$key}"); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> <td nowrap> Other: <input type='text' name='form_mech_othernon' size='8' title='Describe other' value='<?php echo addslashes($firow['fimech_othernon']); ?> ' /> </td> <?php ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr bgcolor='#dddddd'> <td colspan='2' align='center'><b>Additional Factors</b></td> </tr> <tr> <td nowrap>Playing Position</td> <td nowrap> <table width='100%'> <?php $i = 0; foreach ($arr_position as $key => $value) { // Skip deprecated values except if currently selected. if (stristr($value, 'deprecated') && $firow['fiposition'] != $key) { continue; } // if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . rbficell('form_position', $key, $value, 'fiposition'); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr> <td nowrap>Surface</td> <td nowrap> <table width='100%'> <?php $i = 0; foreach ($arr_surface as $key => $value) { // Skip deprecated values except if currently selected. if (stristr($value, 'deprecated') && $firow['fisurface'] != $key) { continue; } // if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . rbficell('form_surface', $key, $value, 'fisurface'); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr> <td nowrap>Condition of Grass/Pitch</td> <td nowrap> <table width='100%'> <?php $i = 0; foreach ($arr_condition as $key => $value) { // Skip deprecated values except if currently selected. if (stristr($value, 'deprecated') && $firow['ficondition'] != $key) { continue; } // if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . rbficell('form_condition', $key, $value, 'ficondition'); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr> <td nowrap>Weather Conditions</td> <td nowrap> <table width='100%'> <?php $i = 0; foreach ($arr_weather as $key => $value) { if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . cbficell("form_weather_{$key}", $value, "fiweather_{$key}"); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> <td nowrap> Temperature: <input type='text' name='form_weather_temperature' size='3' title='Ambient temperature in degrees Celsius' value='<?php echo addslashes($firow['fiweather_temperature']); ?> ' /> </td> <?php ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr> <td nowrap>Footwear</td> <td nowrap> <table width='100%'> <?php $i = 0; foreach ($arr_footwear as $key => $value) { // Skip deprecated values except if currently selected. if (stristr($value, 'deprecated') && $firow['fifootwear'] != $key) { continue; } // if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . rbficell('form_footwear', $key, $value, 'fifootwear'); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr bgcolor='#dddddd'> <td colspan='2' align='center'><b>Referee's Sanction</b></td> </tr> <tr> <td nowrap>Referee's Sanction</td> <td nowrap> <table width='100%'> <tr> <?php echo cbficell('form_mech_nofoul', 'No Foul', 'fimech_nofoul'); ?> <?php echo cbficell('form_mech_oppfoul', 'Opponent Foul', 'fimech_oppfoul'); ?> <?php echo cbficell('form_mech_ownfoul', 'Own Foul', 'fimech_ownfoul'); ?> <td width='25%'> </td> </tr> <tr> <?php echo cbficell('form_mech_yellow', 'Yellow Card', 'fimech_yellow'); ?> <?php echo cbficell('form_mech_red', 'Red Card', 'fimech_red'); ?> <td width='25%'> </td> <td width='25%'> </td> </tr> </table> </td> </tr> <tr bgcolor='#dddddd'> <td colspan='2' align='center'><b>Post Injury Sequelae</b></td> </tr> <tr> <td nowrap>Removed from<br>Play/Training<br>after Injury</td> <td nowrap> <table width='100%'> <tr> <?php echo rbficell('form_removed', '1', 'Immediately', 'firemoved'); ?> <?php echo rbficell('form_removed', '2', 'Later', 'firemoved'); ?> <?php echo rbficell('form_removed', '3', 'Not at All', 'firemoved'); ?> <td width='25%'> </td> </tr> </table> </td> </tr> </table> <?php }
function issue_football_injury_form($issue) { global $firow, $arr_match_type; if ($issue) { $firow = sqlQuery("SELECT * FROM lists_football_injury WHERE id = '{$issue}'"); } else { $firow = array(); } ?> <table border='1' width='98%' id='football_injury' style='display:none;margin-top:6pt;'> <tr bgcolor='#dddddd'> <td colspan='2' align='center'><b>Time of Injury</b></td> </tr> <tr> <td nowrap>Match Play</td> <td nowrap> <table width='100%'> <tr> <td nowrap> Min of Injury <input type='text' name='form_injmin' size='4' value='<?php echo addslashes($firow['fiinjmin']); ?> ' /> </td> <?php echo rbficell('form_injtime', '1', 'Warm Up', 'fiinjtime'); ?> <?php echo rbficell('form_injtime', '2', 'Extra Time', 'fiinjtime'); ?> <?php echo rbficell('form_injtime', '3', 'Cool Down', 'fiinjtime'); ?> </tr> </table> </td> </tr> <tr> <td nowrap>Training</td> <td nowrap> <table width='100%'> <tr> <?php echo rbficell('form_injtime', '4', 'Warm Up', 'fiinjtime'); ?> <?php echo rbficell('form_injtime', '5', 'During Session', 'fiinjtime'); ?> <?php echo rbficell('form_injtime', '6', 'Cool Down', 'fiinjtime'); ?> <?php echo rbficell('form_injtime', '7', 'Rehabilitation', 'fiinjtime'); ?> </tr> </table> </td> </tr> <tr> <td nowrap>Match Type</td> <td nowrap> <table width='100%'> <?php $i = 0; foreach ($arr_match_type as $key => $value) { if ($i % 4 == 0) { echo " <tr>\n"; } echo " " . rbficell('form_matchtype', $key, $value, 'fimatchtype'); ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } while ($i % 4 > 0) { echo " <td width='25%'> </td>\n"; ++$i; if ($i % 4 == 0) { echo " </tr>\n"; } } ?> </table> </td> </tr> <tr bgcolor='#dddddd'> <td colspan='2' align='center'><b>Mechanism of Injury</b></td> </tr> <tr> <td nowrap>Contact</td> <td nowrap> <table width='100%'> <tr> <?php echo cbficell('form_mech_tackling', 'Tackling', 'fimech_tackling'); ?> <?php echo cbficell('form_mech_tackled', 'Tackled', 'fimech_tackled'); ?> <?php echo cbficell('form_mech_collision', 'Collision', 'fimech_collision'); ?> <?php echo cbficell('form_mech_kicked', 'Kicked', 'fimech_kicked'); ?> </tr> <tr> <?php echo cbficell('form_mech_elbow', 'Use of Elbow', 'fimech_elbow'); ?> <td colspan='3' nowrap> Other: <input type='text' name='form_mech_othercon' size='10' title='Describe other' value='<?php echo addslashes($firow['fimech_othercon']); ?> ' /> </td> </tr> </table> </td> </tr> <tr> <td nowrap>Referee's Sanction</td> <td nowrap> <table width='100%'> <tr> <?php echo cbficell('form_mech_nofoul', 'No Foul', 'fimech_nofoul'); ?> <?php echo cbficell('form_mech_oppfoul', 'Opponent Foul', 'fimech_oppfoul'); ?> <?php echo cbficell('form_mech_ownfoul', 'Own Foul', 'fimech_ownfoul'); ?> <td width='25%'> </td> </tr> <tr> <?php echo cbficell('form_mech_yellow', 'Yellow Card', 'fimech_yellow'); ?> <?php echo cbficell('form_mech_red', 'Red Card', 'fimech_red'); ?> <td width='25%'> </td> <td width='25%'> </td> </tr> </table> </td> </tr> <tr> <td nowrap>Non Contact</td> <td nowrap> <table width='100%'> <tr> <?php echo cbficell('form_mech_passing', 'Passing', 'fimech_passing'); ?> <?php echo cbficell('form_mech_shooting', 'Shooting', 'fimech_shooting'); ?> <?php echo cbficell('form_mech_running', 'Running', 'fimech_running'); ?> <?php echo cbficell('form_mech_dribbling', 'Dribbling', 'fimech_dribbling'); ?> </tr> <tr> <?php echo cbficell('form_mech_heading', 'Heading', 'fimech_heading'); ?> <?php echo cbficell('form_mech_jumping', 'Jumping', 'fimech_jumping'); ?> <?php echo cbficell('form_mech_landing', 'Landing', 'fimech_landing'); ?> <?php echo cbficell('form_mech_fall', 'Fall', 'fimech_fall'); ?> </tr> <tr> <?php echo cbficell('form_mech_stretching', 'Stretching', 'fimech_stretching'); ?> <?php echo cbficell('form_mech_turning', 'Twisting/Turning', 'fimech_turning'); ?> <?php echo cbficell('form_mech_throwing', 'Throwing', 'fimech_throwing'); ?> <?php echo cbficell('form_mech_diving', 'Diving', 'fimech_diving'); ?> </tr> <tr> <?php echo cbficell('form_mech_overuse', 'Overuse', 'fimech_overuse'); ?> <td colspan='3' nowrap> Other: <input type='text' name='form_mech_othernon' size='10' title='Describe other' value='<?php echo addslashes($firow['fimech_othernon']); ?> ' /> </td> </tr> </table> </td> </tr> <tr bgcolor='#dddddd'> <td colspan='2' align='center'><b>Conditions</b></td> </tr> <tr> <td nowrap>Surface</td> <td nowrap> <table width='100%'> <tr> <?php echo rbficell('form_surface', '1', 'Pitch', 'fisurface'); ?> <?php echo rbficell('form_surface', '2', 'Training', 'fisurface'); ?> <?php echo rbficell('form_surface', '3', 'Artificial', 'fisurface'); ?> <?php echo rbficell('form_surface', '4', 'Indoor', 'fisurface'); ?> </tr> <tr> <?php echo rbficell('form_surface', '5', 'Gym', 'fisurface'); ?> <?php echo rbficell('form_surface', '6', 'Other', 'fisurface'); ?> <td width='25%'> </td> <td width='25%'> </td> </tr> </table> </td> </tr> <tr> <td nowrap>Position</td> <td nowrap> <table width='100%'> <tr> <?php echo rbficell('form_position', '1', 'Defender', 'fiposition'); ?> <?php echo rbficell('form_position', '2', 'Midfield Offensive', 'fiposition'); ?> <?php echo rbficell('form_position', '3', 'Midfield Defensive', 'fiposition'); ?> <?php echo rbficell('form_position', '4', 'Forward', 'fiposition'); ?> </tr> <tr> <?php echo rbficell('form_position', '5', 'Goal Keeper', 'fiposition'); ?> <?php echo rbficell('form_position', '6', 'Substitute', 'fiposition'); ?> <td width='25%'> </td> <td width='25%'> </td> </tr> </table> </td> </tr> <tr> <td nowrap>Footwear</td> <td nowrap> <table width='100%'> <tr> <?php echo rbficell('form_footwear', '1', 'Molded Stud', 'fifootwear'); ?> <?php echo rbficell('form_footwear', '2', 'Detachable Stud', 'fifootwear'); ?> <?php echo rbficell('form_footwear', '3', 'Indoor Shoes', 'fifootwear'); ?> <?php echo rbficell('form_footwear', '4', 'Blades', 'fifootwear'); ?> </tr> </table> </td> </tr> <tr> <td nowrap>Side of Injury</td> <td nowrap> <table width='100%'> <tr> <?php echo rbficell('form_side', '1', 'Left', 'fiside'); ?> <?php echo rbficell('form_side', '2', 'Right', 'fiside'); ?> <?php echo rbficell('form_side', '3', 'Bilateral', 'fiside'); ?> <?php echo rbficell('form_side', '4', 'Not Applicable', 'fiside'); ?> </tr> </table> </td> </tr> <tr bgcolor='#dddddd'> <td colspan='2' align='center'><b>Post Injury Sequelae</b></td> </tr> <tr> <td nowrap>Removed from<br>Play/Training<br>after Injury</td> <td nowrap> <table width='100%'> <tr> <?php echo rbficell('form_removed', '1', 'Immediately', 'firemoved'); ?> <?php echo rbficell('form_removed', '2', 'Later', 'firemoved'); ?> <?php echo rbficell('form_removed', '3', 'Not at All', 'firemoved'); ?> <td width='25%'> </td> </tr> </table> </td> </tr> </table> <?php }