當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PDFReport::addPage方法代碼示例

本文整理匯總了PHP中PDFReport::addPage方法的典型用法代碼示例。如果您正苦於以下問題:PHP PDFReport::addPage方法的具體用法?PHP PDFReport::addPage怎麽用?PHP PDFReport::addPage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PDFReport的用法示例。


在下文中一共展示了PDFReport::addPage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: dt_process


//.........這裏部分代碼省略.........
                    $eConfig = unserialize($element['Content']);
                    $preReport['ID'] = $element['ID'];
                    $preReport['Config'] = $eConfig;
                    $reportExports[] = $preReport;
                }
            } else {
                $preReport['ID'] = $Media['ID'];
                $preReport['Config'] = $Config;
                $reportExports[] = $preReport;
            }
            $input_params["return"] = isset($input_params["return"]) ? $input_params["return"] : false;
            foreach ($reportExports as $key => $reportExport) {
                //dump($_SESSION);
                $Continue = true;
                $Media['ID'] = $reportExport['ID'];
                $Config = $reportExport['Config'];
                foreach ($reportExport['Config']['_Field'] as $Key => $Value) {
                    if ($Value == 'viewitem_filter') {
                        if (empty($_SESSION['viewSelector_' . $Media['ID']])) {
                            $Continue = false;
                        }
                    }
                }
                if (!empty($Continue)) {
                    $limit = 'full';
                    if (!empty($_GET['limit'])) {
                        $limit = $_GET['limit'];
                    }
                    $OutData = dr_BuildReportGrid($Media['ID'], false, $_SESSION['report_' . $Media['ID']]['SortField'], $_SESSION['report_' . $Media['ID']]['SortDir'], 'pdf', $limit);
                    //vardump($OutData);
                    $CountStat = array();
                    if (is_array($OutData)) {
                        if ($key > 0) {
                            $report->addPage();
                        }
                        // outdata - Headings
                        $report->cf_report_headersMain($OutData, $Config);
                        if (!empty($OutData['Totals'])) {
                            foreach ($OutData['Totals'] as $Field => $Value) {
                                sort($fieldset);
                                $totalData[$Field] = $Value;
                            }
                            $report->cf_report_datagrid($totalData, 7);
                            unset($OutData['Totals']);
                        }
                    }
                    $report->cf_report_spacer();
                    $Headers = array();
                    if (!empty($OutData[0])) {
                        foreach ($OutData[0] as $Header => $v) {
                            if (strpos($Config['_IndexType'][$Header], 'hide') === false) {
                                if (!empty($Config['_FieldTitle'][$Header])) {
                                    $Headers[] = $Config['_FieldTitle'][$Header];
                                } else {
                                    $Headers[] = $Header;
                                }
                            }
                        }
                        $Total = count($OutData) - 1;
                        $Body = array();
                        $Counter = 1;
                        for ($i = 0; $i <= $Total; $i++) {
                            if (is_array($OutData[$i])) {
                                foreach ($OutData[$i] as $Field => $v) {
                                    if (strpos($Config['_IndexType'][$Field], 'hide') === false) {
                                        $Body[$i][] = str_replace('&nbsp;', '', html_entity_decode($v));
開發者ID:aoloe,項目名稱:wordpress-db-toolkit,代碼行數:67,代碼來源:functions.php


注:本文中的PDFReport::addPage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。