1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
| <body>
<div>
<?php
include('menu.htm');
?>
</div>
<div>
<?php
$fichier=fopen("../../Export/EXP.csv", "r");
//$largeurcol=(10,200,10,40,40,40,40,70,70);
$orig="<table border=1 width=1300 bordercolor=#CCCAFF cellpadding=6 cellspacing=1>";
$orig .= "<tr bgcolor=#CCCAFF valign=center><td width=80><FONT size=2><b>Demande N°</b></font></td><td width=400><FONT size=2><b>Description de la demande</b></font></td><td width=50><FONT size=2><b>Car</b></font></td><td width=80><FONT size=2><b>Nom CI</b></font></td><td width=80><FONT size=2><b>Prénom CI</b></font></td><td width=60><FONT size=2><b>Phase</b></font></td><td width=65><FONT size=2><b>Statut</b></font></td><td width=80><FONT size=2><b>Date de création</b></font></td><td width=80><FONT size=2><b>Date butée</b></font></td><td width=60><FONT size=2><b>Prénom bénéficiaire</b></font></td><td width=60><FONT size=2><b>Nom bénéficiaire</b></font></td></tr>";
while (!feof($fichier)) //on parcourt toutes les lignes
{
$ligne = fgets($fichier, 300); // lecture du contenu de la ligne
$tabli =explode(";",$ligne);
$tempo = $tabli[10];
for($i=10;$i>2;$i--)
{
$tabli[$i]=$tabli[$i-1];
}
$tabli[2] = $tempo ;
$_POST['username'];
$_REQUEST['username'];
import_request_variables('p', 'p_');
$_POST['prenom'];
$_REQUEST['prenom'];
import_request_variables('p', 'p_');
$p_username = strtoupper($p_username);
$p_prenom = strtoupper($p_prenom);
if($tabli[3]=="$p_username" && $tabli[4]=="$p_prenom")
{
$orig .= "<tr><td>";
$regroup = implode("</td><td>", $tabli);
$orig .= $regroup;
$orig .= "</td></tr>";
}
elseif($p_username== "PER" && $p_prenom == "AL")
{
$orig .= "<tr><td>";
$regroup = implode("</td><td>", $tabli);
$orig .= $regroup;
$orig .= "</td></tr>";
}
}
$orig .= "</table>";
fclose($fichier);
if($p_username!=null)
{
$b = html_entity_decode($orig);
echo $b;
}
?>
</div>
</body> |
Partager