From 915b7c1ab5eef22797f62176a9ba3c8e8448ceb3 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 26 Oct 2011 09:34:19 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E6=96=B9=E6=B3=95=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/views/scripts/data/category.phtml | 33 ++++++++----------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/application/default/views/scripts/data/category.phtml b/application/default/views/scripts/data/category.phtml index 73e97960..fe96d9a9 100755 --- a/application/default/views/scripts/data/category.phtml +++ b/application/default/views/scripts/data/category.phtml @@ -23,27 +23,20 @@ $this->breadcrumb()->setSeparator(' > '); -paginator)): ?> +metadata)) : ?>
+

当前浏览:codename; ?>

+page->getNavigation(); ?>
-paginator as $item): - $i++; - if (mb_strlen($item['description'])>700) - { - $item['description'] = mb_substr($item['description'],0,400,'UTF-8').'...'; - } - if($i%2==0) $style="style='background:#fafafa;'"; - else $style=""; - echo '
-
-

'.$this->escape($item['title']).' -

-

'.$item['description'].'

-
'; -endforeach; -?> +metadata as $md) : ?> +
+
+

escape($md['title']);?> + +

+ 400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?> +
+ +page->getNavigation(); ?>
-paginator; ?>