par
ballack » 26 août 2014, 11:06
bonjour, voici un code que j'ai avec le quel je voudrais quand on clique sur supprimer qu'un message "voulez-vous supprimer fichier" s'affiche,le code javascript en quelque sorte!merci
<tr>
<td height="92"></td>
<td colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="960" height="48" align="center">
<table border="0">
<tr bgcolor="#FFFFFF">
<td><div align="center"><span class="Style4">Id_depart</span></div></td>
<td><div align="center"><span class="Style4">num_ordre</span></div></td>
<td><div align="center"><span class="Style4">date_correspondance</span></div></td>
<td><div align="center"><span class="Style4">destinataire</span></div></td>
<td><div align="center"><span class="Style4">objet</span></div></td>
<td><div align="center"><span class="Style4">num_reponse</span></div></td>
<td><div align="center"><span class="Style4">observations</span></div></td>
<td><div align="center"><span class="Style4">Dossier</span></div></td>
<td><div align="center"><span class="Style4">Destinataire</span></div></td>
<td><div align="center"><span class="Style4">Fournisseur</span></div></td>
<td>Editer</td>
<td>Supprimer</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['Id_depart']; ?></td>
<td><?php echo $row_Recordset1['num_ordre']; ?></td>
<td><?php echo $row_Recordset1['date_correspondance']; ?></td>
<td><?php echo $row_Recordset1['destinataire']; ?></td>
<td><?php echo $row_Recordset1['objet']; ?></td>
<td><?php echo $row_Recordset1['num_reponse']; ?></td>
<td><?php echo $row_Recordset1['observations']; ?></td>
<td><?php echo $row_Recordset1['num_dossier']; ?></td>
<td><?php echo $row_Recordset1['Nom_Destination']; ?></td>
<td><?php echo $row_Recordset1['Nom_fournisseur']; ?></td>
<td><div align="center"><a href="depart.php?rama=fatou&id=<?php echo $row_Recordset1['Id_depart']; ?>"><img src="imges/edit.png" width="13" height="15" border="0" /></a></div></td>
<td><div align="center"><a href="depart.php?sup=<?php echo $row_Recordset1['Id_depart']; ?>"><img src="imges/corbeil.png" width="13" height="15" border="0" /></a></div></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<table width="44%" border="0" align="center" bgcolor="#CCCCCC">
<!--DWLayoutTable-->
<tr>
<td width="262"></td>
<td width="23%" align="center"><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, 0, $queryString_Recordset1); ?>"><img src="First.gif" border=0></a>
<?php } // Show if not first page ?> </td>
<td width="31%" align="center"><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, max(0, $pageNum_Recordset1 - 1), $queryString_Recordset1); ?>"><img src="Previous.gif" border=0></a>
<?php } // Show if not first page ?> </td>
<td width="23%" align="center"><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, min($totalPages_Recordset1, $pageNum_Recordset1 + 1), $queryString_Recordset1); ?>"><img src="Next.gif" border=0></a>
<?php } // Show if not last page ?>
</td>
<td width="23%" align="center"><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, $totalPages_Recordset1, $queryString_Recordset1); ?>"><img src="Last.gif" border=0></a>
<?php } // Show if not last page ?>
</td>
</tr>
</table>
<p>
Enregistrements <?php echo ($startRow_Recordset1 + 1) ?> à <?php echo min($startRow_Recordset1 + $maxRows_Recordset1, $totalRows_Recordset1) ?> sur <?php echo $totalRows_Recordset1 ?></p>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="978" height="19" align="center" valign="middle"><span class="Style1">© 2014 CHNU FANN /CONCEPTION BY PROMO 6 SID:UADB</span></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
mysql_free_result($Recordset2);
mysql_free_result($Recordset3);
mysql_free_result($Recordset4);
?>
bonjour, voici un code que j'ai avec le quel je voudrais quand on clique sur supprimer qu'un message "voulez-vous supprimer fichier" s'affiche,le code javascript en quelque sorte!merci
[php]
<tr>
<td height="92"></td>
<td colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="960" height="48" align="center">
<table border="0">
<tr bgcolor="#FFFFFF">
<td><div align="center"><span class="Style4">Id_depart</span></div></td>
<td><div align="center"><span class="Style4">num_ordre</span></div></td>
<td><div align="center"><span class="Style4">date_correspondance</span></div></td>
<td><div align="center"><span class="Style4">destinataire</span></div></td>
<td><div align="center"><span class="Style4">objet</span></div></td>
<td><div align="center"><span class="Style4">num_reponse</span></div></td>
<td><div align="center"><span class="Style4">observations</span></div></td>
<td><div align="center"><span class="Style4">Dossier</span></div></td>
<td><div align="center"><span class="Style4">Destinataire</span></div></td>
<td><div align="center"><span class="Style4">Fournisseur</span></div></td>
<td>Editer</td>
<td>Supprimer</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['Id_depart']; ?></td>
<td><?php echo $row_Recordset1['num_ordre']; ?></td>
<td><?php echo $row_Recordset1['date_correspondance']; ?></td>
<td><?php echo $row_Recordset1['destinataire']; ?></td>
<td><?php echo $row_Recordset1['objet']; ?></td>
<td><?php echo $row_Recordset1['num_reponse']; ?></td>
<td><?php echo $row_Recordset1['observations']; ?></td>
<td><?php echo $row_Recordset1['num_dossier']; ?></td>
<td><?php echo $row_Recordset1['Nom_Destination']; ?></td>
<td><?php echo $row_Recordset1['Nom_fournisseur']; ?></td>
<td><div align="center"><a href="depart.php?rama=fatou&id=<?php echo $row_Recordset1['Id_depart']; ?>"><img src="imges/edit.png" width="13" height="15" border="0" /></a></div></td>
<td><div align="center"><a href="depart.php?sup=<?php echo $row_Recordset1['Id_depart']; ?>"><img src="imges/corbeil.png" width="13" height="15" border="0" /></a></div></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<table width="44%" border="0" align="center" bgcolor="#CCCCCC">
<!--DWLayoutTable-->
<tr>
<td width="262"></td>
<td width="23%" align="center"><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, 0, $queryString_Recordset1); ?>"><img src="First.gif" border=0></a>
<?php } // Show if not first page ?> </td>
<td width="31%" align="center"><?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, max(0, $pageNum_Recordset1 - 1), $queryString_Recordset1); ?>"><img src="Previous.gif" border=0></a>
<?php } // Show if not first page ?> </td>
<td width="23%" align="center"><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, min($totalPages_Recordset1, $pageNum_Recordset1 + 1), $queryString_Recordset1); ?>"><img src="Next.gif" border=0></a>
<?php } // Show if not last page ?>
</td>
<td width="23%" align="center"><?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_Recordset1=%d%s", $currentPage, $totalPages_Recordset1, $queryString_Recordset1); ?>"><img src="Last.gif" border=0></a>
<?php } // Show if not last page ?>
</td>
</tr>
</table>
<p>
Enregistrements <?php echo ($startRow_Recordset1 + 1) ?> à <?php echo min($startRow_Recordset1 + $maxRows_Recordset1, $totalRows_Recordset1) ?> sur <?php echo $totalRows_Recordset1 ?></p>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="978" height="19" align="center" valign="middle"><span class="Style1">© 2014 CHNU FANN /CONCEPTION BY PROMO 6 SID:UADB</span></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
mysql_free_result($Recordset2);
mysql_free_result($Recordset3);
mysql_free_result($Recordset4);
?>[/php]