2010-12-06 06:10:31 +00:00
|
|
|
<?php
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
G::LoadClass('processMap');
|
|
|
|
|
$oProcessMap = new processMap(new DBConnection);
|
|
|
|
|
if ( isset($_GET['pid'] ) )
|
|
|
|
|
{
|
|
|
|
|
$rows = $oProcessMap->usersExtList($_GET['pid'], $_GET['tid']);
|
|
|
|
|
array_shift($rows);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$rows = $oProcessMap->getAvailableExtUsersCriteria($_GET['tid']);
|
|
|
|
|
}
|
2010-12-16 15:15:31 +00:00
|
|
|
|
2010-12-06 06:10:31 +00:00
|
|
|
$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
|
|
|
}
|
2010-12-17 14:18:47 +00:00
|
|
|
?>
|