Login   Register  
PHP Classes
elePHPant
Icontem

File: sample1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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
 

Contents

Class file image Download
<?php
/**
 * @author Gustavo Mena
 */
 
include ("abm.class.php");
 
$objAbm = new abm();
 
/**
  * Sample: 
  */
 
$objAbm -> campos=array(
                           
'id_customer'=>'Customer:,0,0,,,,0,,,,0',
                           
'name_customer'=>'Name:,0,0,,,,0,,,,0',
                               
'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');
  
?>
<html>
<head>
 <style> body{font-size:10px;color:#ffffff;background-}</style>    
 <title><?=$objAbm -> getTitulo();?></title>
 <link href="css1.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#05286B">
<?php

 $objAbm 
-> dibujarBotones(true,true,true,true,true,true);
 
$objAbm -> dibujaGrilla($objAbm->consulta());
?>
</body>
</html>