query('SELECT * FROM user WHERE user_type IN (1,2) ORDER BY user_type DESC LIMIT 20');
if ($librarian_q->num_rows > 0) {
while ($librarian = $librarian_q->fetch_assoc()) {
echo '
';
echo '
';
if ($librarian['user_image']) {
echo '
';
} else {
echo '
';
}
echo '
';
echo '
';
echo '
'.__('Name').'
'.$librarian['realname'].'
';
echo '
'.__('Position').'
'.$sysconf['system_user_type'][$librarian['user_type']].'
';
echo '
'.__('E-Mail').'
'.$librarian['email'].'
';
echo '
'.__('Social').'
';
$social = array();
if ($librarian['social_media']){
$social = @unserialize($librarian['social_media']);
echo '
';
foreach ($sysconf['social'] as $id => $social_media) {
if (isset($social[$id])) {
echo '- '.$sysconf['social'][$id].': '.$social[$id].'
';
}
}
echo '
';
}
echo '
';
echo '
';
echo '
';
}
} else {
echo 'No Librarian data yet
';
}