Guest User

Untitled

a guest
Sep 26th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <?php
  2.  
  3. class WebPageGeneratorForm extends Nette\Application\UI\Form {
  4.  
  5.     public function __construct(Nette\ComponentModel\IContainer $parent=NULL, $name=NULL) {
  6.         parent::__construct($parent, $name);
  7.         $this->addContainer("body");
  8.         $this["body"]->addContainer("background");
  9.         $this["body"]["background"]->currentGroup = $this->addGroup("foo", FALSE);
  10.         $this["body"]["background"]->addText("backgroundColor", "Background color:");
  11.         $this["body"]["background"]->addText("backgroundPosition", "Background position:", $backgroundPosition);
  12.         $this["body"]["background"]->addSelect("backgroundRepeat", "Background repeat:");
  13.         $this["body"]["background"]->addUpload("backgroundImage", "Background image:");
  14.        
  15.        
  16.         ...
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment