$("input[name='jobterm']").val(jtid);
}
+function addressesDump()
+{
+ if ($('#addresses_dump:checked').length > 0) {
+ $('#recherche').attr('action', 'search/adv/addresses').attr('method', 'post').removeAttr('onsubmit');
+ } else {
+ $('#recherche').attr('action', 'search/adv').attr('method', 'get');
+ }
+}
+
// }}}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
</table>
</td>
</tr>
- {if hasPerm('admin,edit_directory')}
+ {if hasPerm('admin,edit_directory')}
<tr>
<td>Matricule AX</td>
<td>
<br />
<i>Entrer une liste de matricules AX (un par ligne)</i>
</td>
- {/if}
- {if $smarty.session.auth ge AUTH_COOKIE}
</tr>
+ {/if}
+ {if $smarty.session.auth ge AUTH_COOKIE}
<tr>
<td colspan="2">
<input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} id="order"/>
<label for="exact">Faire une recherche exacte.</label>
</td>
</tr>
- {/if}
+ {/if}
+ {if hasPerm('admin,edit_directory')}
+ <tr>
+ <td colspan="2">
+ <label><input type="checkbox" id="addresses_dump" onclick="addressesDump();" />Tableau des adresses postales.</label>
+ </td>
+ </tr>
+ {/if}
<tr><td colspan="2"></td></tr>
<tr>
<td colspan="2" style="text-align: center">