include "RefDoc.inc.php" ?>
UCR - DMI
if(!$UserId){ ?>
} ?>
// Paramètres
$Id=(int)@$_GET['id'];
// Affichage du bandeau de navigation et initialisation du répertoire courant
$PathLocal=$BasePath.'/'.DisplayPath($Id,$NavigationPathFormat);
echo("
\n");
//echo(" \n");
// Lecture du type ( projet / dossier )
$Type=GetDirectoryType($Id);
if(!$Type) $Type='p';
if(!$Id) // Niveau racine : affichage standard
{
echo("Liste des projets\n");
DisplayFileList($Id,'pcdf',$ProjectDisplayFormat);
}
else if($Type=='p') // Niveau projet
{
// TODO : Desactivé car le paramètre link n'est pas correctement renseigné pour ProjectDialog.php
// if(@$_SESSION['admin'])
// echo("Description du projet\n");
// else
// echo("Description du projet\n");
echo("Description du projet\n");
DisplayProjectInfo($Id,$ProjectFieldList);
// echo("
\n");
echo("
\n");
echo("Documents communs\n");
DisplayFileList($Id,'f',$StandardDisplayFormat);
if(@$_SESSION['admin'])
{
echo('
Documents types');
DisplayDocumentList($Id,$ProjectDocumentList);
}
// echo("
\n");
echo("
\n");
echo("Structure du projet\n");
DisplayFileList($Id,'pcd',$TreeDisplayFormat,1);
}
else if($Type=='c') // Niveau canal (filière)
{
echo("Description de la filière\n");
DisplayCategoryInfo($Id,$CategoryFieldList);
echo("
\n");
echo("Liste des documents\n");
DisplayFileList($Id,'cdf',$StandardDisplayFormat);
if(@$_SESSION['admin'])
{
echo('
Documents types');
DisplayDocumentList($Id,@$CategoryDocumentList[GetCategoryType($Id)]);
}
}
else if($Type=='d') // Niveau dossier
{
DisplayFileList($Id,'df',$StandardDisplayFormat);
}
// Création de nouveaux éléments
if(@$_SESSION['admin'])
{
echo("
\n");
echo("Actions\n");
echo("\n");
}
// --- !!! POC SANS VALIDATION !!! ---
/*
// Recherche des documents non validés
$Ret=mysql_query("SELECT __IDX__ FROM DocumentTable WHERE status=0"); // TODO : Requête SQL optimisée
if($Ret&&($Num=mysql_num_rows($Ret)))
{
echo("$Num documents à valider\n");
}
*/
?>