Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/03/2012, 11:14
Avatar de charly_vc
charly_vc
 
Fecha de Ingreso: enero-2012
Ubicación: GDL
Mensajes: 31
Antigüedad: 12 años, 3 meses
Puntos: 1
Framework JFormer - Generador de Formularios

Muy buen dia!!

Tengo una duda, estoy aplicando el generador de Formularios JFormer, mi duda es la siguiente: Como le puedo hacer para que los elementos input o cualquier objeto html se visualicen en columnas o digamos en un mismo nivel, es decir que no queden los objetos debajo de otro si no en la misma posicion o renglon. les dejo mi codigo de Jformer.

Código PHP:
// Form
    
$empresa = new JFormer('FormEmpresa', array(
        
'submitButtonText' => 'Guardar',
        
'style' => 'width: 650px;',
    ));

    
// Pagina
    
$page = new JFormPage($empresa->id.'Page', array(
        
'title' => '<h2>Configuraci&oacute;n de Usuario</h2>',
    ));

    
// Secciones
    
$section = new JFormSection($empresa->id.'General', array(
        
'title' => 'Datos Generales',
    ));
    
    
$section2 = new JFormSection($empresa->id.'Certificado', array(
        
'title' => 'Configuraci&oacute;n de Certificado',
    ));
    
    
$section3 = new JFormSection($empresa->id.'Licencia', array(
        
'title' => 'Licencia',
    ));

    
// Seccion Datos Generales
    
$section->addJFormComponentArray(array(
    
        new 
JFormComponentHidden('id''1'),
        new 
JFormComponentHidden('idCliente''1'),
        
        new 
JFormComponentSingleLineText('nombre''Nombre :', array(
            
'width' => 'longest',
            
'validationOptions' => array('required'),
        )),
        new 
JFormComponentSingleLineText('rfc''RFC :', array(
            
'width' => 'longest',
            
'validationOptions' => array('required'),
        )),
    ));
    
    
// Seccion Config Certificado
    
$section2->addJFormComponentArray(array(
        
        new 
JFormComponentFile('cer''Certificado :', array(
            
'validationOptions' => array('extension' => 'cer'),
        )),
        new 
JFormComponentFile('key_cer''Key :', array(
            
'validationOptions' => array('extension' => 'cer'),
        )),
        new 
JFormComponentSingleLineText('pass''Contrase&ntilde;a :', array(
            
'width' => 'longest',
            
'type' => 'password',
            
'validationOptions' => array('required'),
        )),
        new 
JFormComponentSingleLineText('nombre''Nombre :', array(
            
'width' => 'longest',
            
'validationOptions' => array('required'),
        )),
    ));
    
    
//Seccion Licencia
    
$section3->addJFormComponentArray(array(
        
        new 
JFormComponentSingleLineText('licenciaRFC''Licencia :', array(
            
'width' => 'longest',
            
'validationOptions' => array('required'),
        )),
    ));

    
    
// Add the section to the page
    
$page->addJFormSection($section);
    
$page->addJFormSection($section2);
    
$page->addJFormSection($section3);

    
// Add the page to the form
    
$empresa->addJFormPage($page);
    
$empresa->processRequest(); 
Lo que quiero lograr es que el input Nombre y el input RFC queden en el mismo nivel y no uno debajo de otro.