Rev 1171 | Rev 1223 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1171 | Rev 1219 | ||
---|---|---|---|
Line 192... | Line 192... | ||
192 | } |
192 | } |
193 | } |
193 | } |
194 | 194 | ||
195 | } else { |
195 | } else { |
196 | $row = $res->fetch_array(); |
196 | $row = $res->fetch_array(); |
197 | $out = '<b>'.htmlentities($row['ra_name']).'</b><br>'; // TODO: if you are not already at the page "oidplus:rainfo", then link to it now |
197 | $out = '<b>'.htmlentities($row['ra_name']??'').'</b><br>'; // TODO: if you are not already at the page "oidplus:rainfo", then link to it now |
198 | $out .= _L('E-Mail').': <a href="mailto:'.htmlentities($email).'">'.htmlentities($email).'</a><br>'; |
198 | $out .= _L('E-Mail').': <a href="mailto:'.htmlentities($email).'">'.htmlentities($email).'</a><br>'; |
199 | if (trim($row['personal_name']) !== '') $out .= htmlentities($row['personal_name']).'<br>'; |
199 | if (trim($row['personal_name']??'') !== '') $out .= htmlentities($row['personal_name']).'<br>'; |
200 | if (trim($row['organization']) !== '') $out .= htmlentities($row['organization']).'<br>'; |
200 | if (trim($row['organization']??'') !== '') $out .= htmlentities($row['organization']).'<br>'; |
201 | if (trim($row['office']) !== '') $out .= htmlentities($row['office']).'<br>'; |
201 | if (trim($row['office']??'') !== '') $out .= htmlentities($row['office']).'<br>'; |
202 | if ($row['privacy']) { |
202 | if ($row['privacy']) { |
203 | // TODO: Only show the message if the user has a street, address, etc. |
203 | // TODO: Only show the message if the user has a street, address, etc. |
204 | // TODO: But the admin and the own user should see it (with a note that the data is not visible to the public) |
204 | // TODO: But the admin and the own user should see it (with a note that the data is not visible to the public) |
205 | $out .= '<p>'._L('The RA does not want to publish their personal information.').'</p>'; |
205 | $out .= '<p>'._L('The RA does not want to publish their personal information.').'</p>'; |
206 | } else { |
206 | } else { |
207 | if (trim($row['street']) !== '') $out .= htmlentities($row['street']).'<br>'; |
207 | if (trim($row['street']??'') !== '') $out .= htmlentities($row['street']).'<br>'; |
208 | if (trim($row['zip_town']) !== '') $out .= htmlentities($row['zip_town']).'<br>'; |
208 | if (trim($row['zip_town']??'') !== '') $out .= htmlentities($row['zip_town']).'<br>'; |
209 | if (trim($row['country']) !== '') $out .= htmlentities($row['country']).'<br>'; |
209 | if (trim($row['country']??'') !== '') $out .= htmlentities($row['country']).'<br>'; |
210 | $out .= '<br>'; |
210 | $out .= '<br>'; |
211 | if (trim($row['phone']) !== '') $out .= _L('Phone: %1',htmlentities($row['phone'])).'<br>'; |
211 | if (trim($row['phone']??'') !== '') $out .= _L('Phone: %1',htmlentities($row['phone'])).'<br>'; |
212 | if (trim($row['fax']) !== '') $out .= _L('Fax: %1',htmlentities($row['fax'])).'<br>'; |
212 | if (trim($row['fax']??'') !== '') $out .= _L('Fax: %1',htmlentities($row['fax'])).'<br>'; |
213 | if (trim($row['mobile']) !== '') $out .= _L('Mobile: %1',htmlentities($row['mobile'])).'<br>'; |
213 | if (trim($row['mobile']??'') !== '') $out .= _L('Mobile: %1',htmlentities($row['mobile'])).'<br>'; |
214 | $out .= '<br>'; |
214 | $out .= '<br>'; |
215 | } |
215 | } |
216 | } |
216 | } |
217 | 217 | ||
218 | return trim_br($out); |
218 | return trim_br($out); |