summaryrefslogtreecommitdiff
blob: 3ac86c4b74e8a9c2b163733947399ce5e5126207 (plain)
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
<?php
	#This is the code to set up the SMARTY templates for the Main pages.
	# it has ./ on things and sets the leftbar to show the admin list.
	$smarty = new Smarty;
	$smarty->template_dir = './templates';
	$smarty->compile_dir = './templates_c';
	$smarty->cache_dir = './cache';
	$smarty->config_dir = './configs';
	$smarty->assign('topbar', array(
		  array('name'=> 'Login', 'link' => 'login.php'),
		  array('name'=> 'Clients', 'link' => 'clients.php'),
		  array('name'=> 'Jobs/Tasks', 'link' => 'jobs.php'),
		  array('name'=> 'Modules', 'link' => 'modules.php'),
		  array('name'=> 'Admin', 'link' => 'admin.php')));
	$smarty->assign('left_section_header',"Module List");
	
	$module_list = array();
	$module_list = get_scire_module_list();
	#print_r($module_list);
	$smarty->assign('leftnav', $module_list);
	
	if($status) {	
		$smarty->assign('error', $status);
	}
?>