Fichier: /pages/tutorials/table/table-03.php
<?php class Table03 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Tutorial : Complex Table with style"; $this->render = new Table(); $this->render->setBorder(1)->setWidth("200px"); $row1 = new RowTable(RowTable::ALIGN_CENTER); $row1->add("1-1+2")->add("1-3")->add("1-4"); $row1->setColumnColspan(1, 2); $this->render->addRow($row1); $row2 = new RowTable(RowTable::ALIGN_CENTER, "50px"); $row2->add("2-1")->add("2-2")->add("2-3")->add("2-4"); $this->render->addRow($row2); $row3 = $this->render->addRowColumns("3-1", "3-2", "3-3", "3-4"); $row3->setColumnRowspan(3, 2); $row3->setColumnStyle(2, "background-color: red;"); $this->render->addRowColumns("4-1", "4-2", "4-4"); } } ?>
Retourner aux tutoriels du composants Table
|