PHP Classes

File: sample1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of GUSTAVO MENA  >  Progress ODBC ABM  >  sample1.php  >  Download  
File: sample1.php
Role: Example script
Content type: text/plain
Description: Sample
Class: Progress ODBC ABM
Manipulate records of Progress DB table using ODBC
Author: By
Last change:
Date: 7 years ago
Size: 1,268 bytes


Class file image Download
 * @author Gustavo Mena
include ("abm.class.php");
$objAbm = new abm();
  * Sample:
$objAbm -> campos=array(
'id_city'=> 'City:,0,1,citys,city_name,id_city,0,,,,1',
'telephone_customer'=>'Telephone:,0,0,,,,1,Phones,200,margin-left 200px,0',
$objAbm -> conectar('Progress 82A','user','pass');
$objAbm -> setTabla('customers');
$objAbm -> setTitulo('Customers');
$objAbm -> setPrimaryKey(array('id_customer'));
$objAbm -> setOrderBy('customer ASC');
$objAbm -> setTipoBusqueda('E');
$objAbm -> setBuscarPor(array('id_customer'=>'Customer'));
$objAbm -> controlaUpdate();
$objAbm -> setFontSize('14');
 <style> body{font-size:10px;color:#ffffff;background-}</style>
 <title><?=$objAbm -> getTitulo();?></title>
 <link href="css1.css" rel="stylesheet" type="text/css">
<body bgcolor="#05286B">

-> dibujarBotones(true,true,true,true,true,true);
$objAbm -> dibujaGrilla($objAbm->consulta());