<commit_before><!DOCTYPE html>
<html>
   <head>

      <title>Live !</title>
      <meta charset="utf-8" />
      <meta content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" name="viewport">
      <link type="text/css" href="css/layout.css" rel="stylesheet" />

      <!-- Include jQuery.mmenu .css files -->
      <link type="text/css" href="css/jquery.mmenu.all.css" rel="stylesheet" />
      <link type="text/css" href="css/font-awesome.min.css" rel="stylesheet" />
      <link type="text/css" href="css/jquery.mmenu.fullscreen.css" rel="stylesheet" />

      <!-- Include jQuery and the jQuery.mmenu .js files -->
      <script type="text/javascript" src="js/jquery.min.js"></script>
      <script type="text/javascript" src="js/jquery.mmenu.min.all.js"></script>
      <script type="text/javascript" src="js/mobile.js"></script>

		<style type="text/css">

			.mm-menu {
				background: #220011 !important;
			}
			.mm-navbar-top-1 {
				text-align: center;
				position: relative;
				border-bottom: none;
			}
			.mm-navbar-top-1:before {
				content: "";
				display: inline-block;
				vertical-align: middle;
				height: 100%;
				width: 1px;
			}
			.mm-navbar-top-1 > * {
				display: inline-block;
				vertical-align: middle;
			}
			.mm-navbar-top-1 img {
				border: 1px solid rgba(255, 255, 255, 0.6);
				border-radius: 60px;
				width: 60px;
				height: 60px;
				padding: 10px;
				margin: 0 10px;
			}
			.mm-navbar-top-1 a {
				border: 1px solid rgba(255, 255, 255, 0.6);
				border-radius: 40px;
				color: rgba(255, 255, 255, 0.6) !important;
				font-size: 16px !important;
				line-height: 40px;
				width: 40px;
				height: 40px;
				padding: 0;
			}
			.mm-navbar-top-1 a:hover {
				border-color: #fff;
				color: #555 !important;
			}
            input[type=range]::-webkit-slider-thumb {
              -webkit-appearance: none;
              width: 100%; height: 44px;
              background: #fdfdfd; background: -moz-linear-gradient(top, #fdfdfd 0%, #bebebe 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#bebebe)); background: -webkit-linear-gradient(top, #fdfdfd 0%,#bebebe 100%); background: -o-linear-gradient(top, #fdfdfd 0%,#bebebe 100%); background: -ms-linear-gradient(top, #fdfdfd 0%,#bebebe 100%); background: linear-gradient(to bottom, #fdfdfd 0%,#bebebe 100%);
              border: 1px solid #bbb;
              -webkit-border-radius: 22px; -moz-border-radius: 22px; border-radius: 22px;
            }
            input[type=button] {
                background-color:#44c767;
                -moz-border-radius:28px;
                -webkit-border-radius:28px;
                border-radius:28px;
                border:1px solid #18ab29;
                display:inline-block;
                cursor:pointer;
                color:#ffffff;
                font-family:Arial;
                font-size:17px;
                padding:8px 17px;
                text-decoration:none;
            }
            
		</style>
        
      <!-- Fire the plugin onDocumentReady -->
      <script type="text/javascript">
         jQuery(document).ready(function( $ ) {
            $("#menu").mmenu({
                offCanvas: false,
                extensions: [
                    "border-none",
                    "effect-zoom-menu",
                    "effect-zoom-panels",
                    "pageshadow",
                    "theme-dark",
                    "fullscreen"
                ],
                navbar 		: {
                    add:true
                },
                navbars		: {
                    height 	: 4,
                    content : [ 
                        '<a href="#/" class="fa fa-phone" class="temperature_zone" ></a>',
                        '<img src="img/shortlogo2.png" class="image_header" />',
                        '<a href="#/" class="fa fa-envelope" class="humidity_zone" ></a>'
                    ]
                }
            });
            
            // On charge la conf 
            loadConf();
            
         });
      </script>

    </head>
    <body>

      <!-- The page -->
      <div class="page">
         <div class="header">
            <a href="#menu"></a>
         </div>
         <div class="content">
         </div>
      </div>

        
        <?php 

            // On charge le fichier de configuration 
            require_once 'config.php';
            
            function ParamIni($key1, $key2, $default) {
                global $param_ini;
                if (array_key_exists($key2, $param_ini[$key1])) {
                    return $param_ini[$key1][$key2];
                }
                return $default;
            }
            
            // On vient lire le fichier de param_ini
            $param_ini = parse_ini_file("param.ini",true);

        ?>

        <!-- The menu -->
        <nav id="menu" style="min-height: 100vh;">

            <div id="app">
                <ul>
                    <li><label>Configuration</label></li>
                    <li><a href="#conf_application" onclick='saveConf();' ><i class="fa fa-arrow-circle-right"></i>Appliquer</a></li>
                    <li><a href="#param_conf" ></i>Configuration générale</a></li>
                    <?php
                        // On affiche le titre pour les zones
                        foreach ($GLOBALS['IRRIGATION'] as $nom_zone => $zone)
                        {
                            ?>
                                <li><label>Zone <?php echo $nom_zone ;?></label></li>
                            <?php
                            
                            // On affiche un titre pour la cuve
                            $strname = strtoupper(str_replace(" ", "", $nom_zone));
                            ?>
                                <li><a href="#cuve_conf_<?php echo $strname ;?>" class="mm-arrow">Cuve</a></li>
                            <?php  
                            
                            // On affiche le titre pour les plateformes
                            foreach ($zone["plateforme"] as $nom_plateforme => $plateforme)
                            {
                                $strname = strtoupper(str_replace(" ", "", $nom_plateforme));
                                ?>
                                    <li><a href="#plateforme_conf_<?php echo $strname ;?>" class="mm-arrow">PF <?php echo $nom_plateforme ;?></a></li>
                                <?php  
                            }
                        }
                    ?>
                    <li><label>Debug</label></li>
                    <li><a href="#param_debug" >></i>Paramètres avancées</a></li>
                </ul>

                
                <!-- Pour les cuves -->
                <?php
                    foreach ($GLOBALS['IRRIGATION'] as $nom_zone => $zone)
                    {
                        // On affiche le titre pour les plateformes
                        $zoneName = strtoupper(str_replace(" ", "", $nom_zone));
                        
                        // On calcul le nom des param_inis
                        $engrais1       = $zoneName . "_ENGRAIS_1";
                        $engrais2       = $zoneName . "_ENGRAIS_2";
                        $engrais3       = $zoneName . "_ENGRAIS_3";
                        $engrais1actif  = $zoneName . "_ENGRAIS_ACTIF_1";
                        $engrais2actif  = $zoneName . "_ENGRAIS_ACTIF_2";
                        $engrais3actif  = $zoneName . "_ENGRAIS_ACTIF_3";
                        
                        // 25 mL / min  
                        
                        ?>
                            <div id="cuve_conf_<?php echo $zoneName ;?>" class="Panel">
                                <ul>
                                    <li>EC : <p style="display:inline">3.15</p></li>
                                    <li>Température : <p style="display:inline">25°C</p></li>
                                    <li>Humidité : <p style="display:inline">75%</p></li>
                                    <li>
                                        <a href="#" >Engrais 1 :</a>
                                        <input type="button" value="-" onclick='upVal("CUVE", "<?php echo $engrais1 ;?>", -1, "ml/min");' /><commit_msg>Ajout des icones<commit_after><!DOCTYPE html>
<html>
   <head>

      <title>Live !</title>
      <meta charset="utf-8" />
      <meta content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" name="viewport">
      <link type="text/css" href="css/layout.css" rel="stylesheet" />

      <!-- Include jQuery.mmenu .css files -->
      <link type="text/css" href="css/jquery.mmenu.all.css" rel="stylesheet" />
      <link type="text/css" href="css/font-awesome.min.css" rel="stylesheet" />
      <link type="text/css" href="css/jquery.mmenu.fullscreen.css" rel="stylesheet" />

      <!-- Include jQuery and the jQuery.mmenu .js files -->
      <script type="text/javascript" src="js/jquery.min.js"></script>
      <script type="text/javascript" src="js/jquery.mmenu.min.all.js"></script>
      <script type="text/javascript" src="js/mobile.js"></script>

		<style type="text/css">

			.mm-menu {
				background: #220011 !important;
			}
			.mm-navbar-top-1 {
				text-align: center;
				position: relative;
				border-bottom: none;
			}
			.mm-navbar-top-1:before {
				content: "";
				display: inline-block;
				vertical-align: middle;
				height: 100%;
				width: 1px;
			}
			.mm-navbar-top-1 > * {
				display: inline-block;
				vertical-align: middle;
			}
			.mm-navbar-top-1 img {
				border: 1px solid rgba(255, 255, 255, 0.6);
				border-radius: 60px;
				width: 60px;
				height: 60px;
				padding: 10px;
				margin: 0 10px;
			}
			.mm-navbar-top-1 a {
				border: 1px solid rgba(255, 255, 255, 0.6);
				border-radius: 40px;
				color: rgba(255, 255, 255, 0.6) !important;
				font-size: 16px !important;
				line-height: 40px;
				width: 40px;
				height: 40px;
				padding: 0;
			}
			.mm-navbar-top-1 a:hover {
				border-color: #fff;
				color: #555 !important;
			}
            input[type=range]::-webkit-slider-thumb {
              -webkit-appearance: none;
              width: 100%; height: 44px;
              background: #fdfdfd; background: -moz-linear-gradient(top, #fdfdfd 0%, #bebebe 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#bebebe)); background: -webkit-linear-gradient(top, #fdfdfd 0%,#bebebe 100%); background: -o-linear-gradient(top, #fdfdfd 0%,#bebebe 100%); background: -ms-linear-gradient(top, #fdfdfd 0%,#bebebe 100%); background: linear-gradient(to bottom, #fdfdfd 0%,#bebebe 100%);
              border: 1px solid #bbb;
              -webkit-border-radius: 22px; -moz-border-radius: 22px; border-radius: 22px;
            }
            input[type=button] {
                background-color:#44c767;
                -moz-border-radius:28px;
                -webkit-border-radius:28px;
                border-radius:28px;
                border:1px solid #18ab29;
                display:inline-block;
                cursor:pointer;
                color:#ffffff;
                font-family:Arial;
                font-size:17px;
                padding:8px 17px;
                text-decoration:none;
            }
            
		</style>
        
      <!-- Fire the plugin onDocumentReady -->
      <script type="text/javascript">
         jQuery(document).ready(function( $ ) {
            $("#menu").mmenu({
                offCanvas: false,
                extensions: [
                    "border-none",
                    "effect-zoom-menu",
                    "effect-zoom-panels",
                    "pageshadow",
                    "theme-dark",
                    "fullscreen"
                ]/*,
                navbar 		: {
                    add:true
                },
                navbars		: {
                    height 	: 4,
                    content : [ 
                        '<a href="#/" class="fa fa-phone" class="temperature_zone" ></a>',
                        '<img src="img/shortlogo2.png" class="image_header" />',
                        '<a href="#/" class="fa fa-envelope" class="humidity_zone" ></a>'
                    ]
                }*/
            });
            
            // On charge la conf 
            loadConf();
            
         });
      </script>

    </head>
    <body>

      <!-- The page -->
      <div class="page">
         <div class="header">
            <a href="#menu"></a>
         </div>
         <div class="content">
         </div>
      </div>

        
        <?php 

            // On charge le fichier de configuration 
            require_once 'config.php';
            
            function ParamIni($key1, $key2, $default) {
                global $param_ini;
                if (array_key_exists($key2, $param_ini[$key1])) {
                    return $param_ini[$key1][$key2];
                }
                return $default;
            }
            
            // On vient lire le fichier de param_ini
            $param_ini = parse_ini_file("param.ini",true);

        ?>

        <!-- The menu -->
        <nav id="menu" style="min-height: 100vh;">

            <div id="app">
                <ul>
                    <li><label>Configuration</label></li>
                    <li><a href="#conf_application" onclick='saveConf();' ><i class="fa fa-arrow-circle-right"></i>Appliquer</a></li>
                    <li><a href="#param_conf" ><i class="fa fa-database"></i>Configuration générale</a></li>
                    <?php
                        // On affiche le titre pour les zones
                        foreach ($GLOBALS['IRRIGATION'] as $nom_zone => $zone)
                        {
                            ?>
                                <li><label>Zone <?php echo $nom_zone ;?></label></li>
                            <?php
                            
                            // On affiche un titre pour la cuve
                            $strname = strtoupper(str_replace(" ", "", $nom_zone));
                            ?>
                                <li><a href="#cuve_conf_<?php echo $strname ;?>" class="mm-arrow">Cuve</a></li>
                            <?php  
                            
                            // On affiche le titre pour les plateformes
                            foreach ($zone["plateforme"] as $nom_plateforme => $plateforme)
                            {
                                $strname = strtoupper(str_replace(" ", "", $nom_plateforme));
                                ?>
                                    <li><a href="#plateforme_conf_<?php echo $strname ;?>" class="mm-arrow">PF <?php echo $nom_plateforme ;?></a></li>
                                <?php  
                            }
                        }
                    ?>
                    <li><label>Debug</label></li>
                    <li><a href="#param_debug" ><i class="fa fa-cogs"></i>Paramètres avancées</a></li>
                    <li><a href="#debug_pilotage" ><i class="fa fa-power-off"></i>Pilotage</a></li>
                </ul>

                
                <!-- Pour les cuves -->
                <?php
                    foreach ($GLOBALS['IRRIGATION'] as $nom_zone => $zone)
                    {
                        // On affiche le titre pour les plateformes
                        $zoneName = strtoupper(str_replace(" ", "", $nom_zone));
                        
                        // On calcul le nom des param_inis
                        $engrais1       = $zoneName . "_ENGRAIS_1";
                        $engrais2       = $zoneName . "_ENGRAIS_2";
                        $engrais3       = $zoneName . "_ENGRAIS_3";
                        $engrais1actif  = $zoneName . "_ENGRAIS_ACTIF_1";
                        $engrais2actif  = $zoneName . "_ENGRAIS_ACTIF_2";
                        $engrais3actif  = $zoneName . "_ENGRAIS_ACTIF_3";
                        
                        // 25 mL / min  
                        
                        ?>
                            <div id="cuve_conf_<?php echo $zoneName ;?>" class="Panel">
                                <ul>
                                    <li>EC : <p style="display:inline">3.15</p></li>
                                    <li>Température : <p style="display:inline">25°C</p></li>
                                    <li>Humidité : <p style="display:inline">75%</p></li>
                                    <li>
                                        <a href="#" >Engrais 1 :</a>
                                        <input type="button" value="-" onclick='upVal("CUVE", "<?php echo $engrais1 ;?>", -1, "ml/min");' />
{'fraction_non_alphanumeric': 0.14154737962853425, 'fraction_numerical': 0.020466106707677748, 'mean_word_length': 1.2467774086378738, 'pattern_counts': {'":': 0, '<': 235, '<?xml version=': 0, '>': 244, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3450801', 'n_tokens_mistral': 5461, 'n_tokens_neox': 4727, 'n_words': 923}