Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
Bookmarks
/
CHESS_ON
:
plouf.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php session_start(); //include('database.php'); //DB_connexion(); //error_reporting(0); $J1 = $_GET["J1"]; $J2 = $_GET["J2"]; /*********************************************************************************/ if(!empty($_POST) ) { $_SESSION['sauvegarde_formulaire'] = $_POST ; $page_actuelle = $_SERVER['PHP_SELF'] ; if(!empty($_SERVER['QUERY_STRING'])) { $page_actuelle .= '?' . $_SERVER['QUERY_STRING'] ; } header('Location: ' . $page_actuelle); exit; } if(isset($_SESSION['sauvegarde_formulaire'])) { $_POST = $_SESSION['sauvegarde_formulaire'] ; unset($_SESSION['sauvegarde_formulaire']); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Description" content="Site perso,cours,ouvrages" /> <meta name="Keywords" content="WEBSITE perso " /> <meta name="Distribution" content="Global" /> <meta name="Robots" content="" /> <meta http-equiv="Content-Language" content="fr" /> <meta name="rating" content="general" /> <meta name="author" content="Patrice DELPY" /> <meta name="copyright" content="Copyright 2013" /> <meta name="generator" content="Patoche" /> <title>Patoche WEBSITE - 2013 - Template du site - en cours de développemment ...</title> <script language="JavaScript" src="include/chartembed.js"></script> <!----------------------------------------------------------> <?php include('include_css_template_commun.php'); include('include_css.php'); include('css_tools_skill.php'); include('include_javascript.php'); ?> <style type="text/css"> #bloc_filtre { float: left; width: 831px; padding: 50px 50px 25px 50px; } #bloc_stats { float: left; width: 850px; padding: 50px 10px 25px 10px; } #navigation_tournoi{ float: left; width: 885px; padding: 10px 0px 0px 10px; text-align: center; } label { display: block; width: 150px; float: left; //padding: 28px; } select { width: 100px; } #alignement { text-align: center; } dddtd { text-align: left; } </style> <script src="Charts_2022/js/fusioncharts.js"></script> <script type="text/javascript"> function call_update() { ajax_routine(); setTimeout("call_update()", 1000); //appelle la fonction 1 fois par seconde } function getXhr() { var xhr = null; if(window.XMLHttpRequest) // Firefox et autres xhr = new XMLHttpRequest(); else if(window.ActiveXObject) { // Internet Explorer try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xhr = new ActiveXObject("Microsoft.XMLHTTP"); } } else { // XMLHttpRequest non supporté par le navigateur alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); xhr = false; } return xhr; } function plot_chart() { var xhr = getXhr(); xhr.onreadystatechange = function() { if(xhr.readyState == 4 && xhr.status == 200) { var plouf = JSON.parse(xhr.responseText); //response = xhr.responseText; //alert(response); var schema = [{ "name": "Time", "type": "date", "format": "%d-%b-%Y" }, { "name": "Type", "type": "string" }, { "name": "Value", "type": "number" }] var fusionTable = new FusionCharts.DataStore().createDataTable(plouf, schema); // data chart = new FusionCharts({ type: 'timeseries', renderAt: 'chart-elo', width: "100%", height: 600, dataSource: { data: fusionTable, chart: { yAxisName: 'Quarter', exportEnabled: 0, }, /*navigator: { enabled: 0 },*/ caption: { text: "Evolution de l'indice ELO de J1 & J2" }, series: "Type", yAxis: [{ plot: [{ value: 'Value', connectNullData: true, type: 'line', }], "min": "500", "max": "2000", format: { defaultFormat: 0, }, //"min": "130", // "max": "9800", }], /*xAxis: { binning: { year: [], month: [], day: [1], hour: [], minute: [], second: [], millisecond: [] } }*/ } }).render(); } } var J1 = document.getElementById("J1").value; var J2 = document.getElementById("J2").value; //alert(J1 + " " + J2); xhr.open("POST","compute_chart_elo_compare.php",true); xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); //xhr.send(); xhr.send("J1="+J1+"&J2="+J2); // sel = document.getElementById('J1'); // J1 = sel.options[sel.selectedIndex].value; // sel = document.getElementById('J2'); // J2 = sel.options[sel.selectedIndex].value; //sel = document.getElementById('J1'); //idcategorie = sel.options[sel.selectedIndex].value; //xhr.send("idcategorie="+idcategorie); //alert("riri et lulu"); } </script> <!----------------------------------------------------------> </head> <body> <!----------------------------------------------------------> <div class="main"> <!-- main --> <!----------------------------------------------------------> <div class="header"> <div class="balise_titre">Patoche</div> <div class="balise_citation"> "Etre conscient que l'on est ignorant est un grand pas vers le savoir" </div> </div> <div class="banniere"></div> <!----------------------------------------------------------> <?php /* include("include_barre_login.php"); echo '<div id="box_icon">'; include("debug_connexion_membre.php"); echo '</div>'; include("include_menu.php");*/ echo '<div id="box_infos">'; include("include_menu.php"); echo '<div id="box_icon2">'; include("connexion_membre.php"); echo '</div>'; echo '<div id="box_icon3">'; include("include_barre_login.php"); echo '</div>'; echo '</div>'; $_SESSION['page_active'] = basename (__FILE__ ); ?> <!----------------------------------------------------------> <div class="contenu"> <!-- contenu --> <!----------------------------------------------------------> <div class="barre_vide"></div> <div id="navigation_tournoi"> <ul id="menu_horiz"> <li class="tournoi_back_tag_selected"><a href="statistiques_joueurs06.php" title="Retour à la page statistique">Retour</a></li> </ul> </div> <div id="bloc_stats"> <input type="hidden" name="J1" id="J1" value="<?php echo $J1 ?>" /> <input type="hidden" name="J2" id="J2" value="<?php echo $J2 ?>" /> <?php echo "J1 :" .$J1 ." et J2 " .$J2 ; echo "<script> plot_chart(); </script>"; ?> <?php echo '<div id="chart-elo">FusionCharts will render here</div>'; ?> <br> <br> </div> <br/> <br/> <br/> <br/> <br/> <!----------------------------------------------------------> <?php include('include_pied_page.php'); include('include_publicite.php'); //echo '<pre>' . print_r($_SESSION, TRUE) . '</pre>'; ?> <!----------------------------------------------------------> </div> <!-- contenu --> <!----------------------------------------------------------> </div> <!-- main --> <!----------------------------------------------------------> <script type="text/javascript"> call_update(); </script> </body> </html>