Skip to content

Commit

Permalink
Merge pull request #9 from startersclan/fix/clean-up-obsolete-and-red…
Browse files Browse the repository at this point in the history
…undant-code-in-search-class

Fix: Clean up obsolete and redundant code in search class
  • Loading branch information
leojonathanoh committed Oct 29, 2023
2 parents 7eaef1a + 5c03444 commit 7781a61
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions web/pages/search-class.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,21 @@ function drawForm ($getvars = array(), $searchtypes = -1)
}
?>
<table class="data-table" style="width:30%;">
<tr valign="middle" class="bg1">
<tr style="vertical-align:middle;" class="bg1">
<td nowrap="nowrap" style="width:30%;">Search For:</td>
<td style="width:70%;">
<input type="text" name="q" size="20" maxlength="128" value="<?php echo htmlspecialchars($this->query, ENT_QUOTES); ?>" style="width:300px;" />
</td>
</tr>
<tr valign="middle" class="bg1">
<tr style="vertical-align:middle;" class="bg1">
<td nowrap="nowrap" style="width:30%;">In:</td>
<td style="width:70%;">
<?php
echo getSelect('st', $searchtypes, $this->type);
?>
</td>
</tr>
<tr valign="middle" class="bg1">
<tr style="vertical-align:middle" class="bg1">
<td nowrap="nowrap" style="width:30%;">Game:</td>
<td style="width:70%;">
<?php
Expand Down Expand Up @@ -133,9 +133,6 @@ function drawForm ($getvars = array(), $searchtypes = -1)
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
</div><br /><br />
Expand All @@ -149,8 +146,8 @@ function drawResults ($link_player=-1, $link_clan=-1)
if ($link_clan == -1) $link_clan = "mode=claninfo&amp;clan=%k";
?>

</div class="block">
<a name="results"></a>
<div class="block">
<a id="results"></a>
<?php printSectionTitle('Search Results'); ?>
<br /><br />

Expand Down

0 comments on commit 7781a61

Please sign in to comment.