Le_Tolier Hello IT ? | Effectivement ca fonctionne, merci de ta reponse ms je vois pas la difference avec mon code ?
Donc je vais poster mon code entier car une fois ds cette page ca ne fonctionne plus:
Code :
- <?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <link href="cv.css" rel="stylesheet" type="text/css" />
- <head>
- <title>Modification du CV de </title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <script language="javascript" type="text/javascript">
- function Fermeture() {
- self.close();
- window.opener.location.reload();
- }
- function Modifier(id_1,id_2,id_3,id_4) {
- if (document.getElementById(id_1).disabled == true) {
- document.getElementById(id_1).disabled=false;
- document.getElementById(id_2).disabled=false;
- document.getElementById(id_3).disabled=false;
- document.getElementById(id_4).disabled=false;
- }
- else {
- document.getElementById(id_1).disabled=true;
- document.getElementById(id_2).disabled=true;
- document.getElementById(id_3).disabled=true;
- document.getElementById(id_4).disabled=true;
- }
- }
- function VerifAnnee(zone) {
- var reg = /[0-9]{4,4}$/;
- if ( !reg.exec(document.forms["modifcv"].elements[zone].value) ) {
- var haut=(screen.height)/2;
- var Gauche=(screen.width - 350)/2;
- window.open ('js/verif_annee.html', 'verification_annee', config='left='+Gauche+',top='+haut+',height=20, width=475, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')
- document.forms["modifcv"].elements[zone].value= "";
- }
- }
- function AjouterFormation() {
- var nb=1;
- document.forms["modifcv"].elements["ajouter_formation"].value='1';
- }
- </script>
- </head>
- <body>
- <div id="popup">
- <p class='paragraphe'>Veuillez entrer les nouvelles informations :</p>
- <form name='modifcv' method='post' action='modif_cv.php'>
- <input type='hidden' name='id_membre' value='24' />
- <input type='hidden' name='nb_formations' value='3' />
- <table align='center'>
- <tr class='paragraphe'><td>Diplome</td><td>Lieu</td><td>Début</td><td>Fin</td><td><img src='images/bouton_modifier.png' alt='Bouton Modifier' title='Cocher les cases pour modifier'></td><td><img src='images/bouton_supprimer.png' alt='Bouton Supprimer' title='Cocher les cases pour supprimer une année'></td></tr>
- <tr><td><input type='text' id='diplome_0' name='diplome_0' value='Maitrise Informatique, Réseaux' disabled/></td><td><input type='text' id='lieu_0' name='lieu_0' value='Strasbourg' disabled/></td><td><input type='text' id='deb_0' name='deb_0' value='2003' size='4' onblur='VerifAnnee("deb_0" )' disabled/></td><td><input type='text' id='fin_0' name='fin_0' value='2004' size='4' onblur='VerifAnnee("fin_0" )' disabled/></td><td><input type='checkbox' name='modif_0' value='1' onclick='Modifier("diplome_0","lieu_0","deb_0","fin_0" )'/></td><td><input type='checkbox' name='suppr_0' value='1'/></td></tr>
- <tr><td><input type='text' id='diplome_1' name='diplome_1' value='Licence Informatique, Réseaux' disabled/></td><td><input type='text' id='lieu_1' name='lieu_1' value='Strasbourg' disabled/></td><td><input type='text' id='deb_1' name='deb_1' value='2002' size='4' onblur='VerifAnnee("deb_1" )' disabled/></td><td><input type='text' id='fin_1' name='fin_1' value='2003' size='4' onblur='VerifAnnee("fin_1" )' disabled/></td><td><input type='checkbox' name='modif_1' value='2' onclick='Modifier("diplome_1","lieu_1","deb_1","fin_1" )'/></td><td><input type='checkbox' name='suppr_1' value='2'/></td></tr>
- <tr><td><input type='text' id='diplome_2' name='diplome_2' value='D.E.U.G. M.I.A.S.' disabled/></td><td><input type='text' id='lieu_2' name='lieu_2' value='Reims' disabled/></td><td><input type='text' id='deb_2' name='deb_2' value='2000' size='4' onblur='VerifAnnee("deb_2" )' disabled/></td><td><input type='text' id='fin_2' name='fin_2' value='2002' size='4' onblur='VerifAnnee("fin_2" )' disabled/></td><td><input type='checkbox' name='modif_2' value='4' onclick='Modifier("diplome_2","lieu_2","deb_2","fin_2" )'/></td><td><input type='checkbox' name='suppr_2' value='4'/></td></tr>
- </table>
- <p class='paragraphe'>Ajouter une formation :</p><table align='center'>
- <tr><td><input type='text' name='nouvo_diplome' value='Diplome' onclick='AjouterFormation()'/></td><td><input type='text' name='nouvo_lieu' value='Lieu' onclick='AjouterFormation()'/></td><td><input type='text' name='nouvo_deb' value='Début' size='4' onclick='AjouterFormation()' onblur='VerifAnnee("nouvo_deb" )'/></td><td><input type='text' name='nouvo_fin' value='Fin' size='4' onclick='AjouterFormation()' onblur='VerifAnnee("nouvo_fin" )'/></td></tr>
- </table>
- <input type='hidden' name='ajouter_formation' value='0'/>
- <br/>
- <div id='bloc_valider'>
- <input type='submit' name ='valider_formation' value='Valider' /> <button onclick='Fermeture()'>Fermer</button></div>
- </form>
- <br/>
- <br/>
- </div>
- </body>
- </html>
|
C est le resultat d un script php ms je pense pas que le src php est grd interet pour ce probleme Message édité par Le_Tolier le 03-01-2006 à 16:55:18 ---------------
Never f**k with your systems administrator. Why? Because they know what you do with all that free time! |?? | SAVE Jericho !
|