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
| <!--*********** FORMULAIRE DE SAISIE ***************-->
<div style="margin-left:200px">
<table border="0"><tr><td>
<form name="ajout" method="post" action="index.php?page=ajout_film">
<table border= "0" style="background-color:#0099FF;" cellpadding=0 cellspacing="0">
<colgroup width='150'></colgroup>
<tr style="background-color:#0080c0" height=55>
<td colspan=2 align="center"><b>Ajouter un film</b><br><br>
<span style="font-size:11px"><font color="white">Vérifier que les acteurs, réalisateurs, genres et nationalités sont dans les listes avant la saisie du film</span></td>
</tr>
<tr class="trajout">
<td align="right">Titre : </td>
<td><input type="text" name="titref" value="<?php if (isset($titre)) { echo $titre; }?>" style="width:467px" /></td>
</tr>
<tr class="trajout">
<td align="right" valign="top">Date de sortie : <br><br> Année de réalisation :</td>
<td>
<table border = "0" cellpadding=0 cellspacing="0">
<tr>
<td valign="top" width="160px"><input type="text" name="sortie1" value="<?php if (isset($madate)) { echo $madate; }?>"/><br><br>
<input type="text" name="annee" value=""/></td><td>
<!-- calendrier -->
<div id="calendrier" align="center">
<table border=1 style="background-color:#FFFFFF" cellpadding=0 cellspacing=0 width="152px" style="font-size:10px">
<tr>
<td><a href="index.php?page=ajout_film&month=<?php echo $monthnb - 1; ?>&year=<?php echo $year; ?>" style="text-decoration:none"><</a></span></td>
<td colspan="5"><?php echo($month.' '.$year); ?></th>
<td><a href="index.php?page=ajout_film&month=<?php echo $monthnb + 1; ?>&year=<?php echo $year; ?>" style="text-decoration:none">></a></span></td>
</tr>
<?php
echo('<tr>');
for($i = 1; $i <= 7; $i++){
echo('<td>'.$daytab[$i].'</td>');
}
echo('</tr>');
for($i = 1; $i <= count($calendar); $i++) {
echo('<tr>');
for($j = 1; $j <= 7 && $j-$z+1+(($i*7)-7) <= $nbdays; $j++){
if($j-$z+1+(($i*7)-7) == date("j") && $monthnb == date("n") && $year == date("Y")) echo '<td align="right"><a href="index.php?page=ajout_film&day='.$calendar[$i][$j].'&month='.$monthnb.'&year='.$year.'" style="text-decoration:none">'.$calendar[$i][$j].'</a></td>';
else echo '<td align="right"><a href="index.php?page=ajout_film&day='.$calendar[$i][$j].'&month='.$monthnb.'&year='.$year.'" style="text-decoration:none">'.$calendar[$i][$j].'</td>';
}
echo('</tr>');
}
?>
</table>
</div> |