{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2008 Polytechnique.org *}
+{* Copyright (C) 2003-2009 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
<h1>Recherche dans l'annuaire</h1>
-{javascript name="jquery"}
-{javascript name="jquery.autocomplete"}
<script type="text/javascript">// <!--
var baseurl = platal_baseurl + "search/";
{literal}
return '...';
}
- return name + '<em> - ' + row[1] + ' camarades<\/em>';
+ camarades = (row[1] > 1) ? "camarades" : "camarade";
+
+ return name + '<em> - ' + row[1] + ' ' + camarades + '<\/em>';
};
}
$("[@name='diploma']").parent().load(baseurl + 'list/diploma/', { school:schoolId }, function() {
if ($("select[@name='diploma']").children("option").size() > 1) {
$("select[@name='diploma']").attr('value', '{/literal}{$smarty.request.diploma}{literal}');
-
- $("tr#diploma_ln").show();
} else {
$("select[@name='diploma']").attr('value', '');
-
- $("tr#diploma_ln").hide();
}
});
} else {
$(".autocomplete[@name='schoolTxt']").removeClass('hidden_valid');
$("select[@name='diploma']").attr('value', '');
-
- $("tr#diploma_ln").hide();
}
}
return false;
});
+ }).parent().find('.autocomplete').change(function() {
+ // If we change the value in the type="text" field, then the value in the 'integer id' field must not be used,
+ // to ensure that, we unset it
+ $(this).parent().find('.autocompleteTarget').val('');
});
});
-->
<table class="bicol" cellpadding="3" summary="Recherche">
<tr>
<th colspan="2">
- Recherche avancée [<a href="search"><<< Recherche simple</a>]
+ Recherche avancée [<a href="search">Revenir à la Recherche simple</a>]
</th>
</tr>
<tr>
<th colspan="2">Géographie</th>
</tr>
<tr>
- <td>Ville</td>
+ <td>Ville ou code postal</td>
<td><input type="text" class="autocomplete" name="city" size="32" value="{$smarty.request.city}" /></td>
</tr>
<tr>
<a href="school" class="autocompleteToSelect">{icon name="table" title="Toutes les formations"}</a>
</td>
</tr>
- <tr id="diploma_ln">
+ <tr>
<td>Diplôme</td>
<td>
- <input name="diploma" type="hidden" size="32" value="{$smarty.request.diploma}"/>
+ <input name="diploma" size="32" value="{$smarty.request.diploma}"/>
</td>
</tr>
<tr>
<label for="order">Mettre les fiches modifiées récemment en premier.</label>
</td>
</tr>
+ <tr>
+ <td colspan="2">
+ <input type='checkbox' name='exact' id="exact" {if $smarty.request.exact}checked='checked'{/if} value='1'/>
+ <label for="exact">Faire une recherche exacte.</label>
+ </td>
+ </tr>
{/if}
<tr><td colspan="2"></td></tr>
<tr>