Main Page 
[What is it?] [SourceForge Project Page] [License] [Screenshots] [TODO] [Install HOWTO] [Download] [Mail Lists]

WildWeb Screenshots

First, this is the PHP code responsible for the following screenshots, showing the template system and smartforms in action:

<?
include_once('wildweb/wildweb_init.php');
include_once(
'wildweb/smartform.php');

function 
ww_content() {
    global 
$sql,$form;
    
$asterisco='<font size=+2 color=red><strong>*</strong></font>';
    
$form sfOpenForm($form,'form','Teste de Formulário',
                
"(campos com $asterisco devem ser obrigatoriamente preenchidos)",'','POST');
    
$form sfText($form,'Email','email','eu@eumesmo.com.br',30,30,$asterisco);
    
$form sfValidNotEmpty($form,'preenchimento obrigatório');
    
$form sfText($form,'Campo 2','campo2','Valor inicial 2');
    
$form sfText($form,'Campo texto 3','campo3','Valor inicial 3');
    
$form sfButtons($form,array('EXEC|Submeter','EXEC|Deletar','RESET|Restaura conteúdo original'));
    
$form sfCloseForm($form,'nota de rodapé');
    
    
$form sf_exec($form);
    
    if (
sf_Valid($form)) {
        if (
$form['EXEC']=='Submeter') {
            echo 
'Formulário submetido. Variáveis:<BR>';
            while ( list(
$index,$value) = each($form)) {
                echo 
$index ' == '.$value '<BR>';
            }
        } elseif (
$form['EXEC']=='Deletar') {
            echo 
'Formulário deletado. Variáveis:<BR>';
            while ( list(
$index,$value) = each($form)) {
                echo 
$index ' == '.$value '<BR>';
            }
        }
    }
}

sty_execute('wildweb','fast');
?>

Initial page:

Ops, mistyped a field:

Now filled correctly, pressed 'Submeter':

Now filled correctly, pressed 'Deletar':

sergio@bruder.net   infrastructure provided by SourceForge Logo