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}%) + +