tiki-edit_report.php 987 Bytes
Newer Older
marclaporte's avatar
marclaporte committed
1
<?php
2
// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
marclaporte's avatar
marclaporte committed
3 4 5 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.
// $Id$

require_once('tiki-setup.php');
9 10 11 12
global $reportFullscreen, $index, $values;
$headerlib = TikiLib::lib('header');
$smarty = TikiLib::lib('smarty');
$access = TikiLib::lib('access');
13 14

$access->check_feature('feature_reports');
marclaporte's avatar
marclaporte committed
15 16 17 18

TikiLib::lib("sheet")->setup_jquery_sheet();

$headerlib
19 20
	->add_jsfile('lib/core/Report/Builder.js')
	->add_jq_onready('$.reportInit();');
marclaporte's avatar
marclaporte committed
21 22 23 24 25 26 27 28 29 30 31 32
	
$smarty->assign('definitions', Report_Builder::listDefinitions());

if (!empty($reportFullscreen)) {
	$smarty->assign('index', $index);
	$smarty->assign('values', $values);
	$smarty->assign('reportFullscreen', 'true');
	$smarty->display('tiki-edit_report.tpl');
} else {
	$smarty->assign('mid', 'tiki-edit_report.tpl');
	$smarty->display("tiki.tpl");
}