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
| <?php
// Récupération des données transmises par le formulaire
if (isset($_GET['IDlist'])) {
foreach ($_GET['IDlist'] as $id) {
echo $id."<br/>";
}
}
// Création d'une variable de session pour le test
$molecules = array("mol1","mol2","mol3","mol4","mol5");
foreach ($molecules as $molecule) {
$_SESSION['requete'][$molecule]['ID'] = 'ID '.$molecule;
$_SESSION['requete'][$molecule]['KW'] = 'Description '.$molecule;
$_SESSION['requete'][$molecule]['ND'] = 'Number of protein sequences '.$molecule;
$_SESSION['requete'][$molecule]['LA'] = 'Alignement lenght '.$molecule;
$_SESSION['requete'][$molecule]['HT'] = 'Horizontal transfert '.$molecule;
$_SESSION['requete'][$molecule]['SPBN'] = 'Species Number '.$molecule;
$_SESSION['requete'][$molecule]['INN'] = 'Innovation '.$molecule;
$_SESSION['requete'][$molecule]['INNTYPE'] = 'Innovation Type '.$molecule;
$_SESSION['requete'][$molecule]['SPNB'] = 'Species Number '.$molecule;
}
?>
<form method="get" action="<?php /* rappelle le script courant pour le test */ ?>">
<!-- ##############" BOUTONS pour soumettre le formulaire ############## -->
<table style="width:60%;margin:auto;">
<tr align="center">
<td><input type="submit" value="Selected values' scenario" name="ok1"></td>
<td><input type="submit" value="Selected values' architecture" name="ok2"></td>
</tr>
</table>
<!-- ##############" TABLE Principale ############## -->
<table style="width:80%;margin:auto; border=0; cellspacing=0; cellspadding=0;">
<?php
foreach($_SESSION['requete'] as $key => $nom){
if($nom['ID'] == 'none'){//verifying that the request is not empty and correct type
?>
<!-- ##############" Ligne annonçant une requête impossible ############## -->
<tr class="warning">
<td class="warning">Cette requete n'est pas réalisable : <?php echo $key; ?></td>
</tr>
<?php
} else {
?>
<!-- ##############" Ligne entête du tableau ( Contient un table avec un ligne de 4 cellules) ############## -->
<tr>
<td align="center" bgcolor="#999999">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td align="center" valign="top"><!--checkbox-->
<input type="checkbox" name="IDlist[]" value="<?php echo $nom['ID']; ?>">
<span class="h3_like"><BIG><?php echo ' '. $nom['ID'].' '; ?></BIG></span>
</td>
<td><!--arbre phylogenetique-->
<a target="_blank" href="http://pbil.univ-lyon1.fr/cgi-bin/view-tree.pl?query=<?php echo $nom['ID']; ?>&db=HOGENOM" target="_top" ><img src="../images/menu/arbre.jpg" border="0"alt="Phylogenetic tree" title="Phylogenetic tree" onMouseOver="window.status='Phylogenetic tree'" onMouseOut="window.status=''"></a>
</td>
<td><!--repesentation graphique-->
<a target="_blank" href="../script/action_architecture.php?action=webdom1&request=<?php echo $nom['ID']; ?>" target="_top" > <img src="../images/menu/graphic_representation.jpg" border="0" alt="Graphic representation" title="Graphic representation " onMouseOver="window.status='Graphic representation '" onMouseOut="window.status=''"></a>
</td>
<td><!--scenario-->
<a target="_blank" href="../script/action_scenario.php?action=scenario&request=<?php echo $nom['ID']; ?>" target="_top" > <img src="../images/menu/scenario.jpg" border="0"alt="Evolutionnary scenario" title="Evolutionnary scenario" onMouseOver="window.status='Evolutionnary scenario'" onMouseOut="window.status=''"></a>
</td>
</tr>
</table>
</td>
</tr>
<!-- ##############" Ligne détails du tableau ( Contient un table avec 5 lignes de 2 cellules) ############## -->
<tr>
<td align="left">
<TABLE BORDER=0 ALIGN=Left cellspacing="3" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC"><p><b>Description</b></p></td>
<td border="0" cellpadding="0" cellspacing="0" width="460"><p><?php echo nl2br($nom['KW']); ?></p></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><p><b>Number of protein sequences</b></p></td>
<td><p><?php echo nl2br($nom['ND']); ?></p></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><p><b>Alignement lenght</b></p></td>
<td><p><?php echo nl2br($nom['LA']); ?></p></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><p><b>Horizontal transfert</b></p></td>
<td><p><?php echo nl2br($nom['HT']); ?></p></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><p><b>Species Number</b></p></td>
<td><p><?php echo nl2br($nom['SPNB']); ?></p></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><p><b>Innovation</b></p></td>
<td><p><?php echo nl2br($nom['INN']); ?></p></td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><p><b>Innovation type</b></p></td>
<td><p><?php echo nl2br($nom['INNTYPE']); ?></p></td>
</tr>
</table>
</td>
</tr>
<?php
}
}
?>
</table>
<!-- ##############" BOUTONS pour soumettre le formulaire ############## -->
<table style="width:60%;margin:auto;">
<tr align="center">
<td><input type="submit" value="Selected values' scenario" name="ok1"></td>
<td><input type="submit" value="Selected values' architecture" name="ok2"></td>
</tr>
</table>
</form> |
Partager