2010-12-06 06:10:31 +00:00
|
|
|
<?php
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
G::LoadClass('processMap');
|
|
|
|
|
$oProcessMap = new processMap(new DBConnection);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//array_shift($rows);
|
|
|
|
|
if($_GET['type'] == 2) //Loading sub process details
|
|
|
|
|
{
|
|
|
|
|
$rows = $oProcessMap->subProcessExtProperties($_GET['pid'], $_GET['tid'],'','0');
|
2011-04-19 16:26:20 -04:00
|
|
|
$tmpData = G::json_encode( $rows ) ;
|
2010-12-06 06:10:31 +00:00
|
|
|
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
|
|
|
|
|
|
|
|
|
$result = $tmpData;
|
|
|
|
|
print $result;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$rows = $oProcessMap->subProcessExtProperties($_GET['pid'], $_GET['tid'],'',$_GET['type']);
|
|
|
|
|
$result['totalCount'] = count($rows);
|
|
|
|
|
$result['data'] = $rows;
|
2011-04-19 16:26:20 -04:00
|
|
|
print G::json_encode( $result ) ;
|
2010-12-06 06:10:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch ( Exception $e ) {
|
2011-04-19 16:26:20 -04:00
|
|
|
print G::json_encode ( $e->getMessage() );
|
2010-12-06 06:10:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|