Ausgabe der Dienste tabellarisiert
This commit is contained in:
parent
44ce9ee4b9
commit
b134202524
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue