function ProcessData($idsToDelete,$tbl_resumeUpdate,$user_id,$tbl_resumeInsert,$imgInsert,$imgUpdate){
$this->db->trans_start();
if(!empty($idsToDelete)){
$this->delete_tbl_resume($idsToDelete);
}
if(!empty($tbl_resumeUpdate)){
//echo "up";exit;
$this->update_tbl_resume($tbl_resumeUpdate);
}
if(!empty($tbl_resumeInsert)){
//echo "int";exit;
$this->insert_tbl_resume($user_id,$tbl_resumeInsert);
}
if(!empty($imgInsert)){
$this->insert_tbl_file_paths($imgInsert);
}
if(!empty($imgUpdate)){
$this->update_tbl_file_paths($imgUpdate);
}
return $this->db->trans_complete();
}
function insert_tbl_resume($id,$arrtbl_resume){
//$a = $this->db->insert_batch('tbl_resume', $arrtbl_resume);
//echo $this->db->last_query();exit;
$this->db->insert_batch('tbl_resume', $arrtbl_resume);
}
function update_tbl_resume($arrtbl_resume){
$this->db->update_batch('tbl_resume', $arrtbl_resume, 'resume_id');
//$a = $this->db->update_batch('tbl_resume', $arrtbl_resume, 'resume_id');
//echo $this->db->last_query();exit;
//print_r ($arrtbl_resume);exit;
}