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ón de Usuario</h2>',
));
// Secciones
$section = new JFormSection($empresa->id.'General', array(
'title' => 'Datos Generales',
));
$section2 = new JFormSection($empresa->id.'Certificado', array(
'title' => 'Configuració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ñ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();