Bonjours

je ne connait rien au javascript donc j'ai récupéré les code qui permet d'ouvrir un pop up mais je veux modifier l'intérieur du pop up pour faire apparaitre les champs d'un formulaire

ci join le code de ma page

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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<html>
<title></title>
<head>
<link rel = "stylesheet" type="text/css" href="style.css">
<!--
 
<!-- This script and many more resources are available free online at -->
 
<!-- Ce Script, et des tonnes de ressources en ligne sur  -->
 
<!-- **01Webmaster.com** http://www.01webmaster.com -->
 
 
 
<SCRIPT LANGUAGE="JavaScript">
 
 
 
function PopIt(label, msg)
 
{
 
 
 
  var s1 =
 
    "<TITLE>Informations complémentaires....</TITLE>" +
 
    "<BODY BGCOLOR='#FF9966'><TABLE BORDER=0><TR>" +//couleur du fond de la fenêtre
 
        "<TD WIDTH=90% HEIGHT=90 VALIGN=TOP ALIGN=LEFT>"+
 
        "<FONT SIZE=4>"//taille de la police sur la nouvelle fenêtre
 
 
 
  var s2 = "<center><FONT COLOR='#000000'><B>"+label+"</B></FONT></center><P>"//couleur du titre dans la fenêtre
 
 
//pour le bouton fermer
  var s3 =
 
    "</TD><TD WIDTH=10%> </TD></TR><TR><TD> </TD>"+
 
    "<TD VALIGN=TOP ALIGN=RIGHT>"+
 
    "<FORM><INPUT TYPE='BUTTON' VALUE='Fermer'" +
 
                   "onClick='self.close()'>"  +
 
    "</FORM></TD></TR></TABLE></BODY>"
 
 
 
 
 
  popup = window.open("","popDialog","height=600,width=300,scrollbars=no")//taille de ma fenêtre dans le premier "" mettre le nom de la page
 
  popup.document.write(s1+s2+msg+s3)
 
  popup.document.close()
 
}
 
 
 
function popHelp()
 
{
 
  PopIt('Informations détaillées', 'Avec cette fonction vous '  +
 
                 'ouvrez une nouvelle fênetre.')//texte présent dans la fenêtre
 
}
 
<!-- done hiding --></SCRIPT>
 
<title>Pop-Up Window</title>
 
<script language="JavaScript">
 
<!--
 
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
 
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
 
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
 
}
 
MM_reloadPage(true);
 
// -->
 
</script>
</head>
<body>
<?php
$reponse = mysql_query("SELECT nom_projet, echeance_projet, commentaire_projet, etat_projet, nom_client, nom_intervenant 
FROM projet, client, intervenant 
where projet.id_projet = client.id_projet
and projet.id_projet = intervenant.id_projet
"); // Requête SQL
 
$correspond = mysql_query("SELECT nom_contact, nom_projet, date from contact, projet, historique where contact.id_contact = projet.id_projet
and projet.id_projet = historique.id_projet"); // Requête SQL
 
while ($aa = mysql_fetch_assoc ($correspond)){
$tabcontact[] = $aa['nom_contact'];
$tabdate[] = $aa['date'];
}
 
 
// On fait une boucle pour lister tout ce que contient la table :
echo '<table>';
echo '
<th><strong>Nom du projet<strong></th>
<th><strong>Commentaires<strong></th>
<th><strong>Echéance du projet<strong></th>
<th><strong>Etat du projet<strong></th>
<th><strong>Nom du client<strong></th>
<th><strong>Nom de l\'intervenant<strong></th>
<th><strong>Détails<strong></th>
';
$i = 0;
while ($donnees = mysql_fetch_assoc($reponse) ){
 
 
 // thead détermine dans un tableau l'entête du tableau
 
 
 //tbody Définit le corps du tableau pour ie
echo '<tr>
<td> <a href="1" class="info">'.$donnees['nom_projet'].'<span>'.$tabcontact[$i].'</span></a></td>
<td> <a href="1" class="info">'.$donnees['commentaire_projet'].'<span>'.$tabdate[$i].'</td>
<td>'.$donnees['echeance_projet'].'</td>
<td>'.$donnees['etat_projet'].'</td>
<td>'.$donnees['nom_client'].'</td>
<td>'.$donnees['nom_intervenant'].'</td>
<td><a href="">détails</a></td>
</tr>';
 $i++;
 
}
echo '</table>';
?>
 
 
 <FORM>
 
                <INPUT name="BUTTON2" TYPE="BUTTON" onClick="popHelp()" VALUE="Cliquer">
 
              </FORM>
</body>
</html>
en plus du contenu que je veux modifier, dans un second temps j'aimerai que quand on clique sur détail que le pop up apparait


merci de votre aide