echo display_error(); $ONLOAD[] = "setTimeout('window.location=\\'" . ENTRADA_URL . "/profile/observerships\\'', 5000)"; } if ($SUCCESS) { echo display_success(); $ONLOAD[] = "setTimeout('window.location=\\'" . ENTRADA_URL . "/profile/observerships\\'', 5000)"; } break; case 1: default: $observership = Observership::get($OBSERVERSHIP_ID); $status = $observership->getStatus(); echo "<h1>" . $observership->getTitle() . " Reflection</h1>"; if ($status != "confirmed") { add_generic("<strong>Please note:</strong> Preserve the privacy and confidentiality of your preceptor."); echo display_generic(); } ?> <style type="text/css"> .confirmed tbody td {padding:10px 5px;} .reflection textarea.input-xxlarge {min-height:200px;} </style> <form class="form-horiztonal reflection" action="<?php echo ENTRADA_URL; ?> /profile/observerships?section=reflection&id=<?php echo $OBSERVERSHIP_ID; ?> " method="POST"> <input type="hidden" name="observership_id" value="<?php
} .drop-target { background:#D9EDF7!important; border-top:1px dashed #C8DCE6 !important; border-right:1px dashed #C8DCE6 !important; border-bottom:1px dashed #C8DCE6 !important; border-left:1px dashed #C8DCE6 !important; } .draggable-title { cursor: pointer; margin-right:4px; margin-bottom:5px; } </style> <?php echo display_generic("Please use this interface to map the draft event columns to the appropriate CSV columns. We will try to automatically map the headings to the correct columns via the titles in the first row, but if there are no titles this will need to be done manually."); echo "<h4>Unmapped Fields</h4>"; if (($handle = fopen($_FILES["csv_file"]["tmp_name"], "r")) !== FALSE) { $tmp_name = explode("/", $_FILES["csv_file"]["tmp_name"]); $new_filename = md5(end($tmp_name)); // add some error handling here copy($_FILES["csv_file"]["tmp_name"], CACHE_DIRECTORY . "/" . $new_filename); // we just want the headings $i = 0; while (($data = fgetcsv($handle, 1000, ",")) !== FALSE && $i < 5) { if ($i === 0) { $j = 0; foreach ($data as $d) { $mapped = false; $title = ""; $key = strtolower(str_replace(" ", "_", clean_input($d, "boolops")));
} ?> </ul> </div> <div class="btn-group" id="flag-toggle"> <button type="button" class="btn active">All</button> <button type="button" class="btn flagged">Flagged</button> </div> </div> <div id="breadcrumb" class="row-fluid space-below"></div> <div id="portfolio-container" class="pane-container row-fluid"> <div id="user-list" class="left-pane span3"></div> <div id="user-portfolio" class="right-pane span9"> <h1>Portfolio</h1> <?php echo display_generic("Please select a student from the menu on the left to get started."); ?> </div> </div> <div id="entry-modal" class="modal hide"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3>View Entry</h3> </div> <div class="modal-body"> <form action="" method="POST" class="form-horizontal" id="modal-form"></form> </div> <div class="modal-footer"> <a href="#" class="btn" data-dismiss="modal" aria-hidden="true">Close</a> <a href="#" class="btn btn-primary">Save</a> </div>
echo "\t( <a href=\"" . ENTRADA_URL . "/community" . $COMMUNITY_URL . ":" . $PAGE_URL . "?section=results&id=" . $entry["qprogress_id"] . "\">review quiz</a> )"; echo "</li>"; } else { echo "<li>" . date(DEFAULT_DATE_FORMAT, $entry["updated_date"]) . " <strong>Score:</strong> To Be Released " . date(DEFAULT_DATE_FORMAT, $quiz_record["release_until"]) . "</li>"; } break; case "expired": echo "<li class=\"incorrect\">" . date(DEFAULT_DATE_FORMAT, $entry["updated_date"]) . " <strong>Expired Attempt</strong>: not completed.</li>"; break; case "inprogress": echo "<li>" . date(DEFAULT_DATE_FORMAT, $entry["updated_date"]) . " <strong>Attempt In Progress</strong> ( <a href=\"" . ENTRADA_URL . "/community" . $COMMUNITY_URL . ":" . $PAGE_URL . "?section=attempt&community=true&id=" . $quiz_record["aquiz_id"] . "\">continue quiz</a> )</li>"; break; default: continue; break; } } echo "</ul>"; } echo "\t\t</td>\n"; echo "\t\t<td class=\"date\" style=\"vertical-align: top\">" . ((int) $quiz_record["release_until"] ? date(DEFAULT_DATE_FORMAT, $quiz_record["release_until"]) : "No Expiration") . "</td>\n"; echo "\t</tr>\n"; } echo "\t\t</tbody>\n"; echo "\t\t</table>\n"; } else { echo display_generic("There are currently no online quizzes available on this page."); } ?> </div> </div>