예제 #1
0
             $message = "Problemas na operação.";
         }
     }
 }
 if ($action == 3) {
     $date = new Date();
     $date->SetConverted($para_date);
     $date->ConvertToFullDate();
     if ($date->VerifyDate()) {
         $message = $date->GetMessage();
         $message_position = 2;
     } else {
         $paragraph = new Paragraph();
         $paragraph->SetDatabase($database);
         $paragraph->SetId($para_id);
         $paragraph->SetText(str_replace("\"", "\\\"", $para_text));
         $paragraph->SetDate($date->GetDate());
         $paragraph->SetOrder($para_order);
         $paragraph->SetUser($para_user_id);
         $paragraph->SetPage($para_page_id);
         if ($paragraph->Update()) {
             $message_position = 6;
             $message = $screen_module_name . " alterado com sucesso.";
         } else {
             $message_position = 6;
             $message = "Problemas na operação.";
         }
     }
 }
 if ($action == 4) {
     $paragraph = new Paragraph();