|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
dscriptor Smarty Rookie
Joined: 27 Jul 2006 Posts: 16 Location: Philippines
|
Posted: Mon Sep 18, 2006 7:49 am Post subject: clickable html_options value |
|
|
hi,
is it possible to make a html_options value (every value)to become clickable?
in my PHP script i have:
[php:1:deb1a45b75]
$qry = "SELECT * FROM ". TABLE_ORDERS_STATUS ."";
$result = $db->db_query($qry);
while($row = $db->db_fetch_array($result)) {
$arr[] = $row;
$statName[] = $row['orders_status_name'];
}
$smarty->assign("stat_option_values", $statName);
$smarty->assign("stat_option_output", $statName);
[/php:1:deb1a45b75]
and in my template i have a code like this:
Code: | Sort:
<select id="stat" name="stat"/>
<option value="">All Orders</option>
{html_options values=$stat_option_values selected=$stat_option_selected output=$stat_option_output}
</select>
|
please help me how can i do this..?
thanks! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|