<?php
require_once("class_page.php");
$page = new page();

$aCat = explode(',', $_REQUEST['catID']);
switch ($aCat[0])
{
default:
	$aCat[0] = 1;
case "1" :
	$lnk_rubrik = array(0 => ' href="'.$_SERVER['PHP_SELF'].'?catID=1,0">Présentation',
						1 => ' href="'.$_SERVER['PHP_SELF'].'?catID=1,1">aide',
						2 => ' href="'.$_SERVER['PHP_SELF'].'?catID=1,2">astuces');
	switch ($aCat[1])
	{
	case "1" :
		//$page = new content("fr/bureau/aide/aide.inc.htm");
		if (! $aCat[2])
			$aCat[2] = 1;
		$page = new webatooHelp();
    break;
	case "2" :
		$page = new webatooTips();
    break;
    default :
		$aCat[1] = 0;
		$page = new content("fr/bureau/index.inc.htm");
    }
break;
case "2" :
	$lnk_rubrik = array(1 => ' href="'.$_SERVER['PHP_SELF'].'?catID=2,1">connexion sécurisée',
						2 => ' href="'.$_SERVER['PHP_SELF'].'?catID=2,2">sécurité des données');
    switch ($aCat[1])
    {
	case "1" :
		$page = new content("fr/securite/connexion.inc.htm");
    break;
	case "2" :
		$page = new content("fr/securite/donnees.inc.htm");
    break;
    default :
		$aCat[1] = 0;
		$page = new content("fr/securite/securite.inc.htm");
    }
break;
case "3" :
	//$page = new content("lib_rbldns.php");
	//$lnk_rubrik = array(0 => ' href="'.$_SERVER['PHP_SELF'].'?catID=3,0">Informations');
	$page = new content("fr/dnsbl/index.inc.htm");
break;
case "4" :
	exit;
	require_once("lib_mrtg.php");
	$page = new mrtg();
break;
case "5" :
	require_once('lib_contact.php');
	$page = new contact();
break;
/*
default  :
	$aCat[0] = 0;
	$page = new content("fr/accueil.inc.htm");
*/
}

$page->head();
?>
<html>
<head>
<title>::: Support - M&eacute;diation T&eacute;l&eacute;com :::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="styles.css" type="text/css">
<script src="/scripts/script.js" type="text/javascript"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="755" border=0 cellpadding=0 cellspacing=0 style="border: 1px solid #818181" align="center">
  <tr> 
    <td rowspan="5" background="img_pages/fond.gif"><img src="img_pages/transparent.gif" width="10" height="1"></td>
    <td bgcolor="#818181"><img src="img_pages/transparent.gif" width="1" height="74" alt=""></td>
    <td colspan=3><?=($aCat[0] ?
		"<a href=\"".$_SERVER['PHP_SELF']."?catID=0\"><img src=\"img_bandeau/logo.gif\" width=\"229\" height=\"74\" border=\"0\" alt=\"Retour à l'accueil\"></a>" :
		"<img src=\"img_bandeau/logo.gif\" width=\"229\" height=\"74\" alt=\"Médiation Télécom\">")?></td>
    <td colspan=3><img src="img_bandeau/image02.gif" width="252" height="74" alt=""></td>
    <td colspan=3><img src="img_bandeau/rub<?=$aCat[0]?>/support.gif" width="274" height="74" alt="Support"></td>
    <td rowspan="5" background="img_pages/fond.gif" style="border-left: 1px solid #818181"> 
      <img src="img_pages/transparent.gif" width="10" height="1"></td>
  </tr>
<!--
  <tr> 
    <td bgcolor="#818181"><img src="img_pages/transparent.gif" width="1" height="21" alt=""></td>
    <td><img src="img_bandeau/rub<?=$aCat[0]?>/image04.gif" width="31" height="21" alt=""></td>
    <td><a href="<?=$_SERVER['PHP_SELF']?>?catID=1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('bureau','','img_bandeau/rub<?=$aCat[0]?>/bureau2.gif',1)"><img name="bureau" src="img_bandeau/rub<?=$aCat[0]?>/bureau.gif" width="149" height="21" alt="Bureau mobile" border="0"></a></td>
    <td colspan=2><a href="<?=$_SERVER['PHP_SELF']?>?catID=2" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('securite','','img_bandeau/rub<?=$aCat[0]?>/securite2.gif',1)"><img name="securite" src="img_bandeau/rub<?=$aCat[0]?>/securite.gif" width="103" height="21" alt="Sécurité" border="0"></a></td>
    <td><a href="<?=$_SERVER['PHP_SELF']?>?catID=3" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('dnsbl','','img_bandeau/rub<?=$aCat[0]?>/dnsbl2.gif',1)"><img name="dnsbl" src="img_bandeau/rub<?=$aCat[0]?>/dnsbl.gif" width="166" height="21" alt="DNSBL" border="0"></a></td>
    <td colspan=2><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('statistiques','','img_bandeau/rub<?=$aCat[0]?>/statistiques2.gif',1)"><img name="statistiques" src="img_bandeau/rub<?=$aCat[0]?>/statistiques.gif" width="178" height="21" alt="Statistiques liaisons" border="0"></a></td>
    <td><a href="<?=$_SERVER['PHP_SELF']?>?catID=5" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contact','','img_bandeau/rub<?=$aCat[0]?>/contact2.gif',1)"><img name="contact" src="img_bandeau/rub<?=$aCat[0]?>/contact.gif" width="102" height="21" alt="Contact" border="0"></a></td>
    <td><img src="img_bandeau/rub<?=$aCat[0]?>/image10.gif" width="26" height="21" alt=""></td>
  </tr>
-->
  <tr> 
    <td bgcolor="#818181"><img src="img_pages/transparent.gif" width="1" height="21" alt=""></td>
    <td colspan=9 style="padding-right: 4px" bgcolor="#C4C4C4"> 
      <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
<?php
if (is_array($lnk_rubrik) && sizeof($lnk_rubrik))
{
	foreach($lnk_rubrik as $key => $val)
	{
		echo "          <td style=\"padding-left: 2px; padding-right: 2px\"><img src=\"img_bandeau/sep.gif\" width=\"13\" height=\"21\"></td>\n";
		echo "          <td style=\"padding-left: 2px; padding-right: 2px\" bgcolor=\"#C4C4C4\" nowrap><a class=\"".($aCat[1]==$key ? "menu2" : "menu1")."\" ".$val."</a></td>\n";
	}
}
?>
          <td background="img_bandeau/fond_points.gif" style="background-repeat: repeat-x" width="100%"> 
            <img src="img_pages/transparent.gif" width="1" height="21" alt=""></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td bgcolor="#818181"><img src="img_pages/transparent.gif" width="1" height="314" alt=""></td>
    <td bgcolor="#FFFFFF" colspan=9 style="padding: 8px" valign="top"> 
<?php $page->body(); ?>
    </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td bgcolor="#818181"><img src="img_pages/transparent.gif" width="1" height="1" alt=""></td>
    <td><img src="img_bandeau/espaceur.gif" width="31" height="1" alt=""></td>
    <td><img src="img_bandeau/espaceur.gif" width="149" height="1" alt=""></td>
    <td><img src="img_bandeau/espaceur.gif" width="49" height="1" alt=""></td>
    <td><img src="img_bandeau/espaceur.gif" width="54" height="1" alt=""></td>
    <td><img src="img_bandeau/espaceur.gif" width="166" height="1" alt=""></td>
    <td><img src="img_bandeau/espaceur.gif" width="32" height="1" alt=""></td>
    <td><img src="img_bandeau/espaceur.gif" width="146" height="1" alt=""></td>
    <td><img src="img_bandeau/espaceur.gif" width="102" height="1" alt=""></td>
    <td><img src="img_bandeau/espaceur.gif" width="26" height="1" alt=""></td>
  </tr>
</table>
</body>
</html>
