| {$_MONTHS[$sem_date[1]-1]} 20{$sem_date[2]} | \n";
}
print "";
# print eachcourse data, it is ordered in the xml
# file just like it should be displayed here
foreach($seminar as $key => $value)
{
# these xml elements we don't print, but do use later
if($key == 'month' || $key == 'internal_link' || $key == 'id'
|| $key == 'enddate')
{ continue; }
# if the admin enters 'people' with the number of participants,
# take that word out, as it takes up unnecessary space
else if($key == 'participants')
{
$value = str_replace('people','',$value);
}
# number of days should be entered in english, so translate
# the word to the current language's word for 'days' or 'day'
else if($key == 'duration')
{
$value = str_ireplace('days',$_SCHEDULE['days'],$value);
$value = str_ireplace('day',$_SCHEDULE['day'],$value);
}
# make a link out of certain venues
else if($key == 'venue')
{
if($value == 'Intercity Hotel')
{
$value = "Intercity Hotel";
}
}
# the title and price will be links to the detailed description
# of thecourse
else if($key == 'title' || $key == 'price')
{
$value = "$value";
}
# same rationale as for the date field
else if($key == 'level')
{
$value = str_ireplace('all',$_WORDS['all'],$value);
}
# format the date correctly
else if($key == 'startdate')
{
# if the start and end date are the same
# we'll just keep the value the same (startdate)
# since the enddate is skipped (see above)
if($value != $seminar['enddate'])
{
$value = $value.'-'.$seminar['enddate'];
}
}
# we want the field data centered in the cell
# for each field except the title field
$style = "";
if($key != 'title') {
$style = "style='text-align:center;'";
}
print "| $value | ";
}
print "
";
}
?>