Skip to content

Instantly share code, notes, and snippets.

@Ludovicmoreau
Created September 12, 2016 08:27
Show Gist options
  • Save Ludovicmoreau/f04da910468e3e865e29a2bfc5b056c9 to your computer and use it in GitHub Desktop.
Save Ludovicmoreau/f04da910468e3e865e29a2bfc5b056c9 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>tableau des spectacles</title>
<meta charset="utf-8">
</head>
<body>
<div class="row">
<h2>Voici les horaires des différents spectacles</h2>
<?php
$spectacle[0][1]='heure';
$spectacle[0][2]='titre spectacle';
$spectacle[0][3]='Artiste';
$spectacle[0][4]='PICTURE';
$spectacle[1][1]='18h';
$spectacle[1][2]='Le lac des cygnes';
$spectacle[1][3]='Le cygne';
$spectacle[1][4]='<img width=90px src="https://upload.wikimedia.org/wikipedia/fr/7/71/Quebec_citadelles_200x200.png">';
$spectacle[2][1]='15h';
$spectacle[2][2]='Asterix le gaulois';
$spectacle[2][3]='Asterix';
$spectacle[2][4]='<img width=90px src="https://upload.wikimedia.org/wikipedia/fr/7/71/Quebec_citadelles_200x200.png">';
$spectacle[3][1]='19h';
$spectacle[3][2]='Popeye';
$spectacle[3][3]='Popeye';
$spectacle[3][4]='<img width=90px src="https://upload.wikimedia.org/wikipedia/fr/7/71/Quebec_citadelles_200x200.png">';
?>
<?php
include ("header.php")
?>
<?php
include ("index2.php");
?>
<table border ="1">
<?php
for ($i = 0; $i <= 3; $i++)
{
?>
<tr>
<?php
for ($j = 1; $j <= 4; $j++)
{
?>
<td> <?php echo $spectacle[$i][$j]; ?> </td >
<?php
}
?>
</tr>
<?php
}
?>
<?php
include ("footer.php")
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment