<?php // Licence Publique Générale GNU (GNU General Publique License), Copyright 2005-2008 Geffrotin Yann

  // affiche le descriptif détaillé d'une CB
  
  $PositionSlash = strrpos($_SERVER["SCRIPT_NAME"], "/"); /* trouve la pos d'un caractère */
  $NomPage = substr($_SERVER["SCRIPT_NAME"], $PositionSlash+1, strlen($_SERVER["SCRIPT_NAME"]));
  
  echo "
  <table width='100%'>
    
    <tr>";
    
    if("cb_liste.php"  == $NomPage ){
      echo "<th></th>";
    }
    
    echo "<th>Numéro</th><th>IIN</th><th>Mois</th><th>Année</th><th>CryVis</th><th>IBAN</th>
    </tr>
    
    <tr >";
      
      if( "cb_liste.php" == $NomPage ){
        echo " <td class='historique' onmouseover='this.style.backgroundColor=\"white\"'
        onmouseout='this.style.backgroundColor=\"#c8d7e3\"' >
        <input type='checkbox' name='numcb[]' value='".$ligne["numcb"]."'></td>";
      }
      
      echo "
      <td class='historique' onmouseover='this.style.backgroundColor=\"white\"'
      onmouseout='this.style.backgroundColor=\"#c8d7e3\"' >".$ligne["numcb"]."</td>
      
      <td class='historique' onmouseover='this.style.backgroundColor=\"white\"' 
      onmouseout='this.style.backgroundColor=\"#c8d7e3\"' >".$ligne["typecb"]."</td>
      
      <td class='historique' onmouseover='this.style.backgroundColor=\"white\"'
      onmouseout='this.style.backgroundColor=\"#c8d7e3\"' >".$ligne["moisexpcb"]."</td>
      
      <td class='historique' onmouseover='this.style.backgroundColor=\"white\"'
      onmouseout='this.style.backgroundColor=\"#c8d7e3\"' >".$ligne["anneeexpcb"]."</td>
      
      <td class='historique' onmouseover='this.style.backgroundColor=\"white\"'
      onmouseout='this.style.backgroundColor=\"#c8d7e3\"' >".$ligne["cryvis"]."</td>
      
      <td class='historique' onmouseover='this.style.backgroundColor=\"white\"'
      onmouseout='this.style.backgroundColor=\"#c8d7e3\"' >".$ligne["iban"]."</td>
      
    </tr>
    
  </table>";
  
  $ligne_iban = mysql_fetch_assoc(mysql_query("Select * from freepay_iban where iban = '".$ligne["iban"]."';",$connexion));
  
  echo "<p class='info'>Montant du compte IBAN associé : ".$ligne_iban["montantiban"]." ".$_SESSION["devise"]."</p>";
      
?>
