add_linked_records_from_notices_ids($notices); break; case 'checked': $notices = $notice; $scan_request->add_linked_records_from_notices_ids($notices); break; } if ($id || $scan_request->has_scannable_linked_record()) { print $scan_request->get_form(); } else { print ''; } break; case 'save': $scan_request->get_values_from_form(); $scan_request->save(); print $scan_request->get_display(); break; case 'cancel': if ($_SESSION['id_empr_session'] && $scan_request->get_status() && $scan_request->get_status()->is_cancelable()) { $scan_request->delete(); print '
'.$msg['scan_request_deleted'].'
'; } else { print '
'.$msg['scan_request_cant_delete'].'
'; } $scan_requests = new scan_requests($_SESSION['id_empr_session']); print $scan_requests->get_display_list(); break; case 'display': default : print $scan_request->get_display(); break; } break; case 'scan_requests_list': default : $scan_requests = new scan_requests($_SESSION['id_empr_session']); print $scan_requests->get_display_list(); break; } ?>