Re: [sublmnl] Search Display from DropDown
one more thing I found I wanted to share:
I was looking for a way to display an icon/image next to the listing if the retailer had a particular amenity.
well looking through the threads I found this:
http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/Tracking_clicks_P83753/gforum.cgi?post=79115
So set up some checkboxes, uploaded the images.
Now all the client has to do is check the boxes in the CMS and the icon/image will display in the listing.
so now my code for the output looks like this:
<?php foreach ($find_a_retailerRecords as $record): ?>
<?php if ($record['amenity_1']): ?><img src="/images/icon_one.gif" alt="number 1 icon" /><?php endif ?>
<?php if ($record['amenity_2']): ?><img src="/images/icon_two.gif" alt="number 2 icon" /><?php endif ?>
<p><?php echo $record['title'] ?><br />
<?php echo $record['address'] ?><br />
<?php echo $record['city_state_zip'] ?><br />
<?php echo $record['phone'] ?><br />
<a href="http://<?php echo $record['web_site'] ?>" target="_blank"><?php echo $record['web_site'] ?></a></p><hr/>
<?php endforeach ?>
of course I replaced the real names for the fields and prettied it up some more than this but really this should get you going.
Glad to share and thanks for the help fellas.