Exemplo n.º 1
0
 }
 if ($action == 3) {
     $date = new Date();
     $date->SetConverted($shou_date);
     $date->ConvertToFullDate();
     $shout = new Shout();
     $shout->SetDatabase($database);
     $shout->SetId($shou_id);
     $shout->SetDate($date->GetDate());
     $shout->SetText($shou_text);
     $shout->SetUser($shou_user_id);
     $shou_id = $shout->GetId();
     $shou_date = $shout->GetConverted();
     $shou_text = $shout->GetText();
     $shou_user_id = $shout->GetUser();
     if ($shout->Update()) {
         $message = $screen_module_name . " alterado com sucesso.";
     } else {
         $message = "Problemas na operação.";
     }
 }
 if ($action == 4) {
     $shout = new Shout();
     $shout->SetDatabase($database);
     $shout->SetId($shou_id);
     if ($shout->Delete()) {
         $date = new Date();
         $message = $screen_module_name . " excluído com sucesso.";
         $shou_id = "";
         $shou_date = $date->GetNowFull();
         $shou_text = "";