$path = $common->http_path; switch ($action) { case 'AO': $ob->approve_objective($db_object,$common,$error_msg); header("location:$path/performance/runcron.php"); break; case 'AF': $ob->approve_feedback($db_object,$common,$error_msg); header("location:$path/performance/runcron.php"); break; case 'RO': $ob->resubmit_objective($db_object,$common,$error_msg); header("location:$path/performance/runcron.php"); break; case 'IP': $ob->performance_improvement_plan($db_object,$common,$error_msg); header("location:$path/performance/runcron.php"); break; case 'AP': $ob->approve_plan($db_object,$common,$error_msg); header("location:$path/performance/runcron.php"); break; }