function ach_render_summary_footer(&$summary) { global $_USER; $nodes = $summary->getSummary(); $html = ""; $sum_done = 0; $sum_total = 0; $i = 0; foreach ($nodes as $elem) { if ($i % 2 == 0) { $html .= "<tr>"; } $html .= "<td width='225px'>" . $elem[0]; if ($elem[3] == false) { $html .= ach_render_progressbar($elem[1], $elem[2], 150); } else { $html .= ach_render_progressbar($elem[1], false, 150); } $html .= "<br></td>"; $sum_done += $elem[1]; $sum_total += $elem[2]; if ($i % 2 == 2) { $html .= "</tr>"; } $i++; } if ($i % 2 == 2) { $html .= "</tr>"; } $html = "<p />\r\n\t\t<font size='30px' color='#FFFFFF'>" . get_translation('ach_summary_stats', $_USER->getLang()) . "</font>\r\n\t\t<table width='450px'>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width='450px'>" . get_translation('ach_summary_stats_total', $_USER->getLang()) . ach_render_progressbar($sum_done, $sum_total, 350) . "<br></td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width='450px'><table width='450px'>" . $html . "</table></td>\r\n\t\t\t</tr>\r\n\t\t</table>"; return $html; }
function ach_render_summary_footer(&$summary) { global $_USER; $nodes = $summary->getSummary(); $html = ""; $sum_done = 0; $sum_total = 0; $i = 0; foreach ($nodes as $elem) { if ($i % 3 == 0) { $html .= "<tr>"; } $html .= "<td width='50%' align='center'>" . $elem[0] . "<br>" . ach_render_progressbar($elem[1], $elem[2], 200) . "</td>"; $sum_done += $elem[1]; $sum_total += $elem[2]; if ($i % 3 == 2) { $html .= "</tr>"; } $i++; } if ($i % 3 == 2) { $html .= "</tr>"; } $html = "<p />\r\n\t\t<div style='display:block;font-weight:bold;font-size:30px;color:#FFFFFF;text-align:center;margin-bottom:10px;'>" . get_translation('ach_summary_stats', $_USER->getLang()) . "</div>\r\n\t\t<table>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan='3' align='center'>" . get_translation('ach_summary_stats_total', $_USER->getLang()) . "<br>" . ach_render_progressbar($sum_done, $sum_total, 450) . "<br></td>\r\n\t\t\t</tr>\r\n\t\t\t" . $html . "\r\n\t\t</table>"; return $html; }
function ach_render_obj_value(&$obj) { $html = ""; #if($obj->getName() != null) { if ($obj->isdone()) { $col = "#71BE02"; } else { $col = "#999999"; } $html .= "<div style='color:" . $col . ";display:block;'>[obj:]" . $obj->getDisplayName() . "</div>"; #} $html .= ach_render_progressbar($obj->getProgress(), $obj->getValue(), 350); return $html; }