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 '
'.$librarian['realname'].'
'; } else { echo '
'.$librarian['realname'].'
'; } 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

'; }