" method="post"> <table class="tableList" cellspacing="0" summary="List of Medbiq Instructional Methods"> <colgroup> <col class="modified"/> <col class="title"/> </colgroup> <thead> <tr> <td class="modified"> </td> <td class="title">Medbiquitous Instructional Method</td> </tr> </thead> <tbody> <?php foreach ($PROCESSED["remove_ids"] as $id) { $t = Models_MedbiqInstructionalMethod::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["instructional_method"]; ?> </td> </tr> <?php }
if (!$ERROR) { $url = ENTRADA_URL . "/admin/settings/manage/medbiqinstructional?org=" . $ORGANISATION_ID; $SUCCESS++; $SUCCESSSTR[] = "You have successfully added <strong>" . html_encode($PROCESSED["instructional_method"]) . "</strong> to the system.<br /><br />You will now be redirected to the Event Types index; this will happen <strong>automatically</strong> in 5 seconds or <a href=\"" . $url . "\" style=\"font-weight: bold\">click here</a> to continue."; $ONLOAD[] = "setTimeout('window.location=\\'" . $url . "\\'', 5000)"; application_log("success", "New Medbiquitous Instructional Method [" . $PROCESSED["instructional_method"] . "] added to the system."); } } else { $ERROR++; $ERRORSTR[] = "There was a problem inserting this instructional method into the system. The system administrator was informed of this error; please try again later."; application_log("error", "There was an error inserting an instructional method. Database said: " . $db->ErrorMsg()); } } if ($ERROR) { $STEP = 1; $medbiq_instructional_method = new Models_MedbiqInstructionalMethod($PROCESSED); } break; case 1: default: break; } // Display Content switch ($STEP) { case 2: if ($SUCCESS) { echo display_success(); } if ($NOTICE) { echo display_notice(); }
application_log("error", "There was an error editing event mapping within medbiquitous instructional resources. Database said: " . $db->ErrorMsg()); } } else { $ERROR++; $ERRORSTR[] = "There was a problem inserting this Medbiquitos Instructional Method into the system. The system administrator was informed of this error; please try again later."; application_log("error", "There was an error inserting an Medbiquitos Instructional Method. Database said: " . $db->ErrorMsg()); } } if ($ERROR) { $STEP = 1; $medbiq_instructional_method = new Models_MedbiqInstructionalMethod($PROCESSED); } break; case 1: default: $medbiq_instructional_method = Models_MedbiqInstructionalMethod::get($PROCESSED["instructional_method_id"]); $mapped_event_types = $medbiq_instructional_method->getMappedEventTypes(); if ($mapped_event_types) { foreach ($mapped_event_types as $mapped_event_type) { $PROCESSED["event_types"][] = $mapped_event_type->getEventTypeID(); } } break; } // Display Content switch ($STEP) { case 2: if ($SUCCESS) { echo display_success(); } if ($NOTICE) {
</div> </div> <div class="control-group"> <label for="eventtype_description" class="form-nrequired control-label">Event Type Description: </label> <div class="controls"> <textarea id="eventtype_description" name="eventtype_description" style="width: 98%; height: 200px"><?php echo $event_type ? html_encode($event_type->getEventTypeDescription()) : ""; ?> </textarea> </div> </div> <div class="control-group"> <label class="form-nrequired control-label">Medbiquitos Instructional Method:</label> <div class="controls"> <?php $medbiq_instructional_methods = Models_MedbiqInstructionalMethod::fetchAllMedbiqInstructionalMethods(); if ($medbiq_instructional_methods) { foreach ($medbiq_instructional_methods as $medbiq_method) { ?> <div class="radio"> <label for="instructional_method_<?php echo $medbiq_method->getID(); ?> "> <input type="radio" name="medbiq_instructional_method_id" id="instructional_method_<?php echo $medbiq_method->getID(); ?> " value="<?php echo $medbiq_method->getID(); ?> " <?php
<div class="pull-right"> <a href="<?php echo ENTRADA_URL; ?> /admin/settings/manage/medbiqinstructional?section=add&org=<?php echo $ORGANISATION_ID; ?> " class="btn btn-primary">Add New Medbiquitos Instructional Method</a> </div> </div> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $results = Models_MedbiqInstructionalMethod::fetchAllMedbiqInstructionalMethods(); if ($results) { ?> <form action ="<?php echo ENTRADA_URL; ?> /admin/settings/manage/medbiqinstructional?section=delete&org=<?php echo $ORGANISATION_ID; ?> " method="post"> <table class="tableList" cellspacing="0" cellpadding="1" border="0" summary="List of Medbiq Instructional Methods"> <colgroup> <col class="modified" /> <col class="title" /> </colgroup> <thead>
public function getInstructionalMethod() { return Models_MedbiqInstructionalMethod::get($this->fk_instructional_method_id); }