Example #1
0
             $message = "Problemas na operação.";
         }
     }
 }
 if ($action == 3) {
     $date = new Date();
     $date->SetDate($arti_date);
     $date->ConvertToDate();
     if ($date->VerifyDate()) {
         $message = $date->GetMessage();
         $message_position = 2;
     } else {
         $article = new Article();
         $article->SetDatabase($database);
         $article->SetId($arti_id);
         $article->SetTitle($arti_title);
         $article->SetDate($date->GetDate());
         $article->SetUser($arti_user_id);
         $article->SetSubject($arti_subj_id);
         if ($article->Update()) {
             $message_position = 5;
             $message = $screen_module_name . " alterado com sucesso.";
         } else {
             $message_position = 5;
             $message = "Problemas na operação.";
         }
     }
 }
 if ($action == 4) {
     $article = new Article();
     $article->SetDatabase($database);