
RapidWeb
User
Jan 31, 2012, 3:04 PM
Post #6 of 7
(806 views)
Shortcut
|
|
Re: [Tom P] Search with checkbox only shows last selected item in search box
[In reply to]
|
Can't Post
|
|
Sorry for Bumping this post. Thank you Dave and Tom for your help. I am not sure what Tom meant in his reply. Is it that I also have to change the Result Page, not just the search form? If so, please let me know what to change in the result page. I am including part of the code for the result page showing the listings. The search page is a simple HTML page that has a very basic FORM used for the search. I have used these type of search forms on all my CMSB sites. However, since we are now trying to target more local real estate clients, we do have a need for a checkbox to be able to search for more than one result whitin the same field. <table style="WIDTH: 100%" border="1" cellspacing="1" cellpadding="0"> <tbody> <tr> <td valign="top" align="left"><nodesigner> <!-- STEP3: Display Page Links (Paste anywhere below "Load Record List") --> <?php if ($hotelsMetaData['prevPage']): ?> <a href="<?php echo $hotelsMetaData['prevPageLink'] ?>"><< prev</a> <?php else: ?> << prev <?php endif ?> - page <?php echo $hotelsMetaData['page'] ?> of <?php echo $hotelsMetaData['totalPages'] ?> - <?php if ($hotelsMetaData['nextPage']): ?> <a href="<?php echo $hotelsMetaData['nextPageLink'] ?>">next >></a> <?php else: ?> next >> <?php endif ?> <!-- /STEP3: Display Page Links --> </nodesigner></td> </tr> </tbody> </table><?php foreach ($hotelsRecords as $record): ?> <table style= "BORDER-BOTTOM: #ff0000 1px solid; BORDER-LEFT: #ff0000 1px solid; WIDTH: 100%; BORDER-COLLAPSE: collapse; BORDER-TOP: #ff0000 1px solid; BORDER-RIGHT: #ff0000 1px solid" border="0" cellspacing="1" cellpadding="3"> <tbody> <tr> <td style= "BORDER-BOTTOM-COLOR: ; BORDER-TOP-COLOR: ; WIDTH: 130px; BORDER-RIGHT-COLOR: ; BORDER-LEFT-COLOR:" valign="top" align="center"><nodesigner> <?php if($record['images']):?> <?php $upload=$record['images'][0];?> <?php if($upload['hasThumbnail']): ?> <a href="<?php echo $record['_link'] ?>"><img src="<?php echo $upload['thumbUrlPath2'] ?>" alt="" width="<?php echo $upload['thumbWidth2'] ?>" height="<?php echo $upload['thumbHeight2'] ?>" hspace="3" align="top" /></a><br/> <?php else: ?> <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" hspace="3" align="top" /><br/> <?php endif ?> <?php else: ?> @ <table style="WIDTH: 125px; HEIGHT: 125px" border="1" cellspacing="0" bordercolor="#333399" cellpadding="2" height:="" width:=""> <tbody> <tr> <td style="COLOR: #808080; FONT-SIZE: 14px; FONT-WEIGHT: bold" valign="middle" align="center">Photo<br> Not<br> Available</td> </tr> </tbody> </table> <?php endif ?> </td> </nodesigner></td> <td style="BORDER-BOTTOM-COLOR: ; BORDER-TOP-COLOR: ; BORDER-RIGHT-COLOR: ; BORDER-LEFT-COLOR:" valign="top" align="left"><nodesigner><a href="<?php echo $record['_link'] ?>"> <h3><span style="FONT-SIZE: 11pt"><?php echo $record['name'] ?></span></h3> </a> </nodesigner> <?php echo $record['address'] ?> <?php echo $record['address2'] ?><br> <?php echo $record['city'] ?> , <?php echo $record['state'] ?> <?php echo $record['zip'] ?><br> <?php echo $record['country'] ?></td> <td style= "BORDER-BOTTOM-COLOR: ; BORDER-TOP-COLOR: ; WIDTH: 200px; BORDER-RIGHT-COLOR: ; BORDER-LEFT-COLOR:" valign="bottom" align="right"><span lang="EN-GB"><strong>Lodging Classification:</strong><br></span><?php echo join(', ', getListLabels('hotels', 'establishment', $record['establishment'])); ?></td> </tr> </tbody> </table>
(This post was edited by RapidWeb on Feb 1, 2012, 4:59 AM)
|