Bonjour,

J'ai un problème.
J'ai un formulaire de recherche et j'affiche le résultat de la recherche dessous le formulaire de recherche dans la même page. Mais ma ligne de libellé ne s'affiche pas et je ne voit pas pourquoi.


voici ma page html

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
 
<html>
<head>
<script language="javascript">
//fonctions
.........
......
 
//fonction qui ecrit la ligne de libelle du tableau de résultat
function ajout_libelle(){literal}{{/literal}
document.getElementById('title1').innerHTML+="Numéro dossier";
document.getElementById('title2').innerHTML+="Domaine";
document.getElementById('title3').innerHTML+="Type document";
document.getElementById('title4').innerHTML+="Date début";
document.getElementById('title5').innerHTML+="Date fin";
document.getElementById('title6').innerHTML+="Numéro facture";
document.getElementById('title7').innerHTML+="Date facture";
document.getElementById('title8').innerHTML+="Montant facture";
{literal}}{/literal}
 
</script>
 
</head>
<body>
 
{* RETOUR DES ERREURS SERVEURS *}
{include file="xxxx/xxxx/xxxxxx.tpl" lst_msg=$lst_msg disp_msg=$disp_msg}{debug}
<!--titre-->
<H1 ALIGN="center">Recherche</H1>
 
<!--Formulaire de recherche-->
<FORM NAME="recherche" ACTION="./index.php?mode=commun&func=verif" METHOD="post"> 
.......................
........................
..........................
.......................
</FORM>
 
<!--affichage du résutat de la recherche-->
 
{if (isset($tab))}
<script language="javascript">
ajout_libelle();
</script>
 
<TABLE BORDER ALIGN="center" CELLPADDING=5>
<TR>
<TD><B><DIV id='title1'></DIV></B></TD>
<TD><B><DIV id='title2'></DIV></B></TD>
<TD><B><DIV id='title3'></DIV></B></TD>
<TD><B><DIV id='title4'></DIV></B></TD>
<TD><B><DIV id='title5'></DIV></B></TD>
<TD><B><DIV id='title6'></DIV></B></TD>
<TD><B><DIV id='title7'></DIV></B></TD>
<TD><B><DIV id='title8'></DIV></B></TD>
</TR>		
{section name=item loop=$tab}
<TR>
<TD>{$tab[item].no_dossier}</TD>
<TD>{$tab[item].domaine}</TD>
<TD>{$tab[item].type_doc}</TD>
<TD>{$tab[item].dt_deb}</TD>
<TD>{$tab[item].dt_fin}</TD>
<TD>{$tab[item].no_fac}</TD>
<TD>{$tab[item].dt_fac}</TD>
<TD>{$tab[item].mt_ttc}</TD>
</TR>
{/section}
</TABLE>
{/if}
 
</body>
</html>
Est ce que quelqu'un peut m'aider?