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

Comment afficher un résultat en fonction du choix de l'utili

 
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 -> Language: French
View previous topic :: View next topic  
Author Message
anouchka25
Smarty n00b


Joined: 24 Apr 2014
Posts: 2

PostPosted: Thu Apr 24, 2014 7:00 pm    Post subject: Comment afficher un résultat en fonction du choix de l'utili Reply with quote

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
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 -> Language: French 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