Tom's Guide > Forum > Programmation > Pb EasyPhp
Mot :    Pseudo :           
 

Bonjour à tous,

Voilà, j'ai un problème avec EasyPhp, en gros je n'arrive pas à afficher mes pages web.

Par exemple voici la page du localhost :

http://www.tsawri.com/out.php/i7475_localhost.JPG

Et voici l'une des page de mon site:

http://www.tsawri.com/out.php/i7476_Hay.JPG

En sachant que n'étant pas administrateur sur la machine ou je travail, quand je lance easyphp j'ai un message d'erreur :

"Vous n'êtes pas administrateur de nombreuses actions vous seront inaccessibles"

Voilà, si quelqu'un savait pourquoi ça me fait ça, se serait bien arrangeant pour moi.


Message édité par Bruenor911 le 19-03-2008 à 12:14:52
Liens sponsorisés
Inscrivez-vous ou connectez-vous pour masquer ceci.

Php n'est pas interprété par Apache, peut etre du au droit administrateur justement ? Quel extenssion à ta page ? bien php ?

Répondre à okinou

Oui je viens de vérifier, mes pages sont bient sous la forme *.php .

Et ce qui me semble bizarre, c'est que moi j'ai mal fait mon site ça peut arriver, mais par contre (pour la première image que j'ai mit) c'est une page d'EasyPhp , donc qui n'a rien à voir avec moi.

Voilà pour les infos.

Merci,

Répondre à Bruenor911

A tu bien mis <?php au debut de tes page et non juste <?

Répondre à stephj915

Je te conseil tout de meme plutot wampeserveur

Répondre à stephj915

Rebonjour,

Pour l'instant je test, et il me semble que le fait de changer la balise <? en <?php améliore les choses. Je vous tiens au courant.

Répondre à Bruenor911

Re,

voilà j'ai un problème sur ces lignes :

if (!$_GET['print'])
echo '<div align="center"><input type="button" name="print" value="Imprimer la liste"
onclick="window.open(\'index.php?print=true\', \'_parent\')"></div>';

if ($_GET['print']) { echo '<div align="center"><a href="index.php">Revenir à la liste des postes</a></div>'; imprimer();}

avec le message d'erreur suivant :

Undefined index: print in MonFichier on line X

J'ai essayé if (!array_key_exists('print',$_GET)) $_GET['print']=0; avec ce test j'ai plus de message d'erreur qui s'affiche, mais bon je sais pas si c'est ce qu'il y'a de mieux à faire.
Car réellement je test juste si mon index 'print' existe et si non je lui donne une valeur.

Personnelement j'y connais rien en php, j'apprend sur le tas.

Répondre à Bruenor911

J'ai uen autre erreur, sur une autre page :

Parse error: parse error, unexpected $end in D:\Program Files\EasyPHP 2.0b1\www\Site_HAY\tableau.php on line 518

Si j'ai bien compris, c'est une erreur de code, une ligne non fermé, ou une acolade ou autre .... Déjà pourrait t'on me confirmé ça que je ne cherche pas pour rien.

Sinon voici mon code de tableau.php

Code :
  1. <?php
  2. // inclusion du logo
  3. include ("logo.php" );
  4. //inclusion de l'en-tête de page
  5. if (!$_GET['print']) include ("_top.php" );
  6. //inclusion du fichier contenant les différentes fonctions
  7. include ("fonctions.php" );
  8. ?>
  9. <!--Page de répartition des postes -->
  10. <h2 align = "center">Répartition des postes</h2>
  11. <!--Formulaire de tri -->
  12. <?php if (!$_GET['print'])
  13. {
  14. ?>
  15. <form method="post" name="tri">
  16.   <div align="center"><strong><em>Sélectionnez vos critères de tri :</em></strong></div>
  17.   <table border="1" align = "center">
  18.     <tr>
  19.       <td colspan="4" align="center" bordercolor="#FFFFFF"><?php $listeClassif=array("Tous"=>"Tous","Non Cadre"=>"Non Cadre","Cadre"=>"Cadre" );
  20.                 echo 'Classification : <select name="triClassif" onchange="document.tri.submit()">';
  21.                 foreach ($listeClassif as $key=>$value)
  22.                 {
  23.                     $selected = ($_POST['triClassif'] == $key)?'selected':'';
  24.                     echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
  25.                 }
  26.                 echo '</select>';
  27.                 $listeEtat=array("Tous"=>"Tous","Actif"=>"Actif","Non Actif"=>"Non Actif" );
  28.                 echo ' Etat : <select name="triEtat">';
  29.                 foreach ($listeEtat as $key=>$value)
  30.                 {
  31.                     $selected = ($_POST['triEtat'] == $key)?'selected':'';
  32.                     echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
  33.                 }
  34.                 echo '</select>';
  35.                 $listeStat=array("Tous"=>"Tous","Simulé"=>"Simulé","Validé"=>"Validé" );
  36.                 echo ' Statut : <select name="triStat">';
  37.                 foreach ($listeStat as $key=>$value)
  38.                 {
  39.                     $selected = ($_POST['triStat'] == $key)?'selected':'';
  40.                     echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
  41.                 }
  42.                 echo '</select>';
  43.                 ?>
  44.       </td>
  45.     </tr>
  46.     <tr>
  47.       <td colspan="6" align="center" bordercolor="#FFFFFF">
  48.           Coefficient entre :
  49.         <input name="triCoefMin" type="text" size=1 maxlength="3"
  50.                     value="<?php if (isset($_POST['triClassif'])) echo $_POST['triCoefMin'];?>">
  51.         et :
  52.         <input name="triCoefMax" type="text" size=1 maxlength="3"
  53.                     value="<?php if (isset($_POST['triClassif'])) echo $_POST['triCoefMax'];?>">
  54.         Point HAY entre :
  55.         <input name="triHAYMin" type="text" size=1 maxlength="3"
  56.                     value="<?php if (isset($_POST['triClassif'])) echo $_POST['triHAYMin'];?>">
  57.         et :
  58.         <input name="triHAYMax" type="text" size=1 maxlength="3"
  59.                     value="<?php if (isset($_POST['triClassif'])) echo $_POST['triHAYMax'];?>">
  60.         <?php
  61.                 if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Cadre')
  62.                 {
  63.                     $listeClasse=array("A"=>"A","B"=>"B","C"=>"C","D"=>"D","E"=>"E","F"=>"F","G"=>"G" );
  64.                     echo 'Classe : <select name="triClassMin">';
  65.                     foreach ($listeClasse as $key=>$value)
  66.                     {
  67.                         $selected = ($_POST['triClassMin'] == $key)?'selected':'';
  68.                         echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
  69.                     }
  70.                     echo '</select>';
  71.                     $listeClasseR=array("G"=>"G","F"=>"F","E"=>"E","D"=>"D","C"=>"C","B"=>"B","A"=>"A" );
  72.                     echo 'à : <select name="triClassMax">';
  73.                     foreach ($listeClasseR as $key=>$value)
  74.                     {
  75.                         $selected = ($_POST['triClassMax'] == $key)?'selected':'';
  76.                         echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
  77.                     }
  78.                     echo '</select>';
  79.                 }
  80.                 else if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Non Cadre')
  81.                 {
  82.                     $listeGroupe=array("I"=>"I","II"=>"II","III"=>"III","IV"=>"IV","V"=>"V","VI"=>"VI","VII"=>"VII" );
  83.                     echo 'Groupe : <select name="triClassMin">';
  84.                     foreach ($listeGroupe as $key=>$value)
  85.                     {
  86.                         $selected = ($_POST['triClassMin'] == $key)?'selected':'';
  87.                         echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
  88.                     }
  89.                     echo '</select>';
  90.                     $listeGroupeR=array("VII"=>"VII","VI"=>"VI","V"=>"V","IV"=>"IV","III"=>"III","II"=>"II","I" =>"I" );
  91.                     echo 'à : <select name="triClassMax">';
  92.                     foreach ($listeGroupeR as $key=>$value)
  93.                     {
  94.                         $selected = ($_POST['triClassMax'] == $key)?'selected':'';
  95.                         echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
  96.                     }
  97.                     echo '</select>';
  98.                 }?>
  99.       </td>
  100.     </tr>
  101.     <tr align="center">
  102.       <td align="center" bordercolor="#FFFFFF"><input type="submit" name="ok" value="Ok"></td>
  103.     </tr>
  104.   </table>
  105. </form>
  106. <?php
  107. }
  108. if (isset($_POST["ok"]))
  109. {
  110.     $select = 'SELECT * FROM poste where';
  111.     if ($_POST['triCoefMin'] == '' && $_POST['triCoefMax'] == '')
  112.         $select .= ' Coef between 0 and 1000';
  113.     else if ($_POST['triCoefMin'] <> '' && !is_numeric($_POST['triCoefMin']))
  114.         {alert("Le coefficient minimum doit être un chiffre!" );
  115.         retour();}
  116.     else if ($_POST['triCoefMax'] <> '' && !is_numeric($_POST['triCoefMax']))
  117.         {alert("Le coefficient maximum doit être un chiffre!" );
  118.         retour();}
  119.     else if ($_POST['triCoefMin'] <> '' && $_POST['triCoefMax'] <> '' && $_POST['triCoefMin'] > $_POST['triCoefMax'])
  120.         {alert("Le coefficient minimum doit être inférieur au coefficient maximum!" );
  121.         retour();}
  122.     else if ($_POST['triCoefMin'] <> '' && $_POST['triCoefMax'] == '')
  123.         $select .= ' Coef="'.$_POST['triCoefMin'].'"';
  124.     else if ($_POST['triCoefMax'] <> '' && $_POST['triCoefMin'] == '')
  125.         $select .= ' Coef="'.$_POST['triCoefMax'].'"';
  126.     else if ($_POST['triCoefMin'] <> '' && $_POST['triCoefMax'] <> '')
  127.         $select .= ' Coef between "'.$_POST['triCoefMin'].'" and "'.$_POST['triCoefMax'].'"';
  128.     if ($_POST['triClassif'] == 'Cadre')
  129.         $select .= ' and Classification="Cadre"';
  130.     if ($_POST['triClassif'] == 'Non Cadre')
  131.         $select .= ' and Classification="Non Cadre"';
  132.     if ($_POST['triEtat'] == 'Actif')
  133.         $select .= ' and Etat="Actif"';
  134.     if ($_POST['triEtat'] == 'Non Actif')
  135.         $select .= ' and Etat="Non Actif"';
  136.     if ($_POST['triStat'] == 'Simulé')
  137.         $select .= ' and Statut="Simulé"';
  138.     if ($_POST['triStat'] == 'Validé')
  139.         $select .= ' and Statut="Validé"';
  140.     if ($_POST['triHayMin'] <> '' && !is_numeric($_POST['triHayMin']))
  141.         {alert("Le total HAY minimum doit être un chiffre!" );
  142.         retour();}
  143.     else if ($_POST['triHayMax'] <> '' && !is_numeric($_POST['triHayMax']))
  144.         {alert("Le total HAY maximum doit être un chiffre!" );
  145.         retour();}
  146.     else if ($_POST['triHayMin'] <> '' && $_POST['triHayMax'] <> '' && $_POST['triHayMin'] > $_POST['triHayMax'])
  147.         {alert("Le total HAY minimum doit être inférieur au total HAY maximum!" );
  148.         retour();}
  149.     else if ($_POST['triHAYMin'] <> '' && $_POST['triHAYMax'] == '')
  150.         $select .= ' and Total='.$_POST['triHAYMin'];
  151.     else if ($_POST['triHAYMax'] <> '' && $_POST['triHAYMin'] == '')
  152.         $select .= ' and Total='.$_POST['triHAYMax'];
  153.     else if ($_POST['triHAYMin'] <> '' && $_POST['triHAYMax'] <> '')
  154.         $select .= ' and Total between '.$_POST['triHAYMin'].' and '.$_POST['triHAYMax'];
  155.     if (isset($_POST['triClassMin']) || $_POST['triClassMax'])
  156.         $select .= ' and Classement between "'.$_POST['triClassMin'].'" and "'.$_POST['triClassMax'].'"';
  157.     $select .= ' order by Total desc';
  158. }
  159. else
  160.     // requête SQL qui compte le nombre total d'enregistrement dans la table et qui récupère tous les enregistrements
  161.     $select = 'SELECT * FROM poste order by Total desc';
  162.     $result = mysql_query($select);
  163.     $total = mysql_num_rows($result);
  164. if($total)
  165. {
  166.     while ($row = mysql_fetch_array($result))
  167.       {
  168.            if ($row['Direction'] == "DC" && ($row['Classement'] == "VII" || $row['Classement'] == "G" ))
  169.              $txtDCG .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  170.         if ($row['Direction'] == "DG" && ($row['Classement'] == "VII" || $row['Classement'] == "G" ))
  171.             $txtDGG .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  172.         if ($row['Direction'] == "DLM" && ($row['Classement'] == "VII" || $row['Classement'] == "G" ))
  173.             $txtDLMG .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  174.         if ($row['Direction'] == "DO" && ($row['Classement'] == "VII" || $row['Classement'] == "G" ))
  175.             $txtDOG .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  176.         if ($row['Direction'] == "DT" && ($row['Classement'] == "VII" || $row['Classement'] == "G" ))
  177.             $txtDTG .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  178.         if ($row['Direction'] == "INFO" && ($row['Classement'] == "VII" || $row['Classement'] == "G" ))
  179.             $txtINFOG .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  180.         if ($row['Direction'] == "MKG" && ($row['Classement'] == "VII" || $row['Classement'] == "G" ))
  181.             $txtMKGG .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  182.         if ($row['Direction'] == "RH" && ($row['Classement'] == "VII" || $row['Classement'] == "G" ))
  183.             $txtRHG .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>"; 
  184.         if ($row['Direction'] == "SG" && ($row['Classement'] == "VII" || $row['Classement'] == "G" ))
  185.             $txtSGG .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  186.         /***********************************************************************************************/
  187.         if ($row['Direction'] == "DC" && ($row['Classement'] == "VI" || $row['Classement'] == "F" ))
  188.              $txtDCF .= $row['NumDP']."&nbsp;".$row['Intitule']." - ".$row['Total']." - ".$row['Coef']."<BR>";
  189.         if ($row['Direction'] == "DG" && ($row['Classement'] == "VI" || $row['Classement'] == "F" ))
  190.             $txtDGF .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  191.         if ($row['Direction'] == "DLM" && ($row['Classement'] == "VI" || $row['Classement'] == "F" ))
  192.             $txtDLMF .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  193.         if ($row['Direction'] == "DO" && ($row['Classement'] == "VI" || $row['Classement'] == "F" ))
  194.             $txtDOF .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  195.         if ($row['Direction'] == "DT" && ($row['Classement'] == "VI" || $row['Classement'] == "F" ))
  196.             $txtDTF .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  197.         if ($row['Direction'] == "INFO" && ($row['Classement'] == "VI" || $row['Classement'] == "F" ))
  198.             $txtINFOF .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  199.         if ($row['Direction'] == "MKG" && ($row['Classement'] == "VI" || $row['Classement'] == "F" ))
  200.             $txtMKGF .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  201.         if ($row['Direction'] == "RH" && ($row['Classement'] == "VI" || $row['Classement'] == "F" ))
  202.             $txtRHF .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>"; 
  203.         if ($row['Direction'] == "SG" && ($row['Classement'] == "VI" || $row['Classement'] == "F" ))
  204.             $txtSGF .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  205.         /***********************************************************************************************/
  206.         if ($row['Direction'] == "DC" && ($row['Classement'] == "V" || $row['Classement'] == "E" ))
  207.              $txtDCE .= $row['NumDP']."&nbsp;".$row['Intitule']." - ".$row['Total']." - ".$row['Coef']."<BR>";
  208.         if ($row['Direction'] == "DG" && ($row['Classement'] == "V" || $row['Classement'] == "E" ))
  209.             $txtDGE .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  210.         if ($row['Direction'] == "DLM" && ($row['Classement'] == "V" || $row['Classement'] == "E" ))
  211.             $txtDLME .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  212.         if ($row['Direction'] == "DO" && ($row['Classement'] == "V" || $row['Classement'] == "E" ))
  213.             $txtDOE .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  214.         if ($row['Direction'] == "DT" && ($row['Classement'] == "V" || $row['Classement'] == "E" ))
  215.             $txtDTE .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  216.         if ($row['Direction'] == "INFO" && ($row['Classement'] == "V" || $row['Classement'] == "E" ))
  217.             $txtINFOE .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  218.         if ($row['Direction'] == "MKG" && ($row['Classement'] == "V" || $row['Classement'] == "E" ))
  219.             $txtMKGE .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  220.         if ($row['Direction'] == "RH" && ($row['Classement'] == "V" || $row['Classement'] == "E" ))
  221.             $txtRHE .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  222.         if ($row['Direction'] == "SG" && ($row['Classement'] == "V" || $row['Classement'] == "E" ))
  223.             $txtSGE .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  224.         /***********************************************************************************************/
  225.         if ($row['Direction'] == "DC" && ($row['Classement'] == "IV" || $row['Classement'] == "D" ))
  226.              $txtDCD .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  227.         if ($row['Direction'] == "DG" && ($row['Classement'] == "IV" || $row['Classement'] == "D" ))
  228.             $txtDGD .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  229.         if ($row['Direction'] == "DLM" && ($row['Classement'] == "IV" || $row['Classement'] == "D" ))
  230.             $txtDLMD .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  231.         if ($row['Direction'] == "DO" && ($row['Classement'] == "IV" || $row['Classement'] == "D" ))
  232.             $txtDOD .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  233.         if ($row['Direction'] == "DT" && ($row['Classement'] == "IV" || $row['Classement'] == "D" ))
  234.             $txtDTD .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  235.         if ($row['Direction'] == "INFO" && ($row['Classement'] == "IV" || $row['Classement'] == "D" ))
  236.             $txtINFOD .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  237.         if ($row['Direction'] == "MKG" && ($row['Classement'] == "IV" || $row['Classement'] == "D" ))
  238.             $txtMKGD .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  239.         if ($row['Direction'] == "RH" && ($row['Classement'] == "IV" || $row['Classement'] == "D" ))
  240.             $txtRHD .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  241.         if ($row['Direction'] == "SG" && ($row['Classement'] == "IV" || $row['Classement'] == "D" ))
  242.             $txtSGD .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  243.         /***********************************************************************************************/
  244.         if ($row['Direction'] == "DC" && ($row['Classement'] == "III" || $row['Classement'] == "C" ))
  245.              $txtDCC .= $row['NumDP']."&nbsp;".$row['Intitule']." - ".$row['Total']." - ".$row['Coef']."<BR>";
  246.         if ($row['Direction'] == "DG" && ($row['Classement'] == "III" || $row['Classement'] == "C" ))
  247.             $txtDGC .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  248.         if ($row['Direction'] == "DLM" && ($row['Classement'] == "III" || $row['Classement'] == "C" ))
  249.             $txtDLMC .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  250.         if ($row['Direction'] == "DO" && ($row['Classement'] == "III" || $row['Classement'] == "C" ))
  251.             $txtDOC .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  252.         if ($row['Direction'] == "DT" && ($row['Classement'] == "III" || $row['Classement'] == "C" ))
  253.             $txtDTC .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  254.         if ($row['Direction'] == "INFO" && ($row['Classement'] == "III" || $row['Classement'] == "C" ))
  255.             $txtINFOC .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  256.         if ($row['Direction'] == "MKG" && ($row['Classement'] == "III" || $row['Classement'] == "C" ))
  257.             $txtMKGC .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  258.         if ($row['Direction'] == "RH" && ($row['Classement'] == "III" || $row['Classement'] == "C" ))
  259.             $txtRHC .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  260.         if ($row['Direction'] == "SG" && ($row['Classement'] == "III" || $row['Classement'] == "C" ))
  261.             $txtSGC .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  262.         /***********************************************************************************************/
  263.         if ($row['Direction'] == "DC" && ($row['Classement'] == "II" || $row['Classement'] == "B" ))
  264.              $txtDCB .= $row['NumDP']."&nbsp;".$row['Intitule']." - ".$row['Total']." - ".$row['Coef']."<BR>";
  265.         if ($row['Direction'] == "DG" && ($row['Classement'] == "II" || $row['Classement'] == "B" ))
  266.             $txtDGB .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  267.         if ($row['Direction'] == "DLM" && ($row['Classement'] == "II" || $row['Classement'] == "B" ))
  268.             $txtDLMB .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  269.         if ($row['Direction'] == "DO" && ($row['Classement'] == "II" || $row['Classement'] == "B" ))
  270.             $txtDOB .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  271.         if ($row['Direction'] == "DT" && ($row['Classement'] == "II" || $row['Classement'] == "B" ))
  272.             $txtDTB .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  273.         if ($row['Direction'] == "INFO" && ($row['Classement'] == "II" || $row['Classement'] == "B" ))
  274.             $txtINFOB .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  275.         if ($row['Direction'] == "MKG" && ($row['Classement'] == "II" || $row['Classement'] == "B" ))
  276.             $txtMKGB .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  277.         if ($row['Direction'] == "RH" && ($row['Classement'] == "II" || $row['Classement'] == "B" ))
  278.             $txtRHB .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  279.         if ($row['Direction'] == "SG" && ($row['Classement'] == "II" || $row['Classement'] == "B" ))
  280.             $txtSGB .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  281.         /***********************************************************************************************/
  282.         if ($row['Direction'] == "DC" && ($row['Classement'] == "I" || $row['Classement'] == "A" ))
  283.              $txtDCA .= $row['NumDP']."&nbsp;".$row['Intitule']." - ".$row['Total']." - ".$row['Coef']."<BR>";
  284.         if ($row['Direction'] == "DG" && ($row['Classement'] == "I" || $row['Classement'] == "A" ))
  285.             $txtDGA .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  286.         if ($row['Direction'] == "DLM" && ($row['Classement'] == "I" || $row['Classement'] == "A" ))
  287.             $txtDLMA .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  288.         if ($row['Direction'] == "DO" && ($row['Classement'] == "I" || $row['Classement'] == "A" ))
  289.             $txtDOA .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  290.         if ($row['Direction'] == "DT" && ($row['Classement'] == "I" || $row['Classement'] == "A" ))
  291.             $txtDTA .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  292.         if ($row['Direction'] == "INFO" && ($row['Classement'] == "I" || $row['Classement'] == "A" ))
  293.             $txtINFOA .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  294.         if ($row['Direction'] == "MKG" && ($row['Classement'] == "I" || $row['Classement'] == "A" ))
  295.             $txtMKGA .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  296.         if ($row['Direction'] == "RH" && ($row['Classement'] == "I" || $row['Classement'] == "A" ))
  297.             $txtRHA .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  298.         if ($row['Direction'] == "SG" && ($row['Classement'] == "I" || $row['Classement'] == "A" ))
  299.             $txtSGA .= $row['NumDP']."&nbsp;".$row['Intitule']."&nbsp;".$row['Total']."&nbsp;".$row['Coef']."<BR>";
  300.     }
  301. }
  302. ?>
  303. <form name="tableau" method="post" action="">
  304.   <table width="1000" align="center" border="1" cellspacing="0" cellpadding="1">
  305.     <caption align="center" style="border:double">
  306.     Légende :<br />
  307.     N°DP Intitulé Points Hay Coefficient
  308.     <tr>
  309.       <th scope="col">&nbsp;</th>
  310.       <th scope="col">DC</th>
  311.       <th scope="col">DG</th>
  312.       <th scope="col">DLM</th>
  313.       <th scope="col">DO</th>
  314.       <th scope="col">DT</th>
  315.       <th scope="col">INFO</th>
  316.       <th scope="col">MKG</th>
  317.       <th scope="col">RH</th>
  318.       <th scope="col">SG</th>
  319.     </tr>
  320.     <tr>
  321.       <th scope="row"><?php if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Non Cadre') echo "VII";
  322.                       else if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Cadre') echo "G";
  323.                       else echo "&nbsp;";?>
  324.       </th>
  325.       <td><?php if ($txtDCG) echo $txtDCG; else echo "&nbsp;";?></td>
  326.       <td><?php if ($txtDGG) echo $txtDGG; else echo "&nbsp;";?></td>
  327.       <td><?php if ($txtDLMG) echo $txtDLMG; else echo "&nbsp;";?></td>
  328.       <td><?php if ($txtDOG) echo $txtDOG; else echo "&nbsp;";?></td>
  329.       <td><?php if ($txtDTG) echo $txtDTG; else echo "&nbsp;";?></td>
  330.       <td><?php if ($txtINFOG) echo $txtINFOG; else echo "&nbsp;";?></td>
  331.       <td><?php if ($txtMKGG) echo $txtMKGG; else echo "&nbsp;";?></td>
  332.       <td><?php if ($txtRHG) echo $txtRHG; else echo "&nbsp;";?></td>
  333.       <td><?php if ($txtSGG) echo $txtSGCG; else echo "&nbsp;";?></td>
  334.     </tr>
  335.     <tr>
  336.       <th scope="row"><?php if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Non Cadre') echo "VI";
  337.                       else if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Cadre') echo "F";
  338.                       else echo "&nbsp;";?>
  339.       </th>
  340.       <td><?php if ($txtDCF) echo $txtDCF; else echo "&nbsp;";?></td>
  341.       <td><?php if ($txtDGF) echo $txtDGF; else echo "&nbsp;";?></td>
  342.       <td><?php if ($txtDLMF) echo $txtDLMF; else echo "&nbsp;";?></td>
  343.       <td><?php if ($txtDOF) echo $txtDOF; else echo "&nbsp;";?></td>
  344.       <td><?php if ($txtDTF) echo $txtDTF; else echo "&nbsp;";?></td>
  345.       <td><?php if ($txtINFOF) echo $txtINFOF; else echo "&nbsp;";?></td>
  346.       <td><?php if ($txtMKGF) echo $txtMKGF; else echo "&nbsp;";?></td>
  347.       <td><?php if ($txtRHF) echo $txtRHF; else echo "&nbsp;";?></td>
  348.       <td><?php if ($txtSGF) echo $txtSGCF; else echo "&nbsp;";?></td>
  349.     </tr>
  350.     <tr>
  351.       <th scope="row"><?php if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Non Cadre') echo "V";
  352.                       else if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Cadre') echo "E";
  353.                       else echo "&nbsp;";?>
  354.       </th>
  355.       <td><?php if ($txtDCE) echo $txtDCE; else echo "&nbsp;";?></td>
  356.       <td><?php if ($txtDGE) echo $txtDGE; else echo "&nbsp;";?></td>
  357.       <td><?php if ($txtDLME) echo $txtDLME; else echo "&nbsp;";?></td>
  358.       <td><?php if ($txtDOE) echo $txtDOE; else echo "&nbsp;";?></td>
  359.       <td><?php if ($txtDTE) echo $txtDTE; else echo "&nbsp;";?></td>
  360.       <td><?php if ($txtINFOE) echo $txtINFOE; else echo "&nbsp;";?></td>
  361.       <td><?php if ($txtMKGE) echo $txtMKGE; else echo "&nbsp;";?></td>
  362.       <td><?php if ($txtRHE) echo $txtRHE; else echo "&nbsp;";?></td>
  363.       <td><?php if ($txtSGE) echo $txtSGCE; else echo "&nbsp;";?></td>
  364.     </tr>
  365.     <tr>
  366.       <th scope="row"><?php if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Non Cadre') echo "IV";
  367.                       else if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Cadre') echo "D";
  368.                       else echo "&nbsp;";?>
  369.       </th>
  370.       <td><?php if ($txtDCD) echo $txtDCD; else echo "&nbsp;";?></td>
  371.       <td><?php if ($txtDGD) echo $txtDGD; else echo "&nbsp;";?></td>
  372.       <td><?php if ($txtDLMD) echo $txtDLMD; else echo "&nbsp;";?></td>
  373.       <td><?php if ($txtDOD) echo $txtDOD; else echo "&nbsp;";?></td>
  374.       <td><?php if ($txtDTD) echo $txtDTD; else echo "&nbsp;";?></td>
  375.       <td><?php if ($txtINFOD) echo $txtINFOD; else echo "&nbsp;";?></td>
  376.       <td><?php if ($txtMKGD) echo $txtMKGD; else echo "&nbsp;";?></td>
  377.       <td><?php if ($txtRHD) echo $txtRHD; else echo "&nbsp;";?></td>
  378.       <td><?php if ($txtSGD) echo $txtSGCD; else echo "&nbsp;";?></td>
  379.     </tr>
  380.     <tr>
  381.       <th scope="row"><?php if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Non Cadre') echo "III";
  382.                       else if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Cadre') echo "C";
  383.                       else echo "&nbsp;";?>
  384.       </th>
  385.       <td><?php if ($txtDCC) echo $txtDCC; else echo "&nbsp;";?></td>
  386.       <td><?php if ($txtDGC) echo $txtDGC; else echo "&nbsp;";?></td>
  387.       <td><?php if ($txtDLMC) echo $txtDLMC; else echo "&nbsp;";?></td>
  388.       <td><?php if ($txtDOC) echo $txtDOC; else echo "&nbsp;";?></td>
  389.       <td><?php if ($txtDTC) echo $txtDTC; else echo "&nbsp;";?></td>
  390.       <td><?php if ($txtINFOC) echo $txtINFOC; else echo "&nbsp;";?></td>
  391.       <td><?php if ($txtMKGC) echo $txtMKGC; else echo "&nbsp;";?></td>
  392.       <td><?php if ($txtRHC) echo $txtRHC; else echo "&nbsp;";?></td>
  393.       <td><?php if ($txtSGC) echo $txtSGCC; else echo "&nbsp;";?></td>
  394.     </tr>
  395.     <tr>
  396.       <th scope="row"><?php if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Non Cadre') echo "II";
  397.                       else if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Cadre') echo "B";
  398.                       else echo "&nbsp;";?>
  399.       </th>
  400.       <td><?php if ($txtDCB) echo $txtDCB; else echo "&nbsp;";?></td>
  401.       <td><?php if ($txtDGB) echo $txtDGB; else echo "&nbsp;";?></td>
  402.       <td><?php if ($txtDLMB) echo $txtDLMB; else echo "&nbsp;";?></td>
  403.       <td><?php if ($txtDOB) echo $txtDOB; else echo "&nbsp;";?></td>
  404.       <td><?php if ($txtDTB) echo $txtDTB; else echo "&nbsp;";?></td>
  405.       <td><?php if ($txtINFOB) echo $txtINFOB; else echo "&nbsp;";?></td>
  406.       <td><?php if ($txtMKGB) echo $txtMKGB; else echo "&nbsp;";?></td>
  407.       <td><?php if ($txtRHB) echo $txtRHB; else echo "&nbsp;";?></td>
  408.       <td><?php if ($txtSGB) echo $txtSGCB; else echo "&nbsp;";?></td>
  409.     </tr>
  410.     <tr>
  411.       <th scope="row"><?php if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Non Cadre') echo "I";
  412.                       else if (isset($_POST['triClassif']) && $_POST['triClassif'] == 'Cadre') echo "A";
  413.                       else echo "&nbsp;";?>
  414.       </th>
  415.       <td><?php if ($txtDCA) echo $txtDCA; else echo "&nbsp;";?></td>
  416.       <td><?php if ($txtDGA) echo $txtDGA; else echo "&nbsp;";?></td>
  417.       <td><?php if ($txtDLMA) echo $txtDLMA; else echo "&nbsp;";?></td>
  418.       <td><?php if ($txtDOA) echo $txtDOA; else echo "&nbsp;";?></td>
  419.       <td><?php if ($txtDTA) echo $txtDTA; else echo "&nbsp;";?></td>
  420.       <td><?php if ($txtINFOA) echo $txtINFOA; else echo "&nbsp;";?></td>
  421.       <td><?php if ($txtMKGA) echo $txtMKGA; else echo "&nbsp;";?></td>
  422.       <td><?php if ($txtRHA) echo $txtRHA; else echo "&nbsp;";?></td>
  423.       <td><?php if ($txtSGA) echo $txtSGCA; else echo "&nbsp;";?></td>
  424.     </tr>
  425.     <?php if (!$_GET['print']){?>
  426.     <tr align="center">
  427.       <td colspan="10"><input name="printtab" type="submit" value="Imprimer le tableau"
  428.     onclick="window.document.tableau.action='tableau.php?print=TRUE';"></td>
  429.     </tr>
  430.     <?php}?>
  431.   </table>
  432. </form>
  433. <?php
  434. if ($_GET['print']) { echo '<div align="center"><a href="tableau.php">Revenir au tableau de répartition</a></div>'; imprimer();}
  435. if (!$_GET['print']) include ("_btm.php" );
  436. ?>




Merci,

Répondre à Bruenor911
Tom's Guide > Forum > Programmation > Pb EasyPhp
Aller à :

Il y a 2260 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.

Attention

Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois.
Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.

Répondre Annuler
Liens