2 <style type="text/css">
3 #container, #navigation, #message {
8 <p><?php echo $this->translate('SYJ needs javascript. Please activate scripts in your browser.');?></p>
11 <div id="message"></div>
15 print $this->localeSwitcher();
16 if ($this->paginator->count() == 0) {
17 $link = $this->Anchor($this->baseUrl(), $this->translate ("create a route"), array(), false);
18 $noroutecontent = $this->translate("you have created no route yet, you may want to %s", $link);
20 printf ('<div class="warn noroute">%s</div>', $noroutecontent);
24 $pages = $this->paginator->getPages();
25 if (isset($pages->previous) or isset($pages->next)) {
26 print '<div id="navigation">';
28 if (isset($pages->previous)) {
29 $title = $this->translate("first page");
30 $href = $this->addParamToUrl($this->url(), 'page', (string)$pages->first, true);
31 printf ('<a class="page-link" title="%s" href="%s">«</a>', $title, $href);
33 $title = $this->translate("previous page");
34 $href = $this->addParamToUrl($this->url(), 'page', (string)$pages->previous, true);
35 printf ('<a class="page-link" title="%s" href="%s"><</a>', $title, $href);
37 print '<span class="page-link">«</span>';
38 print '<span class="page-link"><</span>';
41 if (isset($pages->next)) {
42 $title = $this->translate("next page");
43 $href = $this->addParamToUrl($this->url(), 'page', (string)$pages->next, true);
44 printf ('<a class="page-link" title="%s" href="%s">></a>', $title, $href);
46 $title = $this->translate("last page");
47 $href = $this->addParamToUrl($this->url(), 'page', (string)$pages->last, true);
48 printf ('<a class="page-link" title="%s" href="%s">»</a>', $title, $href);
50 print '<span class="page-link">></span>';
51 print '<span class="page-link">»</span>';
57 print '<div id="container">';
58 foreach ($this->paginator as $item) {
60 $map = sprintf('<div class="map" data-geom="%s"></div>', $this->escape($item->geom));
61 $href = $this->url(array(
62 'controller' => 'idx',
66 $maplink = $this->Anchor($href, $map, array(), false);
67 $modifylink = $this->Anchor($href, $this->translate("modify or duplicate"));
68 $deletelink = sprintf('<a href="#" class="delete-link">%s</a>', $this->translate("delete"));
70 printf ('<div class="item" data-id="%d">
71 <div class="geom">%s</div>
72 <div class="controls"><div class="control-link">%s</div><div class="control-link">%s</div></div>
73 <div class="title">%s</div>
76 (int)$item->id, $maplink, $modifylink, $deletelink, $this->escape($item->displayTitle));