| 
<?php$campos = 'cli_id,cli_nome,cli_end,cli_cpfcnpj,cli_tel,cli_cel,cli_email,cli_nasc';
 $campos_unset = 'cli_id';
 $c_cliente = FORM::novo($campos, $campos_unset, $smarty);
 $config = array (
 'tabela' => 'cliente',
 'tabela_id' => 'cli_id',
 'get_post' => 'post',
 'action' => 'id=formulario_cliente',
 'status' => 'QUERY',
 //    'nome_acao' => 'ttt',
 'index_padrao' => 'index.php',
 'template_index' => 'cliente_index.htm',
 'template_form' => 'cliente_cad_form.htm',
 //    'template_confirma' => 'cliente_cad_form_confirma.htm',
 //    'nome_config_smarty' => 'cliente',
 //    'arq_config' => 'conf.conf'
 );
 $c_cliente->setConfig($config);
 
 $option = array(
 'tipo_form' => FORM_PADRAO,
 'tipo_formatacao' => FORMATA_UPPER,
 'tipo_validacao' => null,
 'tipo_validacao_texto' => 'Por Favor Preencher o Campo Nome',
 'valor_padrao' => '',
 'campo_preenchido' => true
 );
 $c_cliente->setOption('cli_nome',$option);
 $option = array(
 'tipo_form' => FORM_PADRAO,
 'tipo_formatacao' => FORMATA_UPPER,
 'tipo_validacao_texto' => 'Por Favor Preencher o Campo Endereço',
 'campo_preenchido' => true
 );
 $c_cliente->setOption('cli_end',$option);
 $option = array(
 'tipo_form' => FORM_PADRAO,
 'tipo_validacao' => VALIDA_CPFCNPJ,
 'tipo_validacao_texto' => 'Cpf ou Cnpj Incorretos EX:00000000000',
 'valor_padrao' => null,
 'campo_preenchido' => false
 );
 $c_cliente->setOption('cli_cpfcnpj',$option);
 $option = array(
 'tipo_form' => FORM_PADRAO,
 'tipo_validacao' => VALIDA_EMAIL,
 'tipo_validacao_texto' => 'Email Incoreto [email protected]',
 'valor_padrao' => null,
 'campo_preenchido' => false
 );
 $c_cliente->setOption('cli_email',$option);
 
 $option = array(
 'tipo_form' => FORM_PADRAO,
 'tipo_validacao' => 'ValidaData',
 'tipo_validacao_texto' => 'Data Incoreta Ex: 12/12/2005',
 'tipo_formatacao' => FORMATA_DATA,
 'valor_padrao' => '',
 'tipo_campo' => TIPO_DATA,
 'campo_preenchido' => false
 );
 //unset($_SESSION[_SEG_]);
 $c_cliente->setOption('cli_nasc',$option);
 
 
 ?>
 |