<?php 
echo $course->courseNum . ". " . $course->courseName . " " . $course->description;
?>
</textarea></td>
  </tr>
  <tr>
    <td>Required/Elective</td>
    <td colspan="10">
      <?php 
$required = array();
$elective = array();
foreach ($course->reqForProgram as $progID => $status) {
    if ($status == "R") {
        $required[] = getDesignatorDisplayString($progID);
    } else {
        $elective[] = getDesignatorDisplayString($progID);
    }
}
echo "Required: " . implode(", ", $required);
echo "<br />";
echo "Elective: " . implode(", ", $elective);
?>
    </td>
  </tr>

  <tr>
    <td>Textbook Information 
       <ul>
         <li>Textbook, title, author and year</li>
       </ul>
    </td>
Beispiel #2
0
</td>
<td class="style5">
Ability to use the techniques, skills and modern engineering tools necessary for
engineering practice.
</td>
<td class="style3">
<input type="checkbox" name="checkboxK" <?php 
if (in_array('K', $searchOutcomes)) {
    echo "checked";
}
?>
/>
</td>
</tr>
</table>
<input id="search_button" type="submit" value="Search" />
</form>
<?php 
if ($searched) {
    echo "<h2>Search results</h2><hr />";
    echo "<strong>Found " . count($matches) . " courses matching exactly these ABET learning outcomes.</strong>";
    foreach ($matches as $course) {
        $designatorName = getDesignatorDisplayString($course->designatorID);
        echo "<div class='course_name'><a href='course.php?course={$course->courseID}'>" . $designatorName . " " . $course->courseNum . "</a></div>";
    }
} else {
    if ($noProgramSelected) {
        echo "<h2>You must select a program!</h2>";
    }
}
require_once "include/footer.php";
        }
    }
    $resultMsg = "Adding " . getDesignatorDisplayString($program) . " " . $courseNum . ":<br />";
    foreach (array('se', 'ee', 'cpre', 'coms') as $program) {
        $reqType = $_REQUEST[$program . "_reqType"];
        if ($reqType != 'noChange') {
            $result = addCourse($courseObj, $program);
            switch ($result) {
                case 0:
                    $resultMsg .= getDesignatorDisplayString($program) . ": Success!<br />";
                    break;
                case 1:
                    $resultMsg .= getDesignatorDisplayString($program) . ": Course already in program index<br />";
                    break;
                case 2:
                    $resultMsg .= getDesignatorDisplayString($program) . ": Course file already exists, but was added to the program index<br />";
                    break;
            }
        }
    }
}
?>
<html>
<head>
<script>
/* Declare a variable that will hold the XMLHttpRequest object  */
var ReqObject = false;

/* Consider various Browsers */
if (window.XMLHttpRequest)
{
    if ($status == "R") {
        $required[] = getDesignatorDisplayString($progID);
    } else {
        $elective[] = getDesignatorDisplayString($progID);
    }
}
$status = "Required: " . implode(", ", $required);
$status .= "<br />";
$status .= "Elective: " . implode(", ", $elective);
$lo = "";
foreach ($course->courseLearningOutcomes as $learningOutcome) {
    $lo .= $learningOutcome . "<br />";
}
// Just use the most recent mod time
$date = getdate(max($course->descMod, $course->outcomesMod, $course->assignMod));
$rows = array("Instructor/Course Coordinator" => $course->instructors, "Credits and Contact Hours" => $course->creditsContact, "Course Description" => getDesignatorDisplayString($course->designatorID) . " " . $course->courseNum . ". " . $course->courseName . " " . $course->description, "Required/Elective" => $status, "Textbook Information" => $course->textbook, "List of topics to be covered" => $course->topics, "Specific goals for the course" => $lo, "Date of Modification [MM/DD/YY]" => $date['mon'] . "/" . $date['mday'] . "/" . $date['year']);
foreach ($rows as $title => $data) {
    echo <<<EOL
    <tr align="left" valign="top">
        <th width="22%">
            {$title}
        </th>
        <td>
            {$data}
        </td>
    </tr>
EOL;
}
?>
</table>