<?php
/***************************************************************************
ficheDVD.php - description
-------------------
copyright : (C) 2002 by Cédric Rochat
email : hide@address.com
***************************************************************************/
/***************************************************************************
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
require('util.php');
$connexion = Connexion (NOM, PASSE, BASE,SERVEUR);
$DonneesDVD=ExecRequete ("SELECT * FROM $pTable_Prefixe"."DVD WHERE IDDVD=$IDDVD" ,BASE);
$DVDdata = mysql_fetch_object ($DonneesDVD);
$ListeRealisateurs=ExecRequete ("SELECT $pTable_Prefixe"."Realisateurs.IDRealisateur, NomPrenomRealisateur FROM $pTable_Prefixe"."Realisateurs, $pTable_Prefixe"."RealisateursDVD
WHERE $pTable_Prefixe"."RealisateursDVD.IDDVD = $IDDVD AND $pTable_Prefixe"."Realisateurs.IDRealisateur = $pTable_Prefixe"."RealisateursDVD.IDRealisateur
ORDER BY NomPrenomRealisateur ASC", BASE);
$ListeActeurs=ExecRequete ("SELECT $pTable_Prefixe"."Acteurs.IDActeur, NomPrenomActeur FROM $pTable_Prefixe"."Acteurs, $pTable_Prefixe"."ActeursDVD
WHERE $pTable_Prefixe"."ActeursDVD.IDDVD = $IDDVD AND $pTable_Prefixe"."Acteurs.IDActeur = $pTable_Prefixe"."ActeursDVD.IDActeur
ORDER BY NomPrenomActeur ASC", BASE);
$ListeEditeurs=ExecRequete ("SELECT $pTable_Prefixe"."Editeurs.IDEditeur, NomEditeur FROM $pTable_Prefixe"."Editeurs, $pTable_Prefixe"."DVD
WHERE $pTable_Prefixe"."DVD.IDEditeur = $pTable_Prefixe"."Editeurs.IDEditeur AND IDDVD = $IDDVD
ORDER BY NomEditeur ASC", BASE);
$Temp_categorie_result=ExecRequete ("SELECT NomCategorie FROM $pTable_Prefixe"."DVD, $pTable_Prefixe"."Categories
WHERE $pTable_Prefixe"."DVD.IDCategorie=$pTable_Prefixe"."Categories.IDCategorie AND IDDVD=$IDDVD", BASE);
$Temp_categorie=mysql_fetch_object($Temp_categorie_result);
$Categorie=$Temp_categorie->NomCategorie;
$Temp_proprietaire_result=ExecRequete ("SELECT NomProprietaire, PrenomProprietaire FROM $pTable_Prefixe"."DVD, $pTable_Prefixe"."Proprietaires
WHERE $pTable_Prefixe"."DVD.IDProprietaire=$pTable_Prefixe"."Proprietaires.IDProprietaire AND IDDVD=$IDDVD", BASE);
$Temp_proprietaire=mysql_fetch_object($Temp_proprietaire_result);
$Proprietaire=$Temp_proprietaire->PrenomProprietaire." ".$Temp_proprietaire->NomProprietaire;
if (!$numero) $numero=numero_enregistrement($IDDVD, 0);
$next=next_record($numero, 0);
$prev=prev_record($numero, 0);
echo
"<TABLE height='100%' cellSpacing=0 cellPadding=0 width='100%' border=0>
<TBODY>
<TR bgColor=$color_back>
<TD vAlign=top align=middle width=150>
<CENTER>
<BR>
<IMG height=186 src=";
if(file_exists("$pCoversPath"."$DVDdata->IDDVD".".jpg"))
echo "$pCoversPath$DVDdata->IDDVD.jpg";
else
{
echo "images/NoImage.gif";
}
echo
" width=132 border=0><BR><BR>";
if ($DVDdata->THX==1) echo "<IMG width=80 src='images/sound/thx.gif'>";
if ($DVDdata->Emprunt==1) echo "<BR><BR><B> <A HREF=index.php?sousPage=admin-request.php&IDDVD=$IDDVD><FONT COLOR='$color_menu_actif' FACE='Arial, Helvetica, sans-serif' SIZE='3'>DVD emprunté</FONT></A></B>";
?>
<BR>
<BR>
</CENTER>
<BR>
<BR>
<BR>
</TD>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width='100%' border=0 onKeyPress=changeUrlKeyBoard()>
<TBODY>
<TR>
<TD vAlign=top align=left>
<? echo "<H1>$DVDdata->Titre</H1>"; ?>
</TD>
<TD align=right><? if ($prev!=-1) echo "<A NAME=prev href=index.php?sousPage=ficheDVD.php&IDDVD=$prev><IMG border=0 src='images/prev.gif'></A>"; else echo "<A NAME=prev href=''></A><IMG border=0 src='images/prevdis.gif'>"; if ($next!=-1) echo "<A NAME=next href=index.php?sousPage=ficheDVD.php&IDDVD=$next><IMG border=0 src='images/next.gif'></A>"; else echo "<A NAME=next href=''></A><IMG border=0 src='images/nextdis.gif'>"; ?></TD>
</TR>
<TR>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD width=10> </TD>
<TD vAlign=top>ID DVD </TD>
<TD width=15> </TD>
<TD vAlign=top>
<? echo "<B>$DVDdata->IDDVD</B><BR>";?>
</TD>
<TD width=30> </TD>
<TD vAlign=top width=400 rowspan=25><? echo $DVDdata->Resume; ?></TD>
</TR>
<TR>
<TD width=10> </TD>
<TD vAlign=top><BR>Durée </TD>
<TD width=15> </TD>
<TD vAlign=top>
<BR>
<? echo "<B>$DVDdata->Duree</B><BR>";?>
</TD>
<TD width=30> </TD>
</TR>
<TR>
<TD width=10> </TD>
<TD vAlign=top>
<BR>Propriétaire
</TD>
<TD width=15> </TD>
<TD vAlign=top>
<BR>
<? echo "<A HREF=index.php?sousPage=proprietaires.php&IDProprietaire=$DVDdata->IDProprietaire>"; $Proprietaire=nbsp($Proprietaire); echo "$Proprietaire</A><BR>";?>
</TD>
<TD width=30> </TD>
</TR>
<TR>
<TD width=10> </TD>
<TD vAlign=top><BR>Editeur </TD>
<TD width=15> </TD>
<TD vAlign=top>
<BR>
<? while ($rowEditeurs=mysql_fetch_array($ListeEditeurs))
{
echo "<A HREF=index.php?sousPage=editeurs.php&IDEditeur=$rowEditeurs[0]>"; $rowEditeurs[1]=nbsp($rowEditeurs[1]); echo "$rowEditeurs[1]</A><BR>";
}
?>
</TD>
<TD width=30> </TD>
</TR>
<TR>
<TD width=10> </TD>
<TD vAlign=top><BR>Réalisateurs </TD>
<TD width=15> </TD>
<TD vAlign=top>
<BR>
<? while ($rowRealisateurs=mysql_fetch_array($ListeRealisateurs))
{
echo "<A HREF=index.php?sousPage=realisateurs.php&IDRealisateur=$rowRealisateurs[0]>"; $rowRealisateurs[1]=nbsp($rowRealisateurs[1]); echo "$rowRealisateurs[1]</A><BR>";
}
?>
</TD>
<TD width=30> </TD>
</TR>
<TR>
<TD width=10> </TD>
<TD vAlign=top><BR>Acteurs </TD>
<TD width=15> </TD>
<TD vAlign=top>
<BR>
<? while ($rowActeurs=mysql_fetch_array($ListeActeurs))
{
echo "<A HREF=index.php?sousPage=acteurs.php&IDActeur=$rowActeurs[0]>"; $rowActeurs[1]=nbsp($rowActeurs[1]); echo "$rowActeurs[1]</A><BR>";
}
?>
</TD>
<TD width=30> </TD>
</TR>
<TR>
<TD width=10> </TD>
<TD vAlign=top>
<BR>Catégorie
</TD>
<TD width=15> </TD>
<TD vAlign=top>
<BR>
<? echo "<A HREF=index.php?sousPage=categories.php&IDCategorie=$DVDdata->IDCategorie>"; $Categorie=nbsp($Categorie); echo "$Categorie</A><BR>";?>
</TD>
<TD width=30> </TD>
</TR>
<TR>
<TD width=10> </TD>
<TD vAlign=top><BR>Format large </TD>
<TD width=15> </TD>
<TD vAlign=top>
<BR>
<? if ($DVDdata->FormatLarge==1) echo "<IMG src='images/ok.gif'>"; echo "<br><br>";?>
</TD>
<TD width=30> </TD>
</TR>
<TR>
<TD width=10> </TD>
<TD vAlign=top>Appréciation </TD>
<TD width=15> </TD>
<TD vAlign=top>
<? echo "$DVDdata->Appreciation<br>";?>
</TD>
<TD width=30> </TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD width=5> </TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
</TR>
<TR><TD><H3>Langues disponibles sur ce DVD</H3></TD></TR>
<TR>
<TD> </TD>
<TD> </TD>
</TR>
</TBODY>
</TABLE>
<? Tableau_SonsTextes_Zones($IDDVD);?>
</TD>
</TR>
</TBODY>
</TABLE>