예제 #1
0
 function begin_page()
 {
     reportico_report::begin_page();
     $this->page_footer_start_y = $this->abs_bottom_margin;
     $this->page_header_start_y = $this->abs_top_margin;
     $this->page_number++;
     $this->document->AddPage($this->orientations[$this->orientation]);
     $font = $this->document->SetFont($this->fontName);
     $font = $this->document->SetFontSize($this->vsize);
     $this->set_position($this->abs_left_margin, $this->abs_top_margin);
     $this->current_line_start_y = $this->document->GetY();
     // Page Headers
     $this->apply_style_tags("EACHHEADMID", $this->mid_cell_reportbody_styles);
     reportico_report::page_headers();
     $prevx = $this->document->GetX();
     $prevy = $this->document->GetY();
     $this->end_line();
     $this->end_line();
     $this->unapply_style_tags("EACHHEADMID", $this->mid_cell_reportbody_styles);
     // Page Footers
     $this->apply_style_tags("EACHHEADMID", $this->mid_cell_reportbody_styles);
     $this->page_footers();
     $this->unapply_style_tags("EACHHEADMID", $this->mid_cell_reportbody_styles);
     //$this->document->SetAutoPageBreak(true, $this->abs_page_height - $this->abs_bottom_margin );
     //$this->apply_style_tags( "DEFAULT", $this->mid_page_page_styles);
     $this->set_position($prevx, $this->page_header_end_y);
     $this->group_header_start = 0;
     $this->group_header_end = 0;
     // Start report body
     $this->draw_mode = "CALCULATE";
     $this->new_report_page_line_by_style("REPTOPBODY", $this->top_page_reportbody_styles, true);
     $this->draw_mode = "DRAW";
     $this->new_report_page_line_by_style("REPTOPBODY", $this->top_page_reportbody_styles, true);
     //$this->apply_style_tags( "PAGEBODY", $this->query->output_reportbody_styles);
     $this->page_detail_started = false;
     if ($this->page_broken_mid_page) {
         $this->check_for_detail_page_start();
     }
     if ($this->page_broken_mid_page) {
         $this->column_header_required = true;
     }
 }
 function begin_page()
 {
     reportico_report::begin_page();
     $this->debug("HTML Begin Page\n");
     // Page Headers
     reportico_report::page_headers();
     $title = $this->query->derive_attribute("ReportTitle", "Unknown");
     if ($this->query->output_template_parameters["show_hide_report_output_title"] != "hide") {
         $this->text .= '<H1 class="swRepTitle">' . sw_translate($title) . '</H1>';
     }
     $forward = session_request_item('forward_url_get_parameters', '');
     if ($forward) {
         $forward .= "&";
     }
     if (!get_request_item("printable_html")) {
         if (!$this->query->access_mode || $this->query->access_mode != "REPORTOUTPUT") {
             $this->text .= '<div class="swRepBackBox"><a class="swLinkMenu" href="' . $this->query->get_action_url() . '?' . $forward . 'execute_mode=PREPARE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_BACK") . '">&nbsp;</a></div>';
         }
         if (get_reportico_session_param("show_refresh_button")) {
             $this->text .= '<div class="swRepRefreshBox"><a class="swLinkMenu" href="' . $this->query->get_action_url() . '?' . $forward . 'refreshReport=1&execute_mode=EXECUTE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_REFRESH") . '">&nbsp;</a></div>';
         }
     } else {
         $this->text .= '<div class="swRepPrintBox"><a class="swLinkMenu" href="' . $this->query->get_action_url() . '?' . $forward . 'printReport=1&execute_mode=EXECUTE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_PRINT") . '">' . '&nbsp;' . '</a></div>';
     }
 }
 function begin_page()
 {
     reportico_report::begin_page();
     $this->debug("PDF Begin Page\n");
     $this->page_number++;
     $this->document->AddPage($this->orientations[$this->orientation]);
     $font = $this->document->SetFont($this->fontName);
     $font = $this->document->SetFontSize($this->vsize);
     $this->set_position($this->abs_left_margin, $this->abs_top_margin);
     $this->current_line_start_y = $this->document->GetY();
     reportico_report::page_headers();
     $this->end_line();
     $this->end_line();
 }