New to computers? In this course, learn about the physical components of computers and take a brief tour of Windows. Hard drives, floppy disks, CD-ROMs, RAM, monitors, modems and other hardware, and computer terminology will be discussed.
$119
| crn | seats left | cost |
|---|---|---|
| 91515 | 11/14 | $119 |
| 91517 | 14/14 | $119 |
| 91519 | 14/14 | $119 |
| 91521 | 14/14 | $119 |
| 91524 | 8/14 | $119 |
| 91526 | 11/14 | $119 |
| 91528 | 14/14 | $119 |
<?php
$xml = simplexml_load_file ("single_course.xml");
$term_code = $xml->parameters->term;
$term_node = reset($xml->xpath("definitions/terms/term[@id='$term_code']"));
$term_string = $term_node->title;
// easily find the first "course" node.
$c = reset($xml->xpath('//courses/course'));
?>
<html>
<body>
<h1><?=$term_string?></h1>
<h2><?=$c->subjectCode;?> <?=$c->courseNumber?></h1>
<h3><?=$c->title ?></h3>
<p><?=$c->description?></p>
<p><i><?=("$".number_format($c->fees->fee->cost))?></i></p>
<table><tr><th>crn</th><th>seats left</th><th>cost</th></tr>
<?php foreach ($c->sections->children() as $section):?>
<tr>
<td><?=$section->crn ?></td>
<td align='right'><?=$section->seatsAvailable . "/" . $section->maxEnrollment ?></td>
<td><?=("$".number_format($section->fees->fee->cost))?></td>
</tr>
<?php endforeach;?>
</table>
<hr>
<?php highlight_file (__FILE__);?>
</body>
</html>