|
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:00 pm Post subject: Comment afficher un résultat en fonction du choix de l'utili |
|
|
Bonjour,
J'ai un code php qui affiche les toutes les offres d'emplois d'un job board. J'aimerais afficher les offres d'emplois par pays (France ou Gabon) en créant deux boutons : "Offres en France" et "Offres au Gabon". C'est-à-dire qu'en fonction du bouton cliqué, le système affiche les offres du pays correspondant. Comment puis-je modifier ce code en dessous ? Quelqu'un comprend t-il ce code ? Je vous remercie de votre aide.
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
|