<script type='text/javascript' language='javascript'>
function mostrarOpciones(contenedor){
var codigoHTML = "El HTML que se va a mostrar";
contenedor.innerHTML = codigoHTML;
}
</script>
<div id='tuDiv'><a href='#' onClick='mostrarFiltros(this);'>Clic aquí para mostrar opciones de filtro</a></div>
<script type='text/javascript' language='javascript'>
function mostrarOpciones(contenedor){
var codigoHTML = " <form action="forumdisplay.php" method="get">
<input type="hidden" name="selectall" value="{$allselected}" />
<input type="hidden" name="fid" value="{$fid}" />
<select name="sortby">
<option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
<option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
<option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
<option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
{$ratingsort}
<option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
<option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
</select>
<select name="order">
<option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
<option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
</select>
<select name="datecut">
<option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
<option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
<option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
<option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
<option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
<option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
<option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
<option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
<option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
</select>
{$gobutton}
</form>";
contenedor.innerHTML = codigoHTML;
}
</script>
<option value="9999" {$datecutsel['9999']}>
<option value='9999' {$datecutsel['9999']}>
<script type='text/javascript' language='javascript'>
function mostrarOpciones(contenedor){
var codigoHTML = " <form action='forumdisplay.php' method='get'>
<input type='hidden' name='selectall' value='{$allselected}' />
<input type='hidden' name='fid' value='{$fid}' />
<select name='sortby'>
<option value='subject' {$sortsel['subject']}>{$lang->sort_by_subject}</option>
<option value='lastpost' {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
<option value='starter' {$sortsel['starter']}>{$lang->sort_by_starter}</option>
<option value='started' {$sortsel['started']}>{$lang->sort_by_started}</option>
{$ratingsort}
<option value='replies' {$sortsel['replies']}>{$lang->sort_by_replies}</option>
<option value='views' {$sortsel['views']}>{$lang->sort_by_views}</option>
</select>
<select name='order'>
<option value='asc' {$ordersel['asc']}>{$lang->sort_order_asc}</option>
<option value='desc' {$ordersel['desc']}>{$lang->sort_order_desc}</option>
</select>
<select name='datecut'>
<option value='1' {$datecutsel['1']}>{$lang->datelimit_1day}</option>
<option value='5' {$datecutsel['5']}>{$lang->datelimit_5days}</option>
<option value='10' {$datecutsel['10']}>{$lang->datelimit_10days}</option>
<option value='20' {$datecutsel['20']}>{$lang->datelimit_20days}</option>
<option value='50' {$datecutsel['50']}>{$lang->datelimit_50days}</option>
<option value='75' {$datecutsel['75']}>{$lang->datelimit_75days}</option>
<option value='100' {$datecutsel['100']}>{$lang->datelimit_100days}</option>
<option value='365' {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
<option value='9999' {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
</select>
{$gobutton}
</form>";
document.getElementById(contenedor).innerHTML = codigoHTML;
}
</script>
<div id='tuDiv'><a href='#' onClick='mostrarOpciones("tuDiv");'>Clic aquí para mostrar opciones de filtro</a></div>
<div id='tuDiv'><a href='#' onClick='mostrarOpciones();'>Clic aquí para mostrar opciones de filtro</a></div>
<div style="display: none" id='tuDiv2'>
<form action='forumdisplay.php' method='get'>
<input type='hidden' name='selectall' value='{$allselected}' />
<input type='hidden' name='fid' value='{$fid}' />
<select name='sortby'>
<option value='subject' {$sortsel['subject']}>{$lang->sort_by_subject}</option>
<option value='lastpost' {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
<option value='starter' {$sortsel['starter']}>{$lang->sort_by_starter}</option>
<option value='started' {$sortsel['started']}>{$lang->sort_by_started}</option>
{$ratingsort}
<option value='replies' {$sortsel['replies']}>{$lang->sort_by_replies}</option>
<option value='views' {$sortsel['views']}>{$lang->sort_by_views}</option>
</select>
<select name='order'>
<option value='asc' {$ordersel['asc']}>{$lang->sort_order_asc}</option>
<option value='desc' {$ordersel['desc']}>{$lang->sort_order_desc}</option>
</select>
<select name='datecut'>
<option value='1' {$datecutsel['1']}>{$lang->datelimit_1day}</option>
<option value='5' {$datecutsel['5']}>{$lang->datelimit_5days}</option>
<option value='10' {$datecutsel['10']}>{$lang->datelimit_10days}</option>
<option value='20' {$datecutsel['20']}>{$lang->datelimit_20days}</option>
<option value='50' {$datecutsel['50']}>{$lang->datelimit_50days}</option>
<option value='75' {$datecutsel['75']}>{$lang->datelimit_75days}</option>
<option value='100' {$datecutsel['100']}>{$lang->datelimit_100days}</option>
<option value='365' {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
<option value='9999' {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
</select>
{$gobutton}
</form></div>
<script type='text/javascript' language='javascript'>
function mostrarOpciones(){
document.getElementById('tuDiv').style.display = 'none';
document.getElementById('tuDiv2').style.display = 'inline';
}
</script>