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: 2 years ago
Size: 1,515 bytes


Class file image Download
<LINK REL="stylesheet" TYPE="text/css" HREF="obj.css">
<SCRIPT Language="Javascript">
  function Envia(inOpt){
    document.frmCli.opt.value = inOpt;
  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 {
<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">
      <TD><INPUT TYPE="text" NAME="cli_id" VALUE=""></TD>
      <TD><INPUT TYPE="text" NAME="cli_nome" VALUE="" SIZE='50'></TD>
  <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>