6 '4' => 'Training Warm Up',
7 '5' => 'Training Session',
8 '6' => 'Training Cool Down',
9 '7' => 'Training Rehab',
12 $arr_activity = array(
13 'tackling' => 'Tackling',
14 'tackled' => 'Tackled',
15 'collision' => 'Collision',
17 'elbow' => 'Use of Elbow',
18 'passing' => 'Passing',
19 'shooting' => 'Shooting',
20 'running' => 'Running',
21 'dribbling' => 'Dribbling',
22 'heading' => 'Heading',
23 'jumping' => 'Jumping',
24 'landing' => 'Landing',
26 'stretching' => 'Stretching',
27 'turning' => 'Twist/Turning',
28 'throwing' => 'Throwing',
30 'overuse' => 'Overuse',
33 $arr_sanction = array(
34 'nofoul' => 'No Foul',
35 'oppfoul' => 'Opponent Foul',
36 'ownfoul' => 'Own Foul',
37 'yellow' => 'Yellow Card',
50 $arr_position = array(
52 '2' => 'Midfield Offensive',
53 '3' => 'Midfield Defensive',
55 '5' => 'Goal Keeper' ,
59 $arr_footwear = array(
60 '1' => 'Molded Stud' ,
61 '2' => 'Detachable Stud' ,
62 '3' => 'Indoor Shoes' ,
70 '4' => 'Not Applicable',
79 $arr_match_type = array(
83 '4' => 'Champions League Cup',
84 '5' => 'Championship Match',
85 '6' => 'League One Match',
86 '7' => 'League Two Match',
87 '8' => 'International Match',
93 function rbfiinput($name, $value, $desc, $colname) {
95 $ret = "<input type='radio' name='$name' value='$value'";
96 if ($firow[$colname] == $value) $ret .= " checked";
101 function rbficell($name, $value, $desc, $colname) {
102 return "<td width='25%' nowrap>" . rbfiinput($name, $value, $desc, $colname) . "</td>\n";
105 function cbfiinput($name, $colname) {
107 $ret = "<input type='checkbox' name='$name' value='1'";
108 if ($firow[$colname]) $ret .= " checked";
113 function cbficell($name, $desc, $colname) {
114 return "<td width='25%' nowrap>" . cbfiinput($name, $colname) . "$desc</td>\n";
117 function issue_football_injury_newtype() {
118 echo " var fiadisp = (aitypes[index] == 2) ? '' : 'none';\n";
119 echo " document.getElementById('football_injury').style.display = fiadisp;\n";
122 function issue_football_injury_save($issue) {
123 $query = "REPLACE INTO lists_football_injury ( " .
124 "id, fiinjmin, fiinjtime, fimatchtype, " .
125 "fimech_tackling, fimech_tackled, fimech_collision, " .
126 "fimech_kicked, fimech_elbow, fimech_nofoul, fimech_oppfoul, " .
127 "fimech_ownfoul, fimech_yellow, fimech_red, fimech_passing, " .
128 "fimech_shooting, fimech_running, fimech_dribbling, fimech_heading, " .
129 "fimech_jumping, fimech_landing, fimech_fall, fimech_stretching, " .
130 "fimech_turning, fimech_throwing, fimech_diving, fimech_overuse, " .
131 "fimech_othercon, fimech_othernon, fisurface, fiposition, fifootwear, " .
132 "fiside, firemoved " .
135 invalue('form_injmin') . ", " .
136 rbvalue('form_injtime') . ", " .
137 rbvalue('form_matchtype') . ", " .
138 cbvalue('form_mech_tackling') . ", " .
139 cbvalue('form_mech_tackled') . ", " .
140 cbvalue('form_mech_collision') . ", " .
141 cbvalue('form_mech_kicked') . ", " .
142 cbvalue('form_mech_elbow') . ", " .
143 cbvalue('form_mech_nofoul') . ", " .
144 cbvalue('form_mech_oppfoul') . ", " .
145 cbvalue('form_mech_ownfoul') . ", " .
146 cbvalue('form_mech_yellow') . ", " .
147 cbvalue('form_mech_red') . ", " .
148 cbvalue('form_mech_passing') . ", " .
149 cbvalue('form_mech_shooting') . ", " .
150 cbvalue('form_mech_running') . ", " .
151 cbvalue('form_mech_dribbling') . ", " .
152 cbvalue('form_mech_heading') . ", " .
153 cbvalue('form_mech_jumping') . ", " .
154 cbvalue('form_mech_landing') . ", " .
155 cbvalue('form_mech_fall') . ", " .
156 cbvalue('form_mech_stretching') . ", " .
157 cbvalue('form_mech_turning') . ", " .
158 cbvalue('form_mech_throwing') . ", " .
159 cbvalue('form_mech_diving') . ", " .
160 cbvalue('form_mech_overuse') . ", " .
161 txvalue('form_mech_othercon') . ", " .
162 txvalue('form_mech_othernon') . ", " .
163 rbvalue('form_surface') . ", " .
164 rbvalue('form_position') . ", " .
165 rbvalue('form_footwear') . ", " .
166 rbvalue('form_side') . ", " .
167 rbvalue('form_removed') . " " .
169 sqlStatement($query);
172 function issue_football_injury_form($issue) {
173 global $firow, $arr_match_type;
175 $firow = sqlQuery ("SELECT * FROM lists_football_injury WHERE id = '$issue'");
181 <table border
='1' width
='98%' id
='football_injury' style
='display:none;margin-top:6pt;'>
183 <tr bgcolor
='#dddddd'>
184 <td colspan
='2' align
='center'><b
>Time of Injury
</b
></td
>
188 <td nowrap
>Match Play
</td
>
194 <input type
='text' name
='form_injmin' size
='4'
195 value
='<? echo addslashes($firow['fiinjmin
']) ?>' />
197 <?
echo rbficell('form_injtime', '1', 'Warm Up' , 'fiinjtime') ?
>
198 <?
echo rbficell('form_injtime', '2', 'Extra Time', 'fiinjtime') ?
>
199 <?
echo rbficell('form_injtime', '3', 'Cool Down' , 'fiinjtime') ?
>
206 <td nowrap
>Training
</td
>
210 <?
echo rbficell('form_injtime', '4', 'Warm Up' , 'fiinjtime') ?
>
211 <?
echo rbficell('form_injtime', '5', 'During Session', 'fiinjtime') ?
>
212 <?
echo rbficell('form_injtime', '6', 'Cool Down' , 'fiinjtime') ?
>
213 <?
echo rbficell('form_injtime', '7', 'Rehabilitation', 'fiinjtime') ?
>
220 <td nowrap
>Match Type
</td
>
225 foreach ($arr_match_type as $key => $value) {
226 if ($i %
4 == 0) echo " <tr>\n";
227 echo " " . rbficell('form_matchtype', $key, $value, 'fimatchtype');
229 if ($i %
4 == 0) echo " </tr>\n";
232 echo " <td width='25%'> </td>\n";
234 if ($i %
4 == 0) echo " </tr>\n";
241 <tr bgcolor
='#dddddd'>
242 <td colspan
='2' align
='center'><b
>Mechanism of Injury
</b
></td
>
246 <td nowrap
>Contact
</td
>
250 <?
echo cbficell('form_mech_tackling' , 'Tackling' , 'fimech_tackling' ) ?
>
251 <?
echo cbficell('form_mech_tackled' , 'Tackled' , 'fimech_tackled' ) ?
>
252 <?
echo cbficell('form_mech_collision', 'Collision', 'fimech_collision') ?
>
253 <?
echo cbficell('form_mech_kicked' , 'Kicked' , 'fimech_kicked' ) ?
>
256 <?
echo cbficell('form_mech_elbow' , 'Use of Elbow' , 'fimech_elbow' ) ?
>
257 <td colspan
='3' nowrap
>
259 <input type
='text' name
='form_mech_othercon' size
='10'
260 title
='Describe other'
261 value
='<? echo addslashes($firow['fimech_othercon
']) ?>' />
269 <td nowrap
>Referee
's Sanction</td>
273 <? echo cbficell('form_mech_nofoul
' , 'No Foul
' , 'fimech_nofoul
' ) ?>
274 <? echo cbficell('form_mech_oppfoul
', 'Opponent Foul
', 'fimech_oppfoul
') ?>
275 <? echo cbficell('form_mech_ownfoul
', 'Own Foul
' , 'fimech_ownfoul
') ?>
276 <td width='25%
'> </td>
279 <? echo cbficell('form_mech_yellow
' , 'Yellow Card
' , 'fimech_yellow
' ) ?>
280 <? echo cbficell('form_mech_red
' , 'Red Card
' , 'fimech_red
' ) ?>
281 <td width='25%
'> </td>
282 <td width='25%
'> </td>
289 <td nowrap>Non Contact</td>
293 <? echo cbficell('form_mech_passing
' , 'Passing
' , 'fimech_passing
' ) ?>
294 <? echo cbficell('form_mech_shooting
' , 'Shooting
' , 'fimech_shooting
' ) ?>
295 <? echo cbficell('form_mech_running
' , 'Running
' , 'fimech_running
' ) ?>
296 <? echo cbficell('form_mech_dribbling
', 'Dribbling
', 'fimech_dribbling
') ?>
299 <? echo cbficell('form_mech_heading
' , 'Heading
' , 'fimech_heading
' ) ?>
300 <? echo cbficell('form_mech_jumping
' , 'Jumping
' , 'fimech_jumping
' ) ?>
301 <? echo cbficell('form_mech_landing
' , 'Landing
' , 'fimech_landing
' ) ?>
302 <? echo cbficell('form_mech_fall
' , 'Fall
' , 'fimech_fall
' ) ?>
305 <? echo cbficell('form_mech_stretching
', 'Stretching
' , 'fimech_stretching
') ?>
306 <? echo cbficell('form_mech_turning
' , 'Twisting
/Turning
', 'fimech_turning
' ) ?>
307 <? echo cbficell('form_mech_throwing
' , 'Throwing
' , 'fimech_throwing
' ) ?>
308 <? echo cbficell('form_mech_diving
' , 'Diving
' , 'fimech_diving
' ) ?>
311 <? echo cbficell('form_mech_overuse
', 'Overuse
', 'fimech_overuse
' ) ?>
312 <td colspan='3' nowrap>
314 <input type='text
' name='form_mech_othernon
' size='10'
315 title='Describe other
'
316 value='<?
echo addslashes($firow['fimech_othernon']) ?
>' />
323 <tr bgcolor='#dddddd'>
324 <td colspan
='2' align
='center'><b
>Conditions
</b
></td
>
328 <td nowrap
>Surface
</td
>
332 <?
echo rbficell('form_surface', '1', 'Pitch' , 'fisurface') ?
>
333 <?
echo rbficell('form_surface', '2', 'Training' , 'fisurface') ?
>
334 <?
echo rbficell('form_surface', '3', 'Artificial' , 'fisurface') ?
>
335 <?
echo rbficell('form_surface', '4', 'Indoor' , 'fisurface') ?
>
338 <?
echo rbficell('form_surface', '5', 'Gym' , 'fisurface') ?
>
339 <?
echo rbficell('form_surface', '6', 'Other' , 'fisurface') ?
>
340 <td width
='25%'> 
;</td
>
341 <td width
='25%'> 
;</td
>
348 <td nowrap
>Position
</td
>
352 <?
echo rbficell('form_position', '1', 'Defender' , 'fiposition') ?
>
353 <?
echo rbficell('form_position', '2', 'Midfield Offensive', 'fiposition') ?
>
354 <?
echo rbficell('form_position', '3', 'Midfield Defensive', 'fiposition') ?
>
355 <?
echo rbficell('form_position', '4', 'Forward' , 'fiposition') ?
>
358 <?
echo rbficell('form_position', '5', 'Goal Keeper' , 'fiposition') ?
>
359 <?
echo rbficell('form_position', '6', 'Substitute' , 'fiposition') ?
>
360 <td width
='25%'> 
;</td
>
361 <td width
='25%'> 
;</td
>
368 <td nowrap
>Footwear
</td
>
372 <?
echo rbficell('form_footwear', '1', 'Molded Stud' , 'fifootwear') ?
>
373 <?
echo rbficell('form_footwear', '2', 'Detachable Stud', 'fifootwear') ?
>
374 <?
echo rbficell('form_footwear', '3', 'Indoor Shoes' , 'fifootwear') ?
>
375 <?
echo rbficell('form_footwear', '4', 'Blades' , 'fifootwear') ?
>
382 <td nowrap
>Side of Injury
</td
>
386 <?
echo rbficell('form_side', '1', 'Left' , 'fiside') ?
>
387 <?
echo rbficell('form_side', '2', 'Right' , 'fiside') ?
>
388 <?
echo rbficell('form_side', '3', 'Bilateral' , 'fiside') ?
>
389 <?
echo rbficell('form_side', '4', 'Not Applicable', 'fiside') ?
>
395 <tr bgcolor
='#dddddd'>
396 <td colspan
='2' align
='center'><b
>Post Injury Sequelae
</b
></td
>
400 <td nowrap
>Removed from
<br
>Play
/Training
<br
>after Injury
</td
>
404 <?
echo rbficell('form_removed', '1', 'Immediately', 'firemoved') ?
>
405 <?
echo rbficell('form_removed', '2', 'Later' , 'firemoved') ?
>
406 <?
echo rbficell('form_removed', '3', 'Not at All' , 'firemoved') ?
>
407 <td width
='25%'> 
;</td
>