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
| <?php
include('a.php');
if(isset($_POST))
{
p($_POST);
foreach($_POST as $a => $b)
{
echo $_POST.' - '.$a.' - '.$b.'<br />';
}
}
$id_serie = ctype_digit($_GET['id_serie']);
$saison = ctype_digit($_GET['saison']);
echo '<form method="post" action="./series_episodes.php?id_serie='.$id_serie.'&saison='.$saison.'">
<table style="margin: auto; padding: auto; width: 65%;">
<tr>
<td>Titre épisode</td>
<td>Disponibilité</td>
<td>VOSTFR</td>
<td>Nom du lien</td>
<td>Supprimer</td>
</tr>
<tr>';
$q = mysql_query('SELECT id_episode, id_serie, saison, num_episode, titre_episode FROM series_episodes WHERE id_serie = '.$id_serie.' AND saison = '.$saison.' ORDER BY num_episode') or die(mysql_error());
$a = 1;
$b = 1;
while($r = mysql_fetch_array($q))
{
echo '<tr>
<td>'.$saison.'x'.$r['num_episode'].' - <input type="text" name="titre_episode" size="40" value="'.$r['titre_episode'].'" /></td>
<td><input type="checkbox" name="dispo" /></td>
<td><input type="checkbox" name="vostfr" /></td>
<td><input type="text" name="ndl" size="40" value="" /><input type="hidden" name="'.$a++.'" /></td>
<td><a href="./series_episodes.php?id_episode='.$r['id_episode'].'">Supprimer l\'épisode</a></td>
</tr>'."\n";
}
echo '<td colspan="4"><br /><br /><input type="submit"></td>
</tr>
</form>';
include('b.php');
?> |
Partager