Link to home
Start Free TrialLog in
Avatar of Starquest321
Starquest321

asked on

Exception Listing

I need to modify the following code so that when it adds a new entry it will check for the following logic ...

If listing_catagory=portal then DO NOT display the price AND change the link to /site_detailbus.php?listing=xxx

I have posted the code below and attached the original file. .

<td align="right" valign="top">
		 <div style="display: block;" class="slidingTabPanelWrapper">
              <ul class="slidingTabPanel">
             	<li><a href="#" id="widgets" class="tabActive" title="Widgets">¿¿¿¿¿ ¿¿¿¿¿</a></li>
                <li><a href="#" id="nutshell" class="tab" title="Spry in a Nutshell">¿¿¿ ¿¿</a></li>
              </ul>
            </div>
            <div style="overflow: hidden;" tabindex="0" class="SlidingPanels" id="slidingPanel">
              <div style="left: 0px; top: 0px;" class="SlidingPanelsContentGroup">
               
                <div id="widgetsPanel" class="p2 SlidingPanelsContent"><div class="bTop"><img src="images/c1.jpg" alt="" align="left" /><img src="images/c2.jpg" alt="" align="right" /></div>
                <div class="boxContent">
                    <h2 dir="rtl">¿¿¿ ¿¿¿ ¿¿¿¿¿¿: 072-241-8888</h2>
                    <div style="height:100%;">
                    {section name=var loop=$rlisting_id}
                    
                      <p dir="rtl"><A href='{$rlisting_url[var]}'><strong>{$rlisting_title[var]}</strong><br/>{$rlisting_price[var]} ¿"¿</A></p>
        <!--               <p>Check out the <a href="#">Spry Widget samples</a> </p> -->
                      {/section}
                      </div>
                  </div>
                  <div class="bBot"><img src="images/c3.jpg" alt="" align="left" /><img src="images/c4.jpg" alt="" align="right" /></div>
                </div>

Open in new window

Avatar of Avinash Zala
Avinash Zala
Flag of India image

i think you are using smarty right?
Avatar of Starquest321
Starquest321

ASKER

CORRECT :) HOW DID YOU KNOW?
and one more thing

in below section of code you want to check for listing category and based on that you need to display HTML? Please confirm,

{section name=var loop=$rlisting_id}
                   
                      <p dir="rtl"><A href='{$rlisting_url[var]}'><strong>{$rlisting_title[var]}</strong><br/>{$rlisting_price[var]} ¿"¿</A></p>
        <!--               <p>Check out the <a href="#">Spry Widget samples</a> </p> -->
                      {/section}
Correct. . .
Step 1. . check for listing catagory
Step 2 .. if =portal then
Step 3 . . Drop the listing price and display added in the portal section
Do you need the back end php for that page?
yes please
Here are both files . . .
site-search.php
site-search.html
Please please help . . .
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial