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 : sortables Objects

Tutorials

>

Tutorial Object

>

Tutorial : sortables Objects


Object-05: Tutorial der Komponente Object vom PHP FrameWork WebSite-PHP.

Tutorial : sortables Objects:



1


2


3


Zurück zum Tutorial der Komponente Object



Quelltext

Quelltext


Datei: /pages/tutorials/object/object-05.php

<?php
class Object05 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : sortables Objects";
        
        
$this->render = new WSPObject();
        
$this->render->setId("my_render_object_5");
        
$this->render->setSortable(true);
        
        
$green_square = new WSPObject("<br/><br/>""1");
        
$green_square->setId("my_object_green_5");
        
$green_square->setStyle("background-color:#5BFF4F;");
        
$green_square->setAlign(WSPObject::ALIGN_CENTER);
        
$green_square->setWidth(100);
        
$green_square->setHeight(100);
        
        
$red_square = new WSPObject("<br/><br/>""2");
        
$red_square->setId("my_object_red_5");
        
$red_square->setStyle("background-color:#FF3300;");
        
$red_square->setAlign(WSPObject::ALIGN_CENTER);
        
$red_square->setWidth(100);
        
$red_square->setHeight(100);
        
        
$blue_square = new WSPObject("<br/><br/>""3");
        
$blue_square->setId("my_object_blue_5");
        
$blue_square->setStyle("background-color:cornflowerblue;");
        
$blue_square->setAlign(WSPObject::ALIGN_CENTER);
        
$blue_square->setWidth(100);
        
$blue_square->setHeight(100);
        
        
$this->render->add($green_square$red_square$blue_square);
    }
}
?>


Zurück zum Tutorial der Komponente Object


Share

 


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