Syracuse University

By Destination

SU Centers:



Summer Destinations:


simplexml = new SimpleXMLElement($URL,NULL,true); } public function getAttr(){ $j=0; foreach($this->simplexml->destination as $ob) { $temp = $ob->cityCountry; $temp1 = $ob->url; $this->arrayobject[$j] = $temp; $this->arrayobject1[$j] = $temp1; $j = $j +1; } } public function showAttr(){ echo ""; $count = count($this->arrayobject); // echo ""; for($i=0;$i<$count;$i++) { $summerDestLink = $this->arrayobject1[$i]; $summerDest = $this->arrayobject[$i]; if($i%2==0) { echo ""; echo ""; } echo ""; } echo ""; echo "
"; echo "arrayobject1[$i]."\">"; echo $this->arrayobject[$i]; echo ""; echo "
"; } } $parsexmlob = new ParseXML(); $varurl = 'http://studyabroad.syr.edu:8080/wsSUABDestination/DestinationSummerXML'; $parsexmlob->conntourl($varurl); $parsexmlob->getAttr(); $parsexmlob->showAttr(); ?>

World Partners (For SU Students Only):


simplexml1 = new SimpleXMLElement($URL,NULL,true); } public function getAttrib(){ $j=0; foreach($this->simplexml1->destination as $ob) { $temp = $ob->cityCountry; $temp1 = $ob->url; $this->arrayobject[$j] = $temp; $this->arrayobject1[$j] = $temp1; $j = $j +1; } } public function showAttrib(){ $count = count($this->arrayobject); echo ""; // echo ""; for($i=0;$i<$count;$i++) { $forSuLink = $this->arrayobject1[$i]; $forSu = $this->arrayobject[$i]; if($i%2==0) { echo ""; echo ""; } echo ""; } echo ""; echo "
"; echo "arrayobject1[$i]."\">"; echo $this->arrayobject[$i]; echo ""; echo "
"; } } $sustudents = new suStud(); $varurllink = 'http://studyabroad.syr.edu:8080/wsSUABDestination/DestinationWpXML'; $sustudents->connt($varurllink); $sustudents->getAttrib(); $sustudents->showAttrib(); ?>