Results 1 to 10 of 10

Thread: "any" built in options in the search

  1. #1
    Join Date
    Sep 2004
    Location
    Hawaii
    Posts
    30

    Default "any" built in options in the search

    hey there,
    I wish that there was an "any" field that could be built in the scripts insted of me trying and looking how to do it for more then 2 weeks.
    I am sure most of you would have use it if you had it.
    for instance that the number of "bed" rooms in the search or baqths can be any insted of selecting a number, and that City could be any insted of selecting a city... ect' ect;.,
    BTW: until that it will happen does someone know how to do it?
    Jon.

  2. #2
    Join Date
    Jun 2003
    Location
    Netherlands
    Posts
    559

    Default

    Have PM you about this.
    Be patient!


    Marten

  3. #3
    Join Date
    Oct 2003
    Posts
    25

    Default Me too!!!!

    I have already posted on this and tried sooooooooooo many times to achieve this,can't wait for Marbs reply
    YS

  4. #4
    Join Date
    Jul 2004
    Location
    Arizona, USA
    Posts
    239

    Default

    You could use a form for each of the items like I have for "Search by Price Only" on our Arizona Multiple Listing site.

    CODE:
    =============================
    <form name="beds">
    <strong>Seach by Bedrooms Only</strong> <select name="menu">
    <option value="listing_browse.php?&beds-min=&beds-max=">Any Number</option>
    <option value="listing_browse.php?&beds-min=1&beds-max=2">1-2</option>
    <option value="listing_browse.php?&beds-min=2&beds-max=3">2-3</option>
    <option value="listing_browse.php?&beds-min=3&beds-max=4">3-4</option>
    <option value="listing_browse.php?&beds-min=4&beds-max=5">4-5</option>
    </select>
    <input type="button" onClick="location=document.beds.menu.options[document.beds.menu.selectedIndex].value;" value="GO">
    </form>
    ============================

  5. #5
    Join Date
    Dec 2003
    Posts
    20

    Default

    Could you post your code for your listingsearch.php page? I am looking for the same ability on the searching. I have done the same on Jon's old version, but I can not get it to work with the new version.

  6. #6
    Join Date
    Jul 2004
    Location
    Arizona, USA
    Posts
    239

    Default

    <?php
    include("include/common.php");
    include("$config[template_path]/user_top.html");
    ?>
    <table border="<?php echo $style[admin_listing_border] ?>" cellspacing="<?php echo $style[admin_listing_cellspacing] ?>" cellpadding="<?php echo $style[admin_listing_cellpadding] ?>" width="<?php echo $style[admin_table_width] ?>" class="form_main">
    <tr>
    <td valign="top" align="left">
    <?php renderFeaturedListingsVerticalInfo(3); ?>
    </td>
    <td valign="top" align="left">

    </td>
    <td valign="top" width="90%" align="center">
    <strong>Search Listings | <?php browse_all_listings() ?></strong>
    <form name="listingsearch" action="./listing_browse.php" method="get">

    <table>

    <tr>
    <td align="left"><?php searchbox_pulldown (Type, "type") ?></tr>
    <tr>
    <td align="left"><?php searchbox_pulldown (City, "city") ?></tr>
    <tr>
    <td align="left"><?php searchbox_pulldown (Community, "neighborhood") ?></tr>
    <tr>
    <td align="left"><?php searchbox_minmax (Price, "price") ?></tr>
    <tr>
    <td align="left"><?php searchbox_minmax (Beds, "beds") ?></tr>
    <tr>
    <td align="left"><?php searchbox_minmax (Size, "sq_feet") ?></tr>
    <tr>
    <td align="left"><?php searchbox_pulldown (Status, "status") ?></tr>
    <tr>
    <td align="left"><?php searchbox_agentdropdown(); ?></tr>
    <td align="left" colspan="2">
    <input type="submit">
    </td>
    </tr>
    </table>
    </form>
    <form name="jump">
    <strong>Seach by Price Only</strong> <select name="menu">
    <option value="listing_browse.php?&price-min=0&price-max=10000">$0-$10000</option>
    <option value="listing_browse.php?&price-min=10000&price-max=20000">$10,000-$20,000</option>
    <option value="listing_browse.php?&price-min=20000&price-max=30000">$20,000-$30,000</option>
    <option value="listing_browse.php?&price-min=30000&price-max=40000">$30,000-$40,000</option>
    <option value="listing_browse.php?&price-min=40000&price-max=50000">$40,000-$50,000</option>
    <option value="listing_browse.php?&price-min=50000&price-max=60000">$50,000-$60,000</option>
    <option value="listing_browse.php?&price-min=60000&price-max=100000">$60,000-$100,000</option>
    <option value="listing_browse.php?&price-min=100000&price-max=200000">$100,000-$200,000</option>
    <option value="listing_browse.php?&price-min=200000&price-max=300000">$200,000-$300,000</option>
    <option value="listing_browse.php?&price-min=300000&price-max=400000">$300,000-$400,000</option>
    <option value="listing_browse.php?&price-min=400000&price-max=500000">$400,000-$500,000</option>
    <option value="listing_browse.php?&price-min=500000&price-max=1000000">$500,000-$1,000,000</option>
    </select>
    <input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
    </form>
    </td>
    </tr>
    <tr>
    <td valign="top" align="left">
    </td>
    <td valign="top" align="left">

    </td>
    <td valign="top" width="90%" align="left">

    </td>
    </tr>
    </table>
    <?php include("$config[template_path]/user_bottom.html"); ?>

  7. #7
    Join Date
    Dec 2003
    Posts
    20

    Default

    This is great. Thank you very much.

  8. #8
    Join Date
    Jul 2004
    Location
    Arizona, USA
    Posts
    239

  9. #9
    Join Date
    Jun 2003
    Location
    Netherlands
    Posts
    559

    Default

    Make a modification for it here; http://www.open-realty.org/support/s...8575#post18575


    Marten

  10. #10
    Join Date
    Dec 2004
    Posts
    16

    Default Error with code

    Hi. your code looked like the answer I was looking for. But then I tried it and got this error.

    Fatal error: Call to undefined function: renderfeaturedlistingsverticalinfo() in /home/rental/public_html/listings/listingsearch.php on line 8

    Please explain. By the way, I'm using the vertical menu template.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •