リファレンス - http://i.stack.imgur.com/oAIbz.pngtcpdfに一意の値を表示する方法は?
foreach($data as $k=>$v){
//print_r($v);
exit;
if ($yr != $v['year']) {
$pdf->SetFont('helvetica', 'B',9);
$pdf->Cell(25,4, 'Payment Year :',0,0,'L', false,'',0,false,'T','M');
$pdf->SetFont('helvetica', '',9);
$pdf->Cell(10,4, $v['year'],0,1,'L', false,'',0,false,'T','M');
//header
$pdf->SetFont('helvetica', 'B',9);
$pdf->Cell(67,4, 'Student',1,0,'C', false,'',0,false,'T','M');
$pdf->Cell(30,4, $v['year'].' Class',1,0,'C', false,'',0,false,'T','M');
$pdf->Cell(47,4, 'Fee',1,0,'C', false,'',0,false,'T','M');
$pdf->Cell(20,4, 'Amount',1,0,'C', false,'',0,false,'T','M');
$pdf->Cell(20,4, 'Total',1,1,'C', false,'',0,false,'T','M');
$pdf->SetFont('helvetica', '',9);
//$total1 = $total1 + $v['amount'];
$total1 = 0;
$yr = $v['year'];
}
$pdf->MultiCell(67, 4, $v['student_name'], 1, 'L', 0, 0, '', '', true, 0, false, true, 8, 'T', false);
$pdf->MultiCell(30, 4, $v['class_english_name'], 1, 'L', 0, 0, '', '', true, 0, false, true, 8, 'T', false);
$pdf->MultiCell(47, 4, $v['fee_group_desc'], 1, 'L', 0, 0, '', '', true, 0, false, true, 8, 'T', false);
$pdf->MultiCell(20, 4, '*'.number_format($v['amount'],2), 1, 'C', 0, 0, '', '', true, 0, false, true, 8, 'T', false);
$total1 = $total1 + $v['amount'];
$total2 = $total2 + $v['amount'];
$pdf->MultiCell(20, 4, number_format($total1,2), 1, 'C', 0, 1, '', '', true, 0, false, true, 8, 'T', false);
`
に、私たちは、私はそれが一度に見えるようにする方法を知っていること、私は列に同じ生徒の名前を持っているあなたの件名行 – nogad
よりも説明の多くを必要としますか? –
すべてのアイデア?データから私は2つの料金で学生名を持っていますが、私はtcpdfで一度表示したいと思います。 –