From a9624bc9c32cfbfdfb76bd464caa0c6ce240b30c Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 16 Oct 2007 19:11:19 +0000 Subject: [PATCH] Multiple selection for the reconciliation --- html/modify_op.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/html/modify_op.php b/html/modify_op.php index 44257e355..5f6eaa7a4 100644 --- a/html/modify_op.php +++ b/html/modify_op.php @@ -193,7 +193,24 @@ if ( isset($_POST['update_record']) ) { StartSql($cn); UpdateComment($cn,$_POST['jr_id'],$_POST['comment']); - InsertRapt($cn,$_POST['jr_id'],$_POST['rapt']); + if ( trim($_POST['rapt']) != "" ) { + if ( strpos($_POST['rapt'],',') !== 0 ) + { + $aRapt=split(',',$_POST['rapt']); + foreach ($aRapt as $rRapt) { + if ( isNumber($rRapt) == 1 ) + { + InsertRapt($cn,$_POST['jr_id'],$rRapt); + } + } + } else + if ( isNumber($_POST['rapt']) == 1 ) + { + InsertRapt($cn,$_POST['jr_id'],$_POST['rapt']); + } + } + + // InsertRapt($cn,$_POST['jr_id'],$_POST['rapt']); if ( isset ($_FILES)) { echo_debug("modify_op.php",__LINE__, "start upload doc."); save_upload_document($cn,$_POST['jr_grpt_id']);