X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;ds=inline;f=application%2Fviews%2Fscripts%2Flist%2Findex.phtml;fp=application%2Fviews%2Fscripts%2Flist%2Findex.phtml;h=31d3a5009c46bf85a4faa454eb352366b4acc897;hb=ec061a75fe57a25eb7ef0894f5e723397ba35472;hp=0000000000000000000000000000000000000000;hpb=3ff82e2d9fa289beba4e965b82772cf83f905b2f;p=syj.git
diff --git a/application/views/scripts/list/index.phtml b/application/views/scripts/list/index.phtml
new file mode 100644
index 0000000..31d3a50
--- /dev/null
+++ b/application/views/scripts/list/index.phtml
@@ -0,0 +1,81 @@
+
+
+
+ translate('SYJ needs javascript. Please activate scripts in your browser.');?>
+
+
+
+
+
+localeSwitcher();
+ if ($this->paginator->count() == 0) {
+ $link = $this->Anchor($this->baseUrl(), $this->translate ("create a route"), array(), false);
+ $noroutecontent = $this->translate("you have created no route yet, you may want to %s", $link);
+
+ printf ('%s
', $noroutecontent);
+ return;
+ }
+
+ $pages = $this->paginator->getPages();
+ if (isset($pages->previous) or isset($pages->next)) {
+ print '';
+
+ 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 '
';
+?>