public static function is_record_sealed($podname, $record_id) { $messages_pods_params = array(); $messages_pods_params['where'] = "t.name = 'sealed' AND t.pod_name = '{$podname}' AND t.record_id = {$record_id}"; $messages_on_record = pods("jomiz_dms_data_pods_messages", $messages_pods_params); if ($messages_on_record->total() > 0) { return TRUE; } $messages_pods = dms_messages::get_pod_record_messages($podname, $record_id); foreach ($messages_pods as $pod_message) { if ($pod_message["type"] == "sealed") { return TRUE; } } return FALSE; }
</div>'; } } } // Workflow Display if (sizeof($workflow_data) > 0) { $tabs_header .= "<li role='presentation'><a href='#workflow-tab' aria-controls='workflow-tab' role='tab' data-toggle='tab'>Actions</a></li>"; $tabs_body .= "<div role='tabpanel' class='tab-pane fade' id='workflow-tab'>" . $workflow_data['form-to-display'] . "</div>"; } if (isset($operation_settings->{"use_attachments"}) && $operation_settings->{"use_attachments"} == 1) { $tabs_header .= "<li role='presentation'><a href='#attachments-tab' aria-controls='workflow-tab' role='tab' data-toggle='tab'>Attachments</a></li>"; $attachments = new dms_attachments(); $tabs_body .= "<div role='tabpanel' class='tab-pane fade' id='attachments-tab'>" . $attachments->get_attachments_tab($is_record_sealed) . "</div>"; } // Messages $messages_pods = dms_messages::get_pod_record_messages($podname, $id); $messages_to_show = ""; $message_alert_type = "alert-info"; if (is_array($messages_pods) && sizeof($messages_pods) > 0) { foreach ($messages_pods as $pod_message) { $messages_to_show .= "<li class='" . joimz_dms_utilities::get_message_css_class($pod_message["type"]) . "'>" . $pod_message["text"] . "</li>"; if ($pod_message["type"] == "error") { $message_alert_type = "alert-danger"; } elseif ($pod_message["type"] == "warning" && ($message_alert_type == "alert-info" || $message_alert_type == "alert-success")) { $message_alert_type = "alert-warning"; } elseif ($pod_message["type"] == "pass" && $message_alert_type == "alert-info") { $message_alert_type = "alert-success"; } } } elseif (!is_array($messages_pods)) { $messages_to_show = $messages_pods;