/** * Récupère les différentes propriétés afin de les afficher * @return true si le tableau n'est pas vide */ function afficherListeVideos() { //requete sql if ($this->numpara) { $result = mysql_query("SELECT numvideo,legende,numparavideo,ordre FROM if_para_video WHERE numpara='{$this->numpara}' ORDER BY ordre"); while ($row = mysql_fetch_row($result)) { $uneVideo = new Video(); $uneVideo->numvideo = $row[0]; $uneVideo->legendeVideo = $row[1]; $uneVideo->numparavideo = $row[2]; $uneVideo->numparavideo = $row[2]; $uneVideo->infosVideo(); $this->videos[] = $uneVideo; } } else { $result = mysql_query("SELECT numvideo FROM if_video ORDER BY nom_video"); while ($row = mysql_fetch_row($result)) { $uneVideo = new Video(); $uneVideo->numvideo = $row[0]; $uneVideo->infosVideo(); $this->videos[] = $uneVideo; } } if (count($this->videos) >= 1) { return true; } }
$leFichier = new Fichier(); $leFichier->numfichier = $numfichier; $leFichier->numparafichier = $numparafichier; $leFichier->infosFichier(); } else { if ($numphoto) { $laPhoto = new Photo(); $laPhoto->numphoto = $numphoto; $laPhoto->numparaphoto = $numparaphoto; $laPhoto->infosPhoto(); } else { if ($numvideo) { $laVideo = new Video(); $laVideo->numvideo = $numvideo; $laVideo->numparavideo = $numparavideo; $laVideo->infosVideo(); } } } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="../css/ifip.css" type="text/css" media="screen" /> <script type="text/javascript" src="../java.js"> </script> <title>Modification</title> <?php include "javascript.php"; include "styles.php";