} if ($action == 2) { $date = new Date(); $date->SetConverted($page_date); $date->ConvertToFullDate(); if ($date->VerifyDate()) { $message = $date->GetMessage(); $message_position = 2; } else { $page = new Page(); $page->SetDatabase($database); $page->SetNumber($page_number); $page->SetDate($date->GetDate()); $page->SetUser($page_user_id); $page->SetArticle($page_arti_id); if ($page->Insert()) { $message_position = 5; $message = $screen_module_name . " incluída com sucesso."; $page_id = ""; $page_number = ""; $page_date = $date->GetNowFull(); $page_user_id = $guardian->GetUserId(); $page_arti_id = ""; } else { $message_position = 5; $message = "Problemas na operação."; } } } if ($action == 3) { $date = new Date();