Browse code

Version initiale du programme sous forme de boucle conditionnelle

Emmanuel ROY authored on 01/05/2022 12:54:29
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,87 @@
1
+<?php
2
+//creation de la session ... inclusion du code ... verification de la session connect�e...
3
+session_start();
4
+include ('fonctions.php');
5
+check_session();
6
+include ('fonctionsDenTete.php');
7
+?>
8
+<html>
9
+<head>
10
+<title>Ville de Dragons</title>
11
+<link rel='stylesheet' href='Style.css' type='text/css'>
12
+</head>
13
+<body>
14
+<?php
15
+	AfficheBarreDEtat(0);
16
+?>
17
+<table border="0" height="100%" width="100%">
18
+	<tr>
19
+	<td valign="center">
20
+	<table border="0" cellspacing="0" cellpadding="0" align="center">
21
+		<tr>
22
+			<td width="400">
23
+			<?php
24
+				echo "<p align='left'>Le silence r�gne lorsque vous arrivez dans la maison de Dieu.";
25
+				if($_SESSION['repas']==3){
26
+					echo "</p><p align='left'> Le pr�tre est en train de pr�dire la messe..";
27
+				}
28
+				echo "</p>"
29
+					."<center><img src='images/fioriture.png'></center>";
30
+				if($_SESSION['repas']!=3){
31
+					echo "<br><a href='D_Eglise_Pretre.php'>Adresser la parole au pr�tre</a>";
32
+				}
33
+				if($_SESSION['egliseRumeur']>=1){
34
+					echo "<br><a href='Eglise_Catacombes.php'>Entrer dans les catacombes de l'�glise...</a>";
35
+				}
36
+				echo "<br><a href='croisementDroite.php'>Sortir...</a>";
37
+			?>
38
+			</td>
39
+			<td width="300">
40
+			<table border="0" cellspacing="0" cellpadding="0" align="center">
41
+				<tr>
42
+					<td background="images/bordure_01.gif" width="14" height="19">
43
+					</td>
44
+					<td background="images/bordure_02.gif" width="137" height="19">
45
+					</td>
46
+					<td background="images/bordure_03.gif" width="14" height="19">
47
+					</td>
48
+				</tr>
49
+				<tr>
50
+					<td background="images/bordure_04.gif" width="14" height="192">
51
+					</td>
52
+					<td width="137" height="192" align="center" valign="center">
53
+						<?php
54
+							echo "<img src='images/dessins/Eglise.jpg' border ='0' width='137' height='192'>";
55
+							if($_SESSION['repas']==1){
56
+								echo "<div style='position:absolute;top:200;left:488'><img src='images/dessins/EgliseCroyant1.png' border ='0' width='137' height='192'></div>";
57
+							}else if($_SESSION['repas']==2){
58
+								echo "<div style='position:absolute;top:200;left:488'><img src='images/dessins/EgliseCroyant2.png' border ='0' width='137' height='192'></div>";
59
+							}else if($_SESSION['repas']==3){
60
+								echo "<div style='position:absolute;top:200;left:488'><img src='images/dessins/EgliseCroyant1.png' border ='0' width='137' height='192'></div>";
61
+								echo "<div style='position:absolute;top:200;left:488'><img src='images/dessins/EgliseCroyant2.png' border ='0' width='137' height='192'></div>";
62
+							}
63
+						?>
64
+					</td>
65
+					<td background="images/bordure_06.gif" width="14" height="192">
66
+					</td>
67
+				</tr>
68
+				<tr>
69
+					<td background="images/bordure_07.gif" width="14" height="18">
70
+					</td>
71
+					<td background="images/bordure_08.gif" width="137" height="18">
72
+					</td>
73
+					<td background="images/bordure_09.gif" width="14" height="18">
74
+					</td>
75
+				</tr>
76
+			</table>
77
+			</td>
78
+		</tr>
79
+	</table>
80
+	</td>
81
+	</tr>
82
+</table>
83
+</body>
84
+</html>
85
+<?php
86
+	mysql_close();
87
+?>
0 88
\ No newline at end of file