root / src / strains.TSP.php @ master
Historique | Voir | Annoter | Télécharger (678 octet)
1 |
<?php
|
---|---|
2 |
|
3 |
// a Trigger to display full genotype
|
4 |
$all = $this->myQuery("SELECT * FROM ".$this->tb); |
5 |
|
6 |
// reach the strain displayed
|
7 |
$found = 0; |
8 |
while(!$found && $strain = mysql_fetch_object($all)){ |
9 |
if ($strain->id == $this->rec) |
10 |
$found = 1; |
11 |
} |
12 |
|
13 |
if ($strain){ |
14 |
// print full genotype
|
15 |
echo dump_genotype($strain); |
16 |
/*
|
17 |
// find author in table labmembers
|
18 |
$allauth = $this->myQuery("SELECT * FROM labmembers");
|
19 |
if ($allauth){
|
20 |
$found = 0;
|
21 |
while(!$found && $labm = mysql_fetch_object($allauth)){
|
22 |
if ($labm->id == $strain->author_id)
|
23 |
$found = 1;
|
24 |
}
|
25 |
}
|
26 |
// print author's name
|
27 |
echo "Author: " .
|
28 |
$labm->Firstname . " ".
|
29 |
$labm->Name .
|
30 |
"<BR>". "<BR>";
|
31 |
*/
|
32 |
} |
33 |
?>
|