css 기본틀 추가

bar() 함수 수정. 막대 수정
This commit is contained in:
2018-01-29 22:04:50 +09:00
parent 01eef993fb
commit a4ecf23dd0
4 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ function bar($per, $skin=1, $h=7) {
$per = round($per, 1);
if($per < 1 || $per > 99) { $per = round($per); }
$str1 = "<td width={$per}% background={$images}/pb{$h2}.gif>&nbsp;</td>";
$str2 = "<td width=*% background={$images}/pr{$h2}.gif>&nbsp;</td>";
$str1 = "<td width={$per}% background={$images}/pb{$h2}.gif></td>";
$str2 = "<td width=*% background={$images}/pr{$h2}.gif></td>";
if($per <= 0) { $str1 = ""; }
elseif($per >= 100) { $str2 = ""; }
if($skin == 0) {