';
if (isset($pages->previous)) {
$title = $this->translate("first page");
$href = $this->addParamToUrl($this->url(), 'page', (string)$pages->first, true);
printf ('
«', $title, $href);
$title = $this->translate("previous page");
$href = $this->addParamToUrl($this->url(), 'page', (string)$pages->previous, true);
printf ('
<', $title, $href);
} else {
print '
«';
print '
<';
}
if (isset($pages->next)) {
$title = $this->translate("next page");
$href = $this->addParamToUrl($this->url(), 'page', (string)$pages->next, true);
printf ('
>', $title, $href);
$title = $this->translate("last page");
$href = $this->addParamToUrl($this->url(), 'page', (string)$pages->last, true);
printf ('
»', $title, $href);
} else {
print '
>';
print '
»';
}
print '
';
}
print '';
foreach ($this->paginator as $item) {
$map = sprintf('
', $this->escape($item->geom));
$href = $this->url(array(
'controller' => 'idx',
'action' => 'index',
'url' => $item->id
), 'idx');
$maplink = $this->Anchor($href, $map, array(), false);
$modifylink = $this->Anchor($href, $this->translate("modify"));
$duplicatelink = sprintf('
%s', $this->translate("duplicate"));
$deletelink = sprintf('
%s', $this->translate("delete"));
printf ('
',
(int)$item->id, $maplink, $modifylink, $duplicatelink, $deletelink, $this->escape($item->displayTitle));
}
print '
';
?>