We help IT Professionals succeed at work.

Exception Listing

Starquest321
Starquest321 used Ask the Experts™
on
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

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Avinash ZalaWeb Expert

Commented:
i think you are using smarty right?

Author

Commented:
CORRECT :) HOW DID YOU KNOW?
Avinash ZalaWeb Expert

Commented:
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}

Author

Commented:
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

Author

Commented:
Do you need the back end php for that page?
Avinash ZalaWeb Expert

Commented:
yes please

Author

Commented:
Here are both files . . .
site-search.php
site-search.html

Author

Commented:
Please please help . . .
Most Valuable Expert 2011
Top Expert 2016
Commented:
For things like this, where there is not really a question we can answer, please consider hiring a developer.  It will not cost you much and you will get prompt and accurate answers.  Good luck, ~Ray