Esempio n. 1
0
    case 'ITA':
        $created = 'Creato il ';
        $sender = 'Mittente:								';
        $recipient = 'Destinatario:	';
        $date = 'Data:														';
        $title = 'Titolo:												';
        $page = 'Pagina';
        break;
    default:
        $created = 'Created on ';
        $sender = 'Sender:							';
        $recipient = 'Recipient:			';
        $date = 'Date:											';
        $title = 'Title:												';
        $page = 'Page';
        break;
}
$pdf = new myPDF();
$pdf->SetFooterData($config['site_url'], $page);
$pdf->Open();
$pdf->SetAuthor($game->player['user_name']);
$pdf->SetTitle($config['site_url']);
$pdf->SetAutoPageBreak(true, 15.0);
$pdf->AddPage();
$pdf->SetFont('Arial', 'I', 8);
$pdf->MultiCell(0, 7, $created . date('d.m.y H:i', time()) . '', 0, 'R');
$pdf->SetFont('Arial', 'B', 16);
$pdf->MultiCell(0, 7, '' . $pdf->MultiCell(0, 7, $sender . $sendername['user_name']), $pdf->MultiCell(0, 7, $recipient . $game->player['user_name']), $pdf->MultiCell(0, 7, $date . $time), $pdf->MultiCell(0, 7, $title . $subject));
$pdf->Ln();
$pdf->MultiCell(0, 7, $text, 1);
$pdf->Output();