1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-12-23 10:05:48 -05:00
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

@ -132,3 +132,9 @@ background-image: linear-gradient(to bottom, rgb(201, 231, 233) 0%, rgb(220, 237
padding-top : 3px; padding-top : 3px;
border : 1px #60A1DE solid; 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"> <table border="0">
<tr> <tr>
@ -58,7 +66,12 @@ if ($PageOptions['UserPage']['ShowFilter']) {
<input type="text" class="FilterField" value="'.$_SESSION['FilterCallSign'].'" name="txtSetCallsignFilter" placeholder="Callsign" /> <input type="text" class="FilterField" value="'.$_SESSION['FilterCallSign'].'" name="txtSetCallsignFilter" placeholder="Callsign" />
<input type="submit" value="Apply" class="FilterSubmit" /> <input type="submit" value="Apply" class="FilterSubmit" />
</form> </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;"> <td align="right" style="padding-right:3px;">
<form name="frmFilterModule" method="post" action="./index.php"> <form name="frmFilterModule" method="post" action="./index.php">
<input type="hidden" name="do" value="SetFilter" /> <input type="hidden" name="do" value="SetFilter" />