| [ Index ] |
PHP Cross Reference of IEUF |
[Summary view] [Print] [Text view]
1 <?php 2 include_once ('../inclus/utilitaire.inc.php'); 3 include_once ('../gestion/inc/autorisation.inc.php'); 4 @session_start(); 5 ?> 6 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 7 "http://www.w3.org/TR/html4/loose.dtd"> 8 <html lang="fr"> 9 <head> 10 <meta name="generator" content="HTML Tidy for Windows (vers 12 April 2005), see www.w3.org"> 11 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> 12 <?php include_once 'potence.inc.php'; ?> 13 <title> 14 <?php echo "Il était une fois - $titre"; ?> 15 </title> 16 <link rel="stylesheet" href="ttes_pages.css" type="text/css"> 17 <link rel="stylesheet" href="sp_ttes_pages.css" type="text/css"> 18 <link media="print" rel="stylesheet" href="print.css" type="text/css"> 19 20 <script type="text/javascript" src="lumieres.js"> 21 </script> 22 <script type="text/javascript"> 23 function Montrer(id) { 24 element=document.getElementById('res'+id); 25 element.style.height="362px"; 26 element.style.visibility="visible"; 27 element= document.getElementById('scene'); 28 element.style.visibility="hidden"; 29 element=document.getElementById('titre'+id); 30 //element.scrollIntoView(); 31 } 32 function Cacher() { 33 for (var id=1; (element=document.getElementById('res'+id)) != null; id++) { 34 element.style.height="0"; 35 element.style.visibility="hidden"; 36 } 37 element= document.getElementById('scene'); 38 element.style.visibility="visible"; 39 element=document.getElementById('spect'); 40 //element.scrollIntoView(); 41 } 42 function depliant(media) { 43 resume=window.open("../media/depliant/"+media,"resume_spectacle","top=100,left=50,height=500,width=800,scrollbars=yes"); 44 resume.focus(); 45 } 46 function OuvreMedia(id_repres) { 47 open("media/media.php?id="+id_repres, "mediarepres","top=0,left=0,height=600,width=900,scrollbars=yes").focus(); 48 } 49 </script> 50 51 52 </head> 53 <body style="direction: ltr;" onload="Init()"> 54 <div onmouseover="Cacher()"> 55 <?php include_once 'banniere.inc.php'; 56 require_once '../inclus/connect_bd.inc.php'; 57 $spec=mysql_query($requete_spect); if ($spec === false) die (mysql_error()); 58 ?> 59 </div> 60 <div class= "contenu" > 61 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 62 <tbody> 63 <tr> 64 <td class="scene" align="left" valign="top" onmouseover="Cacher()"><?php include_once 'scene.inc.php'; ?></td> 65 <td> <div id="scene" class="texte" align="left"> 66 <span id="spect"></span> 67 <?php 68 $id=0; 69 while ($col= mysql_fetch_assoc($spec)) { 70 $id++; 71 $texte="Programme"; 72 echo "<div> 73 <b> <big> {$col['titre']}</big></b> 74 <span class='bouton' style='float: right;' onclick='depliant(\"{$col['media']}\")'>$texte</span>"; 75 $id_spect= $col['id']; 76 eval( "\$requete = \"$requete_repr\";" ); 77 $repres=mysql_query($requete); echo mysql_error(); 78 while ($champ= mysql_fetch_assoc($repres)) { 79 $lien_photo=0; 80 $id_representation=$champ['id_representation']; 81 $req_media="SELECT titre, public, chemin, commentaire 82 FROM media 83 WHERE id_representation='$id_representation'"; 84 $rech_media=mysql_query($req_media); echo mysql_error(); 85 while ($trouv_media= mysql_fetch_assoc($rech_media)) { 86 if ($trouv_media['public']==1) { 87 $lien_photo=1; 88 break; 89 } 90 if ($_SESSION["nom"]!='') { 91 $lien_photo=1; 92 break; 93 } 94 } 95 echo '<br><span class="evidence">- '; 96 $icone_photo= $lien_photo ? "folding.png" : "folding0m.png"; 97 if ($lien_photo==1 || !NonCA()) 98 echo '<a href="javascript:OuvreMedia('.$id_representation.')" title="Cliquer pour accéder aux photos...">' 99 .dateheurefr($champ['date']).' <img src="../Images/'.$icone_photo.'"></a>'; 100 else 101 echo dateheurefr($champ['date']); 102 echo '</span>'; 103 104 if ($champ['salle'] && $champ['salle'] != '') echo ', '.$champ['salle']; 105 if ($champ['lieu'] && $champ['lieu'] != '') echo ', '.$champ['lieu']; 106 if ($champ['ville'] && $champ['ville'] != '') echo ', '.$champ['ville']; 107 } 108 echo "<br><span class='amorce' onclick='Montrer($id)' style='cursor:help;' title = 'En savoir plus...'>"; 109 echo strpos($col['resume'], "\n") !== false ? rtrim(strstr ($col['resume'], "\n", true)) : $col['resume']; 110 echo "..."; 111 echo "</span>"; 112 echo "<div id='res$id' onclick='Cacher()' class='resume'>"; 113 echo "<div id='titre$id'> <b> <big> {$col['titre']}</big></b><br> </div>"; 114 $requete= "SELECT titre, auteur, met_scene FROM production, passe WHERE id_spectacle='{$col['id']}' AND id_prod=production.id"; 115 $prod=mysql_query($requete); echo mysql_error(); 116 while ($inf_prod= mysql_fetch_assoc($prod)) { 117 if ($inf_prod['titre']) { 118 echo '<p><b>'.$inf_prod['titre'].'</b>'; 119 if ($inf_prod['auteur']) echo '<br>Création : '.$inf_prod['auteur']; 120 if ($inf_prod['met_scene']) echo '<br>Mise en scène : '.$inf_prod['met_scene']; 121 echo '</p>'; 122 } 123 } 124 echo nl2br($col['resume'], false); 125 echo "</div>"; 126 echo " 127 <p><span class='bouton' onclick='Montrer($id)'>En savoir plus...</span></p>"; 128 echo "<p> </p>"; 129 echo "</div>"; 130 } 131 132 ?> 133 134 </div> 135 </td> 136 </tr> 137 </tbody> 138 </table> 139 </div> 140 <?php include_once '../inclus/piedpage.inc.php'; ?> 141 </body> 142 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Jan 31 19:59:00 2014 | Cross-referenced by PHPXref 0.7.1 |