28 lines
992 B
PHP
Executable File
28 lines
992 B
PHP
Executable File
<?php
|
|
###################################################################################################### prints a single course type description
|
|
if($_CMDS['query'][1] == 'intllegalenglish')
|
|
{
|
|
include 'html_intllegalenglish.php';
|
|
return;
|
|
}
|
|
|
|
global $_COURSES,$_WORDS; // the globals we'll need
|
|
$course_path = $_DOC_ROOT.'/data/course_types/'.$_CMDS['query'][1].'.xml'; // the xml file with course's data
|
|
$desc = $_COURSES['default_desc']; // a default description in case there is not info on this person
|
|
|
|
if(!file_exists($course_path)) { // if no file exists, neither does the person
|
|
print "
|
|
<div class='page_subtitle'>{$_ERRORS['courses']['nosuch_title']}</div>
|
|
<div class='page_content'>
|
|
{$_ERRORS['courses']['nosuch_msg']}
|
|
</div>";
|
|
|
|
return;
|
|
}
|
|
|
|
$data = xml_parse_file($course_path); // parse the xml into an associative array<u></u>
|
|
$data = $data['coursetype'][$_LANG];
|
|
|
|
html_print_xml_page($data);
|
|
|
|
?>
|