Ejemplo n.º 1
0
                     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) {
Ejemplo n.º 2
0
" 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">&nbsp;</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 
                    }
 public function getInstructionalMethod()
 {
     return Models_MedbiqInstructionalMethod::get($this->fk_instructional_method_id);
 }