| 12
 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
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 
 |  
<?php
//if($sub == 0) $sub = 1;
if($PHP_IN_DOC and file_exists('./TPL/FR/page1.html'))
{
	INDEX_INIT_FILES( array('PAGE' => 'page1.html') );
 
	if (!isset($_GET['l']))
		$_GET['l'] = 'MENU1';
 
		//$_GET['l'] = 1;
 
 
			$sel = array(FALSE, FALSE, FALSE, FALSE, FALSE);
			switch($_GET['l'])
			{
				case 'MENU1': 
					$sel[0] = TRUE;
					$tpl->assign_block_vars('MENU1', array('foo', 'bar'));
					break;
				case 'MENU2':
					$sel[1] = TRUE;
					$tpl->assign_block_vars('MENU2', array('foo', 'bar'));
					break;
				case 'MENU3':
					$sel[2] = TRUE;
					$tpl->assign_block_vars('MENU3', array('foo', 'bar'));
                    break;  		
				case 'MENU4':
					$sel[3] = TRUE;
					$tpl->assign_block_vars('MENU4', array('foo', 'bar'));
					break;					
				case 'MENU5':
					$sel[4] = TRUE;
					$tpl->assign_block_vars('MENU5', array('foo', 'bar'));
					break;					
				case 'MENU6':
					$sel[5] = TRUE;
					$tpl->assign_block_vars('MENU6', array('foo', 'bar'));
					break;					
				default:
					$sel[0] = TRUE;
					$tpl->assign_block_vars('MENU1', array('foo', 'bar'));
					break;
			}
			$tab = array(	array('href' => 'MENU1', 'txt' => 'Menu_1', 'sel' => $sel[0]),
							array('href' => 'MENU2', 'txt' => 'Menu_2', 'sel' => $sel[1]),
							array('href' => 'MENU3', 'txt' => 'Menu_3', 'sel' => $sel[2]),
							array('href' => 'MENU4', 'txt' => 'Menu_4', 'sel' => $sel[3]),
							array('href' => 'MENU5', 'txt' => 'Menu_5', 'sel' => $sel[4]),
							array('href' => 'MENU6', 'txt' => 'Menu_6', 'sel' => $sel[5]));
 
			gen_tab($tab);
 
 
	$tpl->assign_var_from_handle('CORPS', 'PAGE');
} else
{
	include_once('./PAGES/E404.php');
}
 
?> |