editing function part of input document.

This commit is contained in:
safan
2010-12-22 11:44:15 +00:00
parent 9b925cbfe1
commit fb3db8169b
4 changed files with 114 additions and 41 deletions

View File

@@ -8,10 +8,21 @@ try
$rows = $oProcessMap->getExtInputDocumentsCriteria($_GET['pid']);
array_shift($rows);
}
$result['totalCount'] = count($rows);
$result['data'] = $rows;
print json_encode( $result) ;
if (isset($_GET['INP_DOC_UID'])) {
require_once 'classes/model/InputDocument.php';
$oInputDocument = new InputDocument();
$rows = $oInputDocument->load($_GET['INP_DOC_UID']);
}
// $result['totalCount'] = count($rows);
// $result['data'] = $rows;
// print json_encode( $result) ;
$tmpData = json_encode( $rows ) ;
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
$result = $tmpData;
echo $result;
}
catch ( Exception $e ) {