';
$content .= '
';
$content .= '
' . $lab['name'];
if ($lab['acronym'] != null){
$content.=' ('.$lab['acronym'].')';
}
$content.=' - ' . $lab['country'] . '
';
// var_dump($lab);
$www = '';
if (array_key_exists('homepage', $lab)) {
if (substr($lab['homepage'], 0, 3) === 'www') {
$www.='
' . trim(str_replace('&', ' and ', 'http://' . $lab['homepage'])) . ' ';
} elseif (substr($lab['homepage'], 0, 4) === 'http') {
$www.='
' . trim(str_replace('&', ' and ', $lab['homepage'])) . ' ';
}
if (strcmp($www, '') != 0) {
$content .= '
- ' . $www . '
';
}
}
if ($lab['organization'] != null) {
$content .= '
- Institutions:
';
}
if ($lab['organization'] != null) {
$content .= '- ' . $lab['organization'] . '
';
}
if (array_key_exists('organization2', $lab) && $lab['organization2'] != null) {
$content .= '- ' . $lab['organization2'] . '
';
}
if (($lab['organization'] != null)
|| (array_key_exists('organization2', $lab) && $lab['organization2'] != null)) {
$content .= '
';
}
if ($lab['organization'] != null) {
$content .= '
';
}
$content .= '
';
$content .= '
';
// LABS MORE INFOS: object, methods, director, keywords, address, phone
//
// if ((trim($lab['object']) != null) || ($lab['methods'] != null)) {
// $content .= '
';
// if (trim($lab['methods']) != null) {
// $content .= 'Methods: ' . str_replace('%%%', ', ',clean_exp($lab['methods'])) . '
';
// }
//
// if (trim($lab['object']) != null) {
// $content .= 'Objects: ' .str_replace('%%%', ', ',clean_exp($lab['object'])) . '
';
// }
// $content .= '
';
// }
// if ($lab['director'] != null) {
// $content .= '
';
// $content .= $content .= ' ' . $lab['director'] . '
';
// $content .= '
';
// }
// $content .= '
';
//
// if (($lab['keywords'] != null) || ($lab['address'] != null) || ($lab['phone'] != null)) {
// $content .= '
';
//
// if ($lab['keywords'] != null) {
//
// $content .= '
' . $lab['keywords'] . '
';
// }
//
//
//
// if ($lab['admin'] != null) {
// $content .= '
Administrative contact: ' . ucwords($lab['admin']) . '
';
// }
// if ($lab['address'] != null) {
// $content .= '
' . $lab['address'] . '
';
// }
//
//
// if (($lab['phone'] != null)||($lab['fax'] != null)) {
// $content .= '
Phone: '.$lab['phone'] . '
';
// if ($lab['fax'] != null) {
// $content .='Fax: '.$lab['fax'] . '
';
// }
// }
//
// $content .= '