(Page imprimée: www.alainpersat.fr/ecrire-d.php) |
Mode d'emploi | |
")
{
echo " | ";
echo "
";*/ $dd=new DateTime($date); /* echo date_format($dd,"z")." "; echo date_format($dd,"y")." "; echo date("z")." "; echo $jours." "; echo date("y")." "; */ if ((date_format($dd,"z")+365*date_format($dd,"y")) > (date("z")+365*date("y")-$jours)) {echo ' '; $fd='';} else {echo '';$fd='';} //echo "Modifié le ".$date.$fd; echo substr($date,0,10).""; // echo "Evaluation: ".$note." "; if (file_exists($justifie)) {echo 'Justifications de cet article ';} $j=$article."-ecrire-interv.php"; if (file_exists($j)) {echo 'Interventions sur cet article ';} // echo ' | |
';
}
else
{
if (substr($ligne,0,6)=="",7)-6));
//echo "don ".$don." "; $e=explode(chr(9),$don); $article=$e[0]; echo " | ||
";
$date=$e[1];
$note=$article." expr.".$e[2]." Rép.".$e[3]." ".$e[4]." ".$e[5]." ".$e[6]." ".$e[7]." ".$e[8]." ".$e[9]; $justifie=$e[10]; // $path2="constitution/articles.txt"; // $date="01-01-2007"; // $note="Aucune"; // $justifie=""; // if (file_exists($path2)) // {$fp2=fopen($path2,"r"); // while ($art=fgets($fp2,$len)) // { // $e=explode(chr(9),$art); //echo "e[0] /".$e[0]."/ article /".$article."/ "; // if ($e[0]==$article) // {$date=$e[1]; // $note=$article." expr.".$e[2]." Rép.".$e[3]." ".$e[4]." ".$e[5]." ".$e[6]." ".$e[7]." ".$e[8]." ".$e[9]; // $justifie=$e[10]; //$j=$e[11]; //echo "intervention ".$e[11]." "; // exit; // } // } // } } else { echo $ligne; } } } ?> |