Location: PHPKode > projects > ATutor Social > include/html/dropdowns/related_topics.inc.php
<?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 10197 2010-09-16 16:18:25Z greg $

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 '<strong>'._AT('none_found').'</strong>';
} else {
	for ($i=0; $i < count($related); $i++) {
		echo '&#176; <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');
?>
Return current item: ATutor Social