WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Tutorial : Complex Table 
with style

Tutorials

>

Tutorial Table

>

Tutorial : Complex Table with style


Table-03: Tutorial der Komponente Table vom PHP FrameWork WebSite-PHP.

Tutorial : Complex Table with style:

1-1+2
1-3
1-4
2-1
2-2
2-3
2-4
3-1 3-2 3-3 3-4
4-1 4-2 4-4


Zurück zum Tutorial der Komponente Table



Quelltext

Quelltext


Datei: /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(12);
        
$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(32);
        
$row3->setColumnStyle(2"background-color: red;");
        
        
$this->render->addRowColumns("4-1""4-2""4-4");
    }
}
?>


Zurück zum Tutorial der Komponente Table


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker