Please try again.'; } else { //create document read to load data $coursesDom = new DomDocument(); $categoriesDom = new DomDocument(); //load data into xml document $coursesDom->loadXML($coursesXMLContents); $categoriesDom->loadXML($categoriesXMLContents); //create new array to transfer data into $courses = loadDataIntoArray($coursesDom, $nodeName='course'); $courseCount = 0; if(!empty($courses)) { $courseCount = count($courses); } $categories = loadDataIntoArray($categoriesDom, $nodeName='category'); $ddCourses = ''; //display the results $content .= '

' . $categories[0]['category'] . '

'; $content .= '

There are currently ' . $courseCount . ' courses available

'; if($courseCount > 0) { $content .= '
' . $ddCourses . '
'; } } } if($_SERVER["HTTP_HOST"] == 'dev.hrsystems') { $wrapper = file_get_contents("http://nigeria.ad.hud.ac.uk/hr/wrappers/wrapperInnerMedRHC/index.php"); if(strstr($wrapper,'

changeme

')) { $content = str_replace('

changeme

', $content, $wrapper); $content = str_replace('/media/universityofhuddersfield/styleassets/css/HR_Additions.css', '../../HR_Additions.css', $content); $content = str_replace('/media/universityofhuddersfield/', 'http://nigeria.ad.hud.ac.uk/media/universityofhuddersfield/', $content); } } echo $content; } Load(); /** * This function takes an xml file and loads the contents into an associative array. * If a node name is provided then only nodes matching that name will be loaded from the xml * * @param mixed $azDom xml file * @param mixed $nodeName specifi node name to filter by * @return mixed array * */ function loadDataIntoArray($domObject, $nodeName='node') { $items = array(); $x = 0; foreach( $domObject->getElementsByTagName($nodeName) as $domItem ) { foreach( $domItem->getElementsByTagName("*") as $node) { $items[$x][$node->nodeName] = $node->nodeValue; } //increment id $x++; } return $items; } ?>

This training includes sessions designed to support academic staff and researchers through the various stages of undertaking academic and scholarly research.

Please note that bookings related to PGR training are administered by the Researcher Environment Team.  All information regarding current PGR training, including how to book, is available via SkillsForge. Associated resources, such as PowerPoint slides and handouts from PGR training, are located within the ‘Training Materials and Resources’ and ‘Academic English’ sections of the Researcher Environment Brightspace module. Any enquiries should be directed to the Researcher Environment Team via pgrskills@hud.ac.uk.