27 lines
1013 B
PHP
27 lines
1013 B
PHP
<?php
|
|
foreach ($points as $point) {
|
|
?>
|
|
|
|
<h2><?= $point->name ?></h2>
|
|
<img src="<?= $point->getImg('small') ?>" style="float: left; margin: 0 10px 10px 0; display: block; "/>
|
|
<img src="http://chart.apis.google.com/chart?cht=qr&chs=150x150&chld=M|0&chl=GEO:<?= number_format(abs($point->lat), 5, '.', '')?>,<?= number_format(abs($point->lng), 5, '.', '') ?>" style="float: right; margin: 0 0 10px 10px; display: block;"/>
|
|
<?= $point->description ?>
|
|
|
|
<div class="coords-container">
|
|
http://wikipoints.ru/?point=<?= $point->id ?>
|
|
/
|
|
<nobr>
|
|
<?= $point->lat > 0 ? 'N' : 'S' ?><?= number_format(abs($point->lat), 5, '.', '') ?>°
|
|
<?= $point->lng > 0 ? 'E' : 'W' ?><?= number_format(abs($point->lng), 5, '.', '') ?>°
|
|
</nobr>
|
|
/
|
|
<nobr>
|
|
<?= $point->lat > 0 ? 'N' : 'S' ?><?= Coord::dergeeToMinute($point->lat) ?>
|
|
<?= $point->lng > 0 ? 'E' : 'W' ?><?= Coord::dergeeToMinute($point->lng) ?>
|
|
</nobr>
|
|
</div>
|
|
|
|
<hr style="clear: both;"/>
|
|
<?php
|
|
}
|
|
?>
|