TCPDF กับการใช้ writeHTML โดยจะใช้ php code ในการวนลูปข้อมูลออกมา(อาเรย์) ใช้ผสมยังไงครับ
Code (PHP)
// ---------ใส่ html ชุดแรก ใน $html ---------
$html ='<br><br><table border="1" cellpadding="5" bordercolor="black" style="border-collapse: collapse;">
<tr bgcolor="#eeeeff">
<th width="50">ลำดับ</th><th width="250">รายการ</th>
<th width="60">จำนวน</th><th width="80">ราคา</th><th width="80">รวม</th>
</tr>';
//------------------- end $html ------------------------
// ------------------ ส่วนที่เป็น code php ที่จะทำให้ while --------------------------
$i = 0;
$gt = 0;
while($ord = mysql_fetch_array($result)) {
$st = $ord['price'] * $ord['qty'];
$gt += $st;
$i++;
// ------ end code php ------
// -------- code html ส่วนที่สอง ที่จะให้ชุดนี้ วนลูปข้อมูลออกมา --------
$html2 ='<tr>
<td align=center> '.$i.' </td>
<td> '.$ord["pro_name"].' </td>
<td align=center> '.$ord["qty"].' </td>
<td align=center> '.$ord["price"].'</td>
<td align=right> '.$st.' </td>
</tr></table>';
$pdf->writeHTML($html.$html2, true, false, true, false, '');
}
ลองแทรกใน Loop ดูครับ
Date :
2011-08-24 16:59:00
By :
webmaster
เป็นแบบนี้แทนครับ แฮๆ
Date :
2011-08-24 23:01:20
By :
bukla
เอา $html. ออกจากตัวที่ 2
Date :
2011-08-24 23:18:09
By :
Jje
error ครับ เอา $html ออก
Code
Warning: array_push() [function.array-push]: First argument should be an array in C:\AppServ\www\tcpdf\tcpdf.php on line 19883
Warning: Invalid argument supplied for foreach() in C:\AppServ\www\tcpdf\tcpdf.php on line 22282
Warning: Invalid argument supplied for foreach() in C:\AppServ\www\tcpdf\tcpdf.php on line 22314
Warning: array_push() [function.array-push]: First argument should be an array in C:\AppServ\www\tcpdf\tcpdf.php on line 19883
Warning: Invalid argument supplied for foreach() in C:\AppServ\www\tcpdf\tcpdf.php on line 22282
Warning: Invalid argument supplied for foreach() in C:\AppServ\www\tcpdf\tcpdf.php on line 22314
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\tcpdf\tcpdf.php:19883) in C:\AppServ\www\tcpdf\tcpdf.php on line 8399
TCPDF ERROR: Some data has already been output to browser, can't send PDF file
Code (PHP)
$html ='<br><br><table border="1" cellpadding="5" bordercolor="black" style="border-collapse: collapse;">
<tr bgcolor="#eeeeff">
<th width="50">ลำดับ</th><th width="250">รายการ</th>
<th width="60">จำนวน</th><th width="80">ราคา</th><th width="80">รวม</th>
</tr>';
//$pdf->writeHTML($html, true, false, true, false, '');
$i = 0;
$gt = 0;
while($ord = mysql_fetch_array($result)) {
$st = $ord['price'] * $ord['qty'];
$gt += $st;
$i++;
$html2 ='<tr>
<td align=center> '.$i.' </td>
<td> '.$ord["pro_name"].' </td>
<td align=center> '.$ord["qty"].' </td>
<td align=center> '.$ord["price"].'</td>
<td align=right> '.$st.' </td>
</tr></table>';
$pdf->writeHTML($html2, true, false, true, false, '');
}
Date :
2011-08-24 23:28:15
By :
bukla
ตอนแรกได้ แล้วทำไมตอนนี้ถึงไม่ได้ครับ ทั้ง ๆ ที่แค่ Remove แค่ header ออกครับ
Date :
2011-08-25 21:03:55
By :
webmaster
นี้โค้ดทั้งหมดครับ
Code (PHP)
<?php
require_once('../config/lang/eng.php');
require_once('../tcpdf.php');
function num2wordsThai($num){
$num=str_replace(",","",$num);
$num_decimal=explode(".",$num);
$num=$num_decimal[0];
$returnNumWord;
$lenNumber=strlen($num);
$lenNumber2=$lenNumber-1;
$kaGroup=array("","สิบ","ร้อย","พัน","หมื่น","แสน","ล้าน","สิบ","ร้อย","พัน","หมื่น","แสน","ล้าน");
$kaDigit=array("","หนึ่ง","สอง","สาม","สี่","ห้า","หก","เจ็ต","แปด","เก้า");
$kaDigitDecimal=array("ศูนย์","หนึ่ง","สอง","สาม","สี่","ห้า","หก","เจ็ต","แปด","เก้า");
$ii=0;
for($i=$lenNumber2;$i>=0;$i--){
$kaNumWord[$i]=substr($num,$ii,1);
$ii++;
}
$ii=0;
for($i=$lenNumber2;$i>=0;$i--){
if(($kaNumWord[$i]==2 && $i==1) || ($kaNumWord[$i]==2 && $i==7)){
$kaDigit[$kaNumWord[$i]]="ยี่";
}else{
if($kaNumWord[$i]==2){
$kaDigit[$kaNumWord[$i]]="สอง";
}
if(($kaNumWord[$i]==1 && $i<=2 && $i==0) || ($kaNumWord[$i]==1 && $lenNumber>6 && $i==6)){
if($kaNumWord[$i+1]==0){
$kaDigit[$kaNumWord[$i]]="หนึ่ง";
}else{
$kaDigit[$kaNumWord[$i]]="เอ็ด";
}
}elseif(($kaNumWord[$i]==1 && $i<=2 && $i==1) || ($kaNumWord[$i]==1 && $lenNumber>6 && $i==7)){
$kaDigit[$kaNumWord[$i]]="";
}else{
if($kaNumWord[$i]==1){
$kaDigit[$kaNumWord[$i]]="หนึ่ง";
}
}
}
if($kaNumWord[$i]==0){
if($i!=6){
$kaGroup[$i]="";
}
}
$kaNumWord[$i]=substr($num,$ii,1);
$ii++;
$returnNumWord.=$kaDigit[$kaNumWord[$i]].$kaGroup[$i];
}
if(isset($num_decimal[1])){
$returnNumWord.="จุด";
for($i=0;$i<strlen($num_decimal[1]);$i++){
$returnNumWord.=$kaDigitDecimal[substr($num_decimal[1],$i,1)];
}
}
return $returnNumWord;
}
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Nicola Asuni');
$pdf->SetTitle('TCPDF Example');
$pdf->SetSubject('TCPDF Tutorial');
$pdf->SetKeywords('TCPDF, PDF, example, test, guide');
// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.'', PDF_HEADER_STRING);
// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
// set font
$pdf->SetFont('thsarabun', '', 10);
// add a page
$pdf->AddPage();
// writeHTML($html, $ln=true, $fill=false, $reseth=false, $cell=false, $align='')
// writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=0, $reseth=true, $align='', $autopadding=true)
$cus_ord_id = '201100023';
$host="localhost"; // กำหนด host
$username="root"; // กำหนด username
$password="1234"; // กำหนด Password
$db="tcn"; // กำหนดชื่อฐานข้อมูล
$Conn = mysql_connect( $host,$username,$password) or die ("ติดต่อฐานข้อมูลไม่ได้");// ติดต่อฐานข้อมูล
mysql_query("SET NAMES utf8",$Conn); // set กำหนดมาตราฐาน
mysql_select_db($db) or die("เลือกฐานข้อมูลไม่ได้"); // เลือกฐานข้อมูล
mysql_query("SET NAMES UTF8");
$sql = "SELECT *, DATE_FORMAT(cus_ord_date,'%d-%m-%Y เวลา %T') AS dt
FROM cus_order
WHERE cus_ord_id= $cus_ord_id;";
$result = mysql_query($sql);
$cust = mysql_fetch_array($result);
// create some HTML content
$html = '<p align="center"><h1>ใบเสนอราคา / ยืนยันการสั่งซื้อ</h1><br>Purchease Agreement </p>
<br>
<b>ชื่อลูกค้า:</b> '.$cust["cus_ord_name"].' รหัส: '.$cus_ord_id.' ';
$pdf->writeHTML($html, true, false, true, false, '');
$html = '<b>บริษัท:</b> ';
$pdf->writeHTML($html.$cust["cus_ord_id"], true, false, true, false, '');
$html = '<b>ที่อยู่:</b> ';
$pdf->writeHTML($html.$cust["cus_ord_add"], true, false, true, false, '');
$html = '<b>เบอร์โทร:</b> ';
$pdf->writeHTML($html.$cust["cus_ord_tel"], true, false, true, false, '');
$html = '<b>อีเมล์:</b> ';
$pdf->writeHTML($html.$cust["cus_ord_email"], true, false, true, false, '');
$html = '<b>วันที่สั่งซื้อ:</b> ';
$pdf->writeHTML($html.$cust["dt"], true, false, true, false, '');
$sql = "SELECT * FROM request
WHERE cus_ord_id = $cus_ord_id;";
$result = mysql_query($sql);
// ------------------ $html --------------------- อันแรกครับ
$html ='<br><br><table border="1" cellpadding="5" bordercolor="black" style="border-collapse: collapse;">
<tr bgcolor="#eeeeff">
<th width="50">ลำดับ</th><th width="250">รายการ</th>
<th width="60">จำนวน</th><th width="80">ราคา</th><th width="80">รวม</th>
</tr>';
$pdf->writeHTML($html, true, false, true, false, '');
$i = 0;
$gt = 0;
while($ord = mysql_fetch_array($result)) {
$st = $ord['price'] * $ord['qty'];
$gt += $st;
$i++;
// -------- html2 ------- ครับ
$html2 ='<tr>
<td align=center> '.$i.' </td>
<td> '.$ord["pro_name"].' </td>
<td align=center> '.$ord["qty"].' </td>
<td align=center> '.$ord["price"].'</td>
<td align=right> '.$st.' </td>
</tr></table>';
$pdf->writeHTML($html2, true, false, true, false, '');
}
//$pdf->writeHTML($html.$html2, true, false, true, false, '');
$pdf->lastPage();
$pdf->Output('Quotation.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+
Date :
2011-08-25 23:23:55
By :
bukla
ทำมาล่ะได้แบบนี้ค่ะ งงมาก
http://wheretofromhere.com.au/print_pdf/tcpdf/examples/example_066.php
Date :
2012-05-23 07:59:41
By :
oneplus048
ช่วยแนะนำทีค่ะ ทำไมเป็นแบบนี้ พึ่งเริ่มศึกษาวันแรกก็มึนเลย
Code (PHP)
%PDF-1.7 %âãÏÓ 9 0 obj << /Type /Page /Parent 1 0 R /LastModified (D:20120523104741+10'00') /Resources 2 0 R /MediaBox [0.000000 0.000000 595.276000 841.890000] /CropBox [0.000000 0.000000 595.276000 841.890000] /BleedBox [0.000000 0.000000 595.276000 841.890000] /TrimBox [0.000000 0.000000 595.276000 841.890000] /ArtBox [0.000000 0.000000 595.276000 841.890000] /Contents 10 0 R /Rotate 0 /Group << /Type /Group /S /Transparency /CS /DeviceRGB >> /Annots [ 8 0 R ] /PZ 1 >> endobj 10 0 obj <> stream xœí™Ïo›0Çïù+Þ±=Ôñó/ì^ªm]+õÔn*µ=t eš–¥eÐþû&~"D…Ëðüïû±q0%Ò¡¶@®ìñîìÏÚ—öð]X^0@Jh\À}‚Ï3D@V4|IOtî‘–{ĤîTvO9J.…T¬6‹å+á|»¸±Ÿ–T%£Öÿ—Ë=g£ðmß6R`ÔGqÅsWØkœÚ€[Ú @uHÀ5FE‡È5¡Òp”íÖ¦¶)”8é/M×>X—ÖMµ…ÖcÔ*‘h”–à0Iu¤¹»†»£³´ÀÎÊåøÜ«¨›AoÆýšk"…ni;²Ê¨H%¸þ¬¾{¿=øàž·ñ~½æòÞ3Á5)HàÛd¶ôß6Ôå\hYÑarÑ> òö¬ƒ}qb·Èþ–0M¸PB:°)-¾RE»4YóOøÚ×w•§D°x߈Q©1²Ý»öçGß„%`nöâ–½ â endstream endobj 1 0 obj << /Type /Pages /Kids [ 9 0 R ] /Count 1 >> endobj 3 0 obj <> endobj 4 0 obj <> endobj 6 0 obj <> endobj 7 0 obj <> endobj 11 0 obj <> stream ÿØÿàJFIF,,ÿÛCÿÛCÿÀvb"ÿÄ ÿÄ_ Ñ !1QS’ 2ATq‘“±"7atw³¶Õ389WXru‚”•–²#45UVv¡´µ·ÓBÁÒ×ð%6RÔáÿÄ ÿÄ[ a!Ab’1QSq‘± $%2BDRUc“¡Òð"367rstu²´¶#458Ww•–ÁÓÕÑCVX—³×ÿÚ ?´œ;Âi=Ä9ˆûÂÜŽÇ+fݽŸDÝr$Š&#ÆƤg2ã $±{“X[7MwbÉÚÁÒh™6ÇUuEK˜µ¤ ¤ÞDÈ¢š/X®£g)ƒ„NU3 äÎbˆfBYqòr{–mÉ7jÉ𬋨Çé´x‘\µYD•ÖndÕ †#”ÂQ̹æTW+3"éû‡.]®ºË,ªŠ*¢†1ÎsœLcDÂ&ãë5Ö¨µÌ¬´ú*‰yñ>fÿ[3PJ˪d¡EFÒòд¥Ð²²µm‘Y¯Ù•ÊœTT)’,`RUk[æ–Z¨[/¡3R€ÍE§Ð‰47 LȧFÂäA[ÏÇD“ 4ÝoÁjsÓm8-Nbzbm¨ã„\ôÊyÇm8EÏL§œv×[˜~¾ÐË/Ï–ÅÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7ÇõXÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7ÇõXÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7ÇõXÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7ÇõXÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7ÇõXÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7ÇõXÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7ÇõXÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7ÇõXÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7ÇõXÞxzž?G´_Wã|SÆGàµ9‰é‰¶œ§1=16ÔqÂ.ze<㶜"ç¦SÎ;hæ߯´2ËÇóå€]燩ãô{Eõ~7Çõ>,óÿ[F.8TäÈÆmÊ>Aâã©ÁlÑY™VŒÛËR›ÛIQkW]ΞžƒˆN:Q¨[z=L¥²ÛS—M´úR¡º+%IÚZµ ÷ÇIîÒÄ—ÂsüxÌ#ËÎ"<Ô¨œ9È©ÜP)`Í›áÔ¿íçïœe ÒÕò¢Tkrõ¨í}õ}:/®¡«-1½ñþ¿É Fo¾¾Â7íT™ßàëüÔfûëçü#~ÕV˜ÁÏÎ/ÌŒmíá÷Èÿ£ÇýµcÓ¥)JdáJùr³°0I$´ôì œSAyɈØdWP¡¾2h«$éªj¨Rûc3à^1:ø~ȸs÷FÃß×›SézQG«Ìi/Ä¥T¥0¢ —£A”ûJ);* q¦”‚R¯¹PX<2ëZHÑÝ·=ÊUÃ~Ùt£(iÇ©µ«¦‡KžÓo :Ê܇:sCÍ).4¥6â‚RAÅaJ£ý‘pç¯6§ÒôöEߺ6þ¼ÚŸK×?¥Ûƒà*Ïødßö3\%}¹tAý«hÛüókÿÊb°¥Qþȸs÷FÃß×›Séz{"áÏÝ^mO¥èô»p|Yÿ ›þÆc˃íË¢í[Fßç›_þS…*öEߺ6þ¼ÚŸKÕNÍë)ßƾc$ÁÚb«Wñ¯H2réŠÝ³Ufë~C—|š†.eÏŠºÒ©UH-¥Ù´ÙðÚR‚ä¨r#¶¥T•¼ÚTR ‚A'P'V¡…ÊýbÝRƒkÞ¶•É5† §¡Ð.:=bS1’´4©Ç§Lólm²êÐ q*ÚRAöiJü¹mÍyl)•ÌƒÕ’jÅ°¬pM pís&ÝØq¶¨Mñ„ \Är®’[«Km¡n8³©(BJÖ¢{)H*QÈpæ•*,(îË™%ˆ‘XAqù2žnK†„¹2¥T™Ÿ"âJäÌ–ã1ØBq ¥N¸€§„T JÈ?Ô¥ÝûÓ1OóH¥éõ)wDþôÌSüÒézSô»p|Yÿ ›þÆcˆ?Û—DÚ®¿Ï6Çü¦cËŒ|R²õ)wDþôÌSüÒéz¥.mÍÍ;læ«=¸t[ŦM›¢eÕ:0$b¤@1(·/V8€äDÓ1ÇÀQ⯕Ð+¨IZè•t$ eK¦ÌJ@îë$²»çÑô¹¢‰n¡ˆºNÑä—Ü!-³ô¶Þuj:€Jn¤¥¨’F IÖ5wqdt¯½qZ×=¡"h‹¶Üžµåˆ@PñwD„$‰0ˆæe$ݳ’ÂaH "uí¶‹Qzé.ÞÝ»‘võ©EQP Bœ7 9ˆTéõ)wDþôÌSüÒézSb‰Y”ÒH©ÈaÀKo1SÍ8ŠIC´¤(’R£©@Žèë¤íЪ)U½!Xôz¤5%éµ[²O¨EZÛC¨Dˆrê ÈaKiÆÜJ]m%M¸…€R¤“ŠVAþ¥.èŸÞ™ŠšCý/O©Kº'÷¦bŸæÿK×/¥Ûƒà*Ïødßö3\'ý¹tAýªèÛüólÊf<¸ÇÅ+ ÿR—tOïLÅ?Í!þ—ªnñÜÔÓ·í;–ù¼ôeÄ‹zѳ eî‹žyûX¢±†€q+1(ðÉJ(¡ZÇÇ4ríq"g8$‰Ä¤0äø«~¼„©k¢UЄ$©KU6bR”¤kR”¢È q$âN¬r1¥íÊy˜Ñ´¡£¹$:Û,0Åëm:óï:¤¡¦Yiºš–ë®-ICm¡*ZÔ¤¥ ’±ÊR”‘‰ È>AõU¸b×x•ê ¸ór}UnµÞåz‚VôÄÊÿTâåø¹ª~@ý¡‹~/ yÕJ<ê¥NØÊÔ÷ˆy±–˜Þøÿ_䆣7ß_?áöªLïðuþHj3}õóþ¿jª|`ççæF=Þ|ú<ÛV=:R”¡†N,§Mý£gþ>{þ•ÚËÆG7‹Qp’qQŠÅI8zº’½×ÚÕMfåD¤HZ àÀr˜36ü€Q/ çV©ûŠ/ßé]¡Ö™ú.‹ïkV‰gÁ§ÕkQaMnLõ¹Ô¾V”»-ŶIC+N¥!ACRÇQ åÙÉOºOåu]öŒë·-µ:iljW‚õ)Ÿz½$¶Ð™UïÄ–œe{M$ ”•'R™R®¦ñÑ6õ³-Yë±íÃl¼co°ÙšOºN€,Š""™Ž*®‘@áß ‡"”ÂS-¿G¸XvU{SØeÝî² C» s`aiWF¢8ëáŒÖÒN‰t¢ ´’J…¥V©SÅR *Šá¸ìŠyôQ)™M†Ìˆï5©KJö›'gQ©_»T éËv¤”îWEÙïJe”*ed;ÐŽ@#–y^!4)¿ŒR˜n«D¢b€‰DÓ%(‰c¢ <0› â˜\.Rv["Þ|´£˜À9“p“EŸH©Üet Ìc™%A$Á~ÒS*ØÄ ï‚ÒÕÓoÝZ]6Sb§9U–/oq‡ÙAÆÓ®¶€'i@jîãT}]éwAZK¿oM-XÕ["×oF•F×Y«=MTD.-^‘S•s¥8Ü2¤Jl 6ÂÉV½@Ðøñ1˜MHÈàBN÷“l+ÇÇÛ¶Šja').R˜¦Þ*rœ±)Š£±MET2MÈAsŒ+×o|D~•É%8ªfPZ6p·kŽ"ª¨±ŠŠn FÆ7튨`A‹T9‡z""#è^wT•ítÎÝrÆ)ŸNI9~¡P"MȪƒÚ7L¾Õ&íÛ ‘}©H…J¦jP±l*]¡NcÔìÈ:ÒU>¢´%n‡V[V TÌfÉØJPR]Ù;DÐþU<¬ïÎQW•X½J“£(3ŸbÔ³#Jz5<ÓØt¢5Z¹•¡ªnjR%:ì´¾švø€[e [ÊUâ`ÖŠo¯hÈ«²ô‘^Û”I7¬#£n3²,JðèÊÂNP‡#¤XírÙÒæIFÏ’WHêO.†Xdò4ÉÚ²·t¹N&IÔ´œlìz©‚+"»$!!×!θ at‹Ð*I&©Aš¦P¦KŽ¥¥;*•R].MQJË¥™GŒüˆÑÝIÙR}¤)$¡ZÒæè9»P!{$;öW ®Swí—ú¢XÑؤÔa&¥H‡Y®Rèõª¼±&2kí¼Ûrš)v!ž¨FSKmƈqµ+.»U“pÙe[¸DÀt—AC¢²GC¦ªf)È`ð¦Õó`“Ò䌲±C„#Ü 1Ð×#®ÔG¬ 6—t!ß59ŒTS|ðçtØ»Â(º“!´âÉŸÃë‘ý±qµîiF)ˆrffÏZ+™›?f¨{sW$ ògÈ SÑT¤Y%-%KuÊõ£†e"<¸Ò£‡`TXØ[±÷¨ fT9YŠTR»y:ÐêT‚F"ÝioJü˜´ªMZÞ¬ÐjʧݶmLÉ‹¬˜K5 ÇIsR¯¸v:_S"m9â$Áy—ÛBñŸ“Ä1ˆr‰LQ˜¦)ŠbŽBSä m-صˆ†:L€Ú@!Ÿ(k$€ä<ü`å ëP\½ÜßxWkÉH á)ˆ–ºµ.²è~æ¤E”“nc¸°ŠE*õáʘ¹—#ïLÛ·Ïb×ö@é/ñ[i|㑪¯cS$Qt£K¥JÙ/ÀªMŒâu¡{¸RÂ\AéCˆÙq¥*ßT÷Í'Iœ„/»þ„E*í±-šÜFd$F.KyÇaÉ€“ ýìIp2°8 nÕJV?wQñó´bÐgq¿fY@b-‘m¹·¥da£nT»àb^ ±2è9uÛ>t‘;¡J’‡*Å(2ÕĨÎf™O›RS"H˜òZJTéj3KyÀÚT¤%K(A ZAV Tæöεê7½ÛlY”‡"5V». =·Lv{®³¹õº„zl5Ìy†$¼ÔTÈ’ÚŸq¨ï¸†‚”†\P9¥sÒ·{"Ó©]Mßø{t±"‰™hǸUdFrå1ÒpÑ œ¤ ™ŒSÅ߈%0qî ¹kºº!£y1MžÚÐÄRã{ebE®Ée\F´œhÑ”“9XUÜ®¬<Ä\‹UQíù*ƒä$ZˆoLçeÚúK¶nÙª§S•5‰¡¥¾†'ÇC%æÛ#yº[OÈmJ@PQAZVP ’VcNüˆôÝÉî×fô¼Ø¶*¶Êê©’ª¶¥bUIºl¹¡b¨G¨RéfKˆ,7%¸ïGÓ.8Û°™4³Ð;F-4¬©›G°ÒRJE˜¡ˆ,šDâ-´í21†ºÛ 37ª§&iG"PIôc¤DSpºuès}h1¤u³‚Ë¥ä’Ö‚ƒKºÎ“(:›I=ñÈÝÚÌ”H’ŒJª£ Eڜü§Õ¨ïe5…чµ´_Æ‚¢$—mq]fªÄ(«0’ŒVèL«˜2Ahqî}þ}¬Š®˜©¦[N6Þ‘q3¦j´µ²ã²BP¹qy¶jIHÒÙu.²âö–…¶’êµOÞ†¯(ÂØÓ #Cµ:Ìꕇ~G©E…H›%é,P.}:MN ú:S‚s[„ý:¡9f<‘"<·R§ ´…ÂÑÝEÑ“!ËÿP¿Cû nàþÐâzºHW6ýÂ߶‹£'ã óý5»«¤…|èðN£úþOîÜv=ëft´âËË Uˆ÷BöFÞ÷“V‰?sjZwăÔ:H¼Z)Ô‚m–U01ÓMs·ÎrLR˜LP<öSx¸”£1¢Žœ™5}\ÇyÚˆ¨”™0"¦ð 1ÊQ>YˆH—çoZŽDn¹1Ȫœ—Ub,™Id¶— ”ÃNl—Q쵯†½GßC<š4Á§è— Ý[‘kÌZîÀb±Î+´ZBØv¤Ü§a¡¦êÓ¡ªIu¤X (e%it*µ]$ô%Ñ{KkfNÛÇL´.ãÈ )¥s–5«Ú-bÅnê2ïŠ+IöçjsdÛò¬Q2¦Ž.ò¬WsÓv¯F=.bab ¦p‹”f£¸»òQ˜´¼Sho‘58ÉÆ/œ3OøA…x«YÅ›¦åÛf+µjádó)]èS¨7]0¿ÈUŠd¦œJ‡Ú*m²û$”8 TÛ¨JÂT•jÙRIj\¶¶•ô|&™^‡sèÚù¤'Äu‰R)u2µ•F¨Rê”é¹pÝq¥%¹pe=n²ë%{Ö]B9¶n¬nWß;8ŠÑì[ù;ßGëîIÒs~¾n‘d™:*j»Ôû¹Fi"ÇXÙ´IUvÙ»&Ó Qëv-1%]S´áÑnÔÓF ZÀkž9£·We©(k2AÆõ5-ëþ=ªì©öîG#!Á×xårÈ´pAu <³.k~NÓ¸§m‰¦‹±—·¥¤!¤™ºDè8nö5Ò$ª*§LÅQ#{S,‡@j¦iRÉbѬ2õ9*M"¬‡^ŠÒŠ•ÍeIb«YSi6ã%J*p¶¢¢ÞÚ½òå=Så £z•6òy·ô‹£çàÓëó[m¦E~“PiãE¯†‚jkê‡:M ¶–U*"e¶LÐÃ;Ÿv->ÂNc—²]¨9gÅž®.åÉžB!mOZ«ö-â:MüeZŸ7ª*Çh³ð ÝýOïò±‹œ¼¿¦™?\Ñ…(R±9» §)h£]·‹ØKnÊÜ2Ø• h9Bånw,‰!*ñURH…«ŠQ(LqÌD£¬Ïï™4Ýþ…a'èuöWÕŤ›bש*•Uvj%¥–Ÿ!ˆŠy½ÛÀ”}ØXã¨cW qèo‘>œtíeµX0í—í÷ªSéHr«p³M–eÓTÚ$ƒqÝPl)Ôì,«îøwÉ«0Ý 4ÚÈD3Ñ;H€„C0!¼3Ë”ÂÄ5¨/ï™4Ýþ…a'èuöTgŒýž—øá„8£ƒ7E¡…í¬XÃÛÏ î1ñ*‘ûx[ÞÜ’¶eb¡Ê “Ä™I®£e8„‹†Ì2¦OL–TªtøÍ?RÞÈ…)†Â - ¸ë B•·À(z³Ç¦|²} žSTÎÒ®T)ÖPF¹¨5Y¥«¶;Žˆ”ú¤YrKmˆ€¸àe•” V ¬k׌ R”ªC¸ðnAòªÃ»Àü¯PUÇ›|ƒê«pÅ®ð?+Ôê³ÿ¦#þWú§(ÿÅÍSòí [ñyȪP¼äU*vÆV§¸ËÄsQîm2½óõ6’3Õ¯-Êê¥.“É“N!-m¿ö¼¯ÃÛlêPf¥ìl®=Å–ðQvIÕÇV1iU–['¼o‹^Ø! ¡f&Yµ\ V`§n|¨‰„ EšK¬|‡}½!€ &È©¿G¸×bo²ã~ø¡˜€{cCÈy|"<@¢#U߬¾ìZEVK$‡£Ó¦¾ÑÐãQZñ) ÿÓ\tiJ…\Ò5D©!.Ó«KžÚýƒ§× Ŕڵ{Wuh9f‰¦‘’)¦ŠI‰$Š)‘QI2IS)SI$ÈR‘4“)SL…)R” ýR•žD’I$’I$“¬’x’IâI׎ޜxé˵2®ªçââ*c˜ˆ8³ð5mصý:KüVÚ_8äkVšÚ[±kû t—ø´¾qÈÓ£Eä›úÜ$’L©É:Éõ¾é³ôWF´*_eš›6¡9,¸Ë*i–ÃeÅ¡¦“´\R5·´·T•+RˆP¸£¹|i/”M—ö¾Ÿm[6…¬ýFN¤Íuµ£”å—¡Æ“:{å¦á3,7/u8û ï$)¤)µ«RžÊkâÓ²4_Áà_9——]ω"Ø ‹‡^ÙT0d1ÜÌ©À°¥TŶbÒI<Ñg §q[/˜{*Ñ‚nuN«ç(𔫱!ŒÖ0U#©y™ £Ø5(¨á‰§™Ûà浺#¦Íק®“7–7Î4qm* AaÍž£Å]’Ö²£G´E5TÆ ywȦ›é×MPj‹É%UPˆ&B…JÓ5Í m?BKÈ]N°¦P#¡AKbO¶ûÒH:ÛBËIe EÅ-J@RZsSóÐÒÐ…Ïx鶗¥g©’£Xú9j§%u—Ù[Q*W$êlšm:Nui ”üdÎv¥P,o ˆìµ%L¹>&ÝÄîý´]?_ŸéÝ]$+›~áoÛEÑ“ñ…ùþšÝÕÒBºúü¨þ¿“û…7 ^‹õ³?ºZ?ñe刽Ã1‹âÆùùµ%\™_yð§,zë5Þá˜Åñc|üÚ’®L¯¿Ž¼øS–=5y@9¶?1Tÿôƒ‰÷ЇþÓ‡ë{÷+“Vâ4îãbeµ$â"jʽéÖ’ T2K"F’H ÄÀåÖ鉜µ\¹ûtPƒÄa®°V-ÐÚø²,ëÕ™6—}«o] S €®†rÈ Q0'e(@rÌ@9+‘rPë"D³í§U2'—/l1À —¿¾®°º-¤º2h胡ÍÊ8„I8ÓÃûx‹Cƨâ:äЗw—,M£¸§I ö¡Ò©-ñR Ô8„§_±éz.ôjx…¡;„4Új¦UåF[Á :í=-P§6ÓŠim±%n¤¨Ú¤îeã8KþºÑs²yU%tÉÁó¤ªj—؈o’PŠ]׉ mèûÃåå€ÔM¤ZöÍ®ýV”ÔÄÌn\6R^˜§›y݇5¶R;=ïãäWË_NúpÓ*Á¿§Û²-ÉvýÇQyºm·™(ɦAÅ)”ÓŠRP:Ö€5,G†ZÖR”ªí”ǃr}UnµÞåz‚®<܃äU[†-wù^ §UŸý1ò¿Õ8€9Gþ.jŸ?hbß‹È@õR…ä z©S¶2µ=Áâle¦7¾?Á×ù!¨Í÷×ÏøFýª“#{ãü’Œß}|ÿ„oÚªŸØ9ùÅù‘@÷‡ß#þöÕN”¥(a“…)J0b+ÇOq\Qþª›üÚ*°·Y¤ÇOq\Qþª›üÚ*°·V³@¿ƒu×JýÊ.0 Ñfüuèûû´kø–»£üøÅ—ø”«<Åä z«0ÿÊÑŒY‰J³Ì^@òªy@{;_òj¾x–ý_æútüõƒû^<Ô ¤µ¸æåÁû•iîbLÒàM,ÊbŨavr Ä~”zïç¾8S æ)Fy¯ÁËfÏ[®Íâ :hé[ºl¹D\7X†Md ñ%S1ˆrŠa @´J’èõŠ]U©TùñfÄ°ò[~'• ä£hÒ}•Hú8¾¬.%–¯ N½n‰ B+ÕZlˆ‘¦ê:ÕKIHÔ~é¡À÷1€ê¨-9Ã[7=¿p¢sBLÇJ 9ÂÅÚN7¥.1íy-V˜É†ï°¾ú•·ÖMcE,²Ïí·Ê¦ –B uÕŠ†ñESÛLÕâETâ‹”NQéˆcEu#H…Z¦5&:Ó&N Z“.Ç’Ö¢®áÙQJÒ~é J€P#EëTk£F7¼Ú5Z,Š%Ýd\%™ÞAK°jôY©q§6\l<Ër#¼¦¤0¦žmKiÄ(繋æ’lYÉG¸IÛß2r‰Ê¢Kµv‰7X‡(ˆ TIBœ3Þ˜À ÕbC t•¾0¶<ÐI³Šºmð)¤dðÈH£@PÆŠ}ñ¢¨ÆßæÙÙ2Ú¡Ólš¢ LšÓjòyéœ-›l¼r¤IeÜÊʹb" "»&çpÍo€”¢ù³ôJ 8Ūsô%w5Rr< ]<ºC×-¦6X*ûƒ!…ê}.¥:·‰e·’T”ÆþZ~Š'Š…—±v9s[×{pURÒ‹nΪjhhs†èÕf5ÒÝ„óá\ÍÚ”ÚsÁ¢žrÓK]c¥n1ÎÛ·½iÙ³îb_C““¢œ k•Û´•EŒkµa¦V*ÒìT)‘XP$8‘2§ÙÚbâ B莋¼•Òp¡ó†˜e1ÃfÏÙ¤³*¢`qI˸—§IcÎU’("6¥%$þaûÉIGk¿‘~áGO9PU]Ë…L&QUNn3Â>ðdY$•]TÐE3ª²Ê$’L¦:Šª¡€‰¦™ cœæ) PÂ"5?S4wmE·iÔ:¥6LÂŽ ôÇ£¥.C«SÒ]jBvd²‚ê׻Ф4’xdmóË'M•í2ÞQ±ok²Ænå«´å:Û§Uß‘KJŠe Ú;Åú5FJ EŒf)È4üå<ò6Ó«3øM‹˜½öfá…àçÝÀõ9dY. .Tc&¸’UŠˆ¬\qš÷Coh¡WLã·_b×ö@é/ñ[i|ã‘DðNÀö6ÃkvÝ\»ÙuP«‡z©Ô MËpÜ¥:(ŠGŽhVQ+”BÄz«&²‰(A »;¿²IŠÛKçW‹U4„irtRªËf.ý¶™%µ:—\*ZÛyÔÖÉ'SkHÖuk;§·t‰'Ððº¦ifB$é}ƒoÔ.…" jabmBì¢Lf Ðb!¸ìK§Â~,¡´ .dwÜ)AYBwj«Ý2ÒtUПñã TŒFú°ãçPjL0FN8ªI]pî…Ã'Qø߸Þå7†Ì3 ñ¬Lîã}«ý'ÿÙÿ?ízµ7<‡¢ÛuùQ[2#Ѫo°ód¥ÆžjËmÄ(qJд…$Ž €F0;A´šm{M:$¢V`Æ©Ò+J±éuJtÆ’ôIôù÷-6,ÈrYX)v<˜î¸Ëͨlµ©'Æ«¾?ÝË.à òË?cè.^|»—/š£«»² Ý5ºY»C[a£²‰öÖY±òH”sþ/,1j¾npð(‚©‹—,°J¤î_w›©(]Ï[Ù ‚P`÷A(ZN¯úãÓäNJ\š ¾‰ô£ójJЧm <…$…%ID˜Ï6•$€B‚Awq0c.Ù¤=ÊkÃñJøÅ‹Û‘ Òã“žQŠÁ¤i¹Y(æI€ḧ ‘ !¡úR›<ô‡Vü‡\}çTã¯-N:âuKZÊ”¢{䓉ÒM§QàƦR B¥Óa4–!ÓéÑX… +)ö-F‹ °ÃiÖu!¶Ò‘¬êˆáoÛEÑ“ñ…ùþšÝÕÒB¹·îý´]?_ŸéÝ]$*×hðN£úþOîÜyþôX¬ ™ýÒÑÿ‹/,DxýîŒ_7ÏÍ©*äÊûøëÏ…8ùc×]KºÙayÚ·%¡*w Æ]R¶ü‚*NˆÊ]’첦"…Mr¢¹Å#˜‡ a)€2¬¶ìh7>ŠáEžÜºCl¯nAã#–<Ž>bEVIc,Š%6ø+}Ô-9ím´W¿1òì Š·4…ƒ6ÙÕ!äeo™†ª1—#.ùX›Pë Ç0uLŠ*3ŒUšK ·-ÒS™L¬›Ù©9‰%ÎêFUó©ÎT1Œ¢ï®£—+Æ0™E”9ÄDDsQ¨÷O5ØëE"ÝeÄ®Cn®§5) î[S½Zõ-ÐãîJJÚµl¸’mÿ¡5¢šÌwô‡¦J”GbѧSãØöÓ¯6¤ ›ÉšÍV¿.9XNÜh*‹K„—ÛÛiÙ/M`(; ÔÒ{q&þ2O›‹ÖÕª¿bÑî#¤ßÆU©óqzÚ¢¥ ~[¿£ÉýþV(Ÿ//ëi¦O×4_áJ5ôìïK¾ÆÐŽÌ–²î›‚Ó“Wm¦ŠÈ[’ï¡žªÕHIó²Žc×Ac c‡2B}à˜…È+G?Ý!¤Ý»ÿ_î¤ëvnÉ£ì²>=mò+†´0¨M¤µ{<†¤>Ú>ÆÓÎËn¸„ë(sYÙJ€ÖzN®8×OC6‰EŸÉ~Ÿ"u"—5ó{Ýé/˧ĒñJ^„’ãÌe)6µ‰§÷Hi÷nÅ×û£é:îËâó¿!'{]wÝ"Ù¸4nþ䙚vƒP9”É8‘páTÐs‚D8c{˜ˆÕ-J‰•%Ô”;!÷H%.<âÒHî•(c£‡ hlJÂD=.€•$?Ÿ;Á*”ë,¡a*µÀƒ…)Jà¦<|ƒê«pÅ®ð?+Ôqæä úªÜ1k¼Êõ:¬ÿéˆÿ•þ©ÄÊ?ñsTüûCü^@òª”/ yÕJ±•©îóc-1½ñþ¿É Fo¾¾Â7íT™ßàëüÔfûëçü#~ÕTøÁÏÎ/ÌŒz¼>ùôxÿ¶¬zt¥)C œ)JQƒ–5¶róq1«6ë»t½®dÐlÙp±ÆZ,@‰"‘N¢†Èw¤(Ž@#–@5‡L¼?¢w/è)OþgN•*ØzNU‘M—OQSçsLÂñ¨˜{ÙiÞìA•µ÷½´û-[<5š ÊÃË<¨¯[~ðsIÎY…m"ÝôYÉ¸Ä š”ê<2•tPË$óÝÎã›;«u¼ß}ÞÂ0yfÝä•9[¥,ƒ3Ã(Rƒ”ÄDG¹x€Dy«8A˜€€€` <€‡„3 y¥t/ý *ú4ªH¥ý€Õ8ÌßsƾìH»½Ç_kkÚìñvrEä„ß%Vï–ÛÒï¯N‹ ,•Úɶ¾ÆýƒMY:€MÃ^ç|ë즽dÆÜî?õw¿É©JTs‹ˆó°ÆØÅ;}H‘D»bÑ3 ŸÂ½8ËQP7ª¢¨„zÅQ*/Q)J'EÂM7ÆF èÙ‰¶“‰"uÉŠ æ”×|C‘IcÔh¦YF*"e ÝQ] ´:èª »Gµ®¦^©R%›¤ªõœƒ€ÝB”¥•štµ,%¥¨ëZâ¾kŽVu•§eÆT¢VZ+%Fœr“äM¢ŽR¢¿TTÛ>üf:"¢ñ 5ǧÇeã×éìF¬µ)J#¼]‰Qi”¦;sÓ)i8 : &"ERq3”@y2:þ‡ )„y€¢?ò¬íH[ܱÌyKzHæÌy–aç1œ7PD}ñù‰áí‚‘ÀéXö‚G̵ C€óŠÈ?<êVoOðŠvÚ”—5qKu–|;ŠTVÕ«»Çc_s†( ¿B"æL’˜:l¡=kR]—fÔ#I(×Ý1Ù®Ëh+Wµˆ×ÃkWarÞ³.»±Èµ·-éy•ˆ)‚€Á‹…Ȉ*a) º„ ¦‰ %6FPÅ.E0ç‘G,Š`&ŒlU›Ý÷Ð!#w¢§l‰ŠD鸋·LCê‹—~IqË|ÙD÷#Š ²FpðRY•Û6hÕ’%nͳvÉžñȦ‚%Ï—z’E! žAžE ö)v鎷pÃv›OŠŠ$ SrTÓê‘6CJ+hÈݲ–Zpk KM’P^(*J7'¿CoF¸i÷¥á]“¥ ¦’óS(N¥3G¶iÙZ\bz(ÂeMê”øŽ$.#õ ÊŠË2QND¦Øu•mغ½dÇ´–QóÖlˆ8]iLñÛv qÖI§ÛÔO¶31Sß KíŒ^:ÕÊ•ÚõÃmשÕÁž{®;Í‹Üß{¼aÖ6wÛ§ö5ovµî—¯ggP׬\]:èµ:kÑ=ç¢åW ¶›¾H&¸šh«šx‹USÞ iŸL‹œÇq°gGØÞï6•±»_^}c·¿Ÿa¿J1ÿ~±A»}3ïsIäËŹ\Ж€‘$Yª±òÄ [0M",*(`ÌJB˜ÀP1„7¥0‡7zT½WÓšê´ª•0Û `T`K‚_’æç0¶7»¿±hÞlm•lm£kVÎÚ{¸Îz±ì+úɾS§'ª¦Î»-ë S‘TM¨ ™‚û–b \×pdˆ²w{Ýû;µ)JTp”¥1–½ÃEÐmº£:îWA² ¿¿ ¢ÎVIHÆ·pùUŒBDD Pfc &èù¬v÷óì7éF?ï×!ŠT±biEVM&E,QR'¹;~j&FñˆÌn·b B>ÖÞØ×·«`lëV~r®ä$Ï)ý Q¯§4 å’i”;XRÑf&âJµf©ÏŒÕ]T2Ñsì¾ã›sW69¾÷~îí¾¼úÇo>Ã~”cþý5ŽÞþ~†ý(Çýúä1Jzÿâ ûMã‡þ#ÇõkþP1¿ùÿÿV·ÿôQtªðKÊÅhVWE+ì²ØYŒiâYpYÔç§{µ÷¦öx©JSK R”`ǃr}UnµÞåz‚®<܃äU[†-wù^ §UŸý1ò¿Õ8€9Gþ.jŸ?hbß‹È@õR…ä z©S¶2µ=Áâle¦7¾?Á×ù!¨Í÷×ÏøFýª•F5%PÅàŽOl`ËÛ{ž\áËÿæcQ;«‘ˆ®q“ï„{à ó½àª«LŽû©sa¥¨m“¬$‘Ä'W2ÿ¾¬o¥õY¦Bv2eMŒÊÔà !n +îI;$ƒ«¹±J§õ‡LŸZšÆæOJœÊO_eYe˜Äéš…ðœO–oégçïTªXØtÉõ©¬l:dúÔs)>}•e–c¦jÂq>Y¿¥ŸŸ¼qPR©ýcaÓ'Ö¦±°é“ëQ̤øöU–YŒ™¨_ Äùfþ–~~ñÅAJ§õ‡LŸZšÆæOG2“àWÙVYf0zf¡|'å›úYùûÇ*ŸÖ62}jk™>µÊO_eYe˜Áéš…ðœO–oégçïTªXØtÉõ©¬l:dúÔs)>}•e–c¦jÂq>Y¿¥ŸŸ¼qPR©ýcaÓ'Ö¦±°é“ëQ̤øöU–YŒ™¨_ Äùfþ–~~ñÅAJ§õ‡LŸZšÆæOG2“àWÙVYf0zf¡|'å›úYùûÇ*ŸÖ62}jk™>µÊO_eYe˜Áéš…ðœO–oégçïTªXØtÉõ©¬l:dúÔs)>}•e–c¦jÂq>Y¿¥ŸŸ¼qPR©ýcaÓ'Ö¦±°é“ëQ̤øöU–YŒ™¨_ Äùfþ–~~ñÅAJ§õ‡LŸZšÆæOG2“àWÙVYf0zf¡|'å›úYùûÇ*ŸÖ62}jk™>µÊO_eYe˜Áéš…ðœO–oégçïTªXØtÉõ©¬l:dúÔs)>}•e–c¦jÂq>Y¿¥ŸŸ¼qPR©ýcaÓ'Ö¦±°é“ëQ̤øöU–YŒ™¨_ Äùfþ–~~ñÅAJ§õ‡LŸZšÆæOG2“àWÙVYf0zf¡|'å›úYùûÇ*ŸÖ62}jk™>µÊO_eYe˜Áéš…ðœO–oégçïTªXØtÉõ©¬l:dúÔs)>}•e–c¦jÂq>Y¿¥ŸŸ¼qPR©ýcaÓ'Ö¦±°é“ëQ̤øöU–YŒ™¨_ Äùfþ–~~ñÅAJ§õ‡LŸZšÆæOG2“àWÙVYf0zf¡|'å›úYùûÇ|܃äU[†-wù^ ©¸÷(ÿ ˜qòïòæuâ{Ô]&'Hà`A÷¹?¼9ù}êsÚQŸn¯KmIH ë) q ôŽðòðÄʵL›£Ú£Qf°ó›½a(q Q‚uIá¯8ƒ È@õR¿1@ÀÙJ›ñ˜ #Pâ;ƒ¤w±qØ•~JöÕZ s$@(ûl³âoåÿ™Tk†\Æ “qˆÿÄn?/‡?í¥)±m@†Ý.9DfAR¥€I% ’IÖuëÄݦ›¶æ™~UùÍn¢èfRÚi&BÒ–ÛJÈJ„l¤Õ¨cÆ°KxÀõ¶šÁ-ãÖ>ÚR—ù¤o×a9eÄN. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>Úk·ŒXûiJ9¤o×a9eÀ. ç]ªêw©ÖÌùNÁ-ãÖ>ÚôȽx]âëoƒ<¸ÄG,öx<T¥r5„-%,¶’°B¬8td1Ó›Y«IŒ¶_©Mu¥§eh\—JT•Ýtë>~î?¢°(øœ`Þˆò‡=)Jëï\÷ß0ÿ¶_]g ˆ…aÉbŸl³Ð:Ù ÿÙ endstream endobj 5 0 obj << /Type /XObject /Subtype /Form /FormType 1 /Filter /FlateDecode /BBox [0.000000 0.000000 595.276000 76.535433] /Matrix [1 0 0 1 0 0] /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] /Font << /F3 6 0 R /F1 3 0 R >> /XObject << /I1 11 0 R >> >> /Length 272 >> stream xœÅ’ËNÃ0D÷ùŠY‚[?rcg ô!º@<¼«º(I’¦ ÀßãT¤ ± ll4ãcÉ[X&¡cmÚ©,é0 Ù TÄ2Ž,C‡$$›Ð")1¸V¸Îc )IìÜ #b³;6¾mêuÙÜ/©×Ä+ ¶]äó¦Îà‹}Y}ðßÛºRG$"Ç ,)d¡Ã¥˜¹ó«á£—E¹)–Çs¸iyg”â?µ%«Õžñî—yR œ>>¯sœÀ-“už> /XObject << /XT5 5 0 R /I1 11 0 R >> >> endobj 8 0 obj <> /H /I>> endobj 12 0 obj << /Title (þÿTCPDF Example) /Author (þÿNicola Asuni) /Subject (þÿTCPDF Tutorial) /Keywords (þÿTCPDF, PDF, example, test, guide TCPDF) /Creator (þÿTCPDF) /Producer (þÿTCPDF 5.9.162 \(http://www.tcpdf.org\)) /CreationDate (D:20120523104741+10'00') /ModDate (D:20120523104741+10'00') /Trapped /False >> endobj 13 0 obj << /Type /Metadata /Subtype /XML /Length 4339 >> stream application/pdf TCPDF Example Nicola Asuni TCPDF Tutorial TCPDF, PDF, example, test, guide 2012-05-23T10:47:41+10:00 TCPDF 2012-05-23T10:47:41+10:00 2012-05-23T10:47:41+10:00 TCPDF, PDF, example, test, guide TCPDF TCPDF 5.9.162 (http://www.tcpdf.org) uuid:52e6f0e4-5e89-9dc1-7899-7a30581f77a4 uuid:52e6f0e4-5e89-9dc1-7899-7a30581f77a4 http://ns.adobe.com/pdf/1.3/ pdf Adobe PDF Schema http://ns.adobe.com/xap/1.0/mm/ xmpMM XMP Media Management Schema internal UUID based identifier for specific incarnation of a document InstanceID URI http://www.aiim.org/pdfa/ns/id/ pdfaid PDF/A ID Schema internal Part of PDF/A standard part Integer internal Amendment of PDF/A standard amd Text internal Conformance level of PDF/A standard conformance Text endstream endobj 14 0 obj << /Type /Catalog /Version /1.7 /Pages 1 0 R /Names << >> /ViewerPreferences << /Direction /L2R >> /PageLayout /SinglePage /PageMode /UseNone /OpenAction [9 0 R /FitH null] /Metadata 13 0 R /Lang (þÿen) >> endobj xref 0 15 0000000000 65535 f 0000001210 00000 n 0000020079 00000 n 0000001269 00000 n 0000001375 00000 n 0000019503 00000 n 0000001483 00000 n 0000001594 00000 n 0000020235 00000 n 0000000015 00000 n 0000000484 00000 n 0000001701 00000 n 0000020506 00000 n 0000020940 00000 n 0000025362 00000 n trailer << /Size 15 /Root 14 0 R /Info 12 0 R /ID [ <52e6f0e45e899dc178997a30581f77a4> <52e6f0e45e899dc178997a30581f77a4> ] >> startxref 25586 %%EOF
Date :
2012-05-23 08:01:55
By :
oneplus048
แก้ไปแก้มาได้เป็น pdf แต่ว่าไม่อ่านข้อความเลยค่ะ ขี้นแต่แบบนี้
??????????
http://wheretofromhere.com.au/print_pdf/tcpdf/examples/example_066.php
Date :
2012-05-23 08:08:34
By :
oneplus048
ตั้งกระทู้ใหม่ครับ
Date :
2012-05-23 08:57:42
By :
mr.win
อาการ Error ส่วนแรกให้ลอง print html1 ออกมาดูรายละเอียดก่อนครับ ว่าเป็นแบบไหน
ส่วน error มั่วๆ นั้นมันน่าจะเป็นค่าที่แปลงเป็น PDF แต่ติด error ไปมันเลยไม่เปิดพวก โปรแกรมดู pdf ออกมาครับ
Date :
2012-05-23 09:26:13
By :
ekaja
แก้ตรงนั้นได้แล้วค่ะ มันติด error ตัวเดียวล่ะก็ทำให้ไม่อ่านค่าจริงค่ะๆ แต่ว่าลองเปลี่ยนมาใช้ mPDF เพราะเห็นว่ามี method ที่น่าสนใจ แต่ก็ดันมาติดตรงติดต่อฐานข้อมูลค่ะ ช่วยแนะนำได้ไหมคะว่าจะทำยังไงดี โค๊ดข้างล่างแค่ลองดึงฐานข้อมูลมาแบบง่ายๆ ยังไม่ออกเลยค่ะ
Code (PHP)
<?php
@session_start();
include("mpdf.php");
$user_id = $_SESSION[user_id];
$role = $_SESSION[role];
$company_id = $_SESSION[company_id];
$user_level = $_SESSION[user_level];
if($user_id==NULL){
//echo "<meta http-equiv='refresh' content='0;URL=login.php'>";
header('location: login.php');
exit();
}
//print_r($result);
//------------------- refer -----------------
/* $start_date = $_GET["start_date"];
$end_date = $_GET["end_date"];
$factor = $_GET["factor"];
$status = $_GET["status"];
$str_search = $_GET["str_search"];
$company = $_GET["company"];
$type_action = str_replace("%20", " ", $_GET["type_action"]);
$sel_root = $_GET["sel_root"];
$sel_cause = $_GET["sel_cause"]; */
$start_date = $_POST["hide_date_start"];
$end_date = $_POST["hide_date_end"];
$company = $_POST["hide_company"];
$factor = $_POST["hide_factor"];
//$person =$_POST["hide_staff"];
// $staff=@join(",",$person);
//echo $person;
$status = $_POST["hide_status"];
$str_search = $_POST["hide_str_search"];
$type_action = str_replace("%20", " ", $_POST["hide_type_action"]);
$sel_cause = $_POST["hide_sel_root"];
//echo $sel_root;
$staff = $_POST["hide_sel_staff"];
?>
<?php
$mpdf=new mPDF('win-1252','A4','','',20,15,48,25,10,10);
$mpdf->useOnlyCoreFonts = true; // false is default
$mpdf->SetProtection(array('print'));
$mpdf->SetTitle("Acme Trading Co. - Invoice");
$mpdf->SetAuthor("Acme Trading Co.");
$mpdf->SetWatermarkText("ITA Report");
$mpdf->showWatermarkText = true;
$mpdf->watermark_font = 'DejaVuSansCondensed';
$mpdf->watermarkTextAlpha = 0.1;
$mpdf->SetDisplayMode('fullpage');
// $test_txt="PHP SHOW!!!";
//---Connect DB ---//
$host="n6-mysql5-3.smartyhost.com.au";
$username="whereol";
$password="terrace18";
$db="whereol_db";
$Conn = mysql_connect( $host,$username,$password) or die ("Error Connect to Database");
mysql_query("SET NAMES utf8",$Conn);
mysql_select_db($db) or die("เลือกฐานข้อมูลไม่ได้");
mysql_query("SET NAMES UTF8");
$sql = "SELECT * FROM company WHERE company_id='".$company_id."'";
$result = mysql_query($sql);
$show = mysql_fetch_array($result);
$sql_city = "SELECT * FROM city WHERE city_id='".$show[city]."'";
$result_city = mysql_query($sql_city);
$show_city = mysql_fetch_array($result_city);
$sql_state = "SELECT * FROM state WHERE state_id='".$show[state]."'";
$result_state = mysql_query($sql_state);
$show_state = mysql_fetch_array($result_state);
//---///
//$address=$show[address];
$html = '
<html>
<head>
<style>
body {font-family: sans-serif;
font-size: 10pt;
}
p { margin: 0pt;
}
td { vertical-align: top; }
.items td {
border-left: 0.1mm solid #000000;
border-right: 0.1mm solid #000000;
}
table thead td { background-color: #EEEEEE;
text-align: center;
border: 0.1mm solid #000000;
}
.items td.blanktotal {
background-color: #FFFFFF;
border: 0mm none #000000;
border-top: 0.1mm solid #000000;
border-right: 0.1mm solid #000000;
}
.items td.totals {
text-align: right;
border: 0.1mm solid #000000;
}
</style>
</head>
<body>
<!--mpdf
<htmlpageheader name="myheader">
<br/><table width="100%"><tr>
<td width="50%" style="color:#0000BB;"><span style="font-weight: bold; font-size: 14pt;">Acme Trading Co.</span><br />123 Anystreet<br />Your City<br />GD12 4LP<br /><span style="font-size: 15pt;">☎</span> 01777 123 567</td>
<td width="50%" style="text-align: right;">Invoice No.<br /><span style="font-weight: bold; font-size: 12pt;">0012345</span></td>
</tr></table>
</htmlpageheader>
<htmlpagefooter name="myfooter">
<div style="border-top: 1px solid #000000; font-size: 9pt; text-align: center; padding-top: 3mm; ">
Page {PAGENO} of {nb}
</div>
</htmlpagefooter>
<sethtmlpageheader name="myheader" value="on" show-this-page="1" />
<sethtmlpagefooter name="myfooter" value="on" />
mpdf-->
<div style="text-align: right">Date: '.date('jS F Y').'</div>
<table width="100%" style="font-family: serif;" cellpadding="10">
<tr>
<td width="45%" style="border: 0.1mm solid #888888;"><span style="color:#0000BB;"><span style="font-weight: bold; font-size: 14pt;">'.$show[company_name].'</span><br />
'.$show[address].'><br />
'.$show_city[city].'><br />
'.$show_state[state].' '.$show[post_code].'<br />
<span style="font-size: 15pt;">☎</span>'.$show[phone].'</span></td>
<td width="10%"> </td>
<td width="45%" style="border: 0.1mm solid #888888;">
<table align="right" width="70%" border="0" style="font-size: 10pt;">
<tr>
<td width="41%" style="text-align: right">Date:</td>
<td width="59%"> </td>
</tr>
<tr>
<td style="text-align: right">Motivating Factor:</td>
<td> </td>
</tr>
<tr>
<td style="text-align: right">Type of Action:</td>
<td> </td>
</tr>
<tr>
<td style="text-align: right">Status:</td>
<td> </td>
</tr>
<tr>
<td style="text-align: right">Word Filte:</td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
<table class="items" width="100%" style="font-size: 9pt; border-collapse: collapse;" cellpadding="8">
<thead>
<tr>
<td width="15%">REF. NO.</td>
<td width="10%">QUANTITY</td>
<td width="45%">DESCRIPTION</td>
<td width="15%">UNIT PRICE</td>
<td width="15%">AMOUNT</td>
</tr>
</thead>
<tbody>
<!-- ITEMS HERE -->
<tr>
<td align="center">MF1234567</td>
<td align="center">10</td>
<td>Large pack Hoover bags</td>
<td align="right">£2.56</td>
<td align="right">£25.60</td>
</tr>
<tr>
<td align="center">MX37801982</td>
<td align="center">1</td>
<td>Womans waterproof jacket<br />Options - Red and charcoal.</td>
<td align="right">£112.56</td>
<td align="right">£112.56</td>
</tr>
<tr>
<td align="center">MR7009298</td>
<td align="center">25</td>
<td>Steel nails; oval head; 30mm x 3mm. Packs of 1000.</td>
<td align="right">£12.26</td>
<td align="right">£325.60</td>
</tr>
<tr>
<td align="center">MF1234567</td>
<td align="center">10</td>
<td>Large pack Hoover bags</td>
<td align="right">£2.56</td>
<td align="right">£25.60</td>
</tr>
<tr>
<td align="center">MX37801982</td>
<td align="center">1</td>
<td>Womans waterproof jacket<br />Options - Red and charcoal.</td>
<td align="right">£112.56</td>
<td align="right">£112.56</td>
</tr>
<tr>
<td align="center">MR7009298</td>
<td align="center">25</td>
<td>Steel nails; oval head; 30mm x 3mm. Packs of 1000.</td>
<td align="right">£12.26</td>
<td align="right">£325.60</td>
</tr>
<tr>
<td align="center">MF1234567</td>
<td align="center">10</td>
<td>Large pack Hoover bags</td>
<td align="right">£2.56</td>
<td align="right">£25.60</td>
</tr>
<tr>
<td align="center">MX37801982</td>
<td align="center">1</td>
<td>Womans waterproof jacket<br />Options - Red and charcoal.</td>
<td align="right">£112.56</td>
<td align="right">£112.56</td>
</tr>
<tr>
<td align="center">MR7009298</td>
<td align="center">25</td>
<td>Steel nails; oval head; 30mm x 3mm. Packs of 1000.</td>
<td align="right">£12.26</td>
<td align="right">£325.60</td>
</tr>
<tr>
<td align="center">MF1234567</td>
<td align="center">10</td>
<td>Large pack Hoover bags</td>
<td align="right">£2.56</td>
<td align="right">£25.60</td>
</tr>
<tr>
<td align="center">MX37801982</td>
<td align="center">1</td>
<td>Womans waterproof jacket<br />Options - Red and charcoal.</td>
<td align="right">£112.56</td>
<td align="right">£112.56</td>
</tr>
<tr>
<td align="center">MR7009298</td>
<td align="center">25</td>
<td>Steel nails; oval head; 30mm x 3mm. Packs of 1000.</td>
<td align="right">£12.26</td>
<td align="right">£325.60</td>
</tr>
<tr>
<td align="center">MF1234567</td>
<td align="center">10</td>
<td>Large pack Hoover bags</td>
<td align="right">£2.56</td>
<td align="right">£25.60</td>
</tr>
<tr>
<td align="center">MX37801982</td>
<td align="center">1</td>
<td>Womans waterproof jacket<br />Options - Red and charcoal.</td>
<td align="right">£112.56</td>
<td align="right">£112.56</td>
</tr>
<tr>
<td align="center">MF1234567</td>
<td align="center">10</td>
<td>Large pack Hoover bags</td>
<td align="right">£2.56</td>
<td align="right">£25.60</td>
</tr>
<tr>
<td align="center">MX37801982</td>
<td align="center">1</td>
<td>Womans waterproof jacket<br />Options - Red and charcoal.</td>
<td align="right">£112.56</td>
<td align="right">£112.56</td>
</tr>
<tr>
<td align="center">MR7009298</td>
<td align="center">25</td>
<td>Steel nails; oval head; 30mm x 3mm. Packs of 1000.</td>
<td align="right">£12.26</td>
<td align="right">£325.60</td>
</tr>
<tr>
<td align="center">MR7009298</td>
<td align="center">25</td>
<td>Steel nails; oval head; 30mm x 3mm. Packs of 1000.</td>
<td align="right">£12.26</td>
<td align="right">£325.60</td>
</tr>
<tr>
<td align="center">MF1234567</td>
<td align="center">10</td>
<td>Large pack Hoover bags</td>
<td align="right">£2.56</td>
<td align="right">£25.60</td>
</tr>
<tr>
<td align="center">MX37801982</td>
<td align="center">1</td>
<td>Womans waterproof jacket<br />Options - Red and charcoal.</td>
<td align="right">£112.56</td>
<td align="right">£112.56</td>
</tr>
<tr>
<td align="center">MR7009298</td>
<td align="center">25</td>
<td>Steel nails; oval head; 30mm x 3mm. Packs of 1000.</td>
<td align="right">£12.26</td>
<td align="right">£325.60</td>
</tr>
<!-- END ITEMS HERE -->
<tr>
<td class="blanktotal" colspan="3" rowspan="6"></td>
<td class="totals">Subtotal:</td>
<td class="totals">£1825.60</td>
</tr>
<tr>
<td class="totals">Tax:</td>
<td class="totals">£18.25</td>
</tr>
<tr>
<td class="totals">Shipping:</td>
<td class="totals">£42.56</td>
</tr>
<tr>
<td class="totals"><b>TOTAL:</b></td>
<td class="totals"><b>£1882.56</b></td>
</tr>
<tr>
<td class="totals">Deposit:</td>
<td class="totals">£100.00</td>
</tr>
<tr>
<td class="totals"><b>Balance due:</b></td>
<td class="totals"><b>£1782.56</b></td>
</tr>
</tbody>
</table>
<div style="text-align: center; font-style: italic;">Payment terms: payment due in 30 days</div>
</body>
</html>
';
$mpdf->WriteHTML($html);
$mpdf->Output(); exit;
exit;
?>
https://www.thaicreate.com/php/forum/078844.html
ประวัติการแก้ไข 2012-05-23 19:06:09
Date :
2012-05-23 19:04:07
By :
oneplus048
ไม่เคยใช้ mPDF ครับ เพราะ TCPDF ตอบโจทย์ได้หมดแล้ว
Date :
2012-05-24 06:00:08
By :
ekaja
ง้านคงหยุดที่ TCPDF ล่ะมั้งเนี่ย ขอบคุณค่ะ
Date :
2012-05-24 14:25:16
By :
oneplus048
ตรง $html2 ='<tr> คุณแค่ไม่ได้เพิ่มค่า html2 อะ ต้องใช้ $html2 .= '<tr>
Date :
2013-11-16 12:11:02
By :
iCharge
Code (PHP)
// ---------ใส่ html ชุดแรก ใน $html ---------
$html ='<br><br><table border="1" cellpadding="5" bordercolor="black" style="border-collapse: collapse;">
<tr bgcolor="#eeeeff">
<th width="50">ลำดับ</th><th width="250">รายการ</th>
<th width="60">จำนวน</th><th width="80">ราคา</th><th width="80">รวม</th>
</tr>';
//------------------- end $html ------------------------
// ------------------ ส่วนที่เป็น code php ที่จะทำให้ while --------------------------
$i = 0;
$gt = 0;
while($ord = mysql_fetch_array($result)) {
$st = $ord['price'] * $ord['qty'];
$gt += $st;
$i++;
// ------ end code php ------
// -------- code html ส่วนที่สอง ที่จะให้ชุดนี้ วนลูปข้อมูลออกมา --------
$html.='<tr>
<td align=center> '.$i.' </td>
<td> '.$ord["pro_name"].' </td>
<td align=center> '.$ord["qty"].' </td>
<td align=center> '.$ord["price"].'</td>
<td align=right> '.$st.' </td>
</tr>';
}
$html.='</table>';
$pdf->writeHTML($html, true, false, true, false, '');
Date :
2015-05-08 10:43:35
By :
mee
Load balance : Server 05