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 '';
}
$services = $citydata['services'];
$outstr = '<ul>';
foreach ( $services as $service ) {
$outstr .= sprintf(
'<li>%s (%s): <a href="%s">%s</a></li>',
$service['serviceName'], $service['serviceDescription'],
$service['internalUri'], $service['internalUri']
);
}
$outstr .= '</ul>';
$outstr = '<table><th>Dienst</th><th>Beschreibung</th><th>Freifunk URI</th><th>Internet URI</th>';
foreach ( $services as $service ) {
$outstr .= sprintf(
'<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['internalUri'], $service['internalUri'],
$service['externalUri'], $service['externalUri']
);
}
$outstr .= '</table>';
return $outstr;
}