PHP Classes

File: frmCliGrid.php

Recommend this page to a friend!
  Packages of Joćo Coimbra   PHP Database HTML Table and Form Generator   frmCliGrid.php   Download  
File: frmCliGrid.php
Role: Auxiliary script
Content type: text/plain
Description: Grid part
Class: PHP Database HTML Table and Form Generator
Generate HTML grids and lists from database data
Author: By
Last change:
Date: 6 years ago
Size: 582 bytes
 

 

Contents

Class file image Download
<?
  include "objDB.php";
  include "objGrid1.php";
  
  $grd = new obj_grid();
  
  $sql = "SELECT cli_id, cli_nome FROM obj_cli ORDER BY cli_nome";
  
  $grd->setSQL($sql);
  $grd->setTitulo(" Cliente ");
?>

<HTML>
<HEAD>
<TITLE>Objeto</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="obj.css">
<SCRIPT Language="Javascript">
  function Sele(inCliId, inCliNome){
    parent.Corpo.frmCli.cli_id.value = inCliId;
    parent.Corpo.frmCli.cli_nome.value = inCliNome;
  }
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
  <?=$grd->Grid();?>
</CENTER>
</BODY>
</HTML>