#19185512 관리자 페이지 접속통계 픽셀너비 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8054 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-01-25 01:43:36 +00:00
parent 69debfb382
commit 3dbcc572a2
2 changed files with 12 additions and 10 deletions

View file

@ -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; }

View file

@ -1,5 +1,5 @@
<!--%import("js/counter_admin.js")--> <load target="js/counter_admin.js" />
<!--%import("css/counter.css")--> <load target="counter.css" />
<!--// datepicker javascript plugin load --> <!--// datepicker javascript plugin load -->
<!--%load_js_plugin("ui.datepicker")--> <!--%load_js_plugin("ui.datepicker")-->
@ -87,7 +87,7 @@
<table cellspacing="0" class="rowTable"> <table cellspacing="0" class="rowTable">
<!--@foreach($detail_status->list as $key => $val)--> <!--@foreach($detail_status->list as $key => $val)-->
<!--@if($detail_status->sum>0)--> <!--@if($detail_status->sum>0)-->
{@$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 )} {@$img_width = sprintf("%d", $val / $detail_status->max * 100 )}
<!--@else--> <!--@else-->
{@$percent = 0} {@$percent = 0}
@ -125,14 +125,13 @@
</div> </div>
</th> </th>
<!--@end--> <!--@end-->
{@ $img_width = (int)$percent; $img_width = $img_width?$img_width.'%':'3px'; }
<td class="wide"> <td class="wide">
{@$img_percent = $img_width-30} <div class="barContainer">
<!--@if($img_percent<1)--> <span class="graphHr" style="width:{$img_width}">
<img class="graphHr" style="width:3px;" alt="" src="./images/iconBar.gif" /> <span>{number_format($val)}({$percent}%)</span>
<!--@else--> </span>
<img class="graphHr" style="width:{$img_percent}%;" alt="" src="./images/iconBar.gif" /> </div>
<!--@end-->
{number_format($val)}({$percent}%)
</td> </td>
</tr> </tr>
<!--@end--> <!--@end-->