tiki-view_tracker_more_info.php 988 Bytes
Newer Older
1
<?php
2 3
// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
// 
4 5
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6
// $Id$
7 8
require_once ('tiki-setup.php');
include_once ('lib/trackers/trackerlib.php');
9 10 11

$access->check_feature('feature_trackers');

12
if (!isset($_REQUEST["attId"])) {
13 14 15
	$smarty->assign('msg', tra("No item indicated"));
	$smarty->display("error.tpl");
	die;
16 17
}
$info = $trklib->get_moreinfo($_REQUEST["attId"]);
18
$trackerId = $info['trackerId'];
mose's avatar
mose committed
19
unset($info['trackerId']);
20
if (!$trackerId) {
21 22 23
	$smarty->assign('msg', tra("That tracker don't use extras."));
	$smarty->display("error_simple.tpl");
	die;
24
}
25
$smarty->assign('trackerId', $trackerId);
26
$tikilib->get_perm_object($trackerId, 'tracker');
27

28 29
$access->check_permission('tiki_p_view_trackers');

changi67's avatar
changi67 committed
30
$smarty->assign("info", $info);
31
$smarty->display("tiki-view_tracker_more_info.tpl");