tiki-view_tracker_more_info.php 996 Bytes
Newer Older
1
<?php
changi67's avatar
changi67 committed
2 3 4
/**
 * @package tikiwiki
 */
5
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
rjsmelo's avatar
rjsmelo committed
6
//
7 8
// 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.
9
// $Id$
changi67's avatar
changi67 committed
10

rjsmelo's avatar
rjsmelo committed
11
require_once('tiki-setup.php');
lphuberdeau's avatar
lphuberdeau committed
12
$trklib = TikiLib::lib('trk');
13 14 15

$access->check_feature('feature_trackers');

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

32 33
$access->check_permission('tiki_p_view_trackers');

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