Dropdown to text

Hi all I am using a mod for catogorys. and it uses a select dropdown function to display the catogorys and number of events within each category.

My problem is i dont want to use  a dropdown I want to display text. has anyone got an idea on how to modify this pice of code to do what im talking about.

The code.

$sCategorieOptions = '';
$sSelCategorie = isset($aShow['categorie']) ? $aShow['categorie'] : '';
$sCategorieOptions .= "<option value=\"none\" >". _t('_Select it') ."</option>";
foreach ( $aPreValues['EventCategorie'] as $key => $value ) {
$sCategorieSelected = ( $sSelCategorie == $key ) ? 'selected="selected"' : '';
$sQueryCategories = "
SELECT COUNT(*)
FROM `SDatingEvents`
WHERE
`SDatingEvents`.`EventCategorie` = {$key} AND `SDatingEvents`.`Status` = 'Active' AND `SDatingEvents`.`EventStart` >= NOW()
";
$iTotCatEvents = (int)db_value( $sQueryCategories );
$sCategorieOptions .= "<option value=\"{$key}\" ". $sCategorieSelected ." >". _t($value['LKey']) ." ({$iTotCatEvents})</option>";
}

$sFilter = <<<EOF

<table cellpadding="2" cellspacing="0" border="0" class="text" width="320">
<tr>
<td class="text"><b>{$sEventCategorieFilterC}:</b></td>
</tr>
<tr>
<td class="text"><form id="showEventsForm" action="{$_SERVER['PHP_SELF']}" method="get">
<select class="no" onchange="parent.location.href='events.php?show_events=categorie&show_events_categorie='+this.options[this.selectedIndex].value+'&action=show&from=0'" name="show_events_categorie"  >{$sCategorieOptions}</select>
</form></td>
</tr>
</table>

EOF;



$sEventFilterSectFDB = <<<EOF
{$sFilter}
EOF;


$sEventFilterSect = DesignBoxContent($sEventFilterC, $sEventFilterSectFDB, 1);


$sRetHtmlNew .= <<<EOF
<div>
<div class="clear_both"></div>
<div class="cls_info_left2">
{$sRetHtml}
</div>
<div class="cls_info2">
{$sEventFilterSect}
</div>
<div class="clear_both"></div>
</div>
<div class="clear_both"></div>
EOF;

return $sRetHtmlNew;
}

Quote · 26 Oct 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.