View Single Post
  #5  
Old 06-16-2007, 02:00 AM
  Warwick's Avatar 
Warwick Warwick is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Somewhere on the web through European connection
Posts: 868
 

Default Re: If/Then statement to show table

Thanks Eugene!

I have implemented your modification and tried the following statements then but both don't work (yet); forgive me for being such newbie; I must be doing something very stupid.
Code:
{if $keywords} <table> <tr> <td valign="top"><img src="{$ImagesDir}/keywords_small_icon.gif" width="15" [color=red][b]height="17"></td> <td>{$lng.lbl_related_keywords} <br>{foreach from=$keywords item=keyword}<a href="_search.php?q={$keyword}">{$keyword}</a> {/foreach}<br></td> </tr> </table> {/if}

and

Code:
{if $keywords ne ""} <table> <tr> <td valign="top"><img src="{$ImagesDir}/keywords_small_icon.gif" width="15" height="17"></td> <td>{$lng.lbl_related_keywords} <br>{foreach from=$keywords item=keyword}<a href="_search.php?q={$keyword}">{$keyword}</a> {/foreach}<br></td> </tr> </table> {/if}
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25
X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many
∙∙ Experience: Somewhere beyond newbie
-----------------------------------
------------------------------------------------------------------------------------------------------
Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info
Reply With Quote