git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-232
<h1>Recherche simple dans l'annuaire</h1>
-<form action="{"search.php"|url}" method="get">
+<form action="{"search.php"|url}" method="get"{if $show_js} id="quick_form"{/if}>
<table class="bicol" cellspacing="0" cellpadding="4">
<tr>
<td style="width: 78%">
<br />
+{if $show_js}
{literal}
<script type="text/javascript">
<!--
// Activate the first search input field.
- var nodes = document.getElementsByTagName('input');
- for(var i=0; i<nodes.length; i++) {
- node = nodes[i];
- if(node.name == 'quick') {
- node.focus();
- break;
- }
- }
+ document.getElementById("quick_form").quick.focus();
// -->
</script>
{/literal}
+{/if}
{* vim:set et sw=2 sts=2 sws=2: *}
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************}
-{include file="search.quick.form.tpl"}
-
+{include file="search.quick.form.tpl" show_js=1}
<h1>Comment faire une recherche ?</h1>
<h2>Nom, Prenom, Promo ...</h2>
{if $formulaire==0 and !$xorg_error->errs|count}
{if !$advanced}
- {include file='search.quick.form.tpl'}
+ {include file='search.quick.form.tpl' show_js=1}
{else}
{include file=search.adv.links.tpl do_title=1}
{/if}