Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Showing a selected value
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Showing a selected value

HTML Code
1
2
3
4
5
6
7
8
9
<td class="trow1" align="center"> Your Current Filters: 
<if $filters_set['fcat3']['value'] then>
<span class="tea">{$filters_set['fcat3']['value']}</span>  [<a href="forumdisplay.php?fid={$fid}">Clear filter</a>]
<else>
All
</if>
</td>
</tr>
</table>


For reference purposes, can be done without a conditional too

HTML Code
1
2
3
4
5
6
7
8
9
<td class="trow1" align="center"> Your Current Filters: 
<span style="{$filters_set['fcat3']['visiblecss']}">
<span class="tea">{$filters_set['fcat3']['value']}</span>  [<a href="forumdisplay.php?fid={$fid}">Clear filter</a>]
</span><span style="{$filters_set['fcat3']['hiddencss']}">
All
</span>
</td>
</tr>
</table>


See Documentation/undoc.html for information on the $filters_set array.


My Blog
(This post was last modified: 03-30-2012 12:16 PM by ZiNgA BuRgA.)
03-30-2012 12:13 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Showing a selected value - leefish - 03-30-2012, 09:23 AM
RE: Showing a selected value - ZiNgA BuRgA - 03-30-2012 12:13 PM
RE: Showing a selected value - leefish - 03-30-2012, 12:27 PM
RE: Showing a selected value - ZiNgA BuRgA - 03-30-2012, 12:38 PM
RE: Showing a selected value - leefish - 03-30-2012, 12:48 PM

 Standard Tools
Forum Jump: