Location: PHPKode > scripts > Progress ODBC ABM > progress-odbc-abm/sample1.php
<?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>  
Return current item: Progress ODBC ABM