//ini_set('display_errors', '1');
//error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
if(strlen($_GET['q']))
{
$args = explode('/', $_GET['q']);
}
else
{
$args = array(false);
}
switch($args[0])
{
case 'history-department':
{
include('./modules/history-department.php');
break;
}
case 'our-teachers':
{
include ('./modules/our-teachers.php');
break;
}
case 'employees-of-the-Department':
{
include('./modules/employees_of_the_department.php');
break;
}
case 'discipline':
{
include('./modules/discipline.php');
break;
}
case 'methodological-literature':
{
include('./modules/methodological-literature.php');
break;
}
case 'scientific-work':
{
include('./modules/scientific-work.php');
break;
}
case 'diploma-engineering':
{
include('./modules/diploma-engineering.php');
break;
}
case 'specialty':
{
include('./modules/specialty.php');
break;
}
case 'contacts':
{
include('./modules/contacts.php');
break;
}
case 'sitemap':
{
include('./modules/sitemap.php');
break;
}
default :
{
include('./modules/main.php');
}
}
$menu = '';
$menu_array = array
(
array('url' => 'history-department', 'name' => 'История кафедры'),
array('url' => 'our-teachers', 'name' => 'Наши преподàватели'),
array('url' => 'employees-of-the-Department', 'name' => 'Сотрудники кафедры'),
array('url' => 'discipline', 'name' => 'Дисциплины'),
array('url' => 'specialty', 'name' => 'Специальность'),
array('url' => 'methodological-literature', 'name' => 'Методическая литература'),
//array('url' => 'scientific-work', 'name' => 'Научные работы'),
array('url' => 'diploma-engineering', 'name' => 'Дипломное проектирование'),
array('url' => 'contacts', 'name' => 'Контакты'),
array('url' => 'sitemap', 'name' => 'Карта сайта'),
);
foreach($menu_array AS $vl)
{
$selected = $args[0] == $vl['url'] ? ' act' : '';
$menu.=''.$vl['name'].'
';
//$menu.=''.$vl['name'].'
';//чистые ссылки без q
}
include('./template/main.tpl.php');
?>