예제 #1
0
                     add_error("An error while attempting to insert the event type");
                 }
             } else {
                 $eventtype->update();
             }
             if (!$ERROR) {
                 $url = ENTRADA_URL . "/admin/settings/manage/eventtypes?org=" . $ORGANISATION_ID;
                 $SUCCESS++;
                 $SUCCESSSTR[] = "You have successfully added <strong>" . html_encode($PROCESSED["eventtype_title"]) . "</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 Event Type [" . $PROCESSED["eventtype_id"] . "] added to the system.");
             }
         }
         if ($ERROR) {
             $STEP = 1;
             $event_type = new Models_EventType($PROCESSED);
         }
         break;
     case 1:
     default:
         break;
 }
 // Display Content
 switch ($STEP) {
     case 2:
         if ($SUCCESS) {
             echo display_success();
         }
         if ($NOTICE) {
             echo display_notice();
         }
예제 #2
0
                    </div>
                </div>
                <div class="control-group">
                    <label for="code" class="control-label form-required">Instructional Code:</label>
                    <div class="controls">
                        <input type="text" class="input-small" id="code" name="code" value="<?php 
            echo isset($medbiq_instructional_method) ? html_encode($medbiq_instructional_method->getCode()) : "";
            ?>
" />
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label form-nrequired">Mapped Event Types:</label>
                    <div class="controls">
                    <?php 
            $event_types = Models_EventType::fetchAllByOrganisationID($ORGANISATION_ID);
            if ($event_types) {
                foreach ($event_types as $eventtype) {
                    ?>
                            <div class="checkbox">
                                <label for="event_type_<?php 
                    echo $eventtype->getID();
                    ?>
">
                                    <input type="checkbox" id="event_type_<?php 
                    echo $eventtype->getID();
                    ?>
" name="fk_eventtype_id[]" value="<?php 
                    echo $eventtype->getID();
                    ?>
" <?php 
예제 #3
0
" 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">&nbsp;</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 
                    }