Location: PHPKode > projects > Course-manager > courseman-0.1.1/template-statistics.php
<?php
  global $lang_registration_statistics;
  global $lang_registrations_by_course;
  global $lang_course, $lang_registration;
  global $course_period_option;
  $persons = $presented['persons'];
  $courses = $presented['courses'];
  $empty_courses = $presented['empty_courses'];
  if ($presented['error'] != "") {
    $error = $presented['error'];
    $error = "<span class='error'>$error</span>";
  }
  header("Content-type: text/html; charset=utf-8");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?=ucfirst($lang_registration_statistics[$language])?></title>
<?=$javascript?>
<link rel="stylesheet"
      href="local.css"
      type="text/css">
<style type="text/css">
td
{
  font-size: 85%;
}
</style><?=$local_stylesheets?>
</head>
<body>
<?=conditional_layout_before_content(ucfirst(
			$lang_registration_statistics[$language]))?>
<table width='100%'>
<td align="right">
<?=option_setter($language,$course_period_option)?>
</td>
</table>
<?=$error?>
<p><?=lang_count_all_registrations($language,$persons)?>.</p>
<p><?=ucfirst($lang_registrations_by_course[$language])?>:</p>
<table>
<tr>
<th>
<?=ucfirst($lang_course[$language])?>
</th>
<th>
<?=ucfirst($plural[$lang_registration[$language]])?>
</th>
</tr>
<?php foreach ($courses as $course) { ?>
<tr>
<td><?=$course['name']?></td>
<td align="right"><?=$course['registrations']?></td>
</tr>
<?php } ?>
</table>
<p><?=ucfirst(ling_without($language,
			$plural[$lang_course[$language]],
			$plural[$lang_registration[$language]]))?>:</p>
<table>
<tr>
<th>
<?=$lang_course[$language]?>
</th>
</tr>
<?php foreach ($empty_courses as $course) { ?>
<tr>
<td><?=$course['name']?></td>
</tr>
<?php } ?>
</table>
<table width='100%'>
<td align="right">
<a href="http://sf.net/projects/courseman">Support</a>
</td>
</table>
<?=conditional_layout_after_content()?>
</body>
</html>
Return current item: Course-manager