Browse Source

refresh avec ancres

master
heuzef 10 years ago
parent
commit
b50b763d69
19 changed files with 230 additions and 62 deletions
  1. +2
    -2
      header.php
  2. +4
    -0
      js/jquery-2.1.0.min.js
  3. +0
    -1
      load/applet.php
  4. +0
    -25
      load/load.php
  5. +0
    -1
      load/test.php
  6. +21
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/Deggdg.xml
  7. +21
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/Heuzef.xml
  8. +21
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/Jak.xml
  9. +21
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/ZREQFg.xml
  10. +5
    -5
      medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml
  11. +21
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/fgfezf.xml
  12. +21
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/kljhgfdcx.xml
  13. +21
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/qsdqsdsq.xml
  14. +0
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/soft.mp3
  15. +21
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/test.xml
  16. +21
    -0
      medias/c0f08ae603e364cb554fe71c9fc94ffd/xdwdg.xml
  17. +1
    -1
      play/action.php
  18. +1
    -1
      play/gamers.php
  19. +28
    -26
      play/index.php

+ 2
- 2
header.php View File

@@ -9,7 +9,7 @@ function connecte($base)
$connexion=mysql_connect($hote,$utilisateur,$pass) or die ("<div class='alert alert-danger'><strong>ERREUR : </strong>Connexion au serveur impossible !</div>");
$db=mysql_select_db($base,$connexion) or die ("<div class='alert alert-danger'><strong>ERREUR : </strong>Selection de la base $base impossible !</div>");
}
mysql_query("SET NAMES UTF8");
mysql_query("SET NAMES UTF8");
}

function requete1l($sql)
@@ -28,4 +28,4 @@ while ($ligne=mysql_fetch_array($res)) {
extract($ligne);
$hash=md5($email);
}
?>
?>

+ 4
- 0
js/jquery-2.1.0.min.js
File diff suppressed because it is too large
View File


+ 0
- 1
load/applet.php View File

@@ -1 +0,0 @@
<h1>Applet OK</h1>

+ 0
- 25
load/load.php View File

@@ -1,25 +0,0 @@
<html>
<head>
<script type="text/jscript" src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/jscript">
$(document).ready( function() {
$("#btInfo").click(function() {
$("#infoDpt").load("applet.php")
});
$("#btChimie").click(function() {
$("#infoDpt").load("test.php")
});
});
</script>

<?php
echo "<p>Le département …</p>";
?>
</head>

<body>
<button type="button" id="btInfo">applet</button>
<button type="button" id="btChimie">test</button>
<div id="infoDpt"></div>
</body>
</html>

+ 0
- 1
load/test.php View File

@@ -1 +0,0 @@
<h1>test OK</h1>

+ 21
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/Deggdg.xml View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>Deggdg</nom>
<level>0</level>
<hp>10</hp>
<xp>0</xp>
<money>0</money>
<ecos>
<verte>0</verte>
<bleue>2</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
<gift>0</gift>
</entry>
</response>

+ 21
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/Heuzef.xml View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>Heuzef</nom>
<level>1</level>
<hp>10</hp>
<xp>0</xp>
<money>0</money>
<ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
<gift>1</gift>
</entry>
</response>

+ 21
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/Jak.xml View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>Jak</nom>
<level>3</level>
<hp>10</hp>
<xp>0</xp>
<money>1</money>
<ecos>
<verte>1</verte>
<bleue>1</bleue>
<jaune>1</jaune>
<rouge>2</rouge>
<blanche>0</blanche>
<noire>1</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
<gift>0</gift>
</entry>
</response>

+ 21
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/ZREQFg.xml View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>ZREQFg</nom>
<level>0</level>
<hp>10</hp>
<xp>0</xp>
<money>0</money>
<ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>2</rouge>
<blanche>1</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
<gift>0</gift>
</entry>
</response>

+ 5
- 5
medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml View File

@@ -2,15 +2,15 @@
<response>
<entry>
<nom>derpy</nom>
<level>0</level>
<hp>10</hp>
<level>3</level>
<hp>9</hp>
<xp>0</xp>
<money>0</money>
<ecos>
<verte>0</verte>
<verte>2</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<jaune>3</jaune>
<rouge>1</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>


+ 21
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/fgfezf.xml View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>fgfezf</nom>
<level>0</level>
<hp>6</hp>
<xp>0</xp>
<money>0</money>
<ecos>
<verte>2</verte>
<bleue>2</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>1</blanche>
<noire>1</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
<gift>1</gift>
</entry>
</response>

+ 21
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/kljhgfdcx.xml View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>kljhgfdcx</nom>
<level>0</level>
<hp>10</hp>
<xp>0</xp>
<money>0</money>
<ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
<gift>0</gift>
</entry>
</response>

+ 21
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/qsdqsdsq.xml View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>qsdqsdsq</nom>
<level>0</level>
<hp>10</hp>
<xp>0</xp>
<money>0</money>
<ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
<gift>0</gift>
</entry>
</response>

+ 0
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/soft.mp3 View File


+ 21
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/test.xml View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>test</nom>
<level>2</level>
<hp>10</hp>
<xp>40</xp>
<money>0</money>
<ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
<gift>0</gift>
</entry>
</response>

+ 21
- 0
medias/c0f08ae603e364cb554fe71c9fc94ffd/xdwdg.xml View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<response>
<entry>
<nom>xdwdg</nom>
<level>0</level>
<hp>10</hp>
<xp>0</xp>
<money>0</money>
<ecos>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
<blanche>0</blanche>
<noire>0</noire>
</ecos>
<trans>default</trans>
<notes>...</notes>
<gift>0</gift>
</entry>
</response>

+ 1
- 1
play/action.php View File

@@ -132,5 +132,5 @@ if (isset($_GET['gift_reset'])) {
}
$xml->asXml('../medias/'.$hash.'/'.$nom_modif.'.xml');
header("location: index.php");
header("location: index.php#content_".$_GET['entry']);
?>

+ 1
- 1
play/gamers.php View File

@@ -10,7 +10,7 @@ foreach($xml->entry as $entry) {
?>
<!-- gamers -->
<div class="col-lg-4">
<div class="col-lg-4" id="content_<?php echo $entry->nom; ?>">
<div class="panel panel-<?php echo $entry->trans; ?>">
<div class="panel-heading">
<div class="row">


+ 28
- 26
play/index.php View File

@@ -12,6 +12,7 @@
<link rel="stylesheet" href="../css/bootswatch.min.css">
<link rel="stylesheet" href="../css/ionicons.min.css">
<link rel="stylesheet" href="../css/ecomonde.css">
<script type="text/jscript" src="../js/jquery-2.1.0.min.js"></script>
</head>

<body>
@@ -78,35 +79,35 @@
<!-- /top -->

<!-- enemy -->
<div class="container-fluid">
<?php
// nombre enemy
$f = 0;
foreach(glob('*.xml') as $f) {$f+=1;}
$nb_membres = count(glob('../medias/'.$hash.'/enemy/*.xml'));
?>
<div class="container-fluid">
<?php
// nombre enemy
$f = 0;
foreach(glob('*.xml') as $f) {$f+=1;}
$nb_membres = count(glob('../medias/'.$hash.'/enemy/*.xml'));
?>

<?php
<?php

function button_modif_hp_enemy($nom_parametre, $nom_enemy, $texte_bouton)
{
echo '<form action="action_enemy.php?'.$nom_parametre.'&amp;entry='.$nom_enemy.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
}
function button_modif_hp_enemy($nom_parametre, $nom_enemy, $texte_bouton)
{
echo '<form action="action_enemy.php?'.$nom_parametre.'&amp;entry='.$nom_enemy.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>';
}

// liste enemy
$folder = "../medias/".$hash."/enemy/";
$dossier = opendir($folder);
while ($fichier = readdir($dossier))
{
if ($fichier != "." && $fichier != "..")
{
$gamers = explode(".xml", $fichier);
include ("enemy.php");
}
}
closedir($dossier);
?>
</div>
// liste enemy
$folder = "../medias/".$hash."/enemy/";
$dossier = opendir($folder);
while ($fichier = readdir($dossier))
{
if ($fichier != "." && $fichier != "..")
{
$gamers = explode(".xml", $fichier);
include ("enemy.php");
}
}
closedir($dossier);
?>
</div>
<!-- /enemy -->
<hr />
<!-- gamers -->
@@ -287,6 +288,7 @@
<script src="../js/jquery-1.10.2.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootswatch.js"></script>

</body>
</html>



Loading…
Cancel
Save