exit; } elseif (!$ENTRADA_ACL->amIAllowed("configuration", "update", false)) { add_error("Your account does not have the permissions required to use this feature of this module.<br /><br />If you believe you are receiving this message in error please contact <a href=\"mailto:" . html_encode($AGENT_CONTACTS["administrator"]["email"]) . "\">" . html_encode($AGENT_CONTACTS["administrator"]["name"]) . "</a> for assistance."); echo display_error(); application_log("error", "Group [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["group"] . "] and role [" . $_SESSION["permissions"][$ENTRADA_USER->getAccessId()]["role"] . "] do not have access to this module [" . $MODULE . "]"); } else { ?> <h1>Edit Event Type</h1> <?php $BREADCRUMB[] = array("url" => ENTRADA_URL . "/admin/settings/manage/eventtypes?" . replace_query(array("section" => "edit")) . "&org=" . $ORGANISATION_ID, "title" => "Edit Event Type"); if (isset($_GET["type_id"]) && ($type = clean_input($_GET["type_id"], array("notags", "trim")))) { $PROCESSED["eventtype_id"] = $type; } else { add_error("No Event Type found with the specified ID."); } $event_type = Models_EventType::get($PROCESSED["eventtype_id"]); if ($event_type) { $mapped_medbiq_instructional_method = $event_type->getMappedMedbiqInstructionalMethod(); if ($mapped_medbiq_instructional_method) { $PROCESSED["medbiq_instructional_method_id"] = $mapped_medbiq_instructional_method->getInstructionalMethodID(); } } // Error Checking switch ($STEP) { case 2: /** * Required field "objective_name" / Objective Name */ if (isset($_POST["eventtype_title"]) && ($eventtype_title = clean_input($_POST["eventtype_title"], array("notags", "trim")))) { $PROCESSED["eventtype_title"] = $eventtype_title; } else {
" method="post"> <table class="tableList" cellspacing="0" summary="List of Curriculum Types"> <colgroup> <col class="modified"/> <col class="title"/> </colgroup> <thead> <tr> <td class="modified"> </td> <td class="title">Event Type</td> </tr> </thead> <tbody> <?php foreach ($PROCESSED["remove_ids"] as $id) { $t = Models_EventType::get($id); if ($t) { $type = $t->toArray(); ?> <tr> <td><input type="checkbox" value="<?php echo $id; ?> " name ="remove_ids[]" checked="checked"/></td> <td><?php echo $type["eventtype_title"]; ?> </td> </tr> <?php }