Ausgabe der Dienste tabellarisiert

This commit is contained in:
4ndr3 2015-10-10 15:28:47 +02:00
parent 44ce9ee4b9
commit b134202524

View file

@ -294,15 +294,16 @@ EOT;
return ''; return '';
} }
$services = $citydata['services']; $services = $citydata['services'];
$outstr = '<ul>'; $outstr = '<table><th>Dienst</th><th>Beschreibung</th><th>Freifunk URI</th><th>Internet URI</th>';
foreach ( $services as $service ) { foreach ( $services as $service ) {
$outstr .= sprintf( $outstr .= sprintf(
'<li>%s (%s): <a href="%s">%s</a></li>', '<tr><td>%s</td><td>%s</td><td><a href="%s">%s</a></td><td><a href="%s">%s</a></td></tr>',
$service['serviceName'], $service['serviceDescription'], $service['serviceName'], $service['serviceDescription'],
$service['internalUri'], $service['internalUri'] $service['internalUri'], $service['internalUri'],
); $service['externalUri'], $service['externalUri']
} );
$outstr .= '</ul>'; }
$outstr .= '</table>';
return $outstr; return $outstr;
} }