Files
Phraseanet/templates/web/thesaurus/search.html.twig
2013-02-28 16:14:33 +01:00

65 lines
2.5 KiB
Twig

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="{{ app['locale.I18n'] }}">
<head>
<title>{% trans 'Chercher' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<script type="text/javascript">
function clkBut(button)
{
switch(button)
{
case "submit":
m = null;
for(i=0; !m && document.forms[0].m[i]; i++)
m = document.forms[0].m[i].checked ? document.forms[0].m[i].value : null;
self.returnValue = { t:document.forms[0].t.value, method:m };
self.close();
break;
case "cancel":
self.returnValue = null;
self.close();
break;
}
}
function loaded()
{
document.forms[0].t.focus();
}
function ckis()
{
document.getElementById("submit_button").disabled = document.forms[0].t.value=="";
}
</script>
</head>
<body onload="loaded();" class="dialog">
<center>
<br/>
<br/>
<form onsubmit="clkBut('submit');return(false);">
<table>
<tr>
<td>{% trans 'thesaurus:: le terme' %}</td>
<td><input type="radio" name="m" value="equal">{% trans 'thesaurus:: est egal a ' %}</td>
</tr>
<tr>
<td />
<td><input type="radio" checked name="m" value="begins">{% trans 'thesaurus:: commence par' %}</td>
</tr>
<tr>
<td />
<td><input type="radio" name="m" value="contains">{% trans 'thesaurus:: contient' %}</td>
</tr>
</table>
<br/>
<input type="text" name="t" value="" style="width:200px" onkeyup="ckis();return(true);">
<br/>
<br/>
<br/>
<input type="button" id="cancel_button" value="{% trans 'boutton::annuler' %}" onclick="clkBut('cancel');" style="width:80px;">
&nbsp;&nbsp;&nbsp;
<input type="button" id="submit_button" value="{% trans 'boutton::chercher' %}" onclick="clkBut('submit');" disabled style="width:80px;">
</form>
</center>
</body>
</html>