* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: search.form.tpl,v 1.13 2004-08-31 22:06:38 x2000habouzit Exp $
+ $Id: search.form.tpl,v 1.14 2004-08-31 22:21:05 x2000habouzit Exp $
***************************************************************************}
<div class="rubrique">
- {if $advanced eq "1"}
- Recherche avancée
- {else}
- Recherche simple
- {/if}
- <div class="floatright">
- {if $advanced}
- [<a href="search.php">Recherche simple</a>]
- {else}
- {min_auth level="cookie"}
- [<a href="advanced_search.php">Recherche avancée</a>]
- {/min_auth}
- {/if}
- </div>
+ <table style="width: 100%">
+ <tr>
+ <td>
+ {if $advanced eq "1"}
+ Recherche avancée
+ {else}
+ Recherche simple
+ {/if}
+ </td>
+ <td class="right">
+ {if $advanced}
+ [<a href="search.php">Recherche simple</a>]
+ {else}
+ {min_auth level="cookie"}
+ [<a href="advanced_search.php">Recherche avancée</a>]
+ {/min_auth}
+ {/if}
+ </td>
+ </tr>
+ </table>
</div>
{if $error}
<p class="error">
{$error}
</p>
{/if}
-<div class="center">
- <form action="{$smarty.server.PHP_SELF}" method="post" id="recherche">
- <table class="tinybicol" cellpadding="3" summary="Recherche">
- <tr>
- <td>Nom</td>
- <td><input type="text" name="name" size="50" maxlength="50" value="{$smarty.request.name}" /></td>
- </tr>
- <tr>
- <td>Prénom</td>
- <td><input type="text" name="firstname" size="50" maxlength="50" value="{$smarty.request.firstname}" /></td>
- </tr>
- <tr>
- <td>Promotion</td>
- <td>
- <select name="egal1">
- <option value="=" {if $smarty.request.egal1 eq "="}selected="selected"{/if}> = </option>
- <option value=">" {if $smarty.request.egal1 eq ">"}selected="selected"{/if}> > </option>
- <option value="<" {if $smarty.request.egal1 eq "<"}selected="selected"{/if}> < </option>
- </select>
- <input type="text" name="promo1" size="4" maxlength="4" value="{$smarty.request.promo1}" />
- ET
- <select name="egal2">
- <option value="=" {if $smarty.request.egal2 eq "="}selected="selected"{/if}> = </option>
- <option value=">" {if $smarty.request.egal2 eq ">"}selected="selected"{/if}> > </option>
- <option value="<" {if $smarty.request.egal2 eq "<"}selected="selected"{/if}> < </option>
- </select>
- <input type="text" name="promo2" size="4" maxlength="4" value="{$smarty.request.promo2}" />
- </td>
- </tr>
+<form action="{$smarty.server.PHP_SELF}" method="post" id="recherche">
+ <table class="{if !$advanced}tiny{/if}bicol" cellpadding="3" summary="Recherche">
+ <tr>
+ <td>Nom</td>
+ <td><input type="text" name="name" size="32" value="{$smarty.request.name}" /></td>
+ </tr>
+ <tr>
+ <td>Prénom</td>
+ <td><input type="text" name="firstname" size="32" value="{$smarty.request.firstname}" /></td>
+ </tr>
+ <tr>
+ <td>Promotion</td>
+ <td>
+ <select name="egal1">
+ <option value="=" {if $smarty.request.egal1 eq "="}selected="selected"{/if}> = </option>
+ <option value=">" {if $smarty.request.egal1 eq ">"}selected="selected"{/if}> > </option>
+ <option value="<" {if $smarty.request.egal1 eq "<"}selected="selected"{/if}> < </option>
+ </select>
+ <input type="text" name="promo1" size="4" maxlength="4" value="{$smarty.request.promo1}" />
+ ET
+ <select name="egal2">
+ <option value="=" {if $smarty.request.egal2 eq "="}selected="selected"{/if}> = </option>
+ <option value=">" {if $smarty.request.egal2 eq ">"}selected="selected"{/if}> > </option>
+ <option value="<" {if $smarty.request.egal2 eq "<"}selected="selected"{/if}> < </option>
+ </select>
+ <input type="text" name="promo2" size="4" maxlength="4" value="{$smarty.request.promo2}" />
+ </td>
+ </tr>
{if $advanced eq "1"}
- <tr>
- <td>Sexe</td>
- <td>
- <input type="radio" name="woman" value="0" checked="checked" />Homme ou femme
- <input type="radio" name="woman" value="1" />Homme
- <input type="radio" name="woman" value="2" />Femme
- </td>
- </tr>
- <tr>
- <th colspan="2">Géographie</th>
- </tr>
- <tr>
- <td>Ville</td>
- <td><input type="text" name="ville" size="50" value="{$smarty.request.ville}" /></td>
- </tr>
- <tr>
- <td>Pays</td>
- <td>
- <select name="pays" onchange="javascript:document.recherche.submit();">
- {if $smarty.request.pays}
- {assign var="pays" value=$smarty.request.pays}
- {else}
- {assign var="pays" value=""}
- {/if}
- {geoloc_pays pays=$pays}
- </select>
- </td>
- </tr>
- <tr>
- <td>Région ou département</td>
- <td>
- <select name="region">
- {if $smarty.request.region}
- {assign var="region" value=$smarty.request.region}
- {else}
- {assign var="region" value=""}
- {/if}
- {if $smarty.request.pays neq ""}
- {geoloc_region pays=$smarty.request.pays region=$region}
- {else}
- <option value=""></option>
- {/if}
- </select>
- </td>
- </tr>
- <tr>
- <th colspan="2">Activité</th>
- </tr>
- <tr>
- <td>Entreprise</td>
- <td><input type="text" name="entreprise" size="50" value="{$smarty.request.entreprise}" /></td>
- </tr>
- <tr>
- <td>Poste</td>
- <td>
- <select name="poste">
- <option value="0"></option>
- {section name=poste loop=$choix_postes}
- <option value="{$choix_postes[poste].id}" {if $smarty.request.poste eq $choix_postes[poste].id}selected{/if}>
- {$choix_postes[poste].fonction_fr}
- </option>
- {/section}
- </select>
- </td>
- </tr>
- <tr>
- <td>Secteur</td>
- <td>
- <select name="secteur">
- <option value="0"></option>
- {section name=secteur loop=$choix_secteurs}
- <option value="{$choix_secteurs[secteur].id}" {if $smarty.request.secteur eq $choix_secteurs[secteur].id}selected{/if}>
- {$choix_secteurs[secteur].label}
- </option>
- {/section}
- </select>
- </td>
- </tr>
- <tr>
- <td>CV contient</td>
- <td><input type="text" name="cv" size="50" value="{$smarty.request.cv}" /></td>
- </tr>
- <tr>
- <th colspan="2">Divers</th>
- </tr>
- <tr>
- <td>Nationalité</td>
- <td>
- <select name="nationalite">
- {section name=nationalite loop=$choix_nationalites}
- <option value="{$choix_nationalites[nationalite].id}" {if $smarty.request.nationalite eq $choix_nationalites[nationalite].id}selected{/if}>
- {$choix_nationalites[nationalite].text}
- </option>
+ <tr>
+ <td>Sexe</td>
+ <td>
+ <input type="radio" name="woman" value="0" checked="checked" />Homme ou femme
+ <input type="radio" name="woman" value="1" />Homme
+ <input type="radio" name="woman" value="2" />Femme
+ </td>
+ </tr>
+ <tr>
+ <th colspan="2">Géographie</th>
+ </tr>
+ <tr>
+ <td>Ville</td>
+ <td><input type="text" name="ville" size="32" value="{$smarty.request.ville}" /></td>
+ </tr>
+ <tr>
+ <td>Pays</td>
+ <td>
+ <select name="pays" onchange="javascript:document.recherche.submit();">
+ {if $smarty.request.pays}
+ {assign var="pays" value=$smarty.request.pays}
+ {else}
+ {assign var="pays" value=""}
+ {/if}
+ {geoloc_pays pays=$pays}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>Région ou département</td>
+ <td>
+ <select name="region">
+ {if $smarty.request.region}
+ {assign var="region" value=$smarty.request.region}
+ {else}
+ {assign var="region" value=""}
+ {/if}
+ {if $smarty.request.pays neq ""}
+ {geoloc_region pays=$smarty.request.pays region=$region}
+ {else}
+ <option value=""></option>
+ {/if}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <th colspan="2">Activité</th>
+ </tr>
+ <tr>
+ <td>Entreprise</td>
+ <td><input type="text" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td>
+ </tr>
+ <tr>
+ <td>Poste</td>
+ <td>
+ <select name="poste">
+ <option value="0"></option>
+ {section name=poste loop=$choix_postes}
+ <option value="{$choix_postes[poste].id}" {if $smarty.request.poste eq $choix_postes[poste].id}selected{/if}>
+ {$choix_postes[poste].fonction_fr}
+ </option>
{/section}
- </select>
- </td>
- </tr>
- <tr>
- <td>Binet</td>
- <td>
- <select name="binet">
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>Secteur</td>
+ <td>
+ <select name="secteur">
<option value="0"></option>
- {section name=binet loop=$choix_binets}
- <option value="{$choix_binets[binet].id}" {if $smarty.request.binet eq $choix_binets[binet].id}selected{/if}>
- {$choix_binets[binet].text}
- </option>
+ {section name=secteur loop=$choix_secteurs}
+ <option value="{$choix_secteurs[secteur].id}" {if $smarty.request.secteur eq $choix_secteurs[secteur].id}selected{/if}>
+ {$choix_secteurs[secteur].label}
+ </option>
{/section}
- </select>
- </td>
- </tr>
- <tr>
- <td>Groupe X</td>
- <td>
- <select name="groupex">
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>CV contient</td>
+ <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td>
+ </tr>
+ <tr>
+ <th colspan="2">Divers</th>
+ </tr>
+ <tr>
+ <td>Nationalité</td>
+ <td>
+ <select name="nationalite">
+ {section name=nationalite loop=$choix_nationalites}
+ <option value="{$choix_nationalites[nationalite].id}" {if $smarty.request.nationalite eq $choix_nationalites[nationalite].id}selected{/if}>
+ {$choix_nationalites[nationalite].text}
+ </option>
+ {/section}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>Binet</td>
+ <td>
+ <select name="binet">
+ <option value="0"></option>
+ {section name=binet loop=$choix_binets}
+ <option value="{$choix_binets[binet].id}" {if $smarty.request.binet eq $choix_binets[binet].id}selected{/if}>
+ {$choix_binets[binet].text}
+ </option>
+ {/section}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>Groupe X</td>
+ <td>
+ <select name="groupex">
+ <option value="0"></option>
+ {section name=groupex loop=$choix_groupesx}
+ <option value="{$choix_groupesx[groupex].id}" {if $smarty.request.groupex eq $choix_groupesx[groupex].id}selected{/if}>
+ {$choix_groupesx[groupex].text}
+ </option>
+ {/section}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>Section</td>
+ <td>
+ <select name="section">
+ {section name=section loop=$choix_sections}
+ <option value="{$choix_sections[section].id}" {if $smarty.request.section eq $choix_sections[section].id}selected{/if}>
+ {$choix_sections[section].text}
+ </option>
+ {/section}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>Formation</td>
+ <td>
+ <select name="school" onchange="javascript:document.recherche.submit();">
<option value="0"></option>
- {section name=groupex loop=$choix_groupesx}
- <option value="{$choix_groupesx[groupex].id}" {if $smarty.request.groupex eq $choix_groupesx[groupex].id}selected{/if}>
- {$choix_groupesx[groupex].text}
- </option>
+ {section name=school loop=$choix_schools}
+ <option value="{$choix_schools[school].id}" {if $smarty.request.school eq $choix_schools[school].id}selected{/if}>
+ {$choix_schools[school].text}
+ </option>
{/section}
- </select>
- </td>
- </tr>
- <tr>
- <td>Section</td>
- <td>
- <select name="section">
- {section name=section loop=$choix_sections}
- <option value="{$choix_sections[section].id}" {if $smarty.request.section eq $choix_sections[section].id}selected{/if}>
- {$choix_sections[section].text}
- </option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>
+ <select name="diploma">
+ <option value="0"></option>
+ {section name=diploma loop=$choix_diplomas}
+ <option value="{$choix_diplomas[diploma]}" {if $smarty.request.diploma eq $choix_diplomas[diploma]}selected{/if}>
+ {$choix_diplomas[diploma]}
+ </option>
{/section}
- </select>
- </td>
- </tr>
- <tr>
- <td>Formation</td>
- <td>
- <select name="school" onchange="javascript:document.recherche.submit();">
- <option value="0"></option>
- {section name=school loop=$choix_schools}
- <option value="{$choix_schools[school].id}" {if $smarty.request.school eq $choix_schools[school].id}selected{/if}>
- {$choix_schools[school].text}
- </option>
- {/section}
- </select>
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <select name="diploma">
- <option value="0"></option>
- {section name=diploma loop=$choix_diplomas}
- <option value="{$choix_diplomas[diploma]}" {if $smarty.request.diploma eq $choix_diplomas[diploma]}selected{/if}>
- {$choix_diplomas[diploma]}
- </option>
- {/section}
- </select>
- </td>
- </tr>
+ </select>
+ </td>
+ </tr>
{/if}
- </table>
- <p class="center">
- <input type="submit" name="rechercher" value="Chercher" />
- </p>
- </form>
-</div>
+ </table>
+ <p class="center">
+ <input type="submit" name="rechercher" value="Chercher" />
+ </p>
+</form>
<p>
<strong>N.B.</strong> Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches.
</p>