<?php
/****************************************************************************************
SMI (Services Maintenance Interventions) est une gestion libre de maintenance et de SAV

Copyright (C) 2006  Sylvain FATOME

This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation; 
either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program
(in the directory docs); 
if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
Boston, MA  02110-1301, USA.

Contact : galawa@free.fr
****************************************************************************************/

session_start(); 
?>
<?php if ((@$HTTP_SESSION_VARS["etat_log"] <> "connecte") or ((@$HTTP_SESSION_VARS["niv_log"] <> 9) AND (@$HTTP_SESSION_VARS["niv_log"] <> 5))) header("Location: ../index.php") ?>
<?php include ("../inc/config.inc.php") ?>
<?php require ("../inc/func.inc.php") ?>
<?php require ("../inc/func_date.inc.php") ?>
<?php require ("../inc/func_log.inc.php") ?>
<?php require ("../inc/fic.inc.php") ?>
<?PHP
	Archivelog(@$HTTP_SESSION_VARS["code_log"]);
?>
<?php
	$co = strip_tags(trim($_GET['co'])); // Récupération code Contrat Client

	if ($co <> "")
	{
		// Récupération des informations intervention
		$row = lit_enr_cocl($co);
		extract ($row);

		$cocl_datecreaf = formatedate($cocl_datecrea);
		$cocl_datemodf = formatedate($cocl_datemod);
		$cocl_dateenvf = formatedate($cocl_dateenv);
		$cocl_daterelf = formatedate($cocl_daterel);
		$cocl_daterecf = formatedate($cocl_daterec);
	}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SMI - ESPACE PRIVE : D&eacute;tail Contrat Client</title>

<!-- Feuille de style pour les affichages courants -->
<link href="../inc/smi.css" rel="stylesheet" type="text/css">

<!-- Feuille de style pour les affichages du menu -->
<link href="../inc/menu.css" rel="stylesheet" type="text/css">

<!-- Scripts Javascript pour validation des formulaires -->
<script language="JavaScript" src="../inc/validator.js"></script>

<!-- Scripts Javascript pour affichages -->
<script language="JavaScript" src="../inc/aff.js"></script>

<!-- Scripts Javascript pour vérifications -->
<script language="JavaScript" src="../inc/verif.js"></script>

</head>

<body>

<p align="center"> <span class="titrepage">DETAILS DU CONTRAT CLIENT </span></p>
<p align="center"><span class="titre_gras"><?php echo $co; ?></span></p>

<!-- Date de création et de modification -->
<table width="800"  border="0">
<tr>
	<td width="160" class="tfvNormal" id="f_datecreaf"><div align="right">Cr&eacute;&eacute; le </div></td>
	<td>
		<input name="datecreaf" type="text" id="datecreaf" value="<?PHP echo $cocl_datecreaf ?>" size="10" maxlength="10" readonly="1">
		<?PHP 
			echo "<span class=\"annot_petit_it\">";
			echo " Par ".Retournecreateur($cocl_codecrea,$admin_code);
			echo "</span>";
		?>
	</td>
</tr>
</table>

<table width="800"  border="0">
<tr>
	<td width="160" class="tfvNormal" id="f_datemodf"><div align="right">Modifi&eacute; le </div></td>
	<td>
		<input name="datemodf" type="text" id="datemodf" value="<?PHP echo $cocl_datemodf ?>" size="10" maxlength="10" readonly="1">
		<?PHP 
			echo "<span class=\"annot_petit_it\">";
			echo " Par ".Retournecreateur($cocl_codemod,$admin_code);
			echo "</span>";
		?>
	</td>
</tr>
</table>
<br>

<table width="800"  border="0">
  <tr>
    <td width="160" class="tfvNormal" id="f_dateenvf"><div align="right">Envoy&eacute; le </div></td>
    <td>
		<input name="dateenvf" type="text" id="dateenvf" value="<?PHP echo $cocl_dateenvf ?>" size="10" maxlength="10" readonly="1">
    </td>
  </tr>
</table>
<table width="800"  border="0">
  <tr>
    <td width="160" class="tfvNormal" id="f_dateenvf"><div align="right">Relanc&eacute; le </div></td>
    <td>
		<input name="daterelf" type="text" id="daterelf" value="<?PHP echo $cocl_daterelf ?>" size="10" maxlength="10" readonly="1">
    </td>
  </tr>
</table>
<table width="800"  border="0">
  <tr>
    <td width="160" class="tfvNormal" id="f_dateenvf"><div align="right">Re&ccedil;u le </div></td>
    <td>
		<input name="dateenvf" type="text" id="dateenvf" value="<?PHP echo $cocl_daterecf ?>" size="10" maxlength="10" readonly="1">
    </td>
  </tr>
</table>
<br>

<!-- bouton de fermeture de la fenêtre -->
<div align="center">
    <input name="ferm" type="button" id="ferm" value="Fermer la fen&ecirc;tre" onclick="javascript:; self.close('fscomp');">
</div>

</body>
</html>
