 |
ขอปรึกษาเรื่องหัว column ของตารางที่เขียนจาก FPDF คือว่าทำยังไงก็ไม่ขึ้นภาษาไทยอะคะ รบกวนด้วยคะ |
|
 |
|
|
 |
 |
|
[font=Verdana]example1_def.php[/font]
<?php
/*****************************************************
TABLE DEFAULT DEFINES
*****************************************************/
$table_default_header_type = array(
'WIDTH' => 4, //cell width
'T_COLOR' => array(255,255,240), //text color
'T_SIZE' => 14, //font size
'T_FONT' => 'angsa', //font family
'T_ALIGN' => 'C', //horizontal alignment, possible values: LRC (left, right, center)
'V_ALIGN' => 'M', //vertical alignment, possible values: TMB(top, middle, bottom)
'T_TYPE' => '', //font type
'LN_SIZE' => 4, //line size for one row
'BG_COLOR' => array(205 ,92 ,92 ), //background color
'BRD_COLOR' => array(245 ,222, 179 ), //border color
'BRD_SIZE' => 0.3, //border size
'BRD_TYPE' => '1', //border type, can be: 0, 1 or a combination of: "LRTB"
'TEXT' => '', //text
);
$table_default_data_type = array(
'T_COLOR' => array(0,0,0), //text color
'T_SIZE' => 12, //font size
'T_FONT' => 'angsa', //font family
'T_ALIGN' => 'C', //horizontal alignment, possible values: LRC (left, right, center)
'V_ALIGN' => 'M', //vertical alignment, possible values: TMB(top, middle, bottom)
'T_TYPE' => '', //font type
'LN_SIZE' => 4, //line size for one row
'BG_COLOR' => array(255,255,255), //background color
'BRD_COLOR' => array(245 ,222, 179 ), //border color
'BRD_SIZE' => 0.3, //border size
'BRD_TYPE' => '1', //border type, can be: 0, 1 or a combination of: "LRTB"
);
$table_default_table_type = array(
'TB_ALIGN' => 'L', //table align on page
'L_MARGIN' => 0, //space to the left margin
'BRD_COLOR' => array(245 ,222, 179), //border color
'BRD_SIZE' => '0.3', //border size
);
/*****************************************************
TABLE DEFAULT DEFINES --- END
*****************************************************/
?>
ตรงนี้ก็แก้เป็น angsa แล้วนะคะไม่ทราบว่าต้องไปแก้ตรงไหนอีกรึเปล่า?
Tag : - - - -
|
|
 |
 |
 |
 |
Date :
2010-01-07 15:23:16 |
By :
ชุดนอนสีส้ม |
View :
1486 |
Reply :
5 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้าเพื่อนๆพี่ๆน้องๆคนไหน พอจะมีเวลารบกวนทิ้ง e-mail ไว้ให้หน่อยนะคะ
อยากปรึกษาเรื่อง php มาก ขอบคุณเป็นอย่างยิ่งคะ
|
 |
 |
 |
 |
Date :
2010-01-07 15:25:32 |
By :
ชุดนอนสีส้ม |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เว็บนั้นอธิบายครอบคลุมถึง
$pdf->MultiCell( 0 , 0 , iconv( 'UTF-8','cp874' , 'อังสนา ตัวธรรมดา ขนาด 12' ) ); อะคะ
แต่ว่าที่ต้องการทราบ คือ
$aSimpleHeader = array();
$aSimpleHeader[0] = $table_default_header_type;
$aSimpleHeader[0]['TEXT'] = 'ลำดับที่' ;
$aSimpleHeader[0]['WIDTH'] = 10;
$aSimpleHeader[1] = $table_default_header_type;
$aSimpleHeader[1]['TEXT'] = "รหัสนักศึกษา";
$aSimpleHeader[1]['WIDTH'] = 20;
$aSimpleHeader[2] = $table_default_header_type;
$aSimpleHeader[2]['TEXT'] = "ชื่อนักศึกษา";
$aSimpleHeader[2]['WIDTH'] = 40;
ถ้าเป็นแบบนี้จะต้องทำอย่างไรคะ รบกวนอีกครั้งนะคะ
|
 |
 |
 |
 |
Date :
2010-01-07 16:03:18 |
By :
ชุดนอนสีส้ม |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณเป็นอย่างสูงเลยคะ
|
 |
 |
 |
 |
Date :
2010-01-07 19:54:43 |
By :
ชุดนอนสีส้ม |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|