예제 #1
0
 if ($para_user_id == "") {
     $para_user_id = $guardian->GetUserId();
 }
 if ($para_date == "") {
     $date = new Date();
     $para_date = $date->GetNowFull();
 }
 if ($action == 1) {
     $paragraph = new Paragraph();
     $paragraph->SetDatabase($database);
     $paragraph->SetId($para_id);
     $paragraph->SelectById();
     $date = new Date();
     $date->SetDate($paragraph->GetDate());
     $date->ConvertToFullDisplay();
     $para_id = $paragraph->GetId();
     $para_text = $paragraph->GetText();
     $para_date = $date->GetConverted();
     $para_order = $paragraph->GetOrder();
     $para_user_id = $paragraph->GetUser();
     $para_page_id = $paragraph->GetPage();
     if ($para_id == "") {
         $message_position = 6;
         $message = $screen_module_name . " não encontrado.";
         $para_id = "";
         $para_text = "";
         $para_date = $date->GetNowFull();
         $para_order = "";
         $para_user_id = $guardian->GetUserId();
         $para_page_id = "";
     }