$showadrgURLPara_ = $showadrgURLPara->getAllParams(); $_MAIN_OUTPUT .= "<br>" . "<br> " . sprintf(___("Versand an Gruppe %s"), "<a href=\"" . $tm_URL . "/" . $showadrgURLPara_ . "\"><b>" . display($AG[0]['name']) . "</b> (" . tm_icon("chart_pie.png", ___("Statistik anzeigen")) . ")</a>"); $_MAIN_OUTPUT .= ": " . tm_icon($STATUS['q']['statimg'][$Q[$qcc]['status']], display($STATUS['q']['status'][$Q[$qcc]['status']])) . " " . display($STATUS['q']['status'][$Q[$qcc]['status']]) . " (" . display($STATUS['q']['descr'][$Q[$qcc]['status']]) . ")"; $_MAIN_OUTPUT .= "<br><img alt=\"Chart\" src=\"" . $tm_URL_FE . "/" . $tm_reportdir . "/nl_" . $N[0]['id'] . "_adrgrp_" . $AG[0]['id'] . "_" . $Q[$qcc]['id'] . ".png\"><br>"; $_MAIN_OUTPUT .= " " . sprintf(___("Erstellt am: %s von %s"), "<b>" . $Q[$qcc]['created'] . "</b>", "<b>" . $Q[$qcc]['author'] . "</b>"); $_MAIN_OUTPUT .= "<br> " . sprintf(___("Versand gestartet: %s"), "<b>" . $Q[$qcc]['send_at'] . "</b>"); $_MAIN_OUTPUT .= "<br> " . sprintf(___("Versand abgeschlossen: %s"), "<b>" . $Q[$qcc]['sent'] . "</b>"); //countH($q_id=0,$nl_id=0,$grp_id=0,$adr_id=0,$status=0) $hsc = count($STATUS['h']['status']); //prepare graph $chart = new HorizontalChart(640, 200); $chart->setLogo(TM_IMGPATH . "/blank.png"); //tellmatic_logo_256.png $hc = $QUEUE->countH($Q[$qcc]['id'], $Q[$qcc]['nl_id'], $AG[0]['id']); //add total value to graph $chart->addPoint(new Point(___("Summe", 0) . " (100%)", $hc)); for ($hscc = 1; $hscc <= $hsc; $hscc++) { $hcs = $QUEUE->countH($Q[$qcc]['id'], $Q[$qcc]['nl_id'], $AG[0]['id'], 0, $hscc); if ($hcs > 0) { $_MAIN_OUTPUT .= "<br>" . " " . $hcs . " " . tm_icon($STATUS['h']['statimg'][$hscc], display($STATUS['h']['status'][$hscc])) . " " . display($STATUS['h']['status'][$hscc]) . " (" . display($STATUS['h']['descr'][$hscc]) . ")"; //add values to chart $qc_pc = $hcs / ($hc / 100); //anteil in prozent $chart->addPoint(new Point($STATUS['h']['status'][$hscc] . " (" . number_format($qc_pc, 2, ',', '') . "%)", $hcs)); } } $_MAIN_OUTPUT .= "<hr>"; //create chart $chart->setTitle(sprintf(___("Newsletter %s an Gruppe %s", 0), "\"" . $N[0]['subject'] . "\"", "\"" . $AG[0]['name'] . "\"")); $chart->render($tm_reportpath . "/nl_" . $N[0]['id'] . "_adrgrp_" . $AG[0]['id'] . "_" . $Q[$qcc]['id'] . ".png"); }
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ /** * Vertical bars demonstration * */ include "../libchart.php"; $chart = new HorizontalChart(600, 170); $chart->addPoint(new Point("/wiki/Instant_messenger", 50)); $chart->addPoint(new Point("/wiki/Web_Browser", 75)); $chart->addPoint(new Point("/wiki/World_Wide_Web", 122)); $chart->setTitle("Most visited pages for www.example.com"); $chart->render("generated/demo2.png"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Libcharts horizontal bars demonstration</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" /> </head> <body> <img alt="Horizontal bars chart" src="generated/demo2.png" style="border: 1px solid gray;"/> </body> </html>