odsPhpGenerator

EXAMPLES : Cell type

Cell type

2010-01-22 : Laurent VUIBERT
List of different type

// Load library
require_once('ods/ods.php');

// Create Ods object
$ods  = new ods();

// Create table named 'Cells'
$table = new odsTable('Cells');

// Empty cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Empty cell") );
$row->addCell( new odsTableCellEmpty() );
$table->addRow($row);

// String cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("String cell") );
$row->addCell( new odsTableCellString("String in my cell") );
$table->addRow($row);

// Email cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Email cell") );
$row->addCell( new odsTableCellStringEmail("lapinator@gmx.fr") );
$table->addRow($row);

// Url cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Url cell") );
$row->addCell( new odsTableCellStringUrl("http://odsphpgenerator.lapinator.net") );
$table->addRow($row);

// Foat cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Float cell") );
$row->addCell( new odsTableCellFloat(5.216) );
$table->addRow($row);

// Date cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Date cell") );
$row->addCell( new odsTableCellString("US :") );
$row->addCell( new odsTableCellDate(date('Y-m-d'), 'MMDDYYYY') );
$row->addCell( new odsTableCellString("FR :") );
$row->addCell( new odsTableCellDate(date('Y-m-d'), 'DDMMYYYY') );
$row->addCell( new odsTableCellString("Or :") );
$row->addCell( new odsTableCellDate(date('Y-m-d'), 'MMMDYYYY') );
$table->addRow($row);

// Time cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Time cell") );
$row->addCell( new odsTableCellString("US :") );
$row->addCell( new odsTableCellTime('PT20H30M50S''HHMMSSAMPM') );
$row->addCell( new odsTableCellString("FR :") );
$row->addCell( new odsTableCellTime('PT20H30M50S''HHMMSS') );
$table->addRow($row);

// DateTime cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Time cell") );
$row->addCell( new odsTableCellString("US :") );
$row->addCell( new odsTableCellDateTime(date('Y-m-d').'T20:30:50''MMDDYYHHMMSSAMPM') );
$row->addCell( new odsTableCellString("FR :") );
$row->addCell( new odsTableCellDateTime(date('Y-m-d').'T20:30:50''DDMMYYHHMMSS') );
$table->addRow($row);

// EUR cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Euro cell") );
$row->addCell( new odsTableCellCurrency(rand(0,100), 'EUR') );
$row->addCell( new odsTableCellCurrency(-rand(0,100), 'EUR') );
$table->addRow($row);

// USD cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Dolars cell") );
$row->addCell( new odsTableCellCurrency(rand(0,100), 'USD') );
$row->addCell( new odsTableCellCurrency(-rand(0,100), 'USD') );
$table->addRow($row);

// GBP cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Pounds cell") );
$row->addCell( new odsTableCellCurrency(rand(0,100), 'GBP') );
$row->addCell( new odsTableCellCurrency(-rand(0,100), 'GBP') );
$table->addRow($row);

// Image cell
$row   = new odsTableRow();
$row->addCell( new odsTableCellString("Image cell") );
$row->addCell( new odsTableCellImage("imgs/logo2.png") );
$table->addRow($row);

$ods->addTable($table);
// Download the file
$ods->downloadOdsFile("CellType.ods");

Re : Cell type

2010-12-01 : ft.me
how i insert value variable from database to odsTableCellString? example. $row->addCell( new odsTableCellString($title) );
it has error is ???? or sub-document content.xml at 2,3137(row,col) <value variable is thai language>
thanks

buy viagra

2019-03-01 : buy_viagra

cheap cialis

2019-03-01 : cheap_cialis

viagra cheap

2019-03-01 : viagra_cheap

viagra online

2019-03-03 : viagra_online

online viagra

2019-03-03 : online_viagra

viagra

2019-03-04 : viagra

online viagra

2019-03-05 : online_viagra

buy cialis

2019-03-06 : buy_cialis

viagra

2019-03-06 : viagra

viagra online

2019-03-07 : viagra_online

cialis generic

2019-03-07 : cialis_generic

buy cialis online

2019-03-07 : cialis

viagra coupon

2019-03-08 : viagra_coupon

viagra cheap

2019-03-08 : viagra_cheap

cheap viagra

2019-03-08 : cheap_viagra

cialis generic

2019-03-08 : cialis_generic

viagra online

2019-03-09 : viagra_online

buy canadian cialis

2019-03-09 : canadian

buy viagra

2019-03-10 : buy_viagra

cialis online

2019-03-11 : cialis_online

buy generic viagra

2019-03-11 : generic

buy cialis

2019-03-12 : buy_cialis

cheap cialis

2019-03-13 : cheap_cialis

viagra generic

2019-03-14 : viagra_generic

viagra

2019-03-14 : viagra

viagra

2019-03-15 : viagra

buy cialis

2019-03-15 : buy_cialis

cheap viagra

2019-03-15 : cheap_viagra

buy cialis

2019-03-16 : buy_cialis

generic cialis

2019-03-17 : generic_cialis

cheap viagra online

2019-03-17 : viagra

buy cialis

2019-03-19 : buy_cialis

generic cialis

2019-03-19 : generic_cialis

cialis online

2019-03-20 : cialis_online

canadian cialis

2019-03-20 : canadian_cialis

viagra online

2019-03-22 : viagra_online

cheap viagra

2019-03-23 : cheap_viagra

viagra online

2019-03-23 : viagra_online

buy viagra

2019-03-23 : buy_viagra

generic viagra

2019-03-24 : generic_viagra

generic viagra online

2019-03-24 : viagra

viagra

2019-03-25 : viagra

cialis cheap

2019-03-26 : cialis_cheap

viagra professional

2019-03-26 : viagra_professional

canadian cialis

2019-03-27 : canadian_cialis

canadian viagra

2019-03-27 : canadian_viagra

cheap viagra

2019-03-30 : cheap_viagra

viagra cheap

2019-03-31 : viagra_cheap

buy viagra online

2019-04-02 : viagra

buy viagra

2019-04-02 : buy_viagra

buy viagra online

2019-04-02 : viagra

online viagra

2019-04-04 : online_viagra

buy cialis

2019-04-04 : buy_cialis

cheap cialis

2019-04-05 : cheap_cialis

generic cialis

2019-04-06 : generic_cialis

generic cialis

2019-04-07 : generic_cialis

cialis generic

2019-04-07 : cialis_generic

online viagra

2019-04-08 : online_viagra

viagra india

2019-04-09 : viagra_india

cialis

2019-04-09 : cialis

cialis cheap

2019-04-10 : cialis_cheap

online viagra

2019-04-11 : online_viagra

viagra super active plus

2019-04-11 : super

viagra generic

2019-04-12 : viagra_generic

generic cialis online

2019-04-12 : cialis

cialis online

2019-04-13 : cialis_online

cheap cialis

2019-04-14 : cheap_cialis

viagra cheap

2019-04-15 : viagra_cheap

buy viagra

2019-04-15 : buy_viagra

cialis online

2019-04-16 : cialis_online

buy cialis online

2019-04-16 : cialis

viagra

2019-04-17 : viagra

buy viagra

2019-04-18 : buy_viagra

cheap viagra

2019-04-19 : cheap_viagra

cheap cialis

2019-04-19 : cheap_cialis

buy generic viagra

2019-04-20 : generic