mftech | Bonjour à tous
Je viens vers pour un problème avec mon code PHP. Je suis en train de m'arracher les quelques cheveux qu'il me reste sur le caillou !!
Code :
- Parse error: syntax error, unexpected 'else' (T_ELSE) in C:\wamp\www\trident\gestion.php on line 478
|
Je ne vois pas ou est le problème. Le nombre de "{" = "}"
Un grand MERCI à tous
Code :
- <?php
- session_start();
- header('Content-type: text/html; charset=utf-8');
- echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" );
- if (isset($_SESSION['IdOperateurBDD'])) // Si la session IDOperateur est init.
- {
- if ($_SESSION['$DroitOperateurBDD'] == 1)
- {
- if ($_POST['ChkTriNumeroRapprochement'] == "on" )
- {
- $NumeroRapprochement = $_POST['TriNumeroRapprochement'];
- $ReqTriNumeroRapprochement = "AND IdRapprochement = $NumeroRapprochement" ;
- }
- if ($_POST['ChkTriNumeroFactedaj'] == "on" )
- {
- $Numerofactedaj = $_POST['TriNumeroFactedaj'];
- $ReqTriNumeroFactedaj = "AND NumeroFactureedaj = $Numerofactedaj" ;
- }
- if ($_POST['ChkTriNumeroFactEDM'] == "on" )
- {
- $NumerofactEDM = $_POST['TriNumeroFactEDM'];
- $ReqTriNumeroFactEDM = "AND NumeroFactureEDM = $NumerofactEDM" ;
- }
- if ($_POST['ChkTriRatioinf2'] == "on" )
- {
- $ReqTri_ratio_inf2 = " AND (`MontantFactureedaj`/`MontantFactureEDM`) <2" ;
- }
- if ($_POST['ChkTriPraticien'] == "on" )
- {
- $numeropraticien =$_POST['praticien'];
- $req_tri_praticien = " AND IdOperateur = $numeropraticien" ;
- }
- if ($_POST['ChkTriCentre'] == "on" )
- {
- $numerocentre =$_POST['Centre'];
- $req_tri_centre = " AND IdCentre = $numerocentre" ;
- }
- if ($_POST['ChkTrinonvalide'] == "on" )
- {
- $numerononvalide =0;
- $req_tri_non_valide = " AND ValidationGestion = $numerononvalide" ;
- }
- if ($_POST['CHKTridate'] == "on" )
- {
- $Date1BLEDMJJ = $_POST['Date1BLEDMJJForm'];
- $Date1BLEDMMM = $_POST['Date1BLEDMMMForm'];
- $Date1BLEDMAAAA = $_POST['Date1BLEDMAAAAForm'];
- $Date2BLEDMJJ = $_POST['Date2BLEDMJJForm'];
- $Date2BLEDMMM = $_POST['Date2BLEDMMMForm'];
- $Date2BLEDMAAAA = $_POST['Date2BLEDMAAAAForm'];
- $Date1 = "{$Date1BLEDMAAAA}-{$Date1BLEDMMM}-{$Date1BLEDMJJ}";
- $Date2 = "{$Date2BLEDMAAAA}-{$Date2BLEDMMM}-{$Date2BLEDMJJ}";
- $req_tri_dateBLEDM = " AND Date_BL_EDM BETWEEN '$Date1' AND '$Date2'" ;
- }
- if ($_POST['ChkTriSousGarantie'] == "on" )
- {
- $numerononvalide =0;
- $req_tri_sous_garantie = " AND SousGarantie = 1" ;
- $_SESSION['ChkTriSousGarantie'] = 1;
- }
- if(!empty($ReqTriNumeroRapprochement))
- {
- $MessageTriNumeroRapprochement = " Numéro de rapprochement,";
- $_SESSION['ChkTriNumeroRapprochement'] = 1;
- $_SESSION['ReqTriNumeroRapprochement'] = $_POST['TriNumeroRapprochement'];
- }
- if(!empty($ReqTriNumeroFactedaj))
- {
- $MessageTriNumeroFactedaj = " Numero de facture edaj,";
- $_SESSION['ChkTriNumeroFactedaj'] = 1;
- $_SESSION['TriNumeroFactedaj'] = $_POST['TriNumeroFactedaj'];
- }
- if(!empty($ReqTriNumeroFactEDM))
- {
- $MessageTriNumeroFactEDM = " Numero de facture EDM,";
- $_SESSION['ChkTriNumeroFactEDM'] = 1;
- $_SESSION['TriNumeroFactEDM'] = $_POST['TriNumeroFactEDM'];
- }
- if(!empty($ReqTri_ratio_inf2))
- {
- $MessageTriratioinf2 = " Ratio inférieur à 2,";
- $_SESSION['ChkTriRatioInf2'] = 1;
- }
- if(!empty($req_tri_praticien))
- {
- $MessageTriPraticien = " Numéro de praticien,";
- $_SESSION['ChkTriPraticien'] = 1;
- $_SESSION['optionTriPraticien'] = $_POST['praticien'];
- }
- if(!empty($req_tri_centre))
- {
- $MessageTriCentre = " Centre,";
- $_SESSION['Tricentre'] = 1;
- $_SESSION['Centre'] = $_POST['Centre'];
- }
- if(!empty($req_tri_non_valide))
- {
- $MessageTriNonValide = " Rapprochements non validés par le gestionnaire,";
- $_SESSION['nonvalide'] = 1;
- }
- if(!empty($req_tri_dateBLEDM))
- {
- $MessageTriDateBLEDM = " Tri sur la date de BL EDM,";
- $_SESSION['ChkTriDate'] = 1;
- $_SESSION['Date1BLEDMJJForm'] = $_POST['Date1BLEDMJJForm'];
- $_SESSION['Date1BLEDMMMForm'] = $_POST['Date1BLEDMMMForm'];
- $_SESSION['Date1BLEDMAAAAForm'] = $_POST['Date1BLEDMAAAAForm'];
- $_SESSION['Date2BLEDMJJForm'] = $_POST['Date2BLEDMJJForm'];
- $_SESSION['Date2BLEDMMMForm'] = $_POST['Date2BLEDMMMForm'];
- $_SESSION['Date2BLEDMAAAAForm'] = $_POST['Date2BLEDMAAAAForm'];
- }
- if(!empty($req_tri_sous_garantie))
- {
- $MessageTriSousGarantie = " Tri sur les rapprochements couvert par la garantie,";
- }
- if($_POST['DelCritereTri'])
- {
- unset($_SESSION['ChkTriSousGarantie']);
- unset($_SESSION['ChkTriNumeroRapprochement']);
- unset($_SESSION['ReqTriNumeroRapprochement']);
- unset($_SESSION['ChkTriNumeroFactedaj']);
- unset($_SESSION['TriNumeroFactedaj']);
- unset($_SESSION['ChkTriNumeroFactEDM']);
- unset($_SESSION['TriNumeroFactEDM']);
- unset($_SESSION['nonvalide']);
- unset($_SESSION['ChkTriRatioInf2']);
- unset($_SESSION['ChkTriPraticien']);
- unset($_SESSION['ChkTriDate']);
- unset($_SESSION['Date1BLEDMJJForm']);
- unset($_SESSION['Date1BLEDMMMForm']);
- unset($_SESSION['Date1BLEDMAAAAForm']);
- unset($_SESSION['Date2BLEDMJJForm']);
- unset($_SESSION['Date2BLEDMMMForm']);
- unset($_SESSION['Date2BLEDMAAAAForm']);
- header('Location: /trident/gestion.php'); // retour à la case depart
- }
- try
- {
- // On se connecte àMySQL
- $bdd = new PDO('mysql:host=localhost;dbname=trident', 'trident_sql', '193gg',array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
- }
- catch(Exception $e)
- {
- // En cas d'erreur, on affiche un message et on arrête tout
- die('Erreur : '.$e->getMessage());
- }
- // Si tout va bien, on peut continuer
- $IdOperateurBdd = $_SESSION['IdOperateurBDD'];
- $sql = "SELECT * FROM `Rapprochement`,`Operateurs`,`Centre` WHERE IdCentre = CentreRapprochement AND IdOperateur = OperateurRapprochement $ReqTriNumeroRapprochement $ReqTriNumeroFactedaj $ReqTriNumeroFactEDM $ReqTri_ratio_inf2 $req_tri_praticien $req_tri_centre $req_tri_non_valide $req_tri_dateBLEDM $req_tri_sous_garantie ORDER BY `IdRapprochement` DESC";
- // On récupère tout le contenu des tables `Rapprochement`,`Operateurs`,`Centre`
- $reponse = $bdd->query($sql);
- // On recupère le contenu des tables Nom, prénom et centre en vue de la creation de la liste de tri.
- $sql_NomPrenomCentre = "SELECT `IdOperateur`, `NomOperateur`,`PrenomOperateur`, `NomCentre`, `IdCentre` FROM `Operateurs`,`Centre` WHERE `CentreOperateur` = `IdCentre` ORDER BY `NomOperateur`";
- $reponse_NomPrenomCentre = $bdd->query($sql_NomPrenomCentre);
- // On récupère le contenu de la table centre pour la creation du tri par centre
- $sql_tri_centres = "SELECT `IdCentre`,`NomCentre` FROM `Centre`";
- $reponse_tri_centres = $bdd->query($sql_tri_centres);
- $sql_document = "SELECT DISTINCT `IdRapprochementUp` FROM `Upload`";
- $reponse_sql_document = $bdd->query($sql_document);
- /* Récupération de toutes les valeurs de la première colonne */
- $tableau_document = $reponse_sql_document->fetchAll(PDO::FETCH_COLUMN, 0);
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <script type="text/javascript" src="calendar.js"></script>
- <title>TRIdent</title></head>
- <body>
- <link rel="stylesheet" href="images/HigherGround.css" type="text/css" />
- <!-- wrap starts here -->
- <div id="wrap">
- <div id="top-bg"></div>
- <!--header -->
- <div id="header">
- <h1 id="logo-text"><a href="index.php" title="">TRI<span>dent</span></a></h1>
- <link rel="stylesheet" href="images/HigherGround.css" type="text/css" />
- <h2 id="slogan">Bienvenue sur TRIdent</h2>
- <div id="header-links">
- <p>
- | <a href="index.php">Accueil</a> |
- <a href="changelog.txt">Changelog</a> |
- <a href="logout.php">Déconnexion</a> |
- </p>
- </div>
- <!--header ends-->
- </div>
- <div id="header-photo"></div>
- <!-- navigation starts-->
- <div id="nav">
- <ul>
- <li id="current"><a href="index.php">Accueil</a></li>
- <li><a href="menu.php">Menu</a></li>
- <li><a href="travaux.html">Documentation</a></li>
- </ul>
- <!-- navigation ends-->
- </div>
- <!-- content-wrap starts -->
- <div id="content-wrap">
- <form method="post" action="gestion.php">
- <p>
- <h2>Critères de tri :</h2><br />
- <?php
- if(isset($_SESSION['ChkTriNumeroRapprochement']))
- {
- ?>
- <label for="CHKTriNumeroRapprochement">Numéro de rapprochement </label><input type="checkbox" name="ChkTriNumeroRapprochement" id="TriNumeroRapprochement" tabindex="1" checked="checked" /><input type="text" name="TriNumeroRapprochement" value="<?php echo $_SESSION['ReqTriNumeroRapprochement']; ?>" tabindex="2"/><br />
- <?php
- }
- else
- {
- ?>
- <label for="CHKTriNumeroRapprochement">Numéro de rapprochement </label><input type="checkbox" name="ChkTriNumeroRapprochement" id="TriNumeroRapprochement"tabindex="1" /><input type="text" name="TriNumeroRapprochement" tabindex="2"/><br />
- <?php
- }
- ?>
- <?php
- if(isset($_SESSION['ChkTriNumeroFactedaj']))
- {
- ?>
- <label for="CHKTriNumeroFactedaj">Numéro de facture edaj </label><input type="checkbox" name="ChkTriNumeroFactedaj" id="TriNumeroFactedaj" checked="checked" tabindex="3" /><input type="text" name="TriNumeroFactedaj" tabindex="4" value="<?php echo $_SESSION['TriNumeroFactedaj'];?>" /> <br />
- <?php
- }
- else
- {
- ?>
- <label for="CHKTriNumeroFactedaj">Numéro de facture edaj </label><input type="checkbox" name="ChkTriNumeroFactedaj" id="TriNumeroFactedaj" tabindex="3" /><input type="text" name="TriNumeroFactedaj" tabindex="4" /> <br />
- <?php
- }
- ?>
- <?php
- if(isset($_SESSION['ChkTriNumeroFactEDM']))
- {
- ?>
- <label for="CHKTriNumeroFactEDM">Numéro de facture EDM </label><input type="checkbox" name="ChkTriNumeroFactEDM" id="TriNumeroFactEDM" tabindex="5" checked="checked" /><input type="text" name="TriNumeroFactEDM" tabindex="6" value="<?php echo $_SESSION['TriNumeroFactEDM']; ?>" /><br />
- <?php
- }
- else
- {
- ?>
- <label for="CHKTriNumeroFactEDM">Numéro de facture EDM </label><input type="checkbox" name="ChkTriNumeroFactEDM" id="TriNumeroFactEDM" tabindex="5" /><input type="text" name="TriNumeroFactEDM" tabindex="6" /><br />
- <?php
- }
- ?>
- <?php
- if(isset($_SESSION['ChkTriRatioInf2']))
- {
- ?>
- <label for="TriRatioinf2">Ratio inférieur à 2 </label> <input type="checkbox" name="ChkTriRatioinf2" id="TriRatioinf2" tabindex="7" checked="checked" /> <br />
- <?php
- }
- else
- {
- ?>
- <label for="TriRatioinf2">Ratio inférieur à 2 </label> <input type="checkbox" name="ChkTriRatioinf2" id="TriRatioinf2" tabindex="7" /> <br />
- <?php
- }
- ?>
- <?php
- if(isset($_SESSION['nonvalide']))
- {
- ?>
- <label for="TriCroixRouge">Rapprochement non validé par le gestionnaire </label> <input type="checkbox" name="ChkTrinonvalide" id="ChkTrinonvalide" tabindex="8" checked="checked" /> <br />
- <?php
- }
- else
- {
- ?>
- <label for="TriCroixRouge">Rapprochement non validé par le gestionnaire </label> <input type="checkbox" name="ChkTrinonvalide" id="ChkTrinonvalide" tabindex="8" /> <br />
- <?php
- }
- ?>
- <?php
- if(isset($_SESSION['ChkTriSousGarantie']))
- {
- ?>
- <label for="TriSousGarantie">Travaux sous garantie</label> <input type="checkbox" name="ChkTriSousGarantie" id="ChkTriSousGarantie" tabindex="9" checked="checked" /> <br />
- <?php
- }
- else
- {
- ?>
- <label for="TriSousGarantie">Travaux sous garantie</label> <input type="checkbox" name="ChkTriSousGarantie" id="ChkTriSousGarantie" tabindex="9" /> <br />
- <?php
- }
- ?>
- <?php
- if(isset($_SESSION['ChkTriPraticien']))
- {
- ?>
- <label for="CHKTriPraticien">Praticien </label><input type="checkbox" checked="checked" name="ChkTriPraticien" id="TriPraticien" tabindex="10" /><select name="praticien" id="Praticien">
- <option tabindex="11" value="<?php echo $_SESSION['optionTriPraticien']; ?>"> Tri sur opérateur : ACTIF </option>
- <?php
- while ($donnees_NomPrénomCentre = $reponse_NomPrenomCentre->fetch())
- {
- $OperateurIdTri = $donnees_NomPrénomCentre['IdOperateur'];
- $OperateurTri = $donnees_NomPrénomCentre['NomOperateur'] . " " . $donnees_NomPrénomCentre['PrenomOperateur'] . "     ( " . $donnees_NomPrénomCentre['NomCentre'] . " ) " ;
- ?>
- <option tabindex="11" value="<?php echo $OperateurIdTri; ?>"> <?php echo $OperateurTri; ?> </option>
- <?php
- }
- }
- else
- {
- ?>
- <label for="CHKTriPraticien">Praticien </label><input type="checkbox" name="ChkTriPraticien" id="TriPraticien" tabindex="10" /><select name="praticien" id="Praticien">
- <?php
- while ($donnees_NomPrénomCentre = $reponse_NomPrenomCentre->fetch())
- {
- $OperateurIdTri = $donnees_NomPrénomCentre['IdOperateur'];
- $OperateurTri = $donnees_NomPrénomCentre['NomOperateur'] . " " . $donnees_NomPrénomCentre['PrenomOperateur'] . "     ( " . $donnees_NomPrénomCentre['NomCentre'] . " ) " ;
- ?>
- <option tabindex="11" name="optionTriPraticien" value="<?php echo $OperateurIdTri; ?>"> <?php echo $OperateurTri; ?> </option>
- <?php
- }
- }
- ?>
- </select><br />
- <?php
- if (isset($_SESSION['Centre']))
- {
- ?>
- <label for="TriCentre">Centre </label><input type="checkbox" name="ChkTriCentre" id="TriCentre tabindex="12" /><select tabindex="13" name="Centre" id="Centre">
- <?php
- while ($donnees_tri_centre = $reponse_tri_centres->fetch())
- {
- $CentreId =$donnees_tri_centre['IdCentre'];
- $CentreTri =$donnees_tri_centre['NomCentre'];
- ?>
- <option tabindex="14" value="<?php echo $CentreId; ?>"> <?php echo $CentreTri; ?> </option>
- <?php
- }
- // Script ci-dessous permet de passer d'un champ a un autre au niveau de la date
- ?>
- </select><br />
- <?php
- }
- ?>
- <?php
- else
- {
- echo "ok";
- }
- ?>
- <script type="text/javascript">
- function toUnicode(elmnt,content){
- if (content.length==elmnt.maxLength){
- next=elmnt.tabIndex
- if (next<document.forms[0].elements.length){
- document.forms[0].elements[next].focus()
- }
- }
- }
- </script>
- <?php
- if(isset($_SESSION['ChkTriDate']))
- {
- ?>
- <label for="CHKTridate">Date des BL EDM </label><input type="checkbox" checked="checked" name="CHKTridate" id="TriNumeroRapprochement" />Entre le...
- <span>
- <input id="element_9_1" tabindex="15" name="Date1BLEDMJJForm" class="element text" size="2" maxlength="2" type="text" value="<?php echo $_SESSION['Date1BLEDMJJForm'];?>" onkeyup="toUnicode(this,this.value)"> /
- </span>
- <span>
- <input id="element_9_2" tabindex="16" name="Date1BLEDMMMForm" class="element text" size="2" maxlength="2" type="text" value="<?php echo $_SESSION['Date1BLEDMMMForm'];?>" onkeyup="toUnicode(this,this.value)"> /
- </span>
- <span>
- <input id="element_9_3" tabindex="17" name="Date1BLEDMAAAAForm" class="element text" size="4" maxlength="4" type="text" value="<?php echo $_SESSION['Date1BLEDMAAAAForm'];?>" onkeyup="toUnicode(this,this.value)">
- </span>
- ...et le
- <span>
- <input id="element_9_1" tabindex="18" name="Date2BLEDMJJForm" class="element text" size="2" maxlength="2" type="text" value="<?php echo $_SESSION['Date2BLEDMJJForm'];?>" onkeyup="toUnicode(this,this.value)"> /
- </span>
- <span>
- <input id="element_9_2" tabindex="19" name="Date2BLEDMMMForm" class="element text" size="2" maxlength="2" type="text" value="<?php echo $_SESSION['Date2BLEDMMMForm'];?>" onkeyup="toUnicode(this,this.value)"> /
- </span>
- <span>
- <input id="element_9_3" tabindex="20" name="Date2BLEDMAAAAForm" class="element text" size="4" maxlength="4" type="text" value="<?php echo $_SESSION['Date2BLEDMAAAAForm'];?>" onkeyup="toUnicode(this,this.value)">
- </span> <br /><br />
- <?php
- }
- else
- {
- ?>
- <label for="CHKTridate">Date des BL EDM </label><input type="checkbox" name="CHKTridate" id="TriNumeroRapprochement" />Entre le...
- <span>
- <input id="element_9_1" tabindex="15" name="Date1BLEDMJJForm" class="element text" size="2" maxlength="2" value="" type="text" onkeyup="toUnicode(this,this.value)"> /
- </span>
- <span>
- <input id="element_9_2" tabindex="16" name="Date1BLEDMMMForm" class="element text" size="2" maxlength="2" value="" type="text" onkeyup="toUnicode(this,this.value)"> /
- </span>
- <span>
- <input id="element_9_3" tabindex="17" name="Date1BLEDMAAAAForm" class="element text" size="4" maxlength="4" value="" type="text" onkeyup="toUnicode(this,this.value)">
- </span>
- ...et le
- <span>
- <input id="element_9_1" tabindex="18" name="Date2BLEDMJJForm" class="element text" size="2" maxlength="2" value="" type="text" onkeyup="toUnicode(this,this.value)"> /
- </span>
- <span>
- <input id="element_9_2" tabindex="19" name="Date2BLEDMMMForm" class="element text" size="2" maxlength="2" value="" type="text" onkeyup="toUnicode(this,this.value)"> /
- </span>
- <span>
- <input id="element_9_3" tabindex="20" name="Date2BLEDMAAAAForm" class="element text" size="4" maxlength="4" value="" type="text" onkeyup="toUnicode(this,this.value)">
- </span> <br /><br />
- <?php
- }
- ?>
- <input type="submit" value="Envoyer" tabindex="21" />
- <input type="submit" name="DelCritereTri" value="Supprimer la sauvegarde des critères de tri" tabindex="22" />
- </p>
- </form>
- <TABLE>
- <CAPTION> <b>Critères de tri actifs</b>: <?php echo $MessageTriNumeroRapprochement, $MessageTriNumeroFactedaj, $MessageTriNumeroFactedaj, $MessageTriNumeroFactEDM, $MessageTriratioinf2, $MessageTriPraticien, $MessageTriCentre, $MessageTriNonValide, $MessageTriDateBLEDM, $MessageTriSousGarantie; ?> </CAPTION>
- <TR>
- <TH> Numéro du rapprochement </TH>
- <TH> Centre du rapprochement </TH>
- <TH> Opérateur du rapprochement </TH>
- <TH> Date du Bon de Livraison EDM </TH>
- <TH> Patient </TH>
- <TH> Numéro du patient sous edaj </TH>
- <TH> Numéro de la facture sous edaj </TH>
- <TH> Montant de la facture edaj </TH>
- <TH> Numéro de la facture EDM </TH>
- <TH> Montant de la facture EDM </TH>
- <TH> Observations </TH>
- <TH> Ratio </TH>
- <TH> Validation gestionnaire </TH>
- <TH> Sous garantie </TH>
- <TH> Observations Gestionnaire </TH>
- </TR>
- <?php
- // On affiche chaque entrée une àune
- while ($donnees = $reponse->fetch())
- {
- $MontantFactureedajFormate = number_format($donnees['MontantFactureedaj'],2,',','');
- $MontantFactureEDMFormate = number_format($donnees['MontantFactureEDM'],2,',','');
- $ratio = number_format(($donnees['MontantFactureedaj'] / $donnees['MontantFactureEDM']),3,',','');
- $validation_gestion = $donnees['ValidationGestion'];
- $sousgarantie = $donnees['SousGarantie'];
- ?>
- <TR>
- <TH> <a href="detail.php?IdRapprochementDetail=<?php echo $donnees['IdRapprochement']; ?>"><?php echo $donnees['IdRapprochement'];
- if (in_array($donnees['IdRapprochement'], $tableau_document)){?>
- <img src="images/trombone.gif"/><?php
- } ?></a> </TH>
- <TD> <?php echo $donnees['NomCentre']; ?> </TD>
- <TD> <?php echo $donnees['NomOperateur'] . " " . $donnees['PrenomOperateur']; ?> </TD>
- <TD> <?php echo ereg_replace("([0-9]{4})-([0-9]{2})-([0-9]{2})", "\\3/\\2/\\1", $donnees['Date_BL_EDM']); ?> </TD>
- <TD> <?php echo $donnees['NomPatient']; echo " "; echo $donnees['PrenomPatient']; ?> </TD>
- <TD> <?php echo $donnees['NumeroPatientedaj']; ?> </TD>
- <TD> <?php echo $donnees['NumeroFactureedaj']; ?> </TD>
- <TD> <?php echo $MontantFactureedajFormate; ?> </TD>
- <TD> <?php echo $donnees['NumeroFactureEDM']; ?> </TD>
- <TD> <?php echo $MontantFactureEDMFormate; ?> </TD>
- <TD> <?php echo $donnees['ObservationRapprochement']; ?> </TD>
- <?php
- if ($ratio < 2)
- {?>
- <TD bgcolor=#ff3300> <?php echo $ratio; ?> </TD>
- <?php
- }
- else
- {?>
- <TD bgcolor=#99cc66> <?php echo $ratio; ?> </TD>
- <?php
- }
- if ($validation_gestion == 0)
- {?>
- <TD><img src="images/cocherouge.png" width="20" height="20" alt="firefox" /> </TD>
- <?php
- }
- else
- {
- ?>
- <TD><img src="images/cocheverte.gif" width="20" height="20" alt="firefox" /> </TD>
- <?php
- }
- ?>
- <?php
- if ($sousgarantie == 1)
- {?>
- <TD><img src="images/cocheverte.gif" width="20" height="20" alt="firefox" /> </TD>
- <?php
- }
- else
- {
- ?>
- <TD> </TD>
- <?php
- }
- ?>
- <TD> <?php echo $donnees['ObservationGestion']; ?> </TD>
- </TR>
-
- <?php
- ?>
- <?php
- }
- ?>
- </TABLE>
- <div id="main">
- <?php
- $reponse->closeCursor(); // Termine le traitement de la requête
- ?>
- <div id="footer-bottom">
- <p>
- © 2013 <strong></strong>
-
- </p>
- </div>
- <!-- footer ends-->
- </div>
- <!-- wrap ends here -->
- </div>
- </body>
- </html>
- <?php
- }
- else
- {
- header('Location: /trident/menu.php'); // Tu n'est pas admin...retour au menu
- }
- }
- else
- {
- header('Location: /trident/index.php'); // Va t'authentifié !
- }
- ?>
- </img>
- </div>
- </body>
- </html>
- </html>
|
Message édité par mftech le 03-10-2013 à 09:53:52
|