2010-12-06 06:10:31 +00:00
|
|
|
<?php
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
G::LoadClass('processMap');
|
|
|
|
|
$oProcessMap = new processMap(new DBConnection);
|
|
|
|
|
if ( isset($_GET['startInterId'] ) )
|
|
|
|
|
{
|
|
|
|
|
//Getting available Steps Criteria that have been not selected for a particular task
|
|
|
|
|
require_once "classes/model/Event.php";
|
|
|
|
|
$oEvent = new Event();
|
|
|
|
|
$aRows = $oEvent->load($_GET['startInterId']);
|
|
|
|
|
//$sch_uid = $oData['EVN_ACTION'];
|
2011-04-19 16:26:20 -04:00
|
|
|
$result = G::json_encode( $aRows );
|
2010-12-06 06:10:31 +00:00
|
|
|
$result = str_replace("\\/","/",'{success:true,data:'.$result.'}'); // unescape the slashes
|
|
|
|
|
/*else
|
|
|
|
|
{
|
|
|
|
|
$result = '{failure:true}'; // unescape the slashes
|
|
|
|
|
}*/
|
|
|
|
|
echo $result;
|
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|