예제 #1
0
        $_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 .= "&nbsp;&nbsp;" . sprintf(___("Erstellt am: %s von %s"), "<b>" . $Q[$qcc]['created'] . "</b>", "<b>" . $Q[$qcc]['author'] . "</b>");
        $_MAIN_OUTPUT .= "<br>&nbsp;&nbsp;" . sprintf(___("Versand gestartet: %s"), "<b>" . $Q[$qcc]['send_at'] . "</b>");
        $_MAIN_OUTPUT .= "<br>&nbsp;&nbsp;" . 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>" . "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" . $hcs . "&nbsp;" . tm_icon($STATUS['h']['statimg'][$hscc], display($STATUS['h']['status'][$hscc])) . "&nbsp;" . display($STATUS['h']['status'][$hscc]) . "&nbsp;(" . 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");
    }
    //for qcc
}
//nl
예제 #2
0
 * 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>
예제 #3
0
 $_MAIN_OUTPUT .= "<br>" . ___("Auftragsstatus:") . "";
 $hsc = count($STATUS['h']['status']);
 //countQ($nl_id=0,$grp_id=0,$status=0)
 for ($hscc = 1; $hscc <= $hsc; $hscc++) {
     $hcs = $QUEUE->countH(0, 0, 0, $adr_id, $hscc);
     if ($hcs > 0) {
         $_MAIN_OUTPUT .= "\t&nbsp;" . $hcs . "&nbsp;" . tm_icon($STATUS['h']['statimg'][$hscc], display($STATUS['h']['status'][$hscc])) . "&nbsp;" . display($STATUS['h']['status'][$hscc]) . "&nbsp;(" . display($STATUS['h']['descr'][$hscc]) . ")<br>";
         //add values to chart
         $ac_pc = $hcs / ($hc / 100);
         //anteil in prozent
         $chart->addPoint(new Point($STATUS['h']['status'][$hscc] . " (" . number_format($ac_pc, 2, ',', '') . "%)", $hcs));
     }
 }
 //create chart
 $chart->setTitle(sprintf(___("Empfänger %s", 0), "\"" . $ADR[0]['email'] . "\""));
 $chart->render($tm_reportpath . "/adr_" . $adr_id . ".png");
 $_MAIN_OUTPUT .= "<br>";
 //function getH($id=0,$offset=0,$limit=0,$q_id=0,$nl_id=0,$grp_id=0,$adr_id=0,$status=0) {
 ////////////////////////////////////////////////////////////////////////////////////////
 //Versand Detail, empfangene/an Empf. gesendete Newsletter
 ////////////////////////////////////////////////////////////////////////////////////////
 $_MAIN_OUTPUT .= "" . ___("Versand-Details:") . "";
 $shownlURLPara = tmObjCopy($mSTDURL);
 $shownlURLPara->addParam("s", "s_menu_nl,s_menu_st");
 $shownlURLPara->addParam("act", "statistic");
 $shownlURLPara->addParam("set", "nl");
 $showadrgURLPara = tmObjCopy($mSTDURL);
 $showadrgURLPara->addParam("act", "statistic");
 $showadrgURLPara->addParam("s", "s_menu_adr,s_menu_st");
 $showadrgURLPara->addParam("set", "adrg");
 $H = $QUEUE->getH(0, 0, 0, 0, 0, 0, $adr_id, 0);
예제 #4
0
$_MAIN_OUTPUT .= "</tr>";
$_MAIN_OUTPUT .= "</thead>";
for ($hscc = 1; $hscc <= $hsc; $hscc++) {
    if ($hscc % 2 == 0) {
        $bgcolor = $row_bgcolor;
    } else {
        $bgcolor = $row_bgcolor2;
    }
    $qc = $QUEUE->countH(0, 0, 0, 0, $hscc);
    $_MAIN_OUTPUT .= "<tr id=\"row_h" . $hscc . "\"  bgcolor=\"" . $bgcolor . "\"  onmouseover=\"setBGColor('row_h" . $hscc . "','" . $row_bgcolor_hilite . "');\" onmouseout=\"setBGColor('row_h" . $hscc . "','" . $bgcolor . "');\">";
    $_MAIN_OUTPUT .= "<td valign=\"top\" align=\"left\">";
    $_MAIN_OUTPUT .= $qc;
    $_MAIN_OUTPUT .= "</td>";
    $_MAIN_OUTPUT .= "<td valign=\"top\" align=\"left\">";
    $_MAIN_OUTPUT .= tm_icon($STATUS['h']['statimg'][$hscc], display($STATUS['h']['status'][$hscc])) . "&nbsp;" . display($STATUS['h']['status'][$hscc]) . "&nbsp;(" . display($STATUS['h']['descr'][$hscc]) . ")";
    $_MAIN_OUTPUT .= "</td>";
    $_MAIN_OUTPUT .= "</tr>";
    //add values to chart
    $qc_pc = $qc / ($hc / 100);
    //anteil in prozent
    $chart->addPoint(new Point($STATUS['h']['status'][$hscc] . " (" . number_format($qc_pc, 2, ',', '') . "%)", $qc));
}
$_MAIN_OUTPUT .= "</table>";
//create chart
$chart->setTitle(___("Newsletter Queue", 0) . " " . TM_TODAY);
$chart->render($tm_reportpath . "/status_q_total_" . TM_TODAY . ".png");
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
$_MAIN_OUTPUT .= "</td></tr>" . "</table>" . "</center>";
$_MAIN_OUTPUT .= "<br><br>";
        } else {
            $_MAIN_OUTPUT .= tm_icon("user_suit.png", ___("personalisierter Newsletter")) . "&nbsp;";
            $_MAIN_OUTPUT .= "<b>" . ___("personalisierter Newsletter") . "</b>";
        }
        //countH($q_id=0,$nl_id=0,$grp_id=0,$adr_id=0,$status=0)
        $hc = $QUEUE->countH($Q[$qcc]['id'], $Q[$qcc]['nl_id'], $AG[0]['id']);
        $hsc = count($STATUS['h']['status']);
        //add total value to graph
        $chart->addPoint(new Point(___("Summe", 0) . " (100%)", $hc));
        $_MAIN_OUTPUT .= "<br>" . sprintf(___("Insgesamt %s Adressen"), "<b>" . $hc) . "</b>";
        $_MAIN_OUTPUT .= "<br>" . 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>");
        $_MAIN_OUTPUT .= "<br><img alt=\"Chart\"  src=\"" . $tm_URL_FE . "/" . $tm_reportdir . "/adrg_" . $adr_grp_id . "_nl_" . $Q[$qcc]['nl_id'] . ".png\"><br>";
        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>" . "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" . $hcs . "&nbsp;" . tm_icon($STATUS['h']['statimg'][$hscc], display($STATUS['h']['status'][$hscc])) . "&nbsp;" . display($STATUS['h']['status'][$hscc]) . "&nbsp;(" . 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), "\"" . $NL[0]['subject'] . "\"", "\"" . $AG[0]['name'] . "\""));
        $chart->render($tm_reportpath . "/adrg_" . $adr_grp_id . "_nl_" . $Q[$qcc]['nl_id'] . ".png");
    }
    //qcc
}