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
   | <!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" media="screen" href="5.css"/>
 
<title>redim</title>
	<script type='text/javascript'>
		window.onload = function(elm){
			total=document.getElementById('total').value;
			for(i=0;i<=total;i++)
			{
				lediv = document.getElementById(elm+'_'+i);
				window.resizeTo(lediv.scrollWidth,lediv.scrollHeight+300);
			}
		}
	</script>
 
</head>
 
<body>
 
<script>
function afficher(elm,vlr)
{
total=document.getElementById('total').value;
  for(i=0;i<=total;i++)
  {
    document.getElementById(elm+'_'+i).style.visibility=vlr;
 
  }
 
}
</script>
 
<?php
 
 
 
echo"<div id=\"en_tete\">
                        </div>
                        
                        <div id=\"menu\">
                        
                        
                        <div class=\"element_menu\">
                        
                                                   <ul>
                                                           <li><a href=\"aj-pers.php\">Ajouter une personne</a></li>
                                                           <li><a href=\"5.php\">Gérer la liste du personnel du laboratoire</a></li>
                                                           <li><a href=\"formproj.html\">Ajouter un projet</a></li>
                                                           <li><a href=\"projets.php\">La liste des projets</a></li>
                                                           <li><a href=\"impr.php\" target=\"new\">Version imprimable</a></li>
                                                   </ul>
                                           </div> 
                        </div>
                        <div id=\"corps\">
                <center>
                    <form method=\"POST\" action=\"delproj.php\">
                        <table border=\"1\">
                                                <p>     
                            <input type=\"submit\" name=\"action\" value=\"Editer\" />
                            <input type=\"submit\" name=\"action\" value=\"Supprimer\" />
                        </p>
                            <tr>
                                <th id='nom_0' width=\"200\" align=\"center\">Nom</th>
                                <th id='pw_0' width=\"200\" align=\"center\">Page Web</th>
                                <th id='desc_0' width=\"200\" align=\"center\">Description</th>
                                                                <th align=\"center\"><div id=\"menuder\">
                                                                                                           <ul class=\"niveau1\"> 
                                                                                                                  <li class=\"sousmenu\">
                                                                                                                  <img src=\"http://www.amaq.bordeaux-bs.edu/fxObjects/img16/edit.gif\"></a>
                                                                                                                         
                                                                                                                         <ul class=\"niveau2\">
                                                                                                                                
                                                                                                                                <li> <input type='checkbox' id='nm' value='nom' onclick=\"if(this.checked==true)  afficher('nom','visible') else afficher('nom',hidden') \"  CHECKED>Nom</li>
                                                                                                                                
                                                                                                                                <li> <input type='checkbox' id='p' value='pw' onclick=\"if(this.checked==true)  afficher('pw','visible') else afficher('pw',hidden') \"  CHECKED>Page Web</li>
                                
                                                                                                                                <li> <input type='checkbox' id='desc' value='descc' onclick=\"if(this.checked==true)  afficher('desc','visible') else afficher('desc',hidden') \"  CHECKED>Descrption</li>
                                                                                                                         </ul>
                                                                                                                  </li>
                                                                                                           </ul>
                                                                                                        </div>
                                                                </th>
                            </tr> ";
                                                        
                                                        for($i=0;$i<count($IDS);$i++)
                                                        {
                                                                echo"<TR>
                                                                        <TD id='nom_".($i+1)."' align=\"center\">
                                                                        $NOMS[$i]
                                                                        </TD>
                                                                        <TD id='pw_".($i+1)."' align=\"center\">
                                                                        $PWS[$i]
                                                                        </TD>
                                                                        <TD id='desc_".($i+1)."' align=\"center\">
                                                                        $DESCS[$i] 
                                                                        </TD>
                                                                        <TD align=\"center\">
                                                                        <input type=\"checkbox\" name=projets[] value=$IDS[$i]>
                                                                        </TD>
                                                                </TR>";
                                                        }
                                                        $total = count($IDS);
                                                        
 
                                                        echo"
                        </table>
                        <p>     
                            
                            <input type=\"submit\" name=\"action\" value=\"Editer\" />
                            <input type=\"submit\" name=\"action\" value=\"Supprimer\" />
                        </p>
                    </form>
                </center>
                                </div>
                                
                                <input type=hidden id=total value=' $total '>";
 
?>
 
 
</body>
</html> | 
Partager