<?php /** ASSIGNMENTS *<list> * <as> * <title>Homework 3</title> * <due>12/21/2010</due> * </as> * <as> * ... * </as> * ... *</list> */ if (isset($_GET["day"])) { // We have a day to focus on. No class focused. $response = $soap->getAssignmentsForUser($session); echo '<div id="topbar" class="black"> <div id="title"> Assignments</div> <div id="leftnav"> <a href="profile.php"><img alt="home" src="images/home.png" /></a></div> <div id="rightbutton"> <a href="./logout.php" class="noeffect">Logout</a> </div> </div>'; //$response = "<list><as><title>HW1</title><due>12/20/10</due></as><as><title>HW2</title><due>12/23/10</due></as></list>"; $xml = simplexml_load_string($response); $items = array(); echo "<div id='content'><h3>Assignments</h3>"; echo "<ul class='pageitem'>"; foreach ($xml->as as $item) { $date = split("/", $item->due);