|
|
|
@ -10,7 +10,8 @@
|
|
|
|
|
<link rel="stylesheet" href="basket.css">
|
|
|
|
|
<title>Basket</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body >
|
|
|
|
|
<!-- <body onresize="load()"> -->
|
|
|
|
|
<body>
|
|
|
|
|
<?php
|
|
|
|
|
$monid=$_GET['idgalerie'];
|
|
|
|
|
?>
|
|
|
|
@ -26,9 +27,6 @@
|
|
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
|
<li class="nav-item active">
|
|
|
|
|
<a class="nav-link text-white" href="#">Connexion <span class="sr-only">(current)</span></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link text-white" href="galerie.php?galerie=<?=$monid?>">Galerie</a>
|
|
|
|
|
</li>
|
|
|
|
@ -37,11 +35,11 @@
|
|
|
|
|
Nouvelle page
|
|
|
|
|
</a>
|
|
|
|
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
|
|
|
<a class="dropdown-item" id="demo" href="#" onclick="afficherDemiTerrainDroit()">TERRAIN DROIT</a>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<a class="dropdown-item " href="#" onclick="afficherDemiTerrainGauche()">TERRAIN GAUCHE</a>
|
|
|
|
|
<a class="dropdown-item " href="#" onclick="faireterrain()" >FULL TERRAIN</a>
|
|
|
|
|
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<a class="dropdown-item " href="#" onclick="afficherFullTerrain()" >FULL TERRAIN</a>
|
|
|
|
|
<a class="dropdown-item" id="demo" href="#" onclick="faireDemiTerrainHaut()">PANIER HAUT</a>
|
|
|
|
|
<a class="dropdown-item" id="demo" href="#" onclick="faireDemiTerrainBas()">PANIER BAS</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
@ -53,7 +51,7 @@
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/three@0.118.3/build/three.js"></script>
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js" integrity="sha384-NaWTHo/8YCBYJ59830LTz/P4aQZK1sS0SneOgAvhsIl3zBu8r9RevNg5lHCHAuQ/" crossorigin="anonymous"></script>
|
|
|
|
|
<button class="dropdown-item" id="download">PDF</button>
|
|
|
|
|
<button class="dropdown-item" id="downloadpdf">PDF</button>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<button class="dropdown-item" id="download" onclick="exporterTex()">TeX</button>
|
|
|
|
|
</div>
|
|
|
|
@ -72,24 +70,29 @@
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<button class="button dropdown-item" onclick="togglePopup3()">Terrain</button>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<button class="button dropdown-item" onclick="togglePopup4()">Centreinter</button>
|
|
|
|
|
<button class="button dropdown-item" onclick="togglePopup4()">Raquette</button>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<button class="button dropdown-item" onclick="togglePopup5()">Zone</button>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<button class="button dropdown-item" onclick="togglePopup6()">Mouvement</button>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<button class="button dropdown-item" onclick="togglePopup7()">Touche</button>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<button class="button dropdown-item" onclick="togglePopup8()">Ligne</button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
|
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
|
Taille
|
|
|
|
|
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" onclick="togglePopupTaille()">
|
|
|
|
|
TailleJoueur
|
|
|
|
|
</a>
|
|
|
|
|
<div class="dropdown-menu text-white" aria-labelledby="navbarDropdown">
|
|
|
|
|
<button class="button dropdown-item" onclick="togglePopupTa()">Attaquant</button>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<button class="button dropdown-item" onclick="togglePopup2Td()">Defenseur</button>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
|
<a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" onclick="togglePopupligne()">
|
|
|
|
|
TailleLigne
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
@ -139,6 +142,12 @@
|
|
|
|
|
</a>
|
|
|
|
|
</h6>
|
|
|
|
|
<ul class="nav flex-column mb-2" id="ul">
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" onclick="triggerdonnerlaballe()" id="bouttondonner">
|
|
|
|
|
<span data-feather="file-text"></span>
|
|
|
|
|
DONNER LA BALLE
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" onclick="triggerfairepasse()" id="bouttonpasse">
|
|
|
|
|
<span data-feather="file-text"></span>
|
|
|
|
@ -170,27 +179,27 @@
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" onclick="retourarriere()" id="bouttonretour">
|
|
|
|
|
<a class="nav-link" onclick="influer()" id="bouttoninfluence">
|
|
|
|
|
<span data-feather="file-text"></span>
|
|
|
|
|
RETOUR ARRIERE
|
|
|
|
|
ZONE D'INFLUENCE
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" onclick="triggerdonnerlaballe()" id="bouttondonner">
|
|
|
|
|
<a class="nav-link" onclick="retourarriere()" id="bouttonretour">
|
|
|
|
|
<span data-feather="file-text"></span>
|
|
|
|
|
DONNER LA BALLE
|
|
|
|
|
RETOUR ARRIERE
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" onclick="influer()" id="bouttoninfluence">
|
|
|
|
|
<a class="nav-link" onclick="editer()" id="bouttonediter">
|
|
|
|
|
<span data-feather="file-text"></span>
|
|
|
|
|
ZONE D'INFLUENCE
|
|
|
|
|
EDITER
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link" onclick="editer()" id="bouttonediter">
|
|
|
|
|
<a class="nav-link" onclick="effacer()" id="bouttoneffacer">
|
|
|
|
|
<span data-feather="file-text"></span>
|
|
|
|
|
EDITER
|
|
|
|
|
EFFACER
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item yay" id="gauche">
|
|
|
|
@ -240,16 +249,6 @@
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="boutons">
|
|
|
|
|
<button type="button" class="btn btn-warning">
|
|
|
|
|
<img src="flèche_gauche.png" height="30">
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-warning">
|
|
|
|
|
<img src="flèche_droite.png" height="30">
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="divTerrains">
|
|
|
|
|
<canvas id="terrain" style="display:block;"></canvas>
|
|
|
|
|
<script src ="Terrains/Horizontal/entier.js"></script>
|
|
|
|
@ -344,23 +343,70 @@
|
|
|
|
|
<div class="popup" id="popup-6">
|
|
|
|
|
<div class="overlay"></div>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="close-btn" onclick="togglePopupTa()">×</div>
|
|
|
|
|
<div class="close-btn" onclick="togglePopup6()">×</div>
|
|
|
|
|
<div id="labarremouv" class="skin_barre" onmousedown="clique('barre')"> </div>
|
|
|
|
|
<div id="curseur1mouv" class="skin_curseur1" onmousedown="clique('barre')"> </div>
|
|
|
|
|
<div id="lecarremouv" class="skin_carre" onmousedown="clique('carre')"> </div>
|
|
|
|
|
<div id="curseur2mouv" class="skin_curseur2" onmousedown="clique('carre')"> </div>
|
|
|
|
|
|
|
|
|
|
<button id="boutonatt+" >+</button>
|
|
|
|
|
<button id="boutonatt-" >-</button>
|
|
|
|
|
<form>
|
|
|
|
|
<input id="resultatmouv" class="skin_resultat" size=20 name="affichage_couleur" disabled="true" value="#000000" />
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="popup" id="popup-7">
|
|
|
|
|
<div class="overlay"></div>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="close-btn" onclick="togglePopup2Td()">×</div>
|
|
|
|
|
<div class="close-btn" onclick="togglePopup7()">×</div>
|
|
|
|
|
<div id="labarretouche" class="skin_barre" onmousedown="clique('barre')"> </div>
|
|
|
|
|
<div id="curseur1touche" class="skin_curseur1" onmousedown="clique('barre')"> </div>
|
|
|
|
|
<div id="lecarretouche" class="skin_carre" onmousedown="clique('carre')"> </div>
|
|
|
|
|
<div id="curseur2touche" class="skin_curseur2" onmousedown="clique('carre')"> </div>
|
|
|
|
|
|
|
|
|
|
<form>
|
|
|
|
|
<input type="text" id="resultatdelatouche" class="skin_resultat" size=20 name="affichage_couleur" disabled="true"value="#9E0E40" />
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="popup" id="popup-8">
|
|
|
|
|
<div class="overlay"></div>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="close-btn" onclick="togglePopup8()">×</div>
|
|
|
|
|
<div id="labarreligne" class="skin_barre" onmousedown="clique('barre')"> </div>
|
|
|
|
|
<div id="curseur1ligne" class="skin_curseur1" onmousedown="clique('barre')"> </div>
|
|
|
|
|
<div id="lecarreligne" class="skin_carre" onmousedown="clique('carre')"> </div>
|
|
|
|
|
<div id="curseur2ligne" class="skin_curseur2" onmousedown="clique('carre')"> </div>
|
|
|
|
|
|
|
|
|
|
<button id="boutondef+" >+</button>
|
|
|
|
|
<button id="boutondef-" >-</button>
|
|
|
|
|
<form>
|
|
|
|
|
<input type="text" id="resultatdelaligne" class="skin_resultat" size=20 name="affichage_couleur" disabled="true"value="#000000" />
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="popupT" id="popup-taille">
|
|
|
|
|
<div class="overlay"></div>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="close-btn" onclick="togglePopupTaille()">×</div>
|
|
|
|
|
<button id="boutonatt+" class="test">+</button>
|
|
|
|
|
<button id="boutonatt-" class="test">-</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="popupL" id="popup-ligne">
|
|
|
|
|
<div class="overlay"></div>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="close-btn" onclick="togglePopupligne()">×</div>
|
|
|
|
|
<button id="boutonL+" class="test" >+</button>
|
|
|
|
|
<button id="boutonL-" class="test">-</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<script>
|
|
|
|
|
function afficherFullTerrain() {
|
|
|
|
|
document.getElementById("terrain").style.display = "block";
|
|
|
|
@ -382,7 +428,7 @@
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-warning fixed-bottom font-weight-bold" onclick="nextStep()">+</button>
|
|
|
|
|
<form method="post">
|
|
|
|
|
<form method="post" id="inputSaves">
|
|
|
|
|
<input type="hidden" id="tailleattaq" name="tailleattaq">
|
|
|
|
|
<input type="hidden" id="numero0" name="numero0">
|
|
|
|
|
<input type="hidden" id="posX0" name="posX0">
|
|
|
|
@ -748,16 +794,27 @@
|
|
|
|
|
<input type="hidden" id="zonedit4" name="zonedit4">
|
|
|
|
|
<input type="hidden" id="zonnum4" name="zonnum4">
|
|
|
|
|
|
|
|
|
|
<input type="hidden" id="typeterrain" name="typeterrain">
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
$db = new PDO('sqlite:BDD.db');
|
|
|
|
|
$nomPlan2 = $_GET['nomPlan'];
|
|
|
|
|
$viensDeGalerie = $_GET['viensDeGalerie'];
|
|
|
|
|
?>
|
|
|
|
|
<input type="hidden" id="dejaexistant" name="dejaexistant" value= <?php echo $viensDeGalerie ?>>
|
|
|
|
|
<input type="hidden" id="nomPlan2" name="nomPlan2" value= <?php echo $nomPlan2 ?>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input id="nomPlan" required name="nomPlan" >
|
|
|
|
|
<input type="submit" class="btn btn-warning fixed-bottom font-weight-bold ml-5" name="inputSave" value="SAVE" onclick="updateBtn()">
|
|
|
|
|
<input type="hidden" id="nomPlan" name="nomPlan" >
|
|
|
|
|
<input type="submit" class="btn btn-warning fixed-bottom font-weight-bold ml-5" name="inputSave" id="inputSave" value="SAVE" onclick="updateBtn()">
|
|
|
|
|
</input>
|
|
|
|
|
</form>
|
|
|
|
|
<?php
|
|
|
|
|
if(isset($_POST['inputSave'])) {
|
|
|
|
|
$db = new PDO('sqlite:BDD.db');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$numGalerie = $_GET['idgalerie'];
|
|
|
|
|
$idPlanCharge = $_GET['idPlanCharge'];
|
|
|
|
|
$viensDeGalerie = $_GET['viensDeGalerie'];
|
|
|
|
@ -905,17 +962,6 @@
|
|
|
|
|
VALUES ("'.$ppassedep.'","'.$ppassearr.'","'.$appar.'","'.$ppassenum.'");');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$taillelaste= $_POST['taillelaste'];
|
|
|
|
|
$taillelast=intval($taillelaste);
|
|
|
|
|
for ($j = 0; $j <= $taillelast-1; $j++) {
|
|
|
|
|
$lastnum=$j +1;
|
|
|
|
|
$lasteact=$_POST['lasteact'.$j];
|
|
|
|
|
$lastearr=$_POST['lastearr'.$j];
|
|
|
|
|
$lastedep=$_POST['lastedep'.$j];
|
|
|
|
|
|
|
|
|
|
$state = $db->query('INSERT INTO LAST (action,arrive,depart,appartient,numero)
|
|
|
|
|
VALUES ("'.$lasteact.'","'.$lastearr.'","'.$lastedep.'","'.$appar.'","'.$lastnum.'");');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$taillezon= $_POST['taillezon'];
|
|
|
|
|
$taillezone=intval($taillezon);
|
|
|
|
@ -929,24 +975,35 @@
|
|
|
|
|
|
|
|
|
|
$state = $db->query('INSERT INTO ZONE (X,Y,rayon,isDragging,edit,appartient,numero)
|
|
|
|
|
VALUES ("'.$zonX.'","'.$zonY.'","'.$zonrayon.'","'.$zonisDragging.'","'.$zonedit.'","'.$appar.'","'.$zonenum.'");');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$taillelaste= $_POST['taillelaste'];
|
|
|
|
|
$taillelast=intval($taillelaste);
|
|
|
|
|
for ($j = 0; $j <= $taillelast-1; $j++) {
|
|
|
|
|
$lastnum=$j +1;
|
|
|
|
|
$lasteact=$_POST['lasteact'.$j];
|
|
|
|
|
$lastearr=$_POST['lastearr'.$j];
|
|
|
|
|
$lastedep=$_POST['lastedep'.$j];
|
|
|
|
|
|
|
|
|
|
$state = $db->query('INSERT INTO LAST (action,arrive,depart,appartient,numero)
|
|
|
|
|
VALUES ("'.$lasteact.'","'.$lastearr.'","'.$lastedep.'","'.$appar.'","'.$lastnum.'");');
|
|
|
|
|
}
|
|
|
|
|
echo "yesa";
|
|
|
|
|
}else if($viensDeGalerie == 1){
|
|
|
|
|
?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
window.onload=charge();
|
|
|
|
|
</script>
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$typeter=$_POST['typeterrain'];
|
|
|
|
|
$state = $db->query('INSERT INTO TYPETERRAIN (type,appartient)
|
|
|
|
|
VALUES ("'.$typeter.'","'.$appar.'");');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if( $viensDeGalerie ==1){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$nom=$_POST['nomPlan'];
|
|
|
|
|
$numGalerie = $_GET['idgalerie'];
|
|
|
|
|
$idPlanCharge = $_GET['idPlanCharge'];
|
|
|
|
|
|
|
|
|
|
$saveNom = $db->query('SELECT nomPlan FROM PLAN WHERE idPlan="'.$idPlanCharge.'"');
|
|
|
|
|
$ro = $saveNom->fetchAll(PDO::FETCH_COLUMN, 0);
|
|
|
|
|
$nomsave=$ro[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$db->query('DELETE FROM ADVERSAIRE WHERE appartient="'.$idPlanCharge.'"');
|
|
|
|
@ -963,13 +1020,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$statement = $db->query('INSERT INTO PLAN (nomPlan,idPlan,appartient)
|
|
|
|
|
VALUES ("'.$nomsave.'","'.$idPlanCharge.'","'.$numGalerie.'");');
|
|
|
|
|
VALUES ("'.$nom.'","'.$idPlanCharge.'","'.$numGalerie.'");');
|
|
|
|
|
$taille= $_POST['tailleattaq'];
|
|
|
|
|
$tailleattaq=intval($taille);
|
|
|
|
|
|
|
|
|
|
// $appartie = $db->query('SELECT MAX(idPlan) FROM PLAN');
|
|
|
|
|
// $rows2 = $appartie->fetchAll(PDO::FETCH_COLUMN, 0);
|
|
|
|
|
// $appartien=intval($rows2[0]+1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ($i = 0; $i <= $tailleattaq-1; $i++) {
|
|
|
|
@ -1083,17 +1137,6 @@
|
|
|
|
|
VALUES ("'.$ppassedep.'","'.$ppassearr.'","'.$idPlanCharge.'","'.$ppassenum.'");');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$taillelaste= $_POST['taillelaste'];
|
|
|
|
|
$taillelast=intval($taillelaste);
|
|
|
|
|
for ($j = 0; $j <= $taillelast-1; $j++) {
|
|
|
|
|
$lastnum=$j +1;
|
|
|
|
|
$lasteact=$_POST['lasteact'.$j];
|
|
|
|
|
$lastearr=$_POST['lastearr'.$j];
|
|
|
|
|
$lastedep=$_POST['lastedep'.$j];
|
|
|
|
|
|
|
|
|
|
$state = $db->query('INSERT INTO LAST (action,arrive,depart,appartient,numero)
|
|
|
|
|
VALUES ("'.$lasteact.'","'.$lastearr.'","'.$lastedep.'","'.$idPlanCharge.'","'.$lastnum.'");');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$taillezon= $_POST['taillezon'];
|
|
|
|
|
$taillezone=intval($taillezon);
|
|
|
|
@ -1106,15 +1149,29 @@
|
|
|
|
|
$zonedit=$_POST['zonedit'.$j];
|
|
|
|
|
|
|
|
|
|
$state = $db->query('INSERT INTO ZONE (X,Y,rayon,isDragging,edit,appartient,numero)
|
|
|
|
|
VALUES ("'.$zonX.'","'.$zonY.'","'.$zonrayon.'","'.$zonisDragging.'","'.$zonedit.'","'.$appar.'","'.$zonenum.'");');
|
|
|
|
|
VALUES ("'.$zonX.'","'.$zonY.'","'.$zonrayon.'","'.$zonisDragging.'","'.$zonedit.'","'.$idPlanCharge.'","'.$zonenum.'");');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo "ok";
|
|
|
|
|
$taillelaste= $_POST['taillelaste'];
|
|
|
|
|
$taillelast=intval($taillelaste);
|
|
|
|
|
for ($j = 0; $j <= $taillelast-1; $j++) {
|
|
|
|
|
$lastnum=$j +1;
|
|
|
|
|
$lasteact=$_POST['lasteact'.$j];
|
|
|
|
|
$lastearr=$_POST['lastearr'.$j];
|
|
|
|
|
$lastedep=$_POST['lastedep'.$j];
|
|
|
|
|
|
|
|
|
|
$state = $db->query('INSERT INTO LAST (action,arrive,depart,appartient,numero)
|
|
|
|
|
VALUES ("'.$lasteact.'","'.$lastearr.'","'.$lastedep.'","'.$idPlanCharge.'","'.$lastnum.'");');
|
|
|
|
|
}
|
|
|
|
|
$typeter=$_POST['typeterrain'];
|
|
|
|
|
$state = $db->query('INSERT INTO TYPETERRAIN (type,appartient)
|
|
|
|
|
VALUES ("'.$typeter.'","'.$idPlanCharge.'");');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
echo "non";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<form >
|
|
|
|
@ -1908,6 +1965,9 @@
|
|
|
|
|
FROM ZONE
|
|
|
|
|
WHERE numero = 5 and appartient = "'.$appartient.'"')->fetch());
|
|
|
|
|
|
|
|
|
|
$typeter=current($db->query('SELECT type
|
|
|
|
|
FROM TYPETERRAIN
|
|
|
|
|
WHERE appartient = "'.$appartient.'"')->fetch());
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
@ -2284,13 +2344,12 @@
|
|
|
|
|
<input type="hidden" id="zonerayon4" name="zonerayon4" value= <?php echo $zonerayon4 ?>>
|
|
|
|
|
<input type="hidden" id="zoneisDragging4" name="zoneisDragging4" value= <?php echo $zoneisDragging4 ?>>
|
|
|
|
|
<input type="hidden" id="zoneedit4" name="zoneedit4" value= <?php echo $zoneedit4 ?>>
|
|
|
|
|
<input type="hidden" id="typeter" name="typeter" value= <?php echo $typeter ?>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input type="button" class="btn btn-warning fixed-bottom font-weight-bold mb-5" name="inputLoad" id="inputLoad" value="LOAD" onclick="charge()">
|
|
|
|
|
<input type="hidden" class="btn btn-warning fixed-bottom font-weight-bold mb-5" name="inputLoad" id="inputLoad" value="LOAD" onclick="charge()">
|
|
|
|
|
</input>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Optional JavaScript -->
|
|
|
|
|
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
|
|
|
|
<script src="rectest.js"></script>
|
|
|
|
@ -2298,8 +2357,14 @@
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
$viensDeGalerie=$_GET['viensDeGalerie'];
|
|
|
|
|
if($viensDeGalerie){
|
|
|
|
|
?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
window.onload=charge();
|
|
|
|
|
</script>
|
|
|
|
|
<?php
|
|
|
|
|
}?>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|