This commit is contained in:
LX3JL 2017-02-02 16:41:06 +01:00
parent edde49c1af
commit 2b834edf39
2 changed files with 20 additions and 1 deletions

View File

@ -131,4 +131,10 @@ background-image: linear-gradient(to bottom, rgb(201, 231, 233) 0%, rgb(220, 237
padding-left : 5px;
padding-top : 3px;
border : 1px #60A1DE solid;
}
.smalllink {
font-size : 12pt;
text-decoration : none;
color : #0E0789;
}

View File

@ -38,6 +38,14 @@ if (isset($_POST['do'])) {
}
}
if (isset($_GET['do'])) {
if ($_GET['do'] == "resetfilter") {
$_SESSION['FilterModule'] = null;
$_SESSION['FilterCallSign'] = null;
}
}
?>
<table border="0">
<tr>
@ -58,7 +66,12 @@ if ($PageOptions['UserPage']['ShowFilter']) {
<input type="text" class="FilterField" value="'.$_SESSION['FilterCallSign'].'" name="txtSetCallsignFilter" placeholder="Callsign" />
<input type="submit" value="Apply" class="FilterSubmit" />
</form>
</td>
</td>';
if (($_SESSION['FilterModule'] != null) || ($_SESSION['FilterCallSign'] != null)) {
echo '
<td><a href="./index.php?do=resetfilter" class="smalllink">Disable filters</a></td>';
}
echo '
<td align="right" style="padding-right:3px;">
<form name="frmFilterModule" method="post" action="./index.php">
<input type="hidden" name="do" value="SetFilter" />