mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-07 13:49:23 +00:00
output progressbar only if receipts are available
This commit is contained in:
parent
17b72a9d0c
commit
16342981eb
|
@ -2163,11 +2163,13 @@ $(document).ready( function() {
|
||||||
$allcomments[''.$r['status']][] = htmlspecialchars($r['comment']);
|
$allcomments[''.$r['status']][] = htmlspecialchars($r['comment']);
|
||||||
}
|
}
|
||||||
$totalreceipts = $rstat['-1'] + $rstat['0'] + $rstat['1'];
|
$totalreceipts = $rstat['-1'] + $rstat['0'] + $rstat['1'];
|
||||||
$content .= ";
|
if($totalreceipts) {
|
||||||
|
$content .= ";
|
||||||
<div class=\"progress\">
|
<div class=\"progress\">
|
||||||
<div class=\"bar bar-success\" style=\"width: ".round($rstat['1']/$totalreceipts*100)."%;\">".($rstat['1'] ? $rstat['1']."/".$totalreceipts : '').($allcomments['1'] ? " ".$this->printPopupBox('<i class="icon-comment"></i>', implode('<br />', $allcomments['1']), true) : "")."</div>
|
<div class=\"bar bar-success\" style=\"width: ".round($rstat['1']/$totalreceipts*100)."%;\">".($rstat['1'] ? $rstat['1']."/".$totalreceipts : '').($allcomments['1'] ? " ".$this->printPopupBox('<i class="icon-comment"></i>', implode('<br />', $allcomments['1']), true) : "")."</div>
|
||||||
<div class=\"bar bar-danger\" style=\"width: ".round($rstat['-1']/$totalreceipts*100)."%;\">".($rstat['-1'] ? $rstat['-1']."/".$totalreceipts : '').($allcomments['-1'] ? " ".$this->printPopupBox('<i class="icon-comment"></i>', implode('<br />', $allcomments['-1']), true) : "")."</div>
|
<div class=\"bar bar-danger\" style=\"width: ".round($rstat['-1']/$totalreceipts*100)."%;\">".($rstat['-1'] ? $rstat['-1']."/".$totalreceipts : '').($allcomments['-1'] ? " ".$this->printPopupBox('<i class="icon-comment"></i>', implode('<br />', $allcomments['-1']), true) : "")."</div>
|
||||||
</div>";
|
</div>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$content .= "</small></td>";
|
$content .= "</small></td>";
|
||||||
// $content .= "<td>".$version."</td>";
|
// $content .= "<td>".$version."</td>";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user