From 3dbcc572a2921ba5d9b6096a116ee1372b2f872d Mon Sep 17 00:00:00 2001 From: taggon Date: Tue, 25 Jan 2011 01:43:36 +0000 Subject: [PATCH] =?UTF-8?q?#19185512=20=EA=B4=80=EB=A6=AC=EC=9E=90=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=A0=91=EC=86=8D=ED=86=B5?= =?UTF-8?q?=EA=B3=84=20=ED=94=BD=EC=85=80=EB=84=88=EB=B9=84=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8054 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/counter/tpl/counter.css | 3 +++ modules/counter/tpl/index.html | 19 +++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 modules/counter/tpl/counter.css diff --git a/modules/counter/tpl/counter.css b/modules/counter/tpl/counter.css new file mode 100644 index 000000000..38c15a797 --- /dev/null +++ b/modules/counter/tpl/counter.css @@ -0,0 +1,3 @@ +.barContainer{margin-right:103px;position:relative;height:100%;} +.graphHr{position:relative; display:inline-block; background:transparent url(images/iconBar.gif) 4px 0 repeat-x; top:5px; height:5px; } +.graphHr span{position:absolute; top:-5px; left:100%; padding-left:3px; width:100px; } diff --git a/modules/counter/tpl/index.html b/modules/counter/tpl/index.html index 35076b086..69488aa0f 100644 --- a/modules/counter/tpl/index.html +++ b/modules/counter/tpl/index.html @@ -1,5 +1,5 @@ - - + + @@ -87,7 +87,7 @@ - {@$percent = sprintf("%0.2f", $val / $detail_status->sum * 100 )} + {@$percent = sprintf("%0.2f", $val / $detail_status->sum * 100 )} {@$img_width = sprintf("%d", $val / $detail_status->max * 100 )} {@$percent = 0} @@ -125,14 +125,13 @@ + {@ $img_width = (int)$percent; $img_width = $img_width?$img_width.'%':'3px'; }
- {@$img_percent = $img_width-30} - - - - - - {number_format($val)}({$percent}%) +
+ + {number_format($val)}({$percent}%) + +