<?php
require_once '../library/config.php';
require_once '../library/functions.php';

$_SESSION['login_return_url'] = $_SERVER['REQUEST_URI'];
checkUser();

$view = (isset($_GET['view']) && $_GET['view'] != '') ? $_GET['view'] : '';

switch ($view) {
	case 'list' :
		$content 	= 'list.php';		
		$pageTitle 	= 'Our Services List';
		$icon		=  '<img src="../images/icon-list.jpg">';
		break;

	case 'add' :
		$content 	= 'add.php';		
		$pageTitle 	= 'Add Our Services';
		$icon		=  '<img src="../images/add-file.jpg">';
		break;

	case 'modify' :
		$content 	= 'modify.php';		
		$pageTitle 	= 'Modify Our Services';
		$icon		=  '<img src="../images/icon-modify.jpg">';
		break;
		
		case 'detail' :
		$content 	= 'detail.php';		
		$pageTitle 	= "Our Services Detail";
		$icon		=  '<img src="../images/icon-detail.jpg">';
		break;
		
		case 'flist' :
		$content 	= 'filelist.php';		
		$pageTitle 	= "Our Services List";
		$icon		=  '<img src="../images/icon-list.jpg">';
		break;

	default :
		$content 	= 'list.php';		
		$pageTitle 	= 'Our Services List';
		$icon		=  '<img src="../images/icon-list.jpg">';
}

$script    = array('files.js');

require_once '../include/template.php';
?>
