Browse code

Externalisation du systeme de menu

schardon authored on 27/04/2020 23:19:23
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,35 +0,0 @@
1
-<html>
2
-<head>
3
-  <title><?php echo $jeuNom; ?></title>
4
-  <link rel="stylesheet" type="text/css" href="css/menu.css" />
5
-  <script type="text/javascript" src="js/jquery-3.5.0.min.js"></script>
6
-  <script type="text/javascript" src="js/menu.js"></script>
7
-  <script type="text/javascript">
8
-var scInput_PartieId = <?php echo ($scPartie->exist() ? $scPartie->id : '0'); ?>;
9
-var scInput_JoueurId = <?php echo ($scMoi->exist() ? $scMoi->id : '0'); ?>;
10
-var scInput_JeuNom = '<?php echo $jeuNom; ?>';
11
-  </script>
12
-</head>
13
-<body>
14
-
15
-<div class="creer-titre" id="creerTitre"></div>
16
-<div class="creer-liste" id="creerListe">
17
-  <table id="creerListeTab">
18
-  </table>
19
-</div>
20
-
21
-<form action='.' method='POST' id="creerForm">
22
-  <div class="creer-form">
23
-    Ajouter : <input type="text" class="creer-form-input" name="ajouter" /> <input type="submit" class="creer-form-btn creer-btn" id="creerFormBtn" />
24
-  </div>
25
-</form>
26
-
27
-<div class="creer-go" id="creerGo"><div class="creer-go-btn creer-btn">D&eacute;marrer la partie !</div></div>
28
-
29
-<?php
30
-$jeuxlist_racine = "..";
31
-include("../_jeuxlist.php");
32
-?>
33
-
34
-</body>
35
-</html>
Browse code

Corection mineure, et ajout du menu vers les autres jeux

schardon authored on 26/04/2020 17:26:40
Showing 1 changed files
... ...
@@ -26,5 +26,10 @@ var scInput_JeuNom = '<?php echo $jeuNom; ?>';
26 26
 
27 27
 <div class="creer-go" id="creerGo"><div class="creer-go-btn creer-btn">D&eacute;marrer la partie !</div></div>
28 28
 
29
+<?php
30
+$jeuxlist_racine = "..";
31
+include("../_jeuxlist.php");
32
+?>
33
+
29 34
 </body>
30 35
 </html>
Browse code

Ajout de la salle d'attente

schardon authored on 23/04/2020 14:33:40
Showing 1 changed files
... ...
@@ -1,9 +1,14 @@
1 1
 <html>
2 2
 <head>
3
-  <title>Karuba</title>
3
+  <title><?php echo $jeuNom; ?></title>
4 4
   <link rel="stylesheet" type="text/css" href="css/menu.css" />
5 5
   <script type="text/javascript" src="js/jquery-3.5.0.min.js"></script>
6 6
   <script type="text/javascript" src="js/menu.js"></script>
7
+  <script type="text/javascript">
8
+var scInput_PartieId = <?php echo ($scPartie->exist() ? $scPartie->id : '0'); ?>;
9
+var scInput_JoueurId = <?php echo ($scMoi->exist() ? $scMoi->id : '0'); ?>;
10
+var scInput_JeuNom = '<?php echo $jeuNom; ?>';
11
+  </script>
7 12
 </head>
8 13
 <body>
9 14
 
... ...
@@ -19,5 +24,7 @@
19 24
   </div>
20 25
 </form>
21 26
 
27
+<div class="creer-go" id="creerGo"><div class="creer-go-btn creer-btn">D&eacute;marrer la partie !</div></div>
28
+
22 29
 </body>
23 30
 </html>
Browse code

Gestion du choix de la partie et du joueur

schardon authored on 22/04/2020 21:35:22
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,23 @@
1
+<html>
2
+<head>
3
+  <title>Karuba</title>
4
+  <link rel="stylesheet" type="text/css" href="css/menu.css" />
5
+  <script type="text/javascript" src="js/jquery-3.5.0.min.js"></script>
6
+  <script type="text/javascript" src="js/menu.js"></script>
7
+</head>
8
+<body>
9
+
10
+<div class="creer-titre" id="creerTitre"></div>
11
+<div class="creer-liste" id="creerListe">
12
+  <table id="creerListeTab">
13
+  </table>
14
+</div>
15
+
16
+<form action='.' method='POST' id="creerForm">
17
+  <div class="creer-form">
18
+    Ajouter : <input type="text" class="creer-form-input" name="ajouter" /> <input type="submit" class="creer-form-btn creer-btn" id="creerFormBtn" />
19
+  </div>
20
+</form>
21
+
22
+</body>
23
+</html>