Lançado Adianti Framework 7.6!
Clique aqui para saber mais
Label e elemento na mesma celula Pessoal, como colocar uma Label e elemento na mesma célula no formulário?...
BI
Label e elemento na mesma celula  
Pessoal, como colocar uma Label e elemento na mesma célula no formulário?

Curso completo Meu Negócio Pronto
Use para si, ou transforme em um negócio: Inclui aulas e códigos-fontes
Gestor de conteúdo (SITE) + Loja Virtual (E-Commerce) + Emissor de Notas para infoprodutos


Meu negócio pronto Quero me inscrever agora!

Comentários (4)


BJ

Olá Betuel,

Alguns exemplos:

localhost/tutor/index.php?class=FormQuickView
localhost/tutor/index.php?class=ContainerTableMultiCellView


Espero ter ajudado
BI

Pois é, só que eu quero a legenda em cima dos campos, ainda não consegui, sabe como?
BJ

  1. <?php
  2.         // create the form fields
  3.         $id                             = new TEntry('id');
  4.         $nome                      = new TEntry('nome');
  5.         
  6.         // define the sizes
  7.         $id->setSize(55);
  8.         $nome->setSize(245);
  9.         // adiciona a linha para os campos do filtro
  10.         $filtro_lab = new TLabel('');
  11.         $filtro_box = new THBox;
  12.         $filtro_box->add($filtro_lab);
  13.         $filtro_box->add($filtro_lab1 = new TLabel('ID'));
  14.         $filtro_box->add($filtro_lab2 = new TLabel('Nome'));
  15.         $filtro_row $table->addRow();
  16.         $filtro_row->addCell($filtro_box)->colspan 2;
  17.         $filtro_lab->style 'width:50px';
  18.         $filtro_lab1->style 'width:55px'
  19.         $filtro_lab2->style 'width:245px'
  20.         
  21.         //$filtro_lab = new TLabel('Filtro');
  22.         $filtro_box = new THBox;
  23.         $filtro_box->add($filtro_lab);
  24.         $filtro_box->add($id);
  25.         $filtro_box->add($nome);
  26.         $filtro_row $table->addRow();
  27.         $filtro_row->addCell($filtro_box)->colspan 2;
  28.         $filtro_lab->style 'width:50px'
  29. ?>
BJ

Deu certo?