function pintarFormFiltro() { include_once $this->configuracion["raiz_documento"] . $this->configuracion["clases"] . "/ciiu.class.php"; include_once $this->configuracion["raiz_documento"] . "/plugin/RUP/rup.php"; $form = new formBuilder($this->configuracion, "consultaProveedores", $this->conexion_consulta, '1', 'filtrar'); $form->setCaptcha(false); /* $form->setInput(array("name"=>"search_nit","etiqueta"=>"*Nit o cedula:","tipo"=>"text","clase"=>"required number","complemento"=>"maxlength='15'","ayuda"=>"Nit o número de documento del representante legal NO INCLUIR DIGITO DE VERIFICACION")); $form->setInput(array("name"=>"search_nomEmpresa","etiqueta"=>"*Nombre de la empresa:","tipo"=>"text","clase"=>"required","complemento"=>"size=50")); $form->setInput(array("name"=>"search_tipopersona","etiqueta"=>"Tipo de Persona","tipo"=>"radio","data"=>array("Natural"=>"N","Juridica"=>"J"))); $form->setInput(array("name"=>"search_regimen","etiqueta"=>"Regimen Contributivo","tipo"=>"radio","data"=>array("Comun"=>"C","Simplificado"=>"S"))); $form->setInput(array("name"=>"search_pyme","etiqueta"=>"Es usted PYME:","tipo"=>"radio","data"=>array("Si"=>"S","No"=>"N"))); $form->setInput(array("name"=>"search_importacion","etiqueta"=>"Exclusividad Productode importación","tipo"=>"radio","data"=>array("Si"=>"S","No"=>"N"))); $form->setInput(array("name"=>"search_registro","etiqueta"=>"Registro Mercantil:","tipo"=>"radio","data"=>array("Si"=>"S","No"=>"N"))); $form->setInput(array("name"=>"search_registroUnico","etiqueta"=>"Esta inscrito en el Registro Único<br> de proponentes?","tipo"=>"radio","data"=>array("Si"=>"S","No"=>"N"))); //,"complemento"=>array("S"=>"","N"=>"") */ $rup = new rup($this->configuracion); $rup->setIdentificador('ACTRUP', 1); $rup->setPregunta('RUP'); $form->setInput(array("name" => "compRUP", "etiqueta" => "DECRETO 1464 DE 2010 (RUP)", "input" => $rup->armar_rup())); $ciiu = new ciiu($this->configuracion); $ciiu->setIdentificador('ACTCIIU', 1); $ciiu->setPregunta('CIIU'); $ciiu->setAction($this->configuracion["host"] . $this->configuracion["site"] . $this->configuracion["clases"] . "/ciiu.class.php"); $ciiu->getNumActividades('ciiu_numactciiu'); $form->setInput(array("name" => "compCIIU", "etiqueta" => "DECRETO 734 DE 2012 (CIIU)", "input" => $ciiu->armar_ciiu())); $form->setCSS($this->configuracion['host'] . $this->configuracion['site'] . "/estilo/consulta_proveedores/form.css"); return $form->buildForm("", "filtrar"); // ACTIVIDAD ECONÓMICA SEGÚN RUP [1 o más actividades] // ACTIVIDAD ECONÓMICA SEGÚN CIIU [1 o más actividades] }
function armarForm() { $form = new formBuilder($this->configuracion, "recuperarClave", $this->conexion, '1', 'filtrar'); /*$form->setSubmitHandler(' valor=$("#search_nit").val(); $.ajax({ type: "GET", url: "'.$this->indice.'formulario='.$this->cripto->codificar_url("no_pagina=recuperarClave&jxajax=consultarnit",$this->configuracion).'&nit="+valor, success: function(respuesta){ alert(respuesta); } }); ');*/ $form->setInput(array("name" => "search_nit", "etiqueta" => "*Nit o Cédula <br/>(Sin digito de verificación)", "tipo" => "text", "clase" => "required number", "complemento" => "maxlength='15'", "ayuda" => "Nit o número de documento del representante legal NO INCLUIR DIGITO DE VERIFICACION")); $form->setCSS(""); return $form; }
function armarForm1($configuracion) { $form = new formBuilder($configuracion, $this->formulario, $this->conexion, '1', 'ftab1'); $form->setInput(array("name" => "cont1", "etiqueta" => "Información de la empresa", "tipo" => "label")); $form->setInput(array("name" => "nit", "etiqueta" => "*Nit o cedula:", "tipo" => "text", "clase" => "required number", "complemento" => "maxlength='15'", "ayuda" => "Nit o número de documento del representante legal")); $form->setInput(array("name" => "digitoVerificacion", "etiqueta" => "*DV:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='1'", "ayuda" => "Digito de Verificacion")); $form->setInput(array("name" => "nomEmpresa", "etiqueta" => "*Nombre de la empresa:", "tipo" => "text", "clase" => "required", "complemento" => "size=50")); $form->setInput(array("name" => "cont2", "etiqueta" => "Información del Contacto", "tipo" => "label")); $form->setInput(array("name" => "municipio", "etiqueta" => "*Ciudad", "tipo" => "text", "clase" => "required", "complemento" => "maxlength='30'")); $form->setInput(array("name" => "direccion", "etiqueta" => "*Dirección:", "tipo" => "text", "clase" => "required", "complemento" => "size=50")); $form->setInput(array("name" => "correo", "etiqueta" => "*Correo:", "tipo" => "text", "clase" => "required email", "complemento" => "maxlength='60'")); $form->setInput(array("name" => "web", "etiqueta" => "Sitio Web:", "tipo" => "text", "complemento" => "maxlength='60'")); $form->setInput(array("name" => "telefono1", "etiqueta" => "*Teléfono 1:", "tipo" => "text", "clase" => "required number", "complemento" => "maxlength='15'")); $form->setInput(array("name" => "ext1", "etiqueta" => "Extensión:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("name" => "telefono2", "etiqueta" => "Teléfono 2:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("name" => "ext2", "etiqueta" => "Extensión:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("name" => "movil", "etiqueta" => "Movil:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("name" => "fax", "etiqueta" => "Fax:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("name" => "nomAsesor", "etiqueta" => "Asesor Comercial", "tipo" => "text", "complemento" => "maxlength='50'")); $form->setInput(array("name" => "telAsesor", "etiqueta" => "Teléfono del Asesor:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("name" => "cont3", "etiqueta" => "Información del Representante Legal", "tipo" => "label")); $form->setInput(array("name" => "tipdocRep", "etiqueta" => "*Tipo de documento:", "tipo" => "radio", "data" => array("CC" => "CC", "CE" => "CE", "OT" => "OT"), "ayuda" => "CC: Cédula de ciudadania CE: Cédula de Extranería OT: Otro")); $form->setInput(array("name" => "numdocRep", "etiqueta" => "*Documento:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("name" => "ape1Rep", "etiqueta" => "*Primer Apellido:", "tipo" => "text", "clase" => "required", "complemento" => "maxlength='30'")); $form->setInput(array("name" => "ape2Rep", "etiqueta" => "Segundo Apellido:", "tipo" => "text", "complemento" => "maxlength='30'")); $form->setInput(array("name" => "nom1Rep", "etiqueta" => "*Primer Nombre:", "tipo" => "text", "clase" => "required", "complemento" => "maxlength='30'")); $form->setInput(array("name" => "nom2Rep", "etiqueta" => "Segundo Nombre:", "tipo" => "text", "complemento" => "maxlength='30'")); $form->setInput(array("name" => "cont4", "etiqueta" => "Información Adicional", "tipo" => "label")); $form->setInput(array("name" => "tipopersona", "etiqueta" => "Tipo de Persona", "tipo" => "radio", "data" => array("Natural" => "N", "Juridica" => "J"))); $form->setInput(array("name" => "regimen", "etiqueta" => "Regimen Contributivo", "tipo" => "radio", "data" => array("Comun" => "C", "Simplificado" => "S"))); $form->setInput(array("name" => "importacion", "etiqueta" => "Exclusividad Productode importación", "tipo" => "radio", "data" => array("Si" => "S", "No" => "N"))); $form->setInput(array("name" => "pyme", "etiqueta" => "Es usted PYME:", "tipo" => "radio", "data" => array("Si" => "S", "No" => "N"))); $form->setInput(array("name" => "registro", "etiqueta" => "Registro Mercantil:", "tipo" => "radio", "data" => array("Si" => "S", "No" => "N"))); $form->setInput(array("name" => "form1", "value" => "1", "tipo" => "data")); $form->setInput(array("name" => "tab", "value" => "tab1", "tipo" => "hidden")); $form->setCSS($configuracion['host'] . $configuracion['site'] . "/bloque/registro_proveedor/form.css"); return $form; }
function armarForm($configuracion) { $form = new formBuilder($configuracion, $this->formulario, $this->conexion, '1', 'ftab1'); $form->setSubmitHandler(' if($("#filerup").val()==""){ if($("#check_filerup").val()==""){ alert("Porfavor adjunte el PDF del registro unico de proponentes "); return false; } } if($("#text_captcha").val()==""){ alert("Digite el codigo de verificacion"); return false; } document.submit(); '); $form->setTabs(array("tab1" => "información Básica", "tab2" => "Actividad Comercial", "tab3" => "Descripción Servicio o Producto")); $form->setInput(array("tab" => "tab1", "name" => "cont1", "etiqueta" => "Información de la empresa", "tipo" => "label")); $form->setInput(array("tab" => "tab1", "name" => "nit", "etiqueta" => "*Nit o cedula:", "tipo" => "text", "clase" => "required number", "complemento" => "maxlength='10'", "ayuda" => "Nit o número de documento del representante legal")); $form->setInput(array("tab" => "tab1", "name" => "digitoVerificacion", "etiqueta" => "*DV:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='1'", "ayuda" => "Digito de Verificacion")); $form->setInput(array("tab" => "tab1", "name" => "nomEmpresa", "etiqueta" => "*Nombre de la empresa:", "tipo" => "text", "clase" => "required", "complemento" => "size=50")); $form->setInput(array("tab" => "tab1", "name" => "cont2", "etiqueta" => "Información del Contacto", "tipo" => "label")); $form->setInput(array("tab" => "tab1", "name" => "municipio", "etiqueta" => "*Ciudad", "tipo" => "text", "clase" => "required", "complemento" => "maxlength='30'")); $form->setInput(array("tab" => "tab1", "name" => "direccion", "etiqueta" => "*Dirección:", "tipo" => "text", "clase" => "required", "complemento" => "size=50")); $form->setInput(array("tab" => "tab1", "name" => "correo", "etiqueta" => "*Correo:", "tipo" => "text", "clase" => "required email", "complemento" => "maxlength='60'")); $form->setInput(array("tab" => "tab1", "name" => "web", "etiqueta" => "Sitio Web:", "tipo" => "text", "complemento" => "maxlength='60'")); $form->setInput(array("tab" => "tab1", "name" => "telefono1", "etiqueta" => "*Teléfono 1:", "tipo" => "text", "clase" => "required number", "complemento" => "maxlength='15'")); $form->setInput(array("tab" => "tab1", "name" => "ext1", "etiqueta" => "Extensión (tel1):", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("tab" => "tab1", "name" => "telefono2", "etiqueta" => "Teléfono 2:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("tab" => "tab1", "name" => "ext2", "etiqueta" => "Extensión (tel2):", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("tab" => "tab1", "name" => "movil", "etiqueta" => "Movil:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("tab" => "tab1", "name" => "fax", "etiqueta" => "Fax:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("tab" => "tab1", "name" => "nomAsesor", "etiqueta" => "Asesor Comercial", "tipo" => "text", "complemento" => "maxlength='50'")); $form->setInput(array("tab" => "tab1", "name" => "telAsesor", "etiqueta" => "Teléfono del Asesor:", "tipo" => "text", "clase" => "number", "complemento" => "maxlength='15'")); $form->setInput(array("tab" => "tab1", "name" => "cont3", "etiqueta" => "Información del Representante Legal", "tipo" => "label")); $form->setInput(array("tab" => "tab1", "name" => "tipdocRep", "etiqueta" => "*Tipo de documento:", "tipo" => "radio", "data" => array("CC" => "CC", "CE" => "CE", "OT" => "OT"), "ayuda" => "CC: Cédula de ciudadania CE: Cédula de Extranería OT: Otro")); $form->setInput(array("tab" => "tab1", "name" => "numdocRep", "etiqueta" => "*Documento:", "tipo" => "text", "clase" => "required number", "complemento" => "maxlength='15'")); $form->setInput(array("tab" => "tab1", "name" => "ape1Rep", "etiqueta" => "*Primer Apellido:", "tipo" => "text", "clase" => "required", "complemento" => "maxlength='30'")); $form->setInput(array("tab" => "tab1", "name" => "ape2Rep", "etiqueta" => "Segundo Apellido:", "tipo" => "text", "complemento" => "maxlength='30'")); $form->setInput(array("tab" => "tab1", "name" => "nom1Rep", "etiqueta" => "*Primer Nombre:", "tipo" => "text", "clase" => "required", "complemento" => "maxlength='30'")); $form->setInput(array("tab" => "tab1", "name" => "nom2Rep", "etiqueta" => "Segundo Nombre:", "tipo" => "text", "complemento" => "maxlength='30'")); $form->setInput(array("tab" => "tab1", "name" => "cont4", "etiqueta" => "Información Adicional", "tipo" => "label")); $form->setInput(array("tab" => "tab1", "name" => "tipopersona", "etiqueta" => "Tipo de Persona", "tipo" => "radio", "data" => array("Natural" => "N", "Juridica" => "J"), "ayuda" => "N: Natural J: Juridica")); $form->setInput(array("tab" => "tab1", "name" => "regimen", "etiqueta" => "Regimen Contributivo", "tipo" => "radio", "data" => array("Comun" => "C", "Simplificado" => "S"), "ayuda" => "C: Comun S: Simplificado")); $form->setInput(array("tab" => "tab1", "name" => "importacion", "etiqueta" => "Exclusividad Producto de importación", "tipo" => "radio", "data" => array("Si" => "S", "No" => "N"), "ayuda" => "S: Si N: No")); $form->setInput(array("tab" => "tab1", "name" => "pyme", "etiqueta" => "Es usted PYME:", "tipo" => "radio", "data" => array("Si" => "S", "No" => "N"), "ayuda" => "S: Si N: No")); $form->setInput(array("tab" => "tab1", "name" => "registro", "etiqueta" => "Registro Mercantil:", "tipo" => "radio", "data" => array("Si" => "S", "No" => "N"), "ayuda" => "S: Si N: No")); $form->setInput(array("tab" => "tab1", "name" => "form1", "value" => "1", "tipo" => "data")); $form->setInput(array("tab" => "tab1", "name" => "identificador", "value" => $this->tiempo, "tipo" => "data")); $form->setInput(array("tab" => "tab1", "name" => "tab", "value" => "tab1", "tipo" => "hidden")); $form->setCSS($configuracion['host'] . $configuracion['site'] . "/bloque/registro_proveedor/form.css"); // tab2 include_once $configuracion["raiz_documento"] . $configuracion["clases"] . "/ciiu.class.php"; include_once $configuracion["raiz_documento"] . "/plugin/RUP/rup.php"; $form->setInput(array("tab" => "tab2", "name" => "registroUnico", "etiqueta" => "Esta inscrito en el Registro Único<br> de proponentes?", "tipo" => "radio", "data" => array("Si" => "S", "No" => "N"), "ayuda" => "S: Si N: No")); //,"complemento"=>array("S"=>"","N"=>"") $rup = new rup($configuracion); $rup->setIdentificador('ACTRUP', 1); $rup->setPregunta('RUP'); $form->setInput(array("tab" => "tab2", "name" => "compRUP", "etiqueta" => "DECRETO 1464 DE 2010 (RUP)", "input" => $rup->armar_rup())); $ciiu = new ciiu($configuracion); $ciiu->setIdentificador('ACTCIIU', 1); //$ciiu->usuario=$this->tiempo; $ciiu->setPregunta('CIIU'); $ciiu->setAction($configuracion["host"] . $configuracion["site"] . $configuracion["clases"] . "/ciiu.class.php"); $ciiu->getNumActividades('ciiu_numactciiu'); $form->setInput(array("tab" => "tab2", "name" => "compCIIU", "etiqueta" => "DECRETO 734 DE 2012 (CIIU)", "input" => $ciiu->armar_ciiu())); //tab3 $form->setInput(array("tab" => "tab3", "name" => "descripcion", "etiqueta" => "* Realice una descripción detallada del producto<br/> (max. 200 caráteres)", "tipo" => "textarea", "clase" => "required", "complemento" => "maxlength='200' cols='94' rows='8'")); $form->setInput(array("tab" => "tab3", "name" => "filerup", "etiqueta" => "* Adjuntar PDF Registro Único de Proponentes:", "clase" => "", "tipo" => "file")); return $form; }