Hola, No se si esta categoría del Foro sera la correcta para esta pregunta, tengo el siguiente código y al seleccionar un valor (por ejemplo 20000), necesito que me incluya el 20000 también. gracias.
$priceto = $mainframe->getUserStateFromRequest( $option.’priceTo’, ‘priceTo’, ‘0’, ‘string’ );
$priceto = JString::strtolower( $priceto );
$maxprice = array(
‘0’ => array(‘value’ => ‘0’, ‘text’ => ”.JText::_( ‘MOD_RDAUTOS_PLEASE_SELECT_PRICE’ ).”),
‘1’ => array(‘value’ => ‘5000’, ‘text’ => showprice( $config->currencyholder ,5000, $config->currency )),
‘2’ => array(‘value’ => ‘10000’, ‘text’ => showprice( $config->currencyholder ,10000, $config->currency )),
‘3’ => array(‘value’ => ‘20000’, ‘text’ => showprice( $config->currencyholder ,20000, $config->currency )),
‘4’ => array(‘value’ => ‘30000’, ‘text’ => showprice( $config->currencyholder ,30000, $config->currency )),
‘5’ => array(‘value’ => ‘40000’, ‘text’ => showprice( $config->currencyholder ,40000, $config->currency )),
‘6’ => array(‘value’ => ‘50000’, ‘text’ => showprice( $config->currencyholder ,50000, $config->currency )),
‘7’ => array(‘value’ => ‘60000’, ‘text’ => showprice( $config->currencyholder ,60000, $config->currency )),
‘8’ => array(‘value’ => ‘70000’, ‘text’ => showprice( $config->currencyholder ,70000, $config->currency )),
‘9’ => array(‘value’ => ‘80000’, ‘text’ => showprice( $config->currencyholder ,80000, $config->currency )),
’10’ => array(‘value’ => ‘90000’, ‘text’ => showprice( $config->currencyholder ,90000, $config->currency )),
);
$lists[price] = JHTML::_(‘select.genericList’, $maxprice, ‘priceTo’, ‘ class=”inputbox” ‘.$javascriptingisoff,
‘value’, ‘text’, (int)$priceto );
¡ Compartelo en tus Redes Sociales !