viewrework.php 1.84 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
 * This program is part of Mahara
 *
 *  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; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 *
 * @package    mahara
 * @subpackage core
 * @author     Nigel McNie <nigel@catalyst.net.nz>
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL
 * @copyright  (C) 2006,2007 Catalyst IT Ltd http://catalyst.net.nz
 *
 */

define('INTERNAL', 1);
define('PUBLIC', 1);
define('MENUITEM', 'viewrework');
require('init.php');
31
require('viewlib.php');
Penny Leach's avatar
Penny Leach committed
32
require('view.php');
33
34
define('TITLE', 'Views Rework [DANGER construction site]');

35
$view = param_integer('view');
Penny Leach's avatar
Penny Leach committed
36
$view = new View($view);
37
38
view_process_changes();

39
40
$smarty = smarty(array('views'), array('<link rel="stylesheet" href="views.css" type="text/css">'));

41
42
// FIXME: we can't know the first category is 'aboutme'
$category = param_alpha('category', 'aboutme');
43

44
// The list of categories for the tabbed interface
45
$smarty->assign('category_list', view_build_category_list($category));
46

47
// The list of blocktypes for the default category
48
$smarty->assign('blocktype_list', view_build_blocktype_list($category));
49

50
51
// The HTML for the columns in the view
$smarty->assign('columns', view_build_columns($view));
52
53
54
55

$smarty->display('viewrework.tpl');

?>