Hello all,
I am trying the following thing.
I have a page that is showing the results via $_GET function of PHP. In the URL the country is parsed to the page, resulting in a page with all the airlines from a country. This list contains the active and inactive airlines, but now I want to make a small filter for it with just 2 options: "Show active airline" and "Show inactive airline". The idea is to make to checkboxes where people can choose an option.
Until here I can make myself but getting it to work I don't really know how to do😟.
I would like to have that when people check one of the boxes, the page automatically reloads with the correct filter applied.
Does someone have any idea how I can achieve this?
Regards,
Ruud
EDIT:
This is what I have in my CC form:
Header:
Body:
I am trying the following thing.
I have a page that is showing the results via $_GET function of PHP. In the URL the country is parsed to the page, resulting in a page with all the airlines from a country. This list contains the active and inactive airlines, but now I want to make a small filter for it with just 2 options: "Show active airline" and "Show inactive airline". The idea is to make to checkboxes where people can choose an option.
Until here I can make myself but getting it to work I don't really know how to do😟.
I would like to have that when people check one of the boxes, the page automatically reloads with the correct filter applied.
Does someone have any idea how I can achieve this?
Regards,
Ruud
EDIT:
This is what I have in my CC form:
Header:
<?php
$land = JRequest::getString('land', '', 'get');
?>
<input type="checkbox" name="actief" value="Ja">Show active airline
<input type="checkbox" name="actief" value="Nee">Show inactive airline
Body:
<table id='tabel' cellspacing='0' cellpadding='0'><tr><td id='header_lt'>Logo</td><td id='header_mt'>Alliantie</td><td id='header_mt'>ICAO/IATA-code</td><td id='header_mt'>Callsign</td><td id='header_rt'>Extra</td></tr>
<tr><td id='header_l' width='200'>
<a href='../airlines/{d7ul5_content.id}-{d7ul5_content.alias}' alt='{Airlines.name}'>
<img src='http://www.aviationinfo.nl/images/logo/airline/logo_{Airlines.name}.gif' alt='{Airlines.name}' width='130'></img></a></td>
<?php
if (!empty($row["Airlines"]["alliantie"]))
{
echo "<td id='header_l' width='100'>
<img src='../images/logo/{Airlines.alliantie}.gif' height='30' border='0'></img>";
}
else
{
echo "<td width='100' id='header_l'>";
}"</td>";
?>
<td width='100' id='header_l'>{Airlines.icao} / {Airlines.iata}</td>
<td width='150' id='header_l'>{Airlines.callsign}</td>
<td width='180' id='header_r'>
<?php
if (!empty($row["Airlines"]["link"]))
{
echo "<a href='http://{Airlines.link}' alt='".$title_artikel."' target='_blank'>{Airlines.link}</a>";
}
else
{
echo "<p class='gestopt'>Airline niet meer actief.<br /> Staakte haar vluchten in {Airlines.gestopt}</p>";
}
echo "<br/>";
if ($row["Airlines"]["zwartelijst"] == 'Ja')
{
echo "<table id='zwartelijsttable'><tr><td id='zwartelijst'>{Airlines.name} staat op de zwartelijst.
</td></tr></table>";
}
else
{
echo "";
}
?>
</td></tr>
<tr><td id='header_lb'></td><td id='header_mb'></td><td id='header_mb'></td><td id='header_mb'></td><td id='header_rb'></td></tr></table><br />