예제 #1
0
				,'InKrSumma'=>array('justification'=>'right')
				,'InKr'=>array('justification'=>'right')
				,'Admin'=>array('justification'=>'right')
				
				)
			));
$result2 = $db->Query($ds['QueryTotal'] . " LIMIT 0,2000");

$row = $db->GetRow($result2);
$row['OutKr'] = number_format($row['OutKr'],2,',','.');
$data[] = $row;
$pdf->ezText("<i>Antal poster:</i> ".$row['items']." <i>Outkr Total:</i> ".$row['OutKr'],12,array('justification'=>'center'));

function doHeader($pdf,$pageno,$pages) {
	$text = 'Sida '.$pageno.' av '.$pages;
	$pdf->addText(($pdf->ez['pageWidth'] / 2)-strlen($text), 12, 9, $text); 			
}

$pdf->siHeadersAndFooters(array('AllPages'=>'doHeader'));
$pdf->doHeader('Utskrift '.date('Y-m-d'),10,'left');
$pdf->doHeader("<b>Trosgnistan</b>",10,'right');
$pdf->doFooter("<b>Trosgnistan</b>",10,'right');
$pdf->doFooter('Utskrift '.date('Y-m-d'),10,'left');

header('connection:close');
//following causes pdf to be displayed inside an iframe!
//Content-Disposition:	inline; filename="doc.pdf";
header("Content-Disposition:attachment;filename=Utbetalningar_".$_REQUEST['Date'].".pdf");
header("Content-type: application/x-pdf");
print $pdf->ezOutput();
//$pdf->ezStream();
예제 #2
0
    $pdf->ezSetDy(-20);
    $count = count($data)-1;//1 for totals row.
    //$pdf->ezText("No.: <b>$count		 Total amount for this area in Swedish currency  $tot sek");
        $pdf->ezText("No.: $count Total amount for this area in Swedish currency $tot sek");
    $pdf->ezSetDy(-20);
    $pdf->ezText("<b>10% is allowed to be kept by the sister organization for administration and various expenses such as traveling costs for the social worker, extra help to needy children or children with less support. 90% of the support MUST reach the sponsored child according to the instructions in the Family Care Policy that you have signed and agreed to follow.</b>");
    $pdf->ezSetDy(-10);
    $pdf->ezText("On the right side of each line there is a date indicating when we got the last report from the child. According to the family care policy each child must send a report at least once a year. It is the responsiblity of the social worker to see that this is done. The support to the children not writing reports on time can be stopped without warning or explanation. If there is anything wrong with this list please contact us immediately.
");
    $pdf->ezSetDy(-10);
    $pdf->ezText("The following sponsor numbers is hereby explained:
-333333 = Waiting for sponsor, -44444 = Lost sponsor -  send new photo, 55555 = Lost sponsor - we have photo.");
function pageNoFooter($pdf,$pageno,$pages) {
    $text = "Page $pageno of $pages";
    $x = ($pdf->ez['pageWidth'] / 2)-strlen($text);

    $y = $pdf->ez['bottomMargin']-15;

    $pdf->addText(($pdf->ez['pageWidth'] / 2)-strlen($text),  $y, 10, $text);
        
}
$pdf->siHeadersAndFooters(array('AllPages'=>'pageNoFooter'));    $pdf->doFooter("".date("Y-m-d")."",10,'left');
    $pdf->doFooter("<b>Trosgnistan</b>",10,'right');
    $pdf->doHeader("".date("Y-m-d")."",10,'left');
    $pdf->doHeader("<b>Trosgnistan</b>",10,'right');

//output pdf inline
header('connection:close'); 

$pdf->ezStream();
예제 #3
0
파일: Church.php 프로젝트: Tetting/Shorty
                ,'Address'=>'Adress'  
                ,'Zip'=>'Postnr'  
                ,'ZipTown'=>'Ort'  
                ,'Contact'=>'Kontakt'  
                
        )
	    ,"Church"
        //options

	    ,array('NewPageCallback' => 'NewPageCallback'
			,'cols'=>array(
                
			),maxWidth=>$pdf->ez['pageWidth']-20
)
    );
    $pdf->doHeader("<b>Trosgnistan</b>",10,'right');
    $pdf->doFooter("<b>Trosgnistan</b>",10,'right');
function pageNoFooter($pdf,$pageno,$pages) {
    $text = "Sida $pageno av $pages";
    $x = ($pdf->ez['pageWidth'] / 2)-strlen($text);

    $y = $pdf->ez['bottomMargin']-15;

    $pdf->addText(($pdf->ez['pageWidth'] / 2)-strlen($text),  $y, 10, $text);
        
}
$pdf->siHeadersAndFooters(array('AllPages'=>'pageNoFooter'));    $pdf->doFooter("Utskrift ".date("Y-m-d")."",10,'left');

//output pdf inline
header('connection:close'); 
예제 #4
0
    $y = $pdf->ez['bottomMargin']-15;

    $pdf->addText(($pdf->ez['pageWidth'] / 2)-strlen($text),  $y, 10, $text);
        
}
$pdf->siHeadersAndFooters(array('AllPages'=>'pageNoHeader'));function pageNoFooter($pdf,$pageno,$pages) {
    $text = "Sida $pageno av $pages";
    $x = ($pdf->ez['pageWidth'] / 2)-strlen($text);

    $y = $pdf->ez['bottomMargin']-15;

    $pdf->addText(($pdf->ez['pageWidth'] / 2)-strlen($text),  $y, 10, $text);
        
}
$pdf->siHeadersAndFooters(array('AllPages'=>'pageNoFooter'));    $pdf->doHeader("Utskrift ".date("Y-m-d")."",10,'left');
    $pdf->doHeader("<b>Trosgnistan</b>",10,'right');
    $pdf->doFooter("Utskrift ".date("Y-m-d")."",10,'left');
    $pdf->doFooter("<b>Trosgnistan</b>",10,'right');

//output pdf download
header('connection:close'); 

if (isset($forceInline) || isset($_REQUEST['forceInline'])) {
    $pdf->ezStream();
} else {
    header("Content-Disposition:attachment;filename=Utbetalningar_".$_REQUEST["Date"].".pdf");
    header("Content-type: application/x-pdf");
    print $pdf->ezOutput();
}