mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
66 lines
2.6 KiB
Twig
66 lines
2.6 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>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>{% trans 'Chercher' %}</title>
|
|
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : '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;">
|
|
|
|
<input type="button" id="submit_button" value="{% trans 'boutton::chercher' %}" onclick="clkBut('submit');" disabled style="width:80px;">
|
|
</form>
|
|
</center>
|
|
</body>
|
|
</html>
|