1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <title>UNIMARC_constructeur champ 122</title>
15 <select name="f1" size="1">
16 <!-- TMPL_IF name="f1c" -->
17 <option value="c" SELECTED>La date
18 tombe avant l'an 1 du calendrier gregorien</option>
20 <option value="c">La date tombe avant l'an 1 du calendrier gregorien</option>
22 <!-- TMPL_IF name="f1d" -->
23 <option value="d" SELECTED>La date tombe apres l'an 1</option>
25 <option value="d">La date tombe apres l'an 1</option>
33 <td><input type="text" name="f2" maxlength=4 size=5
34 value="<!-- TMPL_VAR name="f2" -->">
38 <td><input type="text" name="f3" maxlength=2
40 value="<!-- TMPL_VAR name="f3" -->"></td>
42 <td><input type="text" name="f4" maxlength=2
44 value="<!-- TMPL_VAR name="f4" -->"></td>
47 <td><input type="text" name="f5" maxlength=2
49 value="<!-- TMPL_VAR name="f5" -->"></td>
52 <tr><td colspan=2><input type="button" value="OK" onclick="javascript:report()"></td></tr>
55 <script type="text/javascript">
57 document.f_pop.f2.value=document.f_pop.f2.value+' ';
58 document.f_pop.f3.value=document.f_pop.f3.value+' ';
59 document.f_pop.f4.value=document.f_pop.f4.value+' ';
60 document.f_pop.f5.value=document.f_pop.f5.value+' ';
61 document.f_pop.f2.value=document.f_pop.f2.value.substring(0,4);
62 document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
63 document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
64 document.f_pop.f5.value=document.f_pop.f5.value.substring(0,2);
66 var doc = opener.document;
67 var field = doc.getElementById("<!-- TMPL_VAR NAME='index'-->");
69 field.value = document.f_pop.f1.value + document.f_pop.f2.value +document.f_pop.f3.value +document.f_pop.f4.value +document.f_pop.f5.value ;