WebSite-PHP Framework PHP
Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
Télécharger le Framework WebSite-PHP maintenant
 


Loading
 


Tutorial : sortables Objects

Tutoriels

>

Tutoriel Object

>

Tutorial : sortables Objects


Object-05: Tutoriel du composants Object du FrameWork PHP WebSite-PHP.

Tutorial : sortables Objects:



1


2


3


Retourner aux tutoriels du composants Object



Code source

Code source


Fichier: /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);
    }
}
?>


Retourner aux tutoriels du composants Object


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker