<?php require_once 'capint/cpaint2.inc.php'; include 'config.php'; include PRJ_CLASS_PATH . 'tzn_generic.php'; include PRJ_CLASS_PATH . TZN_DB_CLASS; include PRJ_CLASS_PATH . 'pkg_aat.php'; $cp = new cpaint(); $cp->set_name("list"); $cp->register('search_type'); $cp->start(); $cp->return_data(); function search_type($str) { global $cp; $objTypeList = new Type(); $objTypeList->addWhere("type LIKE '" . $str . "%'"); $objTypeList->loadList(); if ($objTypeList->rMore()) { while ($objType = $objTypeList->rNext()) { $cur =& $cp->add_node('type'); $cur->set_data($objType->type); } } return; }