27 lines
633 B
PHP
27 lines
633 B
PHP
<?php
|
|
try
|
|
{
|
|
G::LoadClass('processMap');
|
|
$oProcessMap = new processMap(new DBConnection);
|
|
|
|
if ( isset($_GET['pid']) )
|
|
{
|
|
$rows = $oProcessMap->getExtCriteriaDBSList($_GET['pid']);
|
|
}
|
|
if(isset($_GET['tid']))
|
|
{
|
|
require_once 'classes/model/DbSource.php';
|
|
$o = new DbSource();
|
|
$rows = $o->load($_GET['tid']);
|
|
}
|
|
|
|
$tmpData = json_encode( $rows ) ;
|
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
|
|
|
$result = $tmpData;
|
|
echo $result;
|
|
}
|
|
catch ( Exception $e ) {
|
|
print json_encode ( $e->getMessage() );
|
|
}
|
|
?>
|