/**
*控制比例条以及比例显示
*/
function bilv(cell,data){
var total = $("#total").val();
if(total==0){
total=1;
}
var count = data["count"];
var a = count/total;
if(a>1){
a=1;
}
var pic = "<img width='"+148*a+"' height='10' src='../../../res/sites/images/red_precent.gif'><img width='"+148*(1-count/total)+"' height='10' src='../../../res/sites/images/qian_precent.gif'>";
var bil ="<a>"+Math.round(a*100)+"%</a>";
cell.html(pic+bil);
}
*控制比例条以及比例显示
*/
function bilv(cell,data){
var total = $("#total").val();
if(total==0){
total=1;
}
var count = data["count"];
var a = count/total;
if(a>1){
a=1;
}
var pic = "<img width='"+148*a+"' height='10' src='../../../res/sites/images/red_precent.gif'><img width='"+148*(1-count/total)+"' height='10' src='../../../res/sites/images/qian_precent.gif'>";
var bil ="<a>"+Math.round(a*100)+"%</a>";
cell.html(pic+bil);
}