} if ($actionplan_designee2) { $mysql = "update {$deployment_plan} set designee2_text = '{$actionplan_designee2}'\n\t\t\t\t\twhere plan_id = '{$plan_id}'"; $db_object->insert($mysql); } } } $obj = new update(); if ($fSave) { $action = "save"; } switch ($action) { case NULL: if ($user_id != 1) { $obj->update_plan($db_object, $common, $user_id, $error_msg); } else { $obj->update_plan_admin($db_object, $common, $user_id, $error_msg); } break; case "update": $obj->show_models($db_object, $common, $fPosition, $default, $user_id); break; case "show": //$obj->showdepthchart($db_object,$common,$post_var,$user_id,$default,$gbl_met_value,$gbl_files,$modelid); $obj->show_documentactions($db_object, $common, $default, $user_id, $error_msg, $post_var, $model_to_view); break; case "save": $obj->save_contents($db_object, $common, $default, $user_id, $error_msg, $post_var); break; } include_once "footer.php";