X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;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 @@ + + +
+ + +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 ''; + } + + 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 ('
+
%s
+
%s
%s
%s
+
%s
+
+ ', + (int)$item->id, $maplink, $modifylink, $duplicatelink, $deletelink, $this->escape($item->displayTitle)); + + } + print '
'; +?>