<?php
/****************************************************************/
/* ATutor */
/****************************************************************/
/* Copyright (c) 2002-2010 */
/* http://atutor.ca */
/* */
/* This program is free software. You can redistribute it and/or*/
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation. */
/****************************************************************/
// $Id: related_topics.inc.php 10055 2010-06-29 20:30:24Z cindy $
if (!defined('AT_INCLUDE_PATH')) { exit; }
global $contentManager;
global $_base_path, $path;
global $savant;
ob_start();
$related = $contentManager->getRelatedContent($_SESSION['s_cid']);
if (count($related) == 0) {
echo '<em>'._AT('none_found').'</em>';
} else {
for ($i=0; $i < count($related); $i++) {
echo '° <a href="'.$_base_path.'content.php?cid='.$related[$i].'">';
echo $contentManager->_menu_info[$related[$i]]['title'];
echo '</a>';
echo '<br />';
}
}
$_my_uri = isset($_my_uri) ? $_my_uri : '';
$savant->assign('dropdown_contents', ob_get_contents());
ob_end_clean();
$savant->assign('close_url', htmlspecialchars($_my_uri).'disable=PREF_RELATED'.htmlentities(SEP).'menu_jump=3');
$savant->assign('dropdown_close', _AT('close_related_topics'));
$savant->assign('title', _AT('related_topics'));
$savant->display('include/box.tmpl.php');
?>