forked from SimonT-STHS/STHS-DynamicWebsite-Production
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SearchHistoryPlayerInfo.php
78 lines (76 loc) · 4.18 KB
/
SearchHistoryPlayerInfo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php If (isset($SearchLang) == False){include 'LanguageEN.php';} if (isset($MaximumResult) == False){$OrderByInput = "";$lang="en";$Type=0;$Expansion=False;$AvailableForTrade=False;$Injury=False;$Retire=False;$MaximumResult=0;$DESCQuery=True;$FreeAgentYear=0;$PlayersInformationPossibleOrderField=array();$Search=True;$Team=0;$Playoff=False;$Year=0;}?>
<form action="PlayersInfo.php" method="get">
<table class="STHSTable">
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['Year'];?></td><td class="STHSW250">
<select name="Year" class="STHSSelect STHSW250">
<?php
echo "<option";if($Year == 0){echo " selected=\"selected\"";} echo " value=\"\">" . $SearchLang['ThisSeason'] . "</option>";
if (empty($HistoryYear) == false){while ($Row = $HistoryYear ->fetchArray()) {
echo "<option";if($Row['Year'] == $Year){echo " selected=\"selected\"";} echo " value=\"" . $Row['Year'] . "\">" . $Row['Year'] . "</option>";
}} ?>
</select></td>
</tr>
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['Team'];?></td><td class="STHSW250">
<select name="Team" class="STHSSelect STHSW250">
<?php
echo "<option"; if($Team == 0){echo " selected=\"selected\"";}echo" value=\"\">" . $SearchLang['AllTeam'] . "</option>";
if (empty($HistoryTeam) == false){while ($Row = $HistoryTeam->fetchArray()) {
echo "<option value=\"" . $Row['Number'] . "\"";
if ($Row['Number'] == $Team){echo " selected=\"selected\"";}
echo ">" . $Row['Name'] . "</option>";
}}
?>
</select></td>
</tr>
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['Playoff'];?></td><td class="STHSW250">
<input type="checkbox" name="Playoff"<?php if($Playoff == "True"){echo " checked";}?>></td>
</tr>
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['Type'];?></td><td class="STHSW250">
<select name="Type" class="STHSSelect STHSW250">
<option <?php if($Type == 0){echo " selected=\"selected\" ";}?>value="0"><?php echo $SearchLang['ProandFarm'];?></option>
<option <?php if($Type == 1){echo " selected=\"selected\" ";}?>value="1"><?php echo $SearchLang['ProOnly'];?></option>
<option <?php if($Type == 2){echo " selected=\"selected\" ";}?>value="2"><?php echo $SearchLang['FarmOnly'];?></option>
</select></td>
</tr>
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['OrderField'];?></td><td class="STHSW250">
<select name="Order" class="STHSSelect STHSW250">
<?php
echo "<option";if($OrderByInput == ""){echo " selected=\"selected\"";} echo " value=\"\">" . $SearchLang['Select'] . "</option>";
foreach ($PlayersInformationPossibleOrderField as $Value) {
echo "<option";if($OrderByInput == $Value[0]){echo " selected=\"selected\"";} echo " value=\"" . $Value[0] . "\">" . $Value[1] . "</option>";
} ?>
</select></td>
</tr>
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['Max'];?></td><td class="STHSW250">
<select name="Max" class="STHSSelect STHSW250">
<?php echo "<option ";if($MaximumResult == 0){echo " selected=\"selected\"";}echo" value=\"\">" . $SearchLang['Unlimited']. "</option>";
for ($i=5;$i <=100;$i = $i +5)
{
echo "<option";if($MaximumResult == $i){echo " selected=\"selected\"";} echo " value=\"" . $i . "\">" . $i . "</option>";
}
?>
</select></td>
</tr>
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['DecendingOrder'];?></td><td class="STHSW250">
<?php If ($lang == "fr"){echo "<input type=\"hidden\" name=\"Lang\" value=\"fr\">";}?>
<input type="checkbox" name="DESC"<?php if($DESCQuery == True){echo " checked";}?>></td>
</tr>
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['AvailableForTrade'];?></td><td class="STHSW250">
<input type="checkbox" name="AvailableForTrade"<?php if($AvailableForTrade == True){echo " checked";}?>></td>
</tr>
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['Retire'];?></td><td class="STHSW250">
<input type="checkbox" name="Retire"<?php if($Retire == "'True'"){echo " checked";}?>></td>
</tr>
<tr>
<td colspan="2" class="STHSCenter"><input type="submit" class="SubmitButton" value="<?php echo $SearchLang['Submit'];?>"></td>
</tr>
</table></form>