INSTYTUT CHEMII ORGANICZNEJ

{source}
<?php

echo '<table>';

$string = file_get_contents("http://chemia.p.lodz.pl/files/i18.json");
$json = json_decode($string, true);
foreach ($json as $key => $value) {

$url = 'http://chemia.p.lodz.pl/cb-profile/userprofile/' . $value['username'];

if ($value['avatar'] == '') $value['avatar'] = 'nophoto_n.png';

if ($value['cb_room'] != '') $value['cb_room'] = 'p. ' . $value['cb_room'];

if ($value['cb_scopus'] != '') $value['cb_scopus'] = '<a href=http://www.scopus.com/authid/detail.url?authorId='. $value['cb_scopus'] .'><img src=/images/scopus.png></a>';

if ($value['cb_orcid'] != '') $value['cb_orcid'] = '<a href=http://orcid.org/'. $value['cb_orcid'] .'><img src=/images/orcid.png></a>';

if ($value['cb_researchgate'] != '') $value['cb_researchgate'] = '<a href=https://www.researchgate.net/profile/'. $value['cb_researchgate'] .'><img src=/images/researchgate.png></a>';

echo '<td>' . '<img width=80px src=http://chemia.p.lodz.pl/images/comprofiler/' . $value['avatar'] . '></td>';

//echo '<td>' . '<img width=80px src=http://chemia.p.lodz.pl/images/comprofiler/' . $value['avatar'] . '></td>';
echo '<td>'; echo $value['cb_tutulstopien'] . ' <a href='. $url . '>' . $value['firstname'] . ' ' . $value['lastname'] .'</a><br><br>' . $value['cb_stanowisko2'] . '</td>';

echo '<td>tel. ' . $value['cb_phone'] . '<br><br>' . $value['cb_room'] . ' (' . $value['cb_budynek'] .')</td>';

echo '<td>' . $value['cb_scopus'] . '<br>' . $value['cb_orcid'] . '<br>' . $value['cb_researchgate'] . '</td>';
echo '</tr>';
}
echo '</table>';

?>
{/source}