source: extensions/GrumPluginClasses/classes/External/odsPhpGenerator/examples/Unicode.php @ 17735

Last change on this file since 17735 was 17735, checked in by grum, 12 years ago

version 3.5.4 - fix minor bug & add new functions to framework

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1<?php
2// All file is writen in UTF-8
3
4 // Load library
5require_once('../ods.php');
6
7// Create Ods object
8$ods  = new ods();
9
10// Create table named 'utf8'
11$table = new odsTable('utf8');
12
13// Create french row
14$row   = new odsTableRow();
15$row->addCell( new odsTableCellString("French") );
16$row->addCell( new odsTableCellString("àôïîéèç...") );
17$table->addRow($row);
18
19// Create greek row
20$row   = new odsTableRow();
21$row->addCell( new odsTableCellString("Greek") );
22$row->addCell( new odsTableCellString("αβγδεζϕΩ...") );
23$table->addRow($row);
24
25// Create hebrew row
26$row   = new odsTableRow();
27$row->addCell( new odsTableCellString("Hebrew") );
28$row->addCell( new odsTableCellString("ש֓חרםא...") );
29$table->addRow($row);
30
31// Create arab row
32$row   = new odsTableRow();
33$row->addCell( new odsTableCellString("Arab") );
34$row->addCell( new odsTableCellString("ڤڦڪصى...") );
35$table->addRow($row);
36
37$row   = new odsTableRow();
38$row->addCell( new odsTableCellString("...") );
39$row->addCell( new odsTableCellString("...") );
40$table->addRow($row);
41
42// Attach talble to ods
43$ods->addTable($table);
44
45// Download the file
46$ods->downloadOdsFile("Unicode.ods"); 
47
48
49?>
Note: See TracBrowser for help on using the repository browser.