<tr>
                         <td colspan="5">
                             <div class="display-generic" style="white-space: normal">
                                 There have been no LTI Providers added to this event. To <strong>add a new LTI Provider</strong> simply click the Add LTI Provider button.
                             </div>
                         </td>
                     </tr>
                 <?php 
 }
 ?>
                 </tbody>
             </table>
         </form>
     </div>
     <?php 
 $attached_gradebook_assessment = Models_Assessment_AssessmentEvent::fetchRowByEventID($EVENT_ID);
 if ($attached_gradebook_assessment) {
     $assessment = $attached_gradebook_assessment->getAssessment();
     ?>
         <div class="space-below">
             <h3>Attached Gradebook Assessments</h3>
             <table class="tableList" cellspacing="0" summary="List of Attached LTI Providers">
                 <colgroup>
                     <col class="modified wide"/>
                     <col class="title" />
                     <col class="title" />
                     <col class="date" />
                     <col class="date" />
                 </colgroup>
                 <thead>
                     <tr>
 $PROCESSED["order"] = Models_Gradebook_Assessment::fetchNextOrder($COURSE_ID, $PROCESSED["cohort"]);
 $PROCESSED["updated_date"] = time();
 $PROCESSED["updated_by"] = $ENTRADA_USER->getID();
 $PROCESSED["course_id"] = $COURSE_ID;
 $PROCESSED["active"] = '1';
 $assessment = new Models_Gradebook_Assessment($PROCESSED);
 if ($assessment->insert()) {
     $ASSESSMENT_ID = $assessment->getAssessmentID();
     if ($ASSESSMENT_ID) {
         application_log("success", "Successfully added assessment ID [" . $ASSESSMENT_ID . "]");
     } else {
         application_log("error", "Unable to fetch the newly inserted assessment identifier for this assessment.");
     }
     if (isset($PROCESSED["event_id"])) {
         $assessment_event_array = array("assessment_id" => $ASSESSMENT_ID, "event_id" => $PROCESSED["event_id"], "updated_by" => $PROCESSED["updated_by"], "updated_date" => $PROCESSED["updated_date"], "active" => 1);
         $assessment_event = new Models_Assessment_AssessmentEvent($assessment_event_array);
         if (!$assessment_event->insert()) {
             application_log("error", "Unable insert the attached learning event.Database said: " . $db->ErrorMsg());
         } else {
             application_log("success", "Successfully attached learning event [" . $PROCESSED["event_id"] . "] to assessment ID [" . $ASSESSMENT_ID . "]");
         }
     }
     if (is_array($PROCESSED["clinical_presentations"]) && count($PROCESSED["clinical_presentations"])) {
         foreach ($PROCESSED["clinical_presentations"] as $objective_id) {
             if (!$db->AutoExecute("assessment_objectives", array("assessment_id" => $ASSESSMENT_ID, "objective_id" => $objective_id, "objective_type" => "clinical_presentation", "updated_date" => time(), "updated_by" => $ENTRADA_USER->getID()), "INSERT")) {
                 add_error("There was an error when trying to insert a &quot;clinical presentation&quot; into the system. System administrators have been informed of this error; please try again later.");
                 application_log("error", "Unable to insert a new clinical presentation to the database when adding a new event. Database said: " . $db->ErrorMsg());
             }
         }
     }
     if (is_array($PROCESSED["curriculum_objectives"]) && count($PROCESSED["curriculum_objectives"])) {