|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
anouchka25 Smarty n00b
Joined: 24 Apr 2014 Posts: 2
|
Posted: Thu Apr 24, 2014 7:02 pm Post subject: How to display results based on the user's choice |
|
|
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 |
|
|
|
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
|