Projekt

Obecné

Profil

Stáhnout (2.4 KB) Statistiky
| Větev: | Tag: | Revize:
8baed187 Michal Kliment
<h2><?php echo __('Address point detail') . ' ' . $address_point->name ?></h2><br />

<?php
c1bdc1c4 Michal Kliment
if ($gps == '' && $this->acl_check_edit('Address_points_Controller', 'address_point'))
8baed187 Michal Kliment
echo html::anchor('address_points/edit/' . $address_point->id, __('Fill in GPS'));
else
echo html::anchor('address_points/edit/' . $address_point->id, __('Edit'), array('title' => __('Edit'), 'class' => 'popup_link'));

?>
<br /><br />
<table class="extended" style="float:left; margin-bottom: 20px;" cellspacing="0">
<tr>
<th><?php echo __('ID') ?></th>
<td><?php echo $address_point->id ?></td>
</tr>
<tr>
<th><?php echo __('Country') ?></th>
<td><?php echo $address_point->country->country_name ?></td>
</tr>
<tr>
<th><?php echo __('Town') ?></th>
<td><?php echo html::anchor('towns/show/' . $address_point->town->id, $address_point->town->town) ?></td>
</tr>
<?php if ($address_point->town->quarter != ''): ?>
<tr>
<th><?php echo __('Quarter') ?></th>
<td><?php echo html::anchor('towns/show/' . $address_point->town->id, $address_point->town->quarter) ?></td>
</tr>
<?php endif ?>
<tr>
<th><?php echo __('ZIP code') ?></th>
<td><?php echo html::anchor('towns/show/' . $address_point->town->id, $address_point->town->zip_code) ?></td>
</tr>
<?php if (!empty($address_point->street->id)): ?>
<tr>
<th><?php echo __('Street') ?></th>
<td><?php echo html::anchor('streets/show/' . $address_point->street->id, $address_point->street->street) ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($address_point->street_number)): ?>
<tr>
<th><?php echo __('Street number') ?></th>
<td><?php echo $address_point->street_number ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($gps)): ?>
<tr>
<th><?php echo __('GPS') ?></th>
<td><?php echo $gps ?></td>
</tr>
<?php endif ?>
</table>

<?php if (!empty($gps)): ?>
c3fac173 Ondřej Fibich
<div id="ap_gmap" style="float: <?php echo ($this->popup ? 'left' : 'right'); ?>; width:500px; height:300px"></div>
8baed187 Michal Kliment
<div style="margin-bottom: 10px; float:left"></div>
c3fac173 Ondřej Fibich
<script type="text/javascript">
$(document).ready(function () {
mapycz_addr('ap_gmap', <?php echo $gpsx ?>, <?php echo $gpsy ?>);
});
</script>
8baed187 Michal Kliment
<?php endif; ?>

<div style="clear: both"></div>
<br /><br />

<h3><?php echo __('Members on this address') ?></h3>
<?php echo $members_grid ?>

<br /><br />

<h3><?php echo __('Devices on this address') ?></h3>
<?php echo $devices_grid ?>

<div class="clear"></div>