Location: PHPKode > projects > Key-med > afficher-historique.php
<?php
	session_start();
	include("includes/includes-php.php");
	$type=Historique_type::findById($_GET["t"]);
	$patient=Patient::findById($_GET["n"]);
	
	
?>
	<table border="0" cellspacing="0" bgcolor="#e8ffe8"
                  width="100%">
                    <tbody>
                      <tr align="center">
                        <td valign="top" bgcolor="#C0FFC0">
                          <table border="0" style="width: 100%" cellspacing="0">
                            <tbody>
                              <tr class="titreBloc1">
                                <td style="width:12%;">
                                  <a class="thickbox btajout gauche" href="ajout-historique.php?t=<?php echo $_GET["t"]; ?>&n=<?php echo $_GET['n'] ?>">+ Ajouter</a>
                                </td>
                                <td
                                  style="text-align:left; width:60%;"><strong
                                  style="font-size: 14pt">&#xa0;<?php echo $type->Nom." de ".$patient->Titre." ".$patient->Prenom." ".$patient->Nom; ?></strong></td>
                              </tr>
                            </tbody>
                          </table>
                        </td>
                      </tr>
                      <tr align="center">
                        <td align="center" valign="top">
                          <table border="0" style="width: 100%" class="zone-consult">
                            <tbody>
                             
                            <?php
                            
                            	$lesconsults=Historique_notes::findBy("where id_patient=\"".$_GET['n']."\" and id_type=\"".$_GET["t"]."\" order by date_enregistrement DESC,id_historique DESC");
                            	
                            	if(sizeof($lesconsults)>0){
                            		foreach($lesconsults as $consult){
                            			$description=str_replace(array("\r\n","\n","\r"),"<br/>",$consult->Titre);
                            			echo "<tr><td  style='padding:1px 5px; width:13%;'>".miseFr($consult->Date_enregistrement)."&nbsp;&nbsp;|&nbsp;</td><td  >".truncateDescription($description,60)."</td><td style='width:12%;'><a class='thickbox' href='afficher-detail-histo.php?i=".$consult->Id_historique."'>d&eacute;tail</a></td></tr>";
                            		}
                            	}else{
                            		echo "<tr id='pasdenr'><td colspan='3' class='paddingdate'>Aucun enregistrement</td></tr>";
                            	}
                          
                            ?>
                            </tbody>
                          </table>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                
	
Return current item: Key-med