XML Hotel Interface for Affiliates
 

V2 FAQ'S
About

Client Login

Email:

Password:


Server Check
Systems Requirements
 
 



Search:     Advanced search
Browse by category:
Glossary | Ask question



How to I check to see if an value exists before I display html tags
Add comment
Views: 356
Comments: 0
The following example would check if the hotel has some attraction info. If it does then
the table row would display and the attractioninfo tag would be replaed with the contents.

    <table>
<tr><td>Hotel Features</td></tr>

        <!--{if $attractioninfo}-->
        <tr>
          <td class="titlesdetailpage" valign="top"  height="22"><br />
            <a name="attractioninfo"></a><span class="amenities">Neary By Attractions</span></td>
        </tr>
        <tr><td class="details_text" valign="top"><!--{$attractioninfo}--></td></tr>
        <!--{/if}-->

</table>

Note:  The if statement can be used with any variable in the templates


Other questions in this category
How can I convert state codes or country codes to the name
How do I display the primary hotel image on my page
How do I create a chain codes select box
How do I loop through the video's




©Copyright XML Systems Inc. 2006. All Rights Reserved.