No hits. Please verify your entry and selection of specimen database. ";}
else
{
$result01 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT sptoolcollection.ID_Collection, " .
" sptoolcollection.UnitID_Specimen, " .
" sptoolcollection.CollectionCode_Specimen, " .
" sptoolcollection.InstitutionCode_Specimen, " .
" sptoolcollection.Collectors, " .
" sptoolcollection.CollectionDateMin, " .
" sptoolcollection.CollectionDateMax, " .
" sptoolcollection.CollectionYear, " .
" sptoolcollection.CollectorsNo, " .
" sptoolcollection.Locality_ID, " .
" sptoolcollection.ExpeditionDetails, " .
" sptoolcollection.Region, " .
" sptoolcollection.Locality, " .
" sptoolcollection.Habitat, " .
" sptoolcollection.DepthMin, " .
" sptoolcollection.DepthMax, " .
" sptoolcollection.DepthUnit, " .
" sptoolcollection.DepthAccuracyStatement, " .
" sptoolcollection.AltitudeMin, " .
" sptoolcollection.AltitudeMax, " .
" sptoolcollection.AltitudeUnit, " .
" sptoolcollection.AltitudeAccuracyStatement, " .
" sptoolcollection.LongitudeMin, " .
" sptoolcollection.LatitudeMin, " .
" sptoolcollection.LongitudeMax, " .
" sptoolcollection.LatitudeMax, " .
" sptoolcollection.LongitudeRaw, " .
" sptoolcollection.LatitudeRaw, " .
" sptoolcollection.CoordinatesAccuracyStatement, " .
" sptoolcollection.CoordinatesErrorDistance, " .
" sptoolcollection.EscapedCoordinates, " .
" sptoolcollection.Permission, " .
" sptoolcollection.Blocked_For_Publishing, " .
" sptoolcollection.Blocked_For_Loaning, " .
" sptoolcollection.Blocked_Until, " .
" sptoolcollection.Loan_Conditions, " .
" sptoolcollection.AccessionNo, " .
" sptoolcollection.AccessionName, " .
" sptoolcollection.LifeStage, " .
" sptoolcollection.LifeForm, " .
" sptoolcollection.Notes, " .
" basisofrecordspecimen.BasisOfRecord_Specimen AS BasisOfRecord, " .
" kindofunit.KindOfUnit, " .
" sex.Sex, " .
" specimentype.SpecimenType, " .
" countryisocode.Country, " .
" countryisocode.IsoCode, " .
" slope.Slope, " .
" seasandoceans.SeasAndOceans " .
" FROM sptoolcollection JOIN tmpSpToolIDs " .
" LEFT JOIN basisofrecordspecimen ON sptoolcollection.FK_BasisOfRecord = basisofrecordspecimen.ID_BasisOfRecord_Specimen " .
" LEFT JOIN kindofunit ON sptoolcollection.FK_KindOfUnit = kindofunit.ID_KindOfUnit " .
" LEFT JOIN sex ON sptoolcollection.FK_Sex = sex.ID_Sex " .
" LEFT JOIN specimentype ON sptoolcollection.FK_Type = specimentype.ID_SpecimenType " .
" LEFT JOIN countryisocode ON sptoolcollection.FK_Country = countryisocode.ID_Country " .
" LEFT JOIN seasandoceans ON sptoolcollection.FK_SeasAndOceans = seasandoceans.ID_SeasAndOceans " .
" LEFT JOIN slope ON sptoolcollection.FK_Slope = slope.ID_Slope " .
" WHERE sptoolcollection.ID_Collection = tmpSpToolIDs.ID_Collection");
$result2 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT sptoolcollection.ID_Collection, " .
" sptooltaxa.NameAuthorYear, " .
" sptooltaxa.Genus, " .
" sptooltaxa.Subgenus, " .
" sptooltaxa.SpecificEpithet, " .
" sptooltaxa.Rank, " .
" sptooltaxa.InfraspecificEpithet, " .
" sptooltaxa.AuthorParenth, " .
" sptooltaxa.YearParenth, " .
" sptooltaxa.Author, " .
" sptooltaxa.Year, " .
" sptooltaxa.KindOfIdentification, " .
" sptooltaxa.Identifier, " .
" sptooltaxa.IdentificationDate, " .
" sptooltaxa.IdentificationNotes, " .
" sptooltaxa.PreferredFlag " .
" FROM sptoolcollection, sptooltaxa, tmpSpToolIDs " .
" WHERE sptooltaxa.FK_Collection = sptoolcollection.ID_Collection " .
" AND sptooltaxa.PreferredFlag = '1' " .
" AND sptooltaxa.Synecology IS NULL " .
" AND sptoolcollection.ID_Collection = tmpSpToolIDs.ID_Collection");
while($row = mysqli_fetch_object($result2))
{
$NameAuthorYear = $row->NameAuthorYear;
$Genus = $row->Genus;
$Subgenus = $row->Subgenus;
$SpecificEpithet = $row->SpecificEpithet;
$InfraspecificEpithet = $row->InfraspecificEpithet;
$Rank = $row->Rank;
$AuthorParenth = $row->AuthorParenth;
$YearParenth = $row->YearParenth;
$Author = $row->Author;
$Year = $row->Year;
$KindOfIdentification = $row->KindOfIdentification;
$Identifier = $row->Identifier;
$IdentificationDate = $row->IdentificationDate;
$IdentNotes = $row->IdentificationNotes;
$PreferredFlag = "Yes";
}
$result2b = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT sptoolcollection.ID_Collection, " .
" sptooltaxa.NameAuthorYear AS NameAuthorYearB, " .
" sptooltaxa.PreferredFlag AS PreferredFlagB " .
" FROM sptoolcollection, sptooltaxa, tmpSpToolIDs " .
" WHERE sptooltaxa.FK_Collection = sptoolcollection.ID_Collection " .
" AND sptooltaxa.PreferredFlag = '0' " .
" AND sptooltaxa.Synecology IS NULL " .
" AND sptoolcollection.ID_Collection = tmpSpToolIDs.ID_Collection");
while($row = mysqli_fetch_object($result2b))
{
$NameAuthorYearB = $row->NameAuthorYear;
$GenusB = $row->Genus;
$SubgenusB = $row->Subgenus;
$SpecificEpithetB = $row->SpecificEpithet;
$InfraspecificEpithetB = $row->InfraspecificEpithet;
$RankB = $row->Rank;
$AuthorParenthB = $row->AuthorParenth;
$YearParenthB = $row->YearParenth;
$AuthorB = $row->Author;
$YearB = $row->Year;
$KindOfIdentificationB = $row->KindOfIdentification;
$IdentifierB = $row->Identifier;
$IdentificationDateB = $row->IdentificationDate;
$IdentNotesB = $row->IdentificationNotes;
}
$result3a = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT sptoolcollection.ID_Collection, " .
" sptooltaxa.ID_TaxonIdentified, " .
" sptoolhighertaxon.HigherTaxon, " .
" sptoolhighertaxon.TaxonRank " .
" FROM sptoolcollection, sptooltaxa, sptoolhighertaxon, tmpSpToolIDs " .
" WHERE sptoolhighertaxon.FK_TaxonIdentified = sptooltaxa.ID_TaxonIdentified " .
" AND sptooltaxa.FK_Collection = sptoolcollection.ID_Collection " .
" AND sptooltaxa.PreferredFlag = '1' " .
" AND sptoolcollection.ID_Collection = tmpSpToolIDs.ID_Collection");
$result3b = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT sptoolcollection.ID_Collection, " .
" sptooltaxa.ID_TaxonIdentified, " .
" sptoolhighertaxon.HigherTaxon, " .
" sptoolhighertaxon.TaxonRank " .
" FROM sptoolcollection, sptooltaxa, sptoolhighertaxon, tmpSpToolIDs " .
" WHERE sptoolhighertaxon.FK_TaxonIdentified = sptooltaxa.ID_TaxonIdentified " .
" AND sptooltaxa.FK_Collection = sptoolcollection.ID_Collection " .
" AND sptooltaxa.PreferredFlag = '0' " .
" AND sptoolcollection.ID_Collection = tmpSpToolIDs.ID_Collection");
$result4 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT sptoolcollection.ID_Collection, " .
" sptoolmeasurementorfact.Value, " .
" sptoolmeasurementorfact.Unit, " .
" sptoolmeasurementorfact.Parameter, " .
" sptoolmeasurementorfact.Method " .
" FROM sptoolcollection, sptoolmeasurementorfact, tmpSpToolIDs " .
" WHERE sptoolmeasurementorfact.FK_Collection = sptoolcollection.ID_Collection " .
" AND sptoolcollection.ID_Collection = tmpSpToolIDs.ID_Collection");
$result5 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT sptoolcollection.ID_Collection, " .
" sptoolmultimedia.FK_Collection, " .
" sptoolmultimedia.File_Path AS ImageLink " .
" FROM sptoolmultimedia, sptoolcollection, tmpSpToolIDs " .
" WHERE sptoolmultimedia.FK_Collection = sptoolcollection.ID_Collection " .
" AND sptoolcollection.ID_Collection = tmpSpToolIDs.ID_Collection");
while($row = mysqli_fetch_object($result5))
{
if(isset($ImageLink[$row->ID_Collection]))
{ $ImageLink .= build_href1($row->Images,$row->Images) . "
"; }
else
{$ImageLink .= build_href1($row->Images,$row->Images) . "
"; }
}
$result2Host = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT sptoolcollection.ID_Collection, " .
" sptooltaxa.ID_TaxonIdentified, " .
" sptooltaxa.NameAuthorYear, " .
" sptooltaxa.Genus, " .
" sptooltaxa.Subgenus, " .
" sptooltaxa.SpecificEpithet, " .
" sptooltaxa.Rank, " .
" sptooltaxa.InfraspecificEpithet, " .
" sptooltaxa.AuthorParenth, " .
" sptooltaxa.YearParenth, " .
" sptooltaxa.Author, " .
" sptooltaxa.Year, " .
" sptooltaxa.KindOfIdentification, " .
" sptooltaxa.Identifier, " .
" sptooltaxa.IdentificationDate, " .
" sptooltaxa.IdentificationNotes, " .
" sptooltaxa.PreferredFlag " .
" FROM sptoolcollection, sptooltaxa, tmpSpToolIDs " .
" WHERE sptooltaxa.FK_Collection = sptoolcollection.ID_Collection " .
" AND sptooltaxa.Synecology = 'host' " .
" AND sptoolcollection.ID_Collection = tmpSpToolIDs.ID_Collection");
while($row = mysqli_fetch_object($result2Host))
{
$NameAuthorYearHost = $row->NameAuthorYear;
$GenusHost = $row->Genus;
$SubgenusHost = $row->Subgenus;
$SpecificEpithetHost = $row->SpecificEpithet;
$InfraspecificEpithetHost = $row->InfraspecificEpithet;
$RankHost = $row->Rank;
$AuthorParenthHost = $row->AuthorParenth;
$YearParenthHost = $row->YearParenth;
$AuthorHost = $row->Author;
$YearHost = $row->Year;
$KindOfIdentificationHost = $row->KindOfIdentification;
$IdentifierHost = $row->Identifier;
$IdentificationDateHost = $row->IdentificationDate;
$IdentificationNotesHost = $row->IdentificationNotes;
}
$result3Host = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT sptoolcollection.ID_Collection, " .
" sptooltaxa.ID_TaxonIdentified, " .
" sptoolhighertaxon.HigherTaxon, " .
" sptoolhighertaxon.TaxonRank " .
" FROM sptoolcollection, sptooltaxa, sptoolhighertaxon, tmpSpToolIDs " .
" WHERE sptoolhighertaxon.FK_TaxonIdentified = sptooltaxa.ID_TaxonIdentified " .
" AND sptooltaxa.FK_Collection = sptoolcollection.ID_Collection " .
" AND sptoolhighertaxon.Synecology = 'host' " .
" AND sptoolcollection.ID_Collection = tmpSpToolIDs.ID_Collection");
$all = mysqli_num_rows($result01);
if($all == 1)
{
while($row = mysqli_fetch_object($result01))
{
echo "
Preferred Taxon Name: ".$NameAuthorYear."";
echo " Unit ID: ".$row->UnitID_Specimen.""; echo " Basis of Record: ".$row->BasisOfRecord.""; echo " | Institution Code: ".$row->InstitutionCode_Specimen."";
echo " Collection Code: ".$row->CollectionCode_Specimen." "; echo $row->KindOfUnit ? "Kind of Unit: ".$row->KindOfUnit."" : ""; echo " |
Name: | " . $NameAuthorYear. " |
Identifier: | " . $Identifier. " |
Date: | " . $IdentificationDate. " |
Notes: | " . $IdentNotes. " |
Taxonomy: | ";
while($rowa = mysqli_fetch_object($result3a))
{ echo $rowa->HigherTaxon." (".$rowa->TaxonRank.") "; } echo " |
Name: | " . $NameAuthorYearB. " |
Identifier: | " . $IdentifierB. " |
Date: | " . $IdentificationDateB. " |
Notes: | " . $IdentNotesB. " |
Taxonomy: | ";
while($rowb = mysqli_fetch_object($result3b))
{ echo $rowb->HigherTaxon." (".$rowb->TaxonRank.") "; } echo " |
".$ImageLink[$row->ID_Collection]." |
Locality: | Collector(s): | Other info: | ||
---|---|---|---|---|
Continent/Ocean: ".$row->ContinentOrOcean." | " : "||||
"; echo $row->Country ? " | ||||
Country: ".$row->Country." (".$row->IsoCode.") | " : ""; echo $row->SeasAndOceans ? "||||
Sea: ".$row->SeasAndOceans." | " : ""; echo $row->Collectors ? "".$row->Collectors." | " : ""; echo $row->AltitudeMin || $row->AltitudeMax ? " | Altitude: " : " | "; echo $row->AltitudeAccuracyStatement ? $row->AltitudeAccuracyStatement." " : ""; echo $row->AltitudeMin ? $row->AltitudeMin : ""; echo $row->AltitudeMax ? " to ".$row->AltitudeMax : ""; echo $row->AltitudeMin || $row->AltitudeMax ? $row->AltitudeUnit." | " : ""; echo "
Region: ".$row->Region." | " : "||||
"; echo $row->Habitat ? " | Habitat: ".$row->Habitat." | " : ""; echo " | ||
Locality: ".$row->Locality." | " : "||||
"; echo $row->CollectionDateMin || $row->CollectionDateMax ? " | Date: ".$row->CollectionDateMin : " | "; echo $row->CollectionDateMax ? " to ".$row->CollectionDateMax : ""; echo $row->CollectionDateMin || $row->CollectionDateMax ? " | " : ""; echo "||
Coordinates (Lat|Lon): ".$row->LatitudeMin." | ".$row->LongitudeMin." | " : "||||
"; echo $row->CollectorsNo ? " | Collectors No: ".$row->CollectorsNo." | " : ""; echo $row->ExpeditionDetails ? " | Project: ".$row->ExpeditionDetails." | " : ""; echo " |
Preferred Taxon Name: ".$NameAuthorYear1[$row['ID_Collection']]." ".$TaxonRank1[$row['ID_Collection']];
echo " ".$NameAuthorYear[$row['ID_Collection']]." ".$TaxonRank2[$row['ID_Collection']];
echo $Notes1[$row['ID_Collection']] ? " Notes: " . $Notes1[$row['ID_Gathering']] : "";
echo " Unit ID: ".$row['UnitID_Specimen']." "; echo "Institution Code: ".$row['InstitutionCode_Specimen']." "; echo "Collection Code: ".$row['CollectionCode_Specimen']." |
".$ImageLink[$row->ID_Collection]." |
Locality: | Collector(s): | Other info: | ||
---|---|---|---|---|
Continent/Ocean: ".$row['ContinentOrOcean']." | " : "||||
"; echo $row['CountryName'] ? " | ||||
Country: ".$row['CountryName']." (".$row['CountryISO2'].") | " : "||||
"; echo $row['SeasAndOceans'] ? " | ||||
Sea: ".$row['SeasAndOceans']." | " : "||||
"; echo $row['Collectors'] ? " | ".$row['Collectors']." | " : ""; echo $row['AltitudeMin'] ? " | Altitude: ".$row['AltitudeMin']." | " : ""; echo " |
Region: ".$row['Region']." | " : "||||
"; echo $row['Habitat'] ? " | Biotope: ".$row['Habitat']." | " : ""; echo " | ||
Locality: ".$row['Locality']." | " : "||||
"; echo $row['CollectionDateMin'] ? " | Date: ".$row['CollectionDateMin']." | " : ""; echo " | ||
Coordinates: ".$row['LatitudeDecimalMax']." | ".$row['LongitudeDecimalMax']." | " : "||||
"; echo $row['CollectorsNo'] ? " | Collection No: ".$row['CollectorsNo']." | " : ""; echo $row['ExpedtionDetails'] ? " | Project: ".$row['ExpeditionDetails']." | " : ""; echo " |
Prefered Taxon Name: ".$NameAuthorYear1[$row->ID_Collection]."";
echo " Unit ID: ".$row->UnitID_Specimen.""; echo " Basis of Record: ".$row->BasisOfRecord_Specimen.""; echo " | Institution Code: ".$row->InstitutionCode_Specimen."";
echo " Collection Code: ".$row->CollectionCode_Specimen." |
Name: | " . $NameAuthorYear1[$row->ID_Collection]. " |
Identifier: | " . $Identifier1[$row->ID_Collection]. " |
Date: | " . $IdentificationDate1[$row->ID_Collection]. " |
Taxonomy: | " . $Ausgabe1 . " |
Name: | " . $NameAuthorYear[$row->ID_Collection]. " |
Identifier: | " . $Identifier[$row->ID_Collection]. " |
Date: | " . $IdentificationDate[$row->ID_Collection]. " |
Date: | " . $Notes[$row->ID_Collection]. " |
Taxonomy: | " . $Ausgabe2 . " |
".$ImageLink." |
Locality: | Collector(s): | Other info: | ||
---|---|---|---|---|
Continent/Ocean: ".$row->ContinentOrOcean." | " : "||||
"; echo $row->CountryName ? " | ||||
Country: ".$row->CountryName." (".$row->CountryISO2.") | " : "||||
"; echo $row->SeasAndOceans ? " | ||||
Sea/Ocean: ".$row->SeasAndOceans." | " : "||||
"; echo $row->Collectors ? " | ".$row->Collectors." | " : ""; echo $row->AltitudeMin ? " | Altitude: ".$row->AltitudeMin." | " : ""; echo " |
Region: ".$row->Region." | " : "||||
"; echo $row->Habitat ? " | Biotope: ".$row->Habitat." | " : ""; echo " | ||
Locality: ".$row->Locality." | " : "||||
"; echo $row->CollectionDateMin ? " | Date: ".$row->CollectionDateMin." | " : ""; echo " | ||
Coordinates: ".$row->LatitudeDecimalMin." | ".$row->LongitudeDecimalMin." | " : "||||
"; echo $row->CollectorsNo ? " | Collection No: ".$row->CollectorsNo." | " : ""; echo $row->ExpedtionDetails ? " | Project: ".$row->ExpeditionDetails." | " : ""; echo " |