Location: PHPKode > projects > Phpress > phpress/dossier.php
<?
/*
    Copyright (C)2004-2007  Matthieu Perez - hide@address.com

    This file is part of PhPress.

    PhPress 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 3 of the License, or
    (at your option) any later version.

    PhPress 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 PhPress.  If not, see <http://www.gnu.org/licenses/>.
*/
/////////////////
// dossier.php
//
// gestion des dossiers
session_start();

require 'program/common/constantes.php' ;
require LANG_PATH . $lang ."/msg.php";
require PROG_COM_PATH .'functions_mysql.php';
require PROG_COM_PATH . 'functions_common.php';
require PROG_COM_PATH . 'list_articles_clean.php';
require 'program/html/default.css';

$request="SELECT * FROM Dossiers_Noms WHERE Id='$dossier' ";
$query_result = sql_request($db, $request) ; 
$result = mysql_fetch_array($query_result);
$id_dossier = $result[0];
$nom_dossier = $result[1];
// titre de la fenetre
print '<TITLE>'.TXT_DOSSIER.': '.$nom_dossier.'</TITLE>';

///////////////////////
// close winsow
print '<INPUT type="submit" value="'.TXT_CLOSE.'" onclick="top.close ();" style="width: 9em;">&nbsp;&nbsp;<blue>'.TXT_DOSSIER.' :</blue>&nbsp;<red>'.$nom_dossier.'</red><hr>';
///////////////////////

print '<br>'.TXT_LS_ART.' :<br><br>
       <table width="100%" CELLSPACING=0 CELLPADDING=2 STYLE="border-collapse: collapse; border: 0px ">';
       
$request="SELECT * FROM Dossiers_Rel WHERE IdDos='$dossier' ORDER BY IdArt ";
$query_result = sql_request($db, $request) ; 
while($result = mysql_fetch_array($query_result))
{
$id_rel = $result[0];
$id_dos = $result[1];
$article = $result[2];
$comment = $result[3];
//print "<tr><td>$article</td>";
//print '<tr>';
list_articles_trivial($db, $article, $Pref_Art_Cat, $lang);
//print '</tr>';
//print '<blue>'.$article.'</blue> <br>';
}

print '</table>';
?>
Return current item: Phpress