forked from SimonT-STHS/STHS-DynamicWebsite-Production
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSearchProspects.php
38 lines (38 loc) · 1.91 KB
/
SearchProspects.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
<?php If (isset($SearchLang) == False){include 'LanguageEN.php';} if (isset($MaximumResult) == False){$MaximumResult=0;$ACSQuery=True;$DESCQuery = True;$lang="en";$Search=True;$Team=0;}?>
<form action="Prospects.php" method="get">
<table class="STHSTable">
<tr>
<td class="STHSW200 STHSPHPSearch_Field"><?php echo $SearchLang['Team'];?></td><td class="STHSW250">
<select name="Team" class="STHSSelect STHSW250">
<?php
echo "<option"; if($Search == TRUE OR $Team == 0){echo " selected=\"selected\"";}echo" value=\"\">" . $SearchLang['AllTeam'] . "</option>";
$Query = "SELECT Number, Name FROM TeamProInfo Order By Name";
If (isset($db)){$TeamNameSearch = $db->query($Query);}
if (empty($TeamNameSearch) == false){while ($Row = $TeamNameSearch ->fetchArray()) {
echo "<option value=\"" . $Row['Number'] . "\"";
if($Search == False){if ($Row['Number'] == $Team){echo " selected=\"selected\"";}}
echo ">" . $Row['Name'] . "</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 colspan="2" class="STHSCenter"><input type="submit" class="SubmitButton" value="<?php echo $SearchLang['Submit'];?>"></td>
</tr>
</table></form>