Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

How to display results based on the user's choice

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
anouchka25
Smarty n00b


Joined: 24 Apr 2014
Posts: 2

PostPosted: Thu Apr 24, 2014 7:02 pm    Post subject: How to display results based on the user's choice Reply with quote

Hello,
I have a php code that displays all the job offers a job board. I would like to display job offers by countries (France and Gabon) by creating two buttons: "France Offers" and "Offers in Gabon." That is to say that depending on the button clicked, the system displays offers the corresponding country. How can I change the code below? Does anyone understand what code? Thank you for your help.
Code:
{if $listings}
   {foreach from=$listings item=listing name=listings_block}
      <div class="featuredListings">
         <a href="{$GLOBALS.site_url}/display-job/{$listing.id}/{$listing.Title|regex_replace:"/[\\/\\\:*?\"<>|%#$\s]/":"-"}.html">{$listing.Title}</a><br />
         <span class="green">
            {* Check for JobG8 listing property *}{if $listing.company_name}{$listing.company_name}{else}{$listing.user.CompanyName}{/if}
         </span>
      </div>
      {if $smarty.foreach.listings_block.iteration is div by $number_of_cols}{/if}
   {/foreach}
{else}
   <center>[[There are no listings with requested parameters in the system.]]</center>
{/if}
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP