<html>

 <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Rapports</title>
<link href="/scoutsmm.qc.ca/base/baseCSS.css" rel="stylesheet" type="text/css">
<body>

<?php 

//Fichiers contenant les fonctions utilis&eacute;es dans le script.
require("../outils/gui.php");
require("../outils/session.php");
require("../outils/mise_en_page.php");
require("../historique.php");


//V&eacute;rifier si la session est valide.
$Bsession_id = $_GET["Bsession_id"];
verifierSession($Bsession_id);

//V&eacute;rifier les droits de l'utilisateur.
$privilege_base = lirePrivilege($Bsession_id);
if (($privilege_base != 2) and ($privilege_base != 1))
	die("Vous n'avez pas les droits!");
	
	
historique("../historique.txt","MENU RAPPORT",$Bsession_id);	
$date = date('Y-m-d');
//RAPPORTS*************************************************************************
?>	
<h1>RAPPORTS</h1>
<br>

<table cellspacing=0 cellpadding=0 border=0 width=800px>

<tr>
	<td width=64px valign=top><img src=images/icon_01.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<a href=<?php  print("revenu-location.php?Bsession_id=".$Bsession_id); ?> >Revenus d'op&eacute;ration des locations</a>
	</td>
	<td width=64px valign=top><img src=images/icon_02.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<a href=<?php  print("rapport_clienteles.php?Bsession_id=".$Bsession_id); ?> >Statistique de fr&eacute;quentation</a>
	</td>
</tr>

<tr>
	<td width=64px valign=top><img src=images/icon_03.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<a href=<?php  print("prevision.php?Bsession_id=".$Bsession_id); ?> >Pr&eacute;vision - suivis des locations</a>
	</td>
	<td width=64px valign=top><img src=images/icon_04.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<a href=<?php  print("depot_par_mois.php?Bsession_id=".$Bsession_id); ?> >Liste des d&eacute;pots par mois</a>
	</td>
</tr>

<tr>
	<td width=64px valign=top><img src=images/icon_05.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<a href=<?php  print("contrat-non-payer.php?Bsession_id=".$Bsession_id); ?> >Contrats non pay&eacute;</a><br>
		<a href=<?php  print("contrat-non-payer-date.php?Bsession_id=".$Bsession_id); ?> >Contrats non pay&eacute; en date du <?php  print($date); ?></a><br>
        <a href=<?php  print("contrat-non-payer-date_mars.php?Bsession_id=".$Bsession_id); ?> >Contrats non pay&eacute; jusquau 21 mars 2008</a><br>
	</td>
	<td width=64px valign=top><img src=images/icon_08.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<a href=<?php  print("rapport-client.php?Bsession_id=".$Bsession_id."&etape=3"); ?> >Rapport de la client&egrave;le</a>
	<td valign=top><h2>
	</td>
</tr>
<tr>
	<td width=64px valign=top><img src=images/icon_01.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<a href=<?php  print("revenu-location_bak3.php?Bsession_id=".$Bsession_id); ?> >Revenus d'op&eacute;ration des locations (&agrave; l'ancienne)</a>
	</td>

	<td width=64px valign=top><img src=images/icon_02.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<a href=<?php  print("rapport_clienteles_annee.php?Bsession_id=".$Bsession_id); ?> >Statistique de fr&eacute;quentation annuelle</a>
	</td>

</tr>

</table>

<BR><BR><BR>

<h1>FORMULAIRES</h1>
<br>

<table cellspacing=0 cellpadding=0 border=0 width=800px>

<tr>
	<td width=64px valign=top><img src=images/icon_06.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<B>Rapport d'activit&eacute; hebdomadaire</B><BR>
		<img src=images/icon_creer.jpg>
		<a href=<?php  print("rapport-gestion.php?Bsession_id=".$Bsession_id."&etape=1"); ?> >Cr&eacute;er</a>&nbsp;&nbsp;&nbsp;&nbsp;
		<img src=images/icon_consulter.jpg>
		<a href=<?php  print("rapport-gestion.php?Bsession_id=".$Bsession_id."&etape=3"); ?> >Consulter</a>
	</td>
</tr>

<tr>	
	<td width=64px valign=top><img src=images/icon_07.jpg></td><!--ICONE-->
	<td valign=top><h2>
		<B>Pr&eacute;sence et entretien des bases</B><BR>
		<img src=images/icon_creer.jpg>
		<a href=<?php  print("rapport-entretien.php?Bsession_id=".$Bsession_id."&etape=1"); ?> >Cr&eacute;er</a>&nbsp;&nbsp;&nbsp;&nbsp;
		<img src=images/icon_consulter.jpg>
		<a href=<?php  print("rapport-entretien.php?Bsession_id=".$Bsession_id."&etape=3"); ?> >Consulter</a>
	</td>
</tr>


</table>

<BR><BR><BR>
		
		


	

<?php 


$sql_usager = "SELECT usager
					FROM usager
					WHERE bidsession = '$Bsession_id';";
	$result_usager = mysql_query($sql_usager) or die("Probl&egrave;me de recherche du client!".$sql_usager."<br>");
	$row_usager = mysql_fetch_row ($result_usager);
	$usager = $row_usager[0];

if ($usager == 'lavertun')
{
	//DEGUG****************************************************************************
	print("<center><BR><BR><BR><font size=5><u><b>Debugs</b></u><br><br>");	
	print("<font size=3>");	
	
	//REGISTRE DES S&Eacute;JOURS NON COMPL&Eacute;T&Eacute;
	print("<a href=\"registre-sejours-vide.php?Bsession_id=$Bsession_id\">Registre des s&eacute;jours non compl&eacute;t&eacute;s</a><br>");	
	
	//REGISTRE DE TOUT LES CONTRATS 
	print("<a href=\"debug.php?Bsession_id=$Bsession_id\">REGISTRE DE TOUT LES CONTRATS</a><br>");	
	
	//DEBUG DU CALENDRIER
	print("<a href=\"debug_calendrier.php?Bsession_id=$Bsession_id\">DEBUG DU CALENDRIER</a><br>");	
	
	//BACKUP DU CHALET
	print("<a href=\"../contract/backup_chalet.php?Bsession_id=$Bsession_id\">BACKUP CHALET</a><br>");
	
	//BACKUP DE REF1ANNUELLES
	print("<a href=\"../contract/backup_ref1annuelles.php?Bsession_id=$Bsession_id\">BACKUP REF1ANNUELLES</a><br>");
	
	//BACKUP DU CONTRAT
	print("<a href=\"../contract/backup_contrat.php?Bsession_id=$Bsession_id\">BACKUP CONTRAT</a><br>");
	
	//DEBUG DU HISTORIQUE
	print("<a href=\"../historique.txt\">HISTORIQUE</a></center><br>");
}



	
//BAS DE PAGE*****************************************************************
print("<br><hr><center>");
	//Afficher le bouton de retour au menu principal.
	print("<form action=\"../menu-base.php?Bsession_id=".$_GET['Bsession_id']."\" method=\"post\" name=\"principal\">");
	print("<input type=\"hidden\" name=\"Bsession_id\" value=".$_GET['Bsession_id'].">");
	print("<input type=\"submit\" name=\"menu_principal\" value=\"Menu Principal\"></form>");	


	
?>

</body>
</html>	
	
	
	
	
