コード例 #1
0
function graphOverviewTransfer($bill_id, $history)
{
    global $pdf;
    $img['bw_day'] = genGraphs($bill_id, "day", $history['timestampfrom'], $history['timestampto']);
    $img['bw_hour'] = genGraphs($bill_id, "hour", $history['timestampfrom'], $history['timestampto']);
    $bw_day = $pdf->serializeTCPDFtagParameters(array($img['bw_day'], 10, 44, 280, '', 'PNG', '', 'T'));
    $bw_hour = $pdf->serializeTCPDFtagParameters(array($img['bw_hour'], 10, 117, 280, '', 'PNG', '', 'T'));
    $res = "";
    $res .= "<tcpdf method=\"Image\" params=\"" . $bw_day . "\" />";
    $res .= "<tcpdf method=\"Image\" params=\"" . $bw_hour . "\" />";
    return $res;
}
コード例 #2
0
function graphOverviewTransfer($bill_id, $history)
{
    global $pdf;
    $img = array();
    $img['bw_day'] = genGraphs($bill_id, 'day', $history['timestampfrom'], $history['timestampto']);
    $img['bw_hour'] = genGraphs($bill_id, 'hour', $history['timestampfrom'], $history['timestampto']);
    $bw_day = $pdf->serializeTCPDFtagParameters(array($img['bw_day'], 10, 44, 280, '', 'PNG', '', 'T'));
    $bw_hour = $pdf->serializeTCPDFtagParameters(array($img['bw_hour'], 10, 117, 280, '', 'PNG', '', 'T'));
    $res = '';
    $res .= '<tcpdf method="Image" params="' . $bw_day . '" />';
    $res .= '<tcpdf method="Image" params="' . $bw_hour . '" />';
    return $res;
}