Example #1
0
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
//Newsletter Queue:
////////////////////////////////////////////////////////////////////////////////////////
//prepare chart
#$chart = new PieChart(640,480);
$chart = new HorizontalChart(640, 360);
$chart->setLogo(TM_IMGPATH . "/blank.png");
//tellmatic_logo_256.png
$_MAIN_OUTPUT .= "<br><img alt=\"Chart\"  src=\"" . $tm_URL_FE . "/" . $tm_reportdir . "/status_q_total_" . TM_TODAY . ".png\"><br>";
$NG = $NEWSLETTER->getGroup();
$nlgc = count($NG);
$N = $NEWSLETTER->getNLID();
//$group
$nlc = count($N);
$hc = $QUEUE->countH();
//add total value to graph
$chart->addPoint(new Point(___("Summe", 0) . " (100%)", $hc));
$shownlURLPara->addParam("act", "nl_list");
$shownlURLPara->addParam("set", "");
$shownlURLPara->delParam("nl_id", "");
$shownlURLPara_ = $shownlURLPara->getAllParams();
$hsc = count($STATUS['h']['status']);
$_MAIN_OUTPUT .= "<br><center>";
$_MAIN_OUTPUT .= "<table border=0 width=\"100%\" style=\"border:1px solid #eeeeee;\">";
$_MAIN_OUTPUT .= "<thead>";
$_MAIN_OUTPUT .= "<tr>";
$_MAIN_OUTPUT .= "<td valign=\"top\" align=\"left\" colspan=2>";
$_MAIN_OUTPUT .= "<a href=\"" . $tm_URL . "/" . $shownlURLPara_ . "\">" . sprintf(___("%s Newsletter"), $nlc) . " (" . tm_icon("folder_go.png", ___("Liste anzeigen")) . ")</a> ::: <a href=\"" . $tm_URL . "/" . $shownlgURLPara_ . "\">" . sprintf(___("%s Gruppen"), $nlgc) . " (" . tm_icon("folder_go.png", ___("Liste anzeigen")) . ")</a>";
$_MAIN_OUTPUT .= "<br><br><b>" . sprintf(___("Insgesamt %s Mails im Versand:"), $hc) . "</b>";
$_MAIN_OUTPUT .= "</td>";
Example #2
0
 }
 if ($ADR[$acc]['status'] == 11 || $ADR[$acc]['errors'] >= $C[0]['max_mails_retry']) {
     $bgcolor = $row_bgcolor_fail;
     //$bgcolor=$STATUS['adr']['color'][$ADR[$acc]['status']];
 }
 $created_date = $ADR[$acc]['created'];
 $updated_date = $ADR[$acc]['updated'];
 $author = $ADR[$acc]['author'];
 $editor = $ADR[$acc]['editor'];
 if (is_numeric($author)) {
     $author = "Form_" . $author;
 }
 if (is_numeric($editor)) {
     $editor = "Form_" . $editor;
 }
 $nlc = $QUEUE->countH(0, 0, 0, $ADR[$acc]['id'], 0);
 $editURLPara->addParam("adr_id", $ADR[$acc]['id']);
 $editURLPara->addParam("adr_d_id", $ADR[$acc]['d_id']);
 $editURLPara_ = $editURLPara->getAllParams();
 $aktivURLPara->addParam("adr_id", $ADR[$acc]['id']);
 $aktivURLPara->addParam("val", $new_aktiv);
 $aktivURLPara_ = $aktivURLPara->getAllParams();
 $checkURLPara->addParam("adr_id", $ADR[$acc]['id']);
 $checkURLPara_ = $checkURLPara->getAllParams();
 $delURLPara->addParam("adr_id", $ADR[$acc]['id']);
 $delURLPara_ = $delURLPara->getAllParams();
 $delHistoryURLPara->addParam("adr_id", $ADR[$acc]['id']);
 $delHistoryURLPara_ = $delHistoryURLPara->getAllParams();
 $statURLPara->addParam("adr_id", $ADR[$acc]['id']);
 $statURLPara_ = $statURLPara->getAllParams();
 $blacklistURLPara->addParam("adr_id", $ADR[$acc]['id']);
for ($qcc = 0; $qcc < $qc; $qcc++) {
    if ($qcc % 2 == 0) {
        $bgcolor = $row_bgcolor;
    } else {
        $bgcolor = $row_bgcolor2;
    }
    $hc_new = 0;
    $HOST = $HOSTS->getHost($Q[$qcc]['host_id']);
    if (!isset($HOST[0]) || $HOST[0]['aktiv'] != 1) {
        $bgcolor = $row_bgcolor_inactive;
    }
    $valid_adr_c = $ADDRESS->countValidADR($Q[$qcc]['grp_id']);
    //wenn q status=2 or 3 // run oder fertig
    //dann holen wir uns die daten fuer die q eintraege! vorher ist eh null... :)
    //wenn status > neu, also gestartet, versendet etc, dann summary anzeigen....
    $hc = $QUEUE->countH($Q[$qcc]['id']);
    $hc_new = $QUEUE->countH($Q[$qcc]['id'], 0, 0, 0, 1);
    //new entry
    $hc_ok = $QUEUE->countH($Q[$qcc]['id'], 0, 0, 0, 2);
    //ok, done
    $hc_view = $QUEUE->countH($Q[$qcc]['id'], 0, 0, 0, 3);
    //ok,done,viewed
    $hc_fail = $QUEUE->countH($Q[$qcc]['id'], 0, 0, 0, 4);
    //error, failed
    $hc_current = $QUEUE->countH($Q[$qcc]['id'], 0, 0, 0, 5);
    //status 5: currently working on this adr
    $hc_skip = $QUEUE->countH($Q[$qcc]['id'], 0, 0, 0, 6);
    //status 6 : canceled, blacklisted at sending time etc, skipped!
    //status %
    //1%
    $one_percent = $hc / 100;