Hello
I have a small problem .
I need to list the records according to the values presented in three dropdown box (which are the list of other data tables ). So far so good. I can list the records according to the choice of filter dropdown box and still order under option radio. But I'd like to have the option to list all the records of a particular field, if the dropdown box is empty.
I searched but did not find anything that can show me the way ...
In submit, I have a custum code whith the next code to order records:
And, in submit, I have a DB Multi Record Loader whith a next code in where box to list the records under selected condition of three dropdown box:
I'd like to have the option to list all the records of a particular field (eg. prova_marcas), if the dropdown box is empty. How to proceed?
Thanks and Have a nice weekend!
António Graça
I have a small problem .
I need to list the records according to the values presented in three dropdown box (which are the list of other data tables ). So far so good. I can list the records according to the choice of filter dropdown box and still order under option radio. But I'd like to have the option to list all the records of a particular field, if the dropdown box is empty.
I searched but did not find anything that can show me the way ...
In submit, I have a custum code whith the next code to order records:
<?php
$Ordenar=$form->data['ordenar'];
if ($Ordenar == 'Data'){
$form->data['order'] = 'data_marcas';
}
elseif ($Ordenar == 'Marca'){
$form->data['order'] = 'marca_marcas';
}
?>
And, in submit, I have a DB Multi Record Loader whith a next code in where box to list the records under selected condition of three dropdown box:
<?php
$user =& JFactory::getUser();
$user_id = $user->id;
$atleta_select=JRequest::getVar('atleta_select');
$prova_select=JRequest::getVar('prova_select');
$epoca_select=JRequest::getVar('epoca_select');
?>
`cf_user_id` = '<?php echo $user_id; ?>' AND
`nome_marcas` = '<?php echo $atleta_select; ?>' AND `prova_marcas` = '<?php echo $prova_select; ?>' AND `epoca_marcas` = '<?php echo $epoca_select; ?>'
I'd like to have the option to list all the records of a particular field (eg. prova_marcas), if the dropdown box is empty. How to proceed?
Thanks and Have a nice weekend!
António Graça