get_values_from_form(); $saved = $scan_request->save(); print ''; if($saved) { print $msg['scan_request_saved']; print " ".str_replace('!!link!!', './empr.php?tab=scan_requests&lvl=scan_request&sub=display&id='.$scan_request->get_id(), $msg['scan_request_saved_see_link']); } else { print $msg['scan_request_cant_save']; } print ''; break; case 'edit': $scan_request=new scan_request(); if($record_type == 'notices') { $scan_request->set_title(strip_tags(aff_notice($record_id, 0, 1, 0, AFF_ETA_NOTICES_REDUIT, '', 1, 0))); } elseif($record_type == 'bulletins') { $scan_request->set_title(strip_tags(bulletin_header($record_id))); } $scan_request->add_linked_records(array($record_type => array($record_id))); print $scan_request->get_form_in_record($record_id, $record_type); break; } break; } ?>