1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| echo'<form action="edl.php" enctype="application/x-www-form-urlencoded" method="post">';
//fichiers multiple
// affichage des fichiers du dossier
while($file = readdir($dir)) {
if($file != "'.'" && $file != '..' && !is_dir($video.'/'.$file)){
echo'<table ><tr><td><video width="520" controls="controls">
<source src="'.$video.'/'.$file.'" type="video/mp4" /></video>';
$nomdufichier2=substr($file, 0, -4);
echo'<br><b>'.$nomdufichier2;
echo' <td><table bgcolor="#0099FF">
<thead>
<tr>
<th width="80" ><center><b>TC IN</b></center></th>
<th><center><b>TC OUT</b></center></th>
<th><center><b>Commentaire</b></center></th>
</tr>
</thead>
<tbody>';
echo'<input type="hidden" value='.$rush.' name="rush" />';
//ci dessous la variable qui déconne ele est normalement dans un hidden, ici j'affiche sa valeur pour vérifier que c'est bon.
echo'<input type="text" value='.$file.' name="fichier2" />';
for($i = 0; $i < 10; ++$i):
echo'<tr>
<td width="80px"><input type="text" class="TC" name="timein[]" value="00:00:00" /></td>
<td><input type="text" class="TC" name="timeout[]" value="00:00:00" /></td>
<td ><input type="text" name="com[]" /></td>
</tr>';
endfor;
echo'</tbody>';
echo'<td><center><input type="submit" value="enregistrer ce dérushage"></tD></form>
</table></td></tr><tr>';
echo'<noscript>Le java sript n"est pas activé</noscript>
<!-- Start VideoLightBox.com BODY section -->
<script type="text/javascript">
function onYouTubePlayerReady(playerId) {
ytplayer = document.getElementById("video_overlay");
ytplayer.setVolume(100);
}
</script>';
echo'<td ><span id="videogallery">
<a rel="#voverlay" href="engine/swf/player.swf?url='.$lienvideo.'/'.$file.'" >
<img src="./images/popup.png" alt="video1" title="lire la vidéo dans une plus grande fenêtre" /></a>
</span>
<!-- End VideoLightBox.com BODY section --></TD>';
echo'</table>';
}
} |