PHP Classes

File: frmCli.php

Recommend this page to a friend!
  Classes of Joćo Coimbra   PHP Database HTML Table and Form Generator   frmCli.php   Download  
File: frmCli.php
Role: Application script
Content type: text/plain
Description: Form
Class: PHP Database HTML Table and Form Generator
Generate HTML grids and lists from database data
Author: By
Last change:
Date: 3 years ago
Size: 1,515 bytes
 

Contents

Class file image Download
<HTML>
<HEAD>
<LINK REL="stylesheet" TYPE="text/css" HREF="obj.css">
<SCRIPT Language="Javascript">
  function Envia(inOpt){
    document.frmCli.opt.value = inOpt;
    Valida();
  }
  function Valida(){
    var conf = true;
    var msg = "";
    if (document.frmCli.cli_nome.value == ""){
      msg = " Descri??o";
      conf = false;
    }
    if (!conf){
      alert("Erro na(o):" + msg);
    } else {
      document.frmCli.submit();
    }
  }
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#bbccdd">
<CENTER><FONT SIZE='+1'><B>Cliente</B></FONT>

<!-- <FORM NAME="frmCli" ACTION="<?php echo $_SERVER['PHP_SELF']; ?>" METHOD="post"> -->
<FORM NAME="frmCli" ACTION="CliExe.php" METHOD="post">
  <INPUT TYPE="hidden" NAME="opt">
  <TABLE>
    <TR>
      <TD>N?mero</TD>
      <TD><INPUT TYPE="text" NAME="cli_id" VALUE=""></TD>
    </TR>
    <TR>
      <TD>Nome</TD>
      <TD><INPUT TYPE="text" NAME="cli_nome" VALUE="" SIZE='50'></TD>
    </TR>
  </TABLE>
 
  <TABLE WIDTH="60%">
    <TD CLASS="botao" WIDTH="20%"><A HREF="#" onClick="Envia('Pro');">Procurar</A></TD>
    <TD CLASS="botao" WIDTH="20%"><A HREF="#" onClick="Envia('Inc');">Incluir</A></TD>
    <TD CLASS="botao" WIDTH="20%"><A HREF="#" onClick="Envia('Alt');">Alterar</A></TD>
    <TD CLASS="botao" WIDTH="20%"><A HREF="#" onClick="Envia('Exc');">Excluir</A></TD>
    <TD CLASS="botao" WIDTH="20%"><A HREF="#" onClick="parent.location = 'frmObj.htm';">Sair</A></TD>
  </TABLE>
</FORM>
</CENTER>
</BODY>
</HTML>