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,81 @@
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
+	if(!isset($_GET['dialogueBucheron'])){
9
+		$dialogueBucheron=0;
10
+	}else{
11
+		$dialogueBucheron=$_GET['dialogueBucheron'];
12
+	}
13
+?>
14
+<html>
15
+<head>
16
+<title>Ville de Dragons</title>
17
+<link rel='stylesheet' href='Style.css' type='text/css'>
18
+</head>
19
+<body>
20
+<?php
21
+	AfficheBarreDEtat(0);
22
+?>
23
+<table border="0" height="100%" width="100%">
24
+	<tr>
25
+	<td valign="center">
26
+	<table border="0" cellspacing="0" cellpadding="0" align="center">
27
+		<tr>
28
+			<td width="400">
29
+			<?php
30
+			switch($dialogueBucheron){
31
+				case 0:
32
+					//il n'a rien a dire
33
+					echo "<p align='left'>[...]";
34
+					echo "</p><p align='left'> Le bucheron n'as riena vous dire...</p>";
35
+					echo "<center><img src='images/fioriture.png'></center>";
36
+					echo "<br><a href='maisonBucheron.php'>[....]</a>"
37
+				break;
38
+			}
39
+			?>
40
+			</td>
41
+			<td width="300">
42
+			<table border="0" cellspacing="0" cellpadding="0" align="center">
43
+				<tr>
44
+					<td background="images/bordure_01.gif" width="14" height="19">
45
+					</td>
46
+					<td background="images/bordure_02.gif" width="192" height="19">
47
+					</td>
48
+					<td background="images/bordure_03.gif" width="14" height="19">
49
+					</td>
50
+				</tr>
51
+				<tr>
52
+					<td background="images/bordure_04.gif" width="14" height="272">
53
+					</td>
54
+					<td width="192" height="272" align="center" valign="center">
55
+						<?php
56
+							echo "<img src='images/dessins/P_Bucheron.jpg' border ='0' width='192' height='272'>";
57
+						?>
58
+					</td>
59
+					<td background="images/bordure_06.gif" width="14" height="272">
60
+					</td>
61
+				</tr>
62
+				<tr>
63
+					<td background="images/bordure_07.gif" width="14" height="18">
64
+					</td>
65
+					<td background="images/bordure_08.gif" width="192" height="18">
66
+					</td>
67
+					<td background="images/bordure_09.gif" width="14" height="18">
68
+					</td>
69
+				</tr>
70
+			</table>
71
+			</td>
72
+		</tr>
73
+	</table>
74
+	</td>
75
+	</tr>
76
+</table>
77
+</body>
78
+</html>
79
+<?php
80
+	mysql_close();
81
+?>
0 82
\ No newline at end of file