mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-04 23:22:24 +00:00
output progressbar only if receipts are available
This commit is contained in:
parent
17b72a9d0c
commit
16342981eb
|
@ -2163,12 +2163,14 @@ $(document).ready( function() {
|
|||
$allcomments[''.$r['status']][] = htmlspecialchars($r['comment']);
|
||||
}
|
||||
$totalreceipts = $rstat['-1'] + $rstat['0'] + $rstat['1'];
|
||||
if($totalreceipts) {
|
||||
$content .= ";
|
||||
<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-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>";
|
||||
}
|
||||
}
|
||||
$content .= "</small></td>";
|
||||
// $content .= "<td>".$version."</td>";
|
||||
$content .= "<td>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user