Page 1 sur 1

Prob. de lien dynamque

Posté : 01 sept. 2005, 10:19
par pixfacto
Bonjour,

J'ai une liste de document et quand je clic sur l'un d'entre eux, j'arrive sur une page "détail".
Il y a plusieurs type de documents dans cette liste (cd, dvvd, k7,...) et chaque types de document a sa propre page "détail".

Le problème c'est que pour le moment, lorsqu'on clic sur l'un d'entre eux, on arrive toujours sur la même page "détail".
Voici mon lien :
<td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=<?php echo $row_listing['id_fiche']; ?>"><?php echo $row_listing['titre']; ?></a></td>
Ne faudrait-il pas une page intermédiare avec un script du style:
if id_genre_document=1 go genre_1.php

Je ne sais pas retranscrire ça en php.

Pourriez-vous m'aider à résoudre le prob?

Merci
Pierre

Posté : 01 sept. 2005, 10:36
par mere-teresa
Que donne ton code HTML ?

Posté : 01 sept. 2005, 10:49
par pixfacto
Voici ma page avec la liste :
<?php require_once('../../Connections/InFolio.php'); ?>
<?php
$currentPage = $_SERVER["PHP_SELF"];

$maxRows_listing = 20;
$pageNum_listing = 0;
if (isset($_GET['pageNum_listing'])) {
  $pageNum_listing = $_GET['pageNum_listing'];
}
$startRow_listing = $pageNum_listing * $maxRows_listing;

mysql_select_db($database_InFolio, $InFolio);
$query_listing = "SELECT id_fiche, auteur, titre, editeur, Genre FROM tb_type_doc LEFT JOIN  educa ON educa.id_fiche_doc=tb_type_doc.id ORDER BY educa.id_fiche DESC";
$query_limit_listing = sprintf("%s LIMIT %d, %d", $query_listing, $startRow_listing, $maxRows_listing);
$listing = mysql_query($query_limit_listing, $InFolio) or die(mysql_error());
$row_listing = mysql_fetch_assoc($listing);

if (isset($_GET['totalRows_listing'])) {
  $totalRows_listing = $_GET['totalRows_listing'];
} else {
  $all_listing = mysql_query($query_listing);
  $totalRows_listing = mysql_num_rows($all_listing);
}
$totalPages_listing = ceil($totalRows_listing/$maxRows_listing)-1;

$queryString_listing = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_listing") == false && 
        stristr($param, "totalRows_listing") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_listing = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_listing = sprintf("&totalRows_listing=%d%s", $totalRows_listing, $queryString_listing);
?>
<link href="../../CSS/style.css" rel="stylesheet" type="text/css">

</head>

<?php include('../includes/head.inc.php');?>
<table width="100%" align="center">
  <tr>
    <td><table width="100%" class="cadre2" >
        <tr>
          <td class="titre">Biblioth&egrave;que Infolio</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" class="cadre">
        <tr>
          <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><table width="100%" >
                    <tr>
                      <td width="3%" height="27" class="titre_tableau">N&deg; </td>
                      <td width="8%" class="titre_tableau">Doc.</td>
                      <td width="55%" class="titre_tableau">Titre</td>
                      <td width="35%" class="titre_tableau">Auteur(s)</td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td><table width="100%"  border="0" cellpadding="0" cellspacing="0">
                    <?php do { ?>
                    <tr>
                      <td width="3%" class="txt_tab"><?php echo $row_listing['id_fiche']; ?></td>
                      <td width="8%" class="txt_tab"><?php echo $row_listing['Genre']; ?></td>
                      <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=<?php echo $row_listing['id_fiche']; ?>"><?php echo $row_listing['titre']; ?></a></td>
                      <td width="30%" class="txt_tab"><?php echo $row_listing['auteur']; ?> </td>
                      <td class="ICO"><a href="../update/update.php?id_fiche=<?php echo $row_listing['id_fiche']; ?>"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td>
                      <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=<?php echo $row_listing['id_fiche']; ?>"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td>
                    </tr>
                    <tr>
                      <td colspan="6"><hr noshade class="marge"></td>
                    </tr>
                    <?php } while ($row_listing = mysql_fetch_assoc($listing)); ?>
                </table></td>
              </tr>
              <tr>
                <td><table width="50%" border="0" align="center">
                    <tr>
                      <td width="23%" align="center"><?php if ($pageNum_listing > 0) { // Show if not first page ?>
                          <a href="<?php printf("%s?pageNum_listing=%d%s", $currentPage, 0, $queryString_listing); ?>"><img src="../../img/First.gif" width="16" height="17" border=0></a>
                          <?php } // Show if not first page ?>
                      </td>
                      <td width="31%" align="center"><?php if ($pageNum_listing > 0) { // Show if not first page ?>
                          <a href="<?php printf("%s?pageNum_listing=%d%s", $currentPage, max(0, $pageNum_listing - 1), $queryString_listing); ?>"><img src="../../img/Previous.gif" width="16" height="17" border=0></a>
                          <?php } // Show if not first page ?>
                      </td>
                      <td width="31%" align="center"><span class="txt_tab">&nbsp; Fiche <?php echo ($startRow_listing + 1) ?> &agrave; <?php echo min($startRow_listing + $maxRows_listing, $totalRows_listing) ?> sur <?php echo $totalRows_listing ?></span></td>
                      <td width="23%" align="center"><?php if ($pageNum_listing < $totalPages_listing) { // Show if not last page ?>
                          <a href="<?php printf("%s?pageNum_listing=%d%s", $currentPage, min($totalPages_listing, $pageNum_listing + 1), $queryString_listing); ?>"><img src="../../img/Next.gif" width="16" height="17" border=0></a>
                          <?php } // Show if not last page ?>
                      </td>
                      <td width="23%" align="center"><?php if ($pageNum_listing < $totalPages_listing) { // Show if not last page ?>
                          <a href="<?php printf("%s?pageNum_listing=%d%s", $currentPage, $totalPages_listing, $queryString_listing); ?>"><img src="../../img/Last.gif" width="16" height="17" border=0></a>
                          <?php } // Show if not last page ?>
                      </td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<tr>  
  <?php
mysql_free_result($listing);
?>
<?php include('../includes/foot.inc.php');
?>
</body>
</html>


Posté : 01 sept. 2005, 10:56
par mere-teresa
Que donne ton code HTML ?
Je me répète mais on veut juste le code HTML : donc tu vas dans ton navigateur préféré, et tu fais "Code source de la page"

Posté : 01 sept. 2005, 10:58
par pixfacto
Voilà lecode de la liste

Code : Tout sélectionner

<link href="../../CSS/style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- .icone { padding-right: 2px; padding-left: 2px; } body { margin-top: 0px; } --> </style> </head> <html> <head> <title>Biblioth&egrave;que In Folio</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="../../CSS/style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- body { margin-top: 0px; } a:link { color: #333333; text-decoration: none; } a:visited { color: #333333; text-decoration: none; } a:hover { color: #FF3300; text-decoration: underline; } a:active { color: #333333; text-decoration: none; } --> </style> <script language="JavaScript"> <!-- function SymError() { return true; } window.onerror = SymError; var SymRealWinOpen = window.open; function SymWinOpen(url, name, attributes) { return (new Object()); } window.open = SymWinOpen; //--> </script> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> </head> <body> <tr> <td><table width="760"> <tr> <td width="147" height="30" valign="top"><div align="center"><a href="../admin.php" class="lien_menu">Accueil</a></div></td> <td width="235" height="30"><form name="form1" method="get" action="../listing/listing_Mot_Cle.php"> <table border="0"> <tr> <td><input name="VARCle" type="text" class="bouton" id="VARCle"></td> <td><input name="submit" type="image" id="submit" src="../../img/search.gif" width="59" height="18" border="0"></td> </tr> </table> </form></td> <td width="139" height="30" valign="top"><select name="menu1" class="bouton" onChange="MM_jumpMenu('parent',this,0)"> <option>Ajouter une fiche</option> <option>---------------------</option> <option value="../insert/insert_actes.php">Acte</option> <option value="../insert/insert_articles.php">Article</option> <option value="../insert/insert_brochure.php">Brochure</option> <option value="../insert/insert_catalogue.php">Catalogue</option> <option value="../insert/insert_depliant.php">D&eacute;pliant</option> <option value="../insert/insert_dossier.php">Dossier</option> <option value="../insert/insert_etude.php">Etude</option> <option value="../insert/insert_lit_gri.php">Litt. grise</option> <option value="../insert/insert_livre.php">Livre</option> <option value="../insert/insert_memoire.php">M&eacute;m./th&egrave;se</option> <option value="../insert/insert_rapport.php">Rapport d'activit&eacute;s</option> </select></td> <td width="212" height="30" valign="top"><form name="form1" method="get" action="../listing/listing_Typ_Doc.php"> <table width="100%" border="0" > <tr> <td width="61%"><select name="VARGenre" class="bouton" id="VARGenre"> <option value="#">Modifier/Supprimer</option> <option value="#">----------------------</option> <option value="1">Actes</option> <option value="2">Article</option> <option value="3">Brochure</option> <option value="4">Catalogue</option> <option value="5">Dépliant</option> <option value="6">Dossier</option> <option value="7">Etude</option> <option value="9">Littérature grise</option> <option value="10">Livre</option> <option value="11">Mémoire/thèse</option> <option value="12">Rapport d'activités</option> </select></td> <td width="39%"><input name="submit" type="image" id="submit" src="../../img/search.gif" width="59" height="18" border="0"></td> </tr> </table> </form></td> </tr> </table></td> <tr> <table width="100%" align="center"> <tr> <td><table width="100%" class="cadre2" > <tr> <td class="titre">Biblioth&egrave;que Infolio</td> </tr> </table></td> </tr> <tr> <td><table width="100%" class="cadre"> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><table width="100%" > <tr> <td width="3%" height="27" class="titre_tableau">N&deg; </td> <td width="8%" class="titre_tableau">Doc.</td> <td width="55%" class="titre_tableau">Titre</td> <td width="35%" class="titre_tableau">Auteur(s)</td> </tr> </table></td> </tr> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="3%" class="txt_tab">1999</td> <td width="8%" class="txt_tab">Actes</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1999">zacazc</a></td> <td width="30%" class="txt_tab">test </td> <td class="ICO"><a href="../update/update.php?id_fiche=1999"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1999"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1998</td> <td width="8%" class="txt_tab">Livre</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1998">zcaaz</a></td> <td width="30%" class="txt_tab">aqcqe </td> <td class="ICO"><a href="../update/update.php?id_fiche=1998"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1998"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1997</td> <td width="8%" class="txt_tab">Littérature grise</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1997">aeva</a></td> <td width="30%" class="txt_tab">zerv </td> <td class="ICO"><a href="../update/update.php?id_fiche=1997"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1997"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1995</td> <td width="8%" class="txt_tab">Dossier</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1995">aevae</a></td> <td width="30%" class="txt_tab">aevae </td> <td class="ICO"><a href="../update/update.php?id_fiche=1995"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1995"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1994</td> <td width="8%" class="txt_tab">Etude</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1994">aefaf</a></td> <td width="30%" class="txt_tab">aefa </td> <td class="ICO"><a href="../update/update.php?id_fiche=1994"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1994"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1993</td> <td width="8%" class="txt_tab">Livre</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1993">cccz</a></td> <td width="30%" class="txt_tab">czc </td> <td class="ICO"><a href="../update/update.php?id_fiche=1993"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1993"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1991</td> <td width="8%" class="txt_tab">Etude</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1991">zec</a></td> <td width="30%" class="txt_tab">zaec </td> <td class="ICO"><a href="../update/update.php?id_fiche=1991"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1991"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1988</td> <td width="8%" class="txt_tab">Actes</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1988">QFQZEF</a></td> <td width="30%" class="txt_tab">QFQEGF </td> <td class="ICO"><a href="../update/update.php?id_fiche=1988"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1988"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1987</td> <td width="8%" class="txt_tab">Livre</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1987">test</a></td> <td width="30%" class="txt_tab">test </td> <td class="ICO"><a href="../update/update.php?id_fiche=1987"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1987"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1986</td> <td width="8%" class="txt_tab">Catalogue</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1986">sdcq</a></td> <td width="30%" class="txt_tab">sqdc </td> <td class="ICO"><a href="../update/update.php?id_fiche=1986"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1986"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1985</td> <td width="8%" class="txt_tab">Dépliant</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1985">poj</a></td> <td width="30%" class="txt_tab">jpoo </td> <td class="ICO"><a href="../update/update.php?id_fiche=1985"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1985"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1984</td> <td width="8%" class="txt_tab">Dossier</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1984">ty</a></td> <td width="30%" class="txt_tab">ty </td> <td class="ICO"><a href="../update/update.php?id_fiche=1984"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1984"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1983</td> <td width="8%" class="txt_tab">Etude</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1983">re</a></td> <td width="30%" class="txt_tab">rererere </td> <td class="ICO"><a href="../update/update.php?id_fiche=1983"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1983"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1981</td> <td width="8%" class="txt_tab">Littérature grise</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1981">ZED</a></td> <td width="30%" class="txt_tab">OKP*OK </td> <td class="ICO"><a href="../update/update.php?id_fiche=1981"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1981"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1979</td> <td width="8%" class="txt_tab">Mémoire/thèse</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1979"></a></td> <td width="30%" class="txt_tab"> </td> <td class="ICO"><a href="../update/update.php?id_fiche=1979"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1979"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1976</td> <td width="8%" class="txt_tab">Littérature grise</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1976">er</a></td> <td width="30%" class="txt_tab">agqqq </td> <td class="ICO"><a href="../update/update.php?id_fiche=1976"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1976"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1975</td> <td width="8%" class="txt_tab">Littérature grise</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1975">sd</a></td> <td width="30%" class="txt_tab">sq </td> <td class="ICO"><a href="../update/update.php?id_fiche=1975"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1975"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1973</td> <td width="8%" class="txt_tab">Etude</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1973">afe</a></td> <td width="30%" class="txt_tab">f"ea </td> <td class="ICO"><a href="../update/update.php?id_fiche=1973"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1973"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1173</td> <td width="8%" class="txt_tab">Actes</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1173">SANTE MENTALE ET VIEILLISSEMENT : PERSPECTIVES DE PREVENTION DANS L'EUROPE D'APRES 1992</a></td> <td width="30%" class="txt_tab"> </td> <td class="ICO"><a href="../update/update.php?id_fiche=1173"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1173"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> <tr> <td width="3%" class="txt_tab">1172</td> <td width="8%" class="txt_tab">Actes</td> <td width="57%" class="txt_tab"><a href="../detail/detail.php?id_fiche=1172">LE SOCIAL DANS LA SANTE</a></td> <td width="30%" class="txt_tab"> </td> <td class="ICO"><a href="../update/update.php?id_fiche=1172"><img src="../../img/edit.gif" alt="Modifier la fiche" width="18" height="13" border="0"></a> </td> <td width="16" class="ICO"><a href="../confirm/confirm.php?id_fiche=1172"><img src="../../img/corbeille.png" alt="Supprimer la fiche" width="16" height="16" border="0"></a> </td> </tr> <tr> <td colspan="6"><hr noshade class="marge"></td> </tr> </table></td> </tr> <tr> <td><table width="50%" border="0" align="center"> <tr> <td width="23%" align="center"> </td> <td width="31%" align="center"> </td> <td width="31%" align="center"><span class="txt_tab">&nbsp; Fiche 1 &agrave; 20 sur 1137</span></td> <td width="23%" align="center"> <a href="/in_folio/admin/listing/listing.php?pageNum_listing=1&totalRows_listing=1137"><img src="../../img/Next.gif" width="16" height="17" border=0></a> </td> <td width="23%" align="center"> <a href="/in_folio/admin/listing/listing.php?pageNum_listing=56&totalRows_listing=1137"><img src="../../img/Last.gif" width="16" height="17" border=0></a> </td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table> <tr> <style type="text/css"> <!-- body { margin-bottom: 0px; margin-left: 0px; } .encart { background-color: #4E6681; vertical-align: top; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #CCCCCC; } a.lien_encart:active { background-color: #4E6681; vertical-align: top; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; text-decoration: underline; } a.lien_encart:visited { background-color: #4E6681; vertical-align: top; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #CCCCCC; text-decoration: none; } a.lien_encart:hover { background-color: #4E6681; vertical-align: top; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; text-decoration: underline; } a.lien_encart:link { background-color: #4E6681; vertical-align: top; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #CCCCCC; text-decoration: none; } --> </style> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr class="encart"> <td valign="bottom">Biblioth&egrave;que In Folio 2005&copy;</td> <td valign="bottom"><div align="right"><a href="http://www.iwsm.be" target="_blank" class="lien_encart">Institut Wallon pour la Sant&eacute; Mentale</a></div></td> </tr> </table></td> </tr> </table> </body> <script language="JavaScript"> <!-- window.open = SymRealWinOpen; //--> </script> </html> </body> </html>

Posté : 01 sept. 2005, 11:07
par mere-teresa
Où est le form ?
Trop long, ne mets que la partie qui concerne ton problème. MErci

Posté : 01 sept. 2005, 11:12
par iclo
Tu peux très bien diriger tous tes liens vers la même page de détails, et là réaliser l'affichage en fonction du type d'élément.

Posté : 01 sept. 2005, 18:08
par Invité
Il n'y a pas de form.
Il s'agit d'un liste qui affiche tous les enregistrements d'une db.

Et je souhaite qu'en fonction du type d'enregistrement affiché dans la liste, soit que le lien renvoi vers une page différente. Soit que la page vers laquelle renvoit le lien s'adapte en fonction du type du document.

J'ai tenté de faire une page où je dis que si l'enrigistrement "cd" est vide il ne s'affiche pas et ainsi de suite avec tous les types de document.
Mais c'est pas ça.

L'affichage de la page détail devrait se faire en fonction du type de document.

Le code que j'ai est correct en sois, mais je n'obtiens pas le résultat souhaité.
Je ne parviens pas à développer un script correct. Pouvez-vous me mettre sur une piste?

Merci