Commit ded358f1b47d6d10b7913afeba5adf59c7a4fc42

Authored by lwadbled
1 parent c465b3ff

feat(*): ajout des fichiers du projet

Showing 92 changed files with 1926 additions and 0 deletions   Show diff stats
html/Captures/.bmp 0 → 100644
No preview for this file type
html/Captures/Siglent_SDS1102CML_SDS1MEBX2R2090_6_01_01_19.bmp 0 → 100644
No preview for this file type
html/Captures/Siglent_SDS1102CML_SDS1MHEQ4R3490_6_01_01_21R2.bmp 0 → 100644
No preview for this file type
html/Captures/Siglent_Technologies_SDG1032X_SDG1XCAX3R0874_1_01_01_33R1.bmp 0 → 100644
No preview for this file type
html/Generateur/Fonctions/Burst/cmd_burst.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande fonctions */
  3 + if(array_key_exists('burst',$_POST)){
  4 + $bouton=$_POST['burst'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Fonctions/Burst/form_burst.php 0 → 100644
... ... @@ -0,0 +1,24 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <style>
  4 + .pannel-button{
  5 + font-size: 1.6em;
  6 + height: 40px;
  7 + width: 200px;
  8 + text-align: center;
  9 + color: #000;
  10 + background: #fff;
  11 + border-radius: 10px;
  12 + }
  13 + .pannel-button:hover{
  14 + background: #b8ff70;
  15 + }
  16 + .pannel-button:active{
  17 + background: #07e50a;
  18 + }
  19 + </style>
  20 + <form method="post" action="main.php?tab=Fonctions">
  21 + <input type="button" id="burst" name="burst" class="pannel-button" value="Burst" onclick="this.form.submit()"/>
  22 + <input type="hidden" id="burst" name="burst" value="BURST"/>
  23 + </form>
  24 +</html>
... ...
html/Generateur/Fonctions/Channel/cmd_channel.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande fonctions */
  3 + if(array_key_exists('channel',$_POST)){
  4 + $bouton=$_POST['channel'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Fonctions/Channel/form_channel.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=Fonctions">
  4 + <input type="button" id="channel" name="channel" class="pannel-button" value="Channel" onclick="this.form.submit()"/>
  5 + <input type="hidden" id="channel" name="channel" value="CHANNEL"/>
  6 + </form>
  7 +</html>
... ...
html/Generateur/Fonctions/Mod/cmd_mod.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande fonctions */
  3 + if(array_key_exists('mod',$_POST)){
  4 + $bouton=$_POST['mod'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Fonctions/Mod/form_mod.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=Fonctions">
  4 + <input type="button" id="mod" name="mod" class="pannel-button" value="Mod" onclick="this.form.submit()"/>
  5 + <input type="hidden" id="mod" name="mod" value="MOD"/>
  6 + </form>
  7 +</html>
... ...
html/Generateur/Fonctions/Parameter/cmd_parameter.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande fonctions */
  3 + if(array_key_exists('parameter',$_POST)){
  4 + $bouton=$_POST['parameter'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Fonctions/Parameter/form_parameter.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=Fonctions">
  4 + <input type="button" id="parameter" name="parameter" class="pannel-button" value="Parametre" onclick="this.form.submit()"/>
  5 + <input type="hidden" id="parameter" name="parameter" value="PARAMETER"/>
  6 + </form>
  7 +</html>
... ...
html/Generateur/Fonctions/Sweep/cmd_sweep.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande fonctions */
  3 + if(array_key_exists('sweep',$_POST)){
  4 + $bouton=$_POST['sweep'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Fonctions/Sweep/form_sweep.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=Fonctions">
  4 + <input type="button" id="sweep" name="sweep" class="pannel-button" value="Sweep" onclick="this.form.submit()"/>
  5 + <input type="hidden" id="sweep" name="sweep" value="SWEEP"/>
  6 + </form>
  7 +</html>
... ...
html/Generateur/Fonctions/Utility/cmd_utility.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande fonctions */
  3 + if(array_key_exists('utility',$_POST)){
  4 + $bouton=$_POST['utility'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Fonctions/Utility/form_utility.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=Fonctions">
  4 + <input type="button" id="utility" name="utility" class="pannel-button" value="Utility" onclick="this.form.submit()"/>
  5 + <input type="hidden" id="utility" name="utility" value="UTILITY"/>
  6 + </form>
  7 +</html>
... ...
html/Generateur/Fonctions/Waves/cmd_waves.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande fonctions */
  3 + if(array_key_exists('waves',$_POST)){
  4 + $bouton=$_POST['waves'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Fonctions/Waves/form_waves.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=Fonctions">
  4 + <input type="button" id="waves" name="waves" class="pannel-button" value="Waveforms" onclick="this.form.submit()"/>
  5 + <input type="hidden" id="waves" name="waves" value="WAVES"/>
  6 + </form>
  7 +</html>
... ...
html/Generateur/Global/Chiffres/cmd_chiffres.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande Pavé numérique */
  3 + if(array_key_exists('chiffre',$_POST)){
  4 + $bouton=$_POST['chiffre'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Global/Chiffres/form_chiffres.php 0 → 100644
... ... @@ -0,0 +1,84 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <?php /* TODO : modifier les SRC */ ?>
  4 + <style>
  5 + .pave-numerique{
  6 + font-size: 1.6em;
  7 + height: 40px;
  8 + width: 50px;
  9 + text-align: center;
  10 + color: #000;
  11 + background: #fff;
  12 + border-radius: 10px;
  13 + }
  14 + .pave-numerique:hover{
  15 + background: #b8ff70;
  16 + }
  17 + .pave-numerique:active{
  18 + background: #07e50a;
  19 + }
  20 + </style>
  21 + <div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">
  22 + <div class="mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center">
  23 + <div class="btn-group" role="group" aria-label="panel-haut">
  24 + <form method="post" action="main.php?tab=Global">
  25 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="7" onclick="this.form.submit();"/>
  26 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_7"/>
  27 + </form>
  28 + <form method="post" action="main.php?tab=Global">
  29 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="8" onclick="this.form.submit();"/>
  30 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_8"/>
  31 + </form>
  32 + <form method="post" action="main.php?tab=Global">
  33 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="9" onclick="this.form.submit();"/>
  34 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_9"/>
  35 + </form>
  36 + </div>
  37 + <br/>
  38 + <div class="btn-group" role="group" aria-label="panel-centre-haut">
  39 + <form method="post" action="main.php?tab=Global">
  40 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="4" onclick="this.form.submit();"/>
  41 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_4"/>
  42 + </form>
  43 + <form method="post" action="main.php?tab=Global">
  44 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="5" onclick="this.form.submit();"/>
  45 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_5"/>
  46 + </form>
  47 + <form method="post" action="main.php?tab=Global">
  48 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="6" onclick="this.form.submit();"/>
  49 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_6"/>
  50 + </form>
  51 + </div>
  52 + <br/>
  53 + <div class="btn-group" role="group" aria-label="panel-centre-bas">
  54 + <form method="post" action="main.php?tab=Global">
  55 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="1" onclick="this.form.submit();"/>
  56 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_1"/>
  57 + </form>
  58 + <form method="post" action="main.php?tab=Global">
  59 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="2" onclick="this.form.submit();"/>
  60 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_2"/>
  61 + </form>
  62 + <form method="post" action="main.php?tab=Global">
  63 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="3" onclick="this.form.submit();"/>
  64 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_3"/>
  65 + </form>
  66 + </div>
  67 + <br/>
  68 + <div class="btn-group" role="group" aria-label="panel-bas">
  69 + <form method="post" action="main.php?tab=Global">
  70 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="." onclick="this.form.submit();"/>
  71 + <input type="hidden" id="chiffre" name="chiffre" value="POINT"/>
  72 + </form>
  73 + <form method="post" action="main.php?tab=Global">
  74 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="0" onclick="this.form.submit();"/>
  75 + <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_0"/>
  76 + </form>
  77 + <form method="post" action="main.php?tab=Global">
  78 + <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="+/-" onclick="this.form.submit();"/>
  79 + <input type="hidden" id="chiffre" name="chiffre" value="NEGATIVE"/>
  80 + </form>
  81 + </div>
  82 + </div>
  83 + </div>
  84 +</html>
... ...
html/Generateur/Global/Fleches/cmd_fleches.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande fleches */
  3 + if(array_key_exists('fleches',$_POST)){
  4 + $bouton=$_POST['fleches'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Global/Fleches/form_fleches.php 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <div class="btn-group" role="group" aria-label="gauche_droite">
  4 + <form method="post" action="main.php?tab=Global">
  5 + <input type="button" id="fleches" name="fleches" class="pave-numerique" value="<" onclick="this.form.submit();"/>
  6 + <input type="hidden" id="fleches" name="fleches" value="LEFT"/>
  7 + </form>
  8 + <form method="post" action="main.php?tab=Global">
  9 + <input type="button" id="fleches" name="fleches" class="pave-numerique" value=">" onclick="this.form.submit();"/>
  10 + <input type="hidden" id="fleches" name="fleches" value="RIGHT"/>
  11 + </form>
  12 + </div>
  13 +</html>
... ...
html/Generateur/Global/Knob/btn_knob_generateur.png 0 → 100644

16 KB

html/Generateur/Global/Knob/cmd_knob.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande knob */
  3 + if(array_key_exists('knob',$_POST)){
  4 + $bouton=$_POST['knob'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Global/Knob/form_knob.php 0 → 100644
... ... @@ -0,0 +1,36 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <style>
  4 + .knob-button{
  5 + font-size: 2.5em;
  6 + height: 125px;
  7 + width: 50px;
  8 + text-align: center;
  9 + color: #000;
  10 + background: #fff;
  11 + border-radius: 10px;
  12 + }
  13 + .knob-button:hover{
  14 + background: #b8ff70;
  15 + }
  16 + .knob-button:active{
  17 + background: #07e50a;
  18 + }
  19 + </style>
  20 + <div aria-label="bouton_tournant">
  21 + <div class="btn-group" role="group" aria-label="panel-haut">
  22 + <form method="post" action="main.php?tab=Global">
  23 + <input type="button" id="knob" name="knob" class="knob-button" value="&#x21B1;" onclick="this.form.submit();"/>
  24 + <input type="hidden" id="knob" name="knob" value="KNOB_RIGHT" class="btn btn-outline-danger"/>
  25 + </form>
  26 + <form method="post" action="main.php?tab=Global">
  27 + <input type="image" src="Generateur/Global/Knob/btn_knob_generateur.png" name="submit" onclick="this.form.submit()"/>
  28 + <input type="hidden" id="chiffre" name="chiffre" value="KNOB_DOWN"/>
  29 + </form>
  30 + <form method="post" action="main.php?tab=Global">
  31 + <input type="button" id="knob" name="knob" class="knob-button" value="&#x21B0;" onclick="this.form.submit();"/>
  32 + <input type="hidden" id="knob" name="knob" value="KNOB_LEFT" class="btn btn-outline-danger"/>
  33 + </form>
  34 + </div>
  35 + </div>
  36 +</html>
... ...
html/Generateur/Menus/Func1/cmd_func1.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande Menu Func */
  3 + if(array_key_exists('func1',$_POST)){
  4 + $bouton=$_POST['func1'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Menus/Func1/form_func1.php 0 → 100644
... ... @@ -0,0 +1,28 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <style>
  4 + .func1-button{
  5 + height: 30px;
  6 + width: 80px;
  7 + background: #fff;
  8 + border-radius: 10px;
  9 + position: absolute;
  10 + }
  11 + .func1-button:hover{
  12 + background: #b8ff70;
  13 + }
  14 + .func1-button:active{
  15 + background: #07e50a;
  16 + }
  17 + </style>
  18 + <form method="post" action="main.php?tab=Menus">
  19 + <input type="button" id="func1" name="func1" class="func1-button" value="" onclick="this.form.submit()"/>
  20 + <input type="hidden" id="func1" name="func1" value="FUNC1" class="btn-outline-danger"/>
  21 + </form>
  22 + <script type='text/javascript'>
  23 + var elem = document.getElementById('cam<?php echo $i ?>');
  24 + var pos = elem.getBoundingClientRect();
  25 + var btn = document.getElementById('func1');
  26 + btn.style = "top : "+pos.bottom+"px; left : "+pos.x+"px";
  27 + </script>
  28 +</html>
... ...
html/Generateur/Menus/Func2/cmd_func2.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande Menu Func */
  3 + if(array_key_exists('func2',$_POST)){
  4 + $bouton=$_POST['func2'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Menus/Func2/form_func2.php 0 → 100644
... ... @@ -0,0 +1,28 @@
  1 +<html>
  2 + <style>
  3 + .func2-button{
  4 + height: 30px;
  5 + width: 80px;
  6 + background: #fff;
  7 + border-radius: 10px;
  8 + position: absolute;
  9 + }
  10 + .func2-button:hover{
  11 + background: #b8ff70;
  12 + }
  13 + .func2-button:active{
  14 + background: #07e50a;
  15 + }
  16 + </style>
  17 + <form method="post" action="main.php?tab=Menus">
  18 + <input type="button" id="func2" name="func2" class="func2-button" value="" onclick="this.form.submit()"/>
  19 + <input type="hidden" id="func2" name="func2" value="FUNC2" class="btn-outline-danger"/>
  20 + </form>
  21 + <script type='text/javascript'>
  22 + var elem = document.getElementById('cam<?php echo $i ?>');
  23 + var pos = elem.getBoundingClientRect();
  24 + var btn = document.getElementById('func2');
  25 + var pos_x = pos.x+80;
  26 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  27 + </script>
  28 +</html>
... ...
html/Generateur/Menus/Func3/cmd_func3.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande Menu Func */
  3 + if(array_key_exists('func3',$_POST)){
  4 + $bouton=$_POST['func3'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Menus/Func3/form_func3.php 0 → 100644
... ... @@ -0,0 +1,27 @@
  1 +<html>
  2 + <style>
  3 + .func3-button{
  4 + height: 30px;
  5 + width: 80px;
  6 + background: #fff;
  7 + border-radius: 10px;
  8 + position: absolute;
  9 + .func3-button:hover{
  10 + background: #b8ff70;
  11 + }
  12 + .func3-button:active{
  13 + background: #07e50a;
  14 + }
  15 + </style>
  16 + <form method="post" action="main.php?tab=Menus">
  17 + <input type="button" id="func3" name="func3" class="func3-button" value="" onclick="this.form.submit()"/>
  18 + <input type="hidden" id="func3" name="func3" value="FUNC3" class="btn-outline-danger"/>
  19 + </form>
  20 + <script type='text/javascript'>
  21 + var elem = document.getElementById('cam<?php echo $i ?>');
  22 + var pos = elem.getBoundingClientRect();
  23 + var btn = document.getElementById('func3');
  24 + var pos_x = pos.x+160;
  25 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  26 + </script>
  27 +</html>
... ...
html/Generateur/Menus/Func4/cmd_func4.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande Menu Func */
  3 + if(array_key_exists('func4',$_POST)){
  4 + $bouton=$_POST['func4'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Menus/Func4/form_func4.php 0 → 100644
... ... @@ -0,0 +1,27 @@
  1 +<html>
  2 + <style>
  3 + .func4-button{
  4 + height: 30px;
  5 + width: 80px;
  6 + background: #fff;
  7 + border-radius: 10px;
  8 + position: absolute;
  9 + .func4-button:hover{
  10 + background: #b8ff70;
  11 + }
  12 + .func4-button:active{
  13 + background: #07e50a;
  14 + }
  15 + </style>
  16 + <form method="post" action="main.php?tab=Menus">
  17 + <input type="button" id="func4" name="func4" class="func4-button" value="" onclick="this.form.submit()"/>
  18 + <input type="hidden" id="func4" name="func4" value="FUNC4" class="btn-outline-danger"/>
  19 + </form>
  20 + <script type='text/javascript'>
  21 + var elem = document.getElementById('cam<?php echo $i ?>');
  22 + var pos = elem.getBoundingClientRect();
  23 + var btn = document.getElementById('func4');
  24 + var pos_x = pos.x+240;
  25 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  26 + </script>
  27 +</html>
... ...
html/Generateur/Menus/Func5/cmd_func5.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande Menu Func */
  3 + if(array_key_exists('func5',$_POST)){
  4 + $bouton=$_POST['func5'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Menus/Func5/form_func5.php 0 → 100644
... ... @@ -0,0 +1,28 @@
  1 +<html>
  2 + <style>
  3 + .func5-button{
  4 + height: 30px;
  5 + width: 80px;
  6 + background: #fff;
  7 + border-radius: 10px;
  8 + position: absolute;
  9 + }
  10 + .func5-button:hover{
  11 + background: #b8ff70;
  12 + }
  13 + .func5-button:active{
  14 + background: #07e50a;
  15 + }
  16 + </style>
  17 + <form method="post" action="main.php?tab=Menus">
  18 + <input type="button" id="func5" name="func5" class="func5-button" value="" onclick="this.form.submit()"/>
  19 + <input type="hidden" id="func5" name="func5" value="FUNC5" class="btn-outline-danger"/>
  20 + </form>
  21 + <script type='text/javascript'>
  22 + var elem = document.getElementById('cam<?php echo $i ?>');
  23 + var pos = elem.getBoundingClientRect();
  24 + var btn = document.getElementById('func5');
  25 + var pos_x = pos.x+320;
  26 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  27 + </script>
  28 +</html>
... ...
html/Generateur/Menus/Func6/cmd_func6.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande Menu Func */
  3 + if(array_key_exists('func6',$_POST)){
  4 + $bouton=$_POST['func6'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Menus/Func6/form_func6.php 0 → 100644
... ... @@ -0,0 +1,28 @@
  1 +<html>
  2 + <style>
  3 + .func6-button{
  4 + height: 30px;
  5 + width: 80px;
  6 + background: #fff;
  7 + border-radius: 10px;
  8 + position: absolute;
  9 + }
  10 + .func6-button:hover{
  11 + background: #b8ff70;
  12 + }
  13 + .func6-button:active{
  14 + background: #07e50a;
  15 + }
  16 + </style>
  17 + <form method="post" action="main.php?tab=Menus">
  18 + <input type="button" id="func6" name="func6" class="func6-button" value="" onclick="this.form.submit()"/>
  19 + <input type="hidden" id="func6" name="func6" value="FUNC6"/>
  20 + </form>
  21 + <script type='text/javascript'>
  22 + var elem = document.getElementById('cam<?php echo $i ?>');
  23 + var pos = elem.getBoundingClientRect();
  24 + var btn = document.getElementById('func6');
  25 + var pos_x = pos.x+400;
  26 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  27 + </script>
  28 +</html>
... ...
html/Generateur/Outputs/Output1/cmd_output_1.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande output */
  3 + if(array_key_exists('output1',$_POST)){
  4 + $bouton=$_POST['output1'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Outputs/Output1/form_output_1.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<!DOCTYPE>
  2 +<html>
  3 + <form method="post" action="main.php?tab=Outputs">
  4 + <input type="button" id="output1" name="output1" class="pannel-button" value="Output1" onclick="this.form.submit()"/>
  5 + <input type="hidden" id="output1" name="output1" value="OUTPUT1"/>
  6 + </form>
  7 +</html>
... ...
html/Generateur/Outputs/Output2/cmd_output_2.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<?php
  2 + /* Commande output */
  3 + if(array_key_exists('output2',$_POST)){
  4 + $bouton=$_POST['output2'];
  5 + shell_exec('lxi scpi -a '.$adresse.' "VKEY VALUE,KB_'.$bouton.',STATE,1"');
  6 + }
  7 +?>
... ...
html/Generateur/Outputs/Output2/form_output_2.php 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +<!DOCTYPE>
  2 +<html>
  3 + <form method="post" action="main.php?tab=Outputs">
  4 + <input type="button" id="output2" name="output2" class="pannel-button" value="Output2" onclick="this.form.submit()"/>
  5 + <input type="hidden" id="output2" name="output2" value="OUTPUT2"/>
  6 + </form>
  7 +</html>
... ...
html/Generateur/main_generateur.php 0 → 100644
... ... @@ -0,0 +1,154 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <?php
  4 + echo '<div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">';
  5 + echo '<div class="mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center">';
  6 + /* Affichage de la capture d'ecran */
  7 + usleep(90000); /* Utilisation pour un premier screenshot plus propre */
  8 + /* Nom de la capture d'ecran au nom de l'appareil */
  9 + $pic_name[$i] = str_replace(".","_",$Appareil[$i]['nom']);
  10 + $pic_name[$i] = str_replace(" ","_",$pic_name[$i]);
  11 + $pic_name[$i] = str_replace("+","",$pic_name[$i]);
  12 + $pic_name[$i] = str_replace(",","_",$pic_name[$i]).".bmp";
  13 + $pic_name[$i] = 'Captures/'.$pic_name[$i];
  14 + $_SESSION['pic_name'] = $pic_name[$i];
  15 + include(getcwd().'/Scripts/screenshot.php'); /* Execution commande screenshot */
  16 + /* Recuperation du nom du fichier a partir du chemin complet */
  17 + echo "<img id='cam$i' class='fit-picture' src='".$pic_name[$i]."' alt='Image de ".$Appareil[$i]['nom']."'>";
  18 + echo '</div>';
  19 + echo '<div class="bg-light mr-md-3 pt-3 px-3 pt-md-5 px-md-5 overflow-hidden">';
  20 + /* Commandes de l'appareil */
  21 + echo '<div class="my-3 py-3">';
  22 + echo '<h2 class="display-6 text-center">Panel de commande</h2>';
  23 + echo '</div>';
  24 + echo '<div class="bd-example">';
  25 + echo '<nav>';
  26 + echo '<div class="bg-warning nav nav-tabs mb-3" id="nav-tab" role="tablist">';
  27 + $chemin = getcwd().'/'.$Appareil[$i]['type'];
  28 + $files = array_diff(scandir($chemin),array('Menus','..','.'));
  29 + foreach($files as $Fich){
  30 + $trypath = $chemin.'/'.$Fich;
  31 + if(is_dir($trypath)){
  32 + echo '<button class="nav-link ';
  33 + if($tab==$Fich){
  34 + echo "active";
  35 + }
  36 + echo '" id="nav-'.$Fich.'-tab" data-bs-toggle="tab" data-bs-target="#nav-'.$Fich.'" type="button" role="tab" aria-controls="nav-'.$Fich.'" aria-selected="true">'.$Fich.'</button>';
  37 + }
  38 + }
  39 + echo '</div>';
  40 + echo '</nav>';
  41 + echo '<div class="tab-content" id="nav-tabContent">';
  42 + foreach($files as $Fich){
  43 + $path = $chemin.'/'.$Fich;
  44 + if(is_dir($path)){
  45 + echo '<div class="tab-pane fade ';
  46 + if($tab==$Fich){
  47 + echo "show active";
  48 + }
  49 + echo '" id="nav-'.$Fich.'" role=tabpanel" aria-labelledby="nav-'.$Fich.'-tab">';
  50 + echo '<p>';
  51 + $files = array_diff(scandir($path),array('..','.'));
  52 + foreach($files as $dir){
  53 + $path2 = $path.'/'.$dir;
  54 + if(is_dir($path2)){
  55 + $files2 = array_diff(scandir($path2),array('..','.'));
  56 + foreach($files2 as $form){
  57 + $path3 = $path2.'/'.$form;
  58 + if(is_file($path3) && strpos($path3,"form")!=false){
  59 + include($path3);
  60 + echo '<br/>';
  61 + }
  62 + }
  63 + }
  64 + }
  65 + echo '</p>';
  66 + echo '</div>';
  67 + }
  68 + }
  69 + echo '</div>';
  70 + echo '</div>';
  71 + echo '</div>';
  72 + ?>
  73 + <style>
  74 + .func-button{
  75 + height: 30px;
  76 + width: 80px;
  77 + background: #fff;
  78 + border-radius: 10px;
  79 + position: absolute;
  80 + }
  81 + .func-button:hover{
  82 + background: #b8ff70;
  83 + }
  84 + .func-button:active{
  85 + background: #07e50a;
  86 + }
  87 + </style>
  88 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  89 + <input type="button" id="func1" name="func1" class="func-button" value="" onclick="this.form.submit()"/>
  90 + <input type="hidden" id="func1" name="func1" value="FUNC1" class="btn-outline-danger"/>
  91 + </form>
  92 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  93 + <input type="button" id="func2" name="func2" class="func-button" value="" onclick="this.form.submit()"/>
  94 + <input type="hidden" id="func2" name="func2" value="FUNC2" class="btn-outline-danger"/>
  95 + </form>
  96 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  97 + <input type="button" id="func3" name="func3" class="func-button" value="" onclick="this.form.submit()"/>
  98 + <input type="hidden" id="func3" name="func3" value="FUNC3" class="btn-outline-danger"/>
  99 + </form>
  100 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  101 + <input type="button" id="func4" name="func4" class="func-button" value="" onclick="this.form.submit()"/>
  102 + <input type="hidden" id="func4" name="func4" value="FUNC4" class="btn-outline-danger"/>
  103 + </form>
  104 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  105 + <input type="button" id="func5" name="func5" class="func-button" value="" onclick="this.form.submit()"/>
  106 + <input type="hidden" id="func5" name="func5" value="FUNC5" class="btn-outline-danger"/>
  107 + </form>
  108 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  109 + <input type="button" id="func6" name="func6" class="func-button" value="" onclick="this.form.submit()"/>
  110 + <input type="hidden" id="func6" name="func6" value="FUNC6" class="btn-outline-danger"/>
  111 + </form>
  112 + </div>
  113 + <script type='text/javascript'>
  114 + var elem = document.getElementById('cam<?php echo $i ?>');
  115 + var pos = elem.getBoundingClientRect();
  116 + var btn = document.getElementById('func1');
  117 + btn.style = "top : "+pos.bottom+"px; left : "+pos.x+"px";
  118 + </script>
  119 + <script type='text/javascript'>
  120 + var elem = document.getElementById('cam<?php echo $i ?>');
  121 + var pos = elem.getBoundingClientRect();
  122 + var btn = document.getElementById('func2');
  123 + var pos_x = pos.x+80;
  124 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  125 + </script>
  126 + <script type='text/javascript'>
  127 + var elem = document.getElementById('cam<?php echo $i ?>');
  128 + var pos = elem.getBoundingClientRect();
  129 + var btn = document.getElementById('func3');
  130 + var pos_x = pos.x+160;
  131 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  132 + </script>
  133 + <script type='text/javascript'>
  134 + var elem = document.getElementById('cam<?php echo $i ?>');
  135 + var pos = elem.getBoundingClientRect();
  136 + var btn = document.getElementById('func4');
  137 + var pos_x = pos.x+240;
  138 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  139 + </script>
  140 + <script type='text/javascript'>
  141 + var elem = document.getElementById('cam<?php echo $i ?>');
  142 + var pos = elem.getBoundingClientRect();
  143 + var btn = document.getElementById('func5');
  144 + var pos_x = pos.x+320;
  145 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  146 + </script>
  147 + <script type='text/javascript'>
  148 + var elem = document.getElementById('cam<?php echo $i ?>');
  149 + var pos = elem.getBoundingClientRect();
  150 + var btn = document.getElementById('func6');
  151 + var pos_x = pos.x+400;
  152 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  153 + </script>
  154 +</html>
... ...
html/Oscilloscope/CH1/1_Trace/cmd_trace.php 0 → 100644
... ... @@ -0,0 +1,12 @@
  1 +<?php
  2 + /* Commande Tracer CH1 */
  3 + $trace_c1 = shell_exec('lxi scpi -a '.$adresse.' "c1:tra?"');
  4 + if(array_key_exists('tra_c1',$_POST)){
  5 + if(strpos($trace_c1,"ON")!=false){
  6 + shell_exec('lxi scpi -a '.$adresse.' "c1:tra off"');
  7 + }else{
  8 + shell_exec('lxi scpi -a '.$adresse.' "c1:tra on"');
  9 + }
  10 + $trace_c1 = shell_exec('lxi scpi -a '.$adresse.' "c1:tra?"');
  11 + }
  12 +?>
... ...
html/Oscilloscope/CH1/1_Trace/form_trace.php 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=CH1">
  4 + <input type="submit" name="tra_c1" value="Tracer/Effacer CH1" class="btn btn-outline-danger"/>
  5 + </form>
  6 +</html>
... ...
html/Oscilloscope/CH1/2_Attn/cmd_attn.php 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +<?php
  2 + /* Commande Attenuation Sonde CH1 */
  3 + if(array_key_exists('c1_sonde',$_POST)){
  4 + $c1sonde=$_POST["c1_sonde"];
  5 + shell_exec('lxi scpi -a '.$adresse.' "c1:attn '.$c1sonde.'"');
  6 + }
  7 + $c1sonde=shell_exec('lxi scpi -a '.$adresse.' "c1:attn?"');
  8 +?>
... ...
html/Oscilloscope/CH1/2_Attn/form_attn.php 0 → 100644
... ... @@ -0,0 +1,24 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=CH1">
  4 + <label for="c1_sonde">Attenuation Sonde CH1 :</label>
  5 + <select id="c1_sonde" name="c1_sonde" onchange="this.form.submit();">
  6 + <option value="0.1" <?php if(strpos($c1sonde,"ATTN 0.1")!=false) echo "selected" ?> >0.1X</option>
  7 + <option value="0.2" <?php if(strpos($c1sonde,"ATTN 0.2")!=false) echo "selected" ?> >0.2X</option>
  8 + <option value="0.5" <?php if(strpos($c1sonde,"ATTN 0.5")!=false) echo "selected" ?> >0.5X</option>
  9 + <option value="1" <?php if(strpos($c1sonde,"ATTN 1")!=false) echo "selected" ?> >1X</option>
  10 + <option value="2" <?php if(strpos($c1sonde,"ATTN 2")!=false) echo "selected" ?> >2X</option>
  11 + <option value="5" <?php if(strpos($c1sonde,"ATTN 5")!=false) echo "selected" ?> >5X</option>
  12 + <option value="10" <?php if(strpos($c1sonde,"ATTN 10")!=false) echo "selected" ?> >10X</option>
  13 + <option value="20" <?php if(strpos($c1sonde,"ATTN 20")!=false) echo "selected" ?> >20X</option>
  14 + <option value="50" <?php if(strpos($c1sonde,"ATTN 50")!=false) echo "selected" ?> >50X</option>
  15 + <option value="100" <?php if(strpos($c1sonde,"ATTN 100")!=false) echo "selected" ?> >100X</option>
  16 + <option value="200" <?php if(strpos($c1sonde,"ATTN 200")!=false) echo "selected" ?> >200X</option>
  17 + <option value="500" <?php if(strpos($c1sonde,"ATTN 500")!=false) echo "selected" ?> >500X</option>
  18 + <option value="1000" <?php if(strpos($c1sonde,"ATTN 1000")!=false) echo "selected" ?> >1000X</option>
  19 + <option value="2000" <?php if(strpos($c1sonde,"ATTN 2000")!=false) echo "selected" ?> >2000X</option>
  20 + <option value="5000" <?php if(strpos($c1sonde,"ATTN 5000")!=false) echo "selected" ?> >5000X</option>
  21 + <option value="10000" <?php if(strpos($c1sonde,"ATTN 10000")!=false) echo "selected" ?> >10000X</option>
  22 + </select>
  23 + </form>
  24 +</html>
... ...
html/Oscilloscope/CH1/3_Unite/cmd_unite.php 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +<?php
  2 + /* Commande Unité CH1 */
  3 + if(array_key_exists('c1_unit',$_POST)){
  4 + $unit=$_POST["c1_unit"];
  5 + shell_exec('lxi scpi -a '.$adresse.' "c1:unit '.$unit.'"');
  6 + }
  7 + $c1u=shell_exec('lxi scpi -a '.$adresse.' "c1:unit?"');
  8 +?>
... ...
html/Oscilloscope/CH1/3_Unite/form_unite.php 0 → 100644
... ... @@ -0,0 +1,10 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=CH1">
  4 + <label for="c1_unit">Unité CH1 :</label>
  5 + <select id="c1_unit" name="c1_unit" onchange="this.form.submit();">
  6 + <option value="V" <?php if(strpos($c1u,"V")!=false) echo "selected" ?> >Volt</option>
  7 + <option value="A" <?php if(strpos($c1u,"A")!=false) echo "selected" ?> >Ampere</option>
  8 + </select>
  9 + </form>
  10 +</html>
... ...
html/Oscilloscope/CH1/4_Vdiv/cmd_volt_div.php 0 → 100644
... ... @@ -0,0 +1,14 @@
  1 +<?php
  2 + /* Commande Volts/DIV CH1 */
  3 + if(array_key_exists('c1_vdiv',$_POST)){
  4 + $div=$_POST["c1_vdiv"];
  5 + shell_exec('lxi scpi -a '.$adresse.' "c1:vdiv '.$div.'"');
  6 + }
  7 + if(strpos($c1u,"A")!=false){
  8 + shell_exec('lxi scpi -a '.$adresse.' "c1:unit V"');
  9 + $vdiv1=shell_exec('lxi scpi -a '.$adresse.' "c1:vdiv?"');
  10 + shell_exec('lxi scpi -a '.$adresse.' "c1:unit A"');
  11 + }else{
  12 + $vdiv1=shell_exec('lxi scpi -a '.$adresse.' "c1:vdiv?"');
  13 + }
  14 +?>
... ...
html/Oscilloscope/CH1/4_Vdiv/form_volt_div.php 0 → 100644
... ... @@ -0,0 +1,26 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <?php
  4 + /* TODO : Meilleur endroit ? */
  5 + $vdiv1 = floatval(substr($vdiv1,8,-2));
  6 + $sonde = floatval(substr($c1sonde,7));
  7 + $unite1 = substr($c1u,8,-1);
  8 + ?>
  9 + <form method="post" action="main.php?tab=CH1">
  10 + <label for="c1_vdiv"><?php if($unite1=="A"){echo "Amps";}else{echo "Volts";}?>/div CH1 :</label>
  11 + <select id="c1_vdiv" name="c1_vdiv" onchange="this.form.submit();">
  12 + <option value="<?php echo floatval(2.00E-03)*$sonde ?>V" <?php if($vdiv1==(floatval(2.00E-03*$sonde))) echo "selected" ?> ><?php echo floatval(2.00E-03)*$sonde.$unite1 ?></option>
  13 + <option value="<?php echo floatval(5.00E-03)*$sonde ?>V" <?php if($vdiv1==(floatval(5.00E-03*$sonde))) echo "selected" ?> ><?php echo floatval(5.00E-03)*$sonde.$unite1 ?></option>
  14 + <option value="<?php echo floatval(1.00E-02)*$sonde ?>V" <?php if($vdiv1==(floatval(1.00E-02*$sonde))) echo "selected" ?> ><?php echo floatval(1.00E-02)*$sonde.$unite1 ?></option>
  15 + <option value="<?php echo floatval(2.00E-02)*$sonde ?>V" <?php if($vdiv1==(floatval(2.00E-02*$sonde))) echo "selected" ?> ><?php echo floatval(2.00E-02)*$sonde.$unite1 ?></option>
  16 + <option value="<?php echo floatval(5.00E-02)*$sonde ?>V" <?php if($vdiv1==(floatval(5.00E-02*$sonde))) echo "selected" ?> ><?php echo floatval(5.00E-02)*$sonde.$unite1 ?></option>
  17 + <option value="<?php echo floatval(1.00E-01)*$sonde ?>V" <?php if($vdiv1==(floatval(1.00E-01*$sonde))) echo "selected" ?> ><?php echo floatval(1.00E-01)*$sonde.$unite1 ?></option>
  18 + <option value="<?php echo floatval(2.00E-01)*$sonde ?>V" <?php if($vdiv1==(floatval(2.00E-01*$sonde))) echo "selected" ?> ><?php echo floatval(2.00E-01)*$sonde.$unite1 ?></option>
  19 + <option value="<?php echo floatval(5.00E-01)*$sonde ?>V" <?php if($vdiv1==(floatval(5.00E-01*$sonde))) echo "selected" ?> ><?php echo floatval(5.00E-01)*$sonde.$unite1 ?></option>
  20 + <option value="<?php echo floatval(1.00E+00)*$sonde ?>V" <?php if($vdiv1==(floatval(1.00E+00*$sonde))) echo "selected" ?> ><?php echo floatval(1.00E+00)*$sonde.$unite1 ?></option>
  21 + <option value="<?php echo floatval(2.00E+00)*$sonde ?>V" <?php if($vdiv1==(floatval(2.00E+00*$sonde))) echo "selected" ?> ><?php echo floatval(2.00E+00)*$sonde.$unite1 ?></option>
  22 + <option value="<?php echo floatval(5.00E+00)*$sonde ?>V" <?php if($vdiv1==(floatval(5.00E+00*$sonde))) echo "selected" ?> ><?php echo floatval(5.00E+00)*$sonde.$unite1 ?></option>
  23 + <option value="<?php echo floatval(1.00E+01)*$sonde ?>V" <?php if($vdiv1==(floatval(1.00E+01*$sonde))) echo "selected" ?> ><?php echo floatval(1.00E+01)*$sonde.$unite1 ?></option>
  24 + </select>
  25 + </form>
  26 +</html>
... ...
html/Oscilloscope/CH1/5_Couplage/cmd_couplage.php 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +<?php
  2 + /* Couplage CH1 */
  3 + if(array_key_exists('c1_cpl',$_POST)){
  4 + $c1cpl=$_POST["c1_cpl"];
  5 + shell_exec('lxi scpi -a '.$adresse.' "c1:cpl '.$c1cpl.'"');
  6 + }
  7 + $c1cpl=shell_exec('lxi scpi -a '.$adresse.' "c1:cpl?"');
  8 +?>
... ...
html/Oscilloscope/CH1/5_Couplage/form_couplage.php 0 → 100644
... ... @@ -0,0 +1,11 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=CH1">
  4 + <label for="c1_cpl">Couplage CH1 :</label>
  5 + <select id="c1_cpl" name="c1_cpl" onchange="this.form.submit();">
  6 + <option value="D1M" <?php if(strpos($c1cpl,"D1M")!=false) echo "selected" ?> >DC</option>
  7 + <option value="A1M" <?php if(strpos($c1cpl,"A1M")!=false) echo "selected" ?> >AC</option>
  8 + <option value="GND" <?php if(strpos($c1cpl,"GND")!=false) echo "selected" ?> >GND</option>
  9 + </select>
  10 + </form>
  11 +</html>
... ...
html/Oscilloscope/CH1/6_Filtre/cmd_filtre.php 0 → 100644
... ... @@ -0,0 +1,37 @@
  1 +<?php
  2 + /* Filtre CH1 */
  3 + if(array_key_exists('filt_c1',$_POST)){
  4 + $filt_c1 = shell_exec('lxi scpi -a '.$adresse.' "c1:filt?"');
  5 + if(strpos($filt_c1,"ON")!=false){
  6 + shell_exec('lxi scpi -a '.$adresse.' "c1:filt off"');
  7 + }else{
  8 + shell_exec('lxi scpi -a '.$adresse.' "c1:filt on"');
  9 + }
  10 + }
  11 + $trace_c1=shell_exec('lxi scpi -a '.$adresse.' "c1:tra?"');
  12 + if(strpos($trace_c1,"OFF")!=false){
  13 + $filt_c1="OFF";
  14 + }else{
  15 + $filt_c1 = shell_exec('lxi scpi -a '.$adresse.' "c1:filt?"');
  16 + }
  17 + /* TODO : Probleme (Voir erreur /var/log/apache2/error.log) */
  18 + /* Commande type de filtre CH1 */
  19 + if(array_key_exists('c1_filts',$_POST)){
  20 + $c1filts=$_POST['c1_filts'];
  21 + if($c1filts=="LP"){
  22 + $limite_sup = floatval($_POST['lim_sup']);
  23 + shell_exec('lxi scpi -a '.$adresse.' "c1:filts type,'.$c1filts.',upplimit,'.$limite_sup.'MHz"');
  24 + }else if($c1filts=="HP"){
  25 + $limite_inf = $_POST['lim_inf'];
  26 + shell_exec('lxi scpi -a '.$adresse.' "c1:filts type,'.$c1filts.',lowlimit,'.$limite_inf.'MHz"');
  27 + }else{
  28 + $limite_sup = $_POST['lim_sup'];
  29 + $limite_inf = $_POST['lim_inf'];
  30 + if($limite_inf>=$limite_sup){
  31 + $limite_inf=$limite_sup-5;
  32 + }
  33 + shell_exec('lxi scpi -a '.$adresse.' "c1:filts type,'.$c1filts.',upplimit,'.$limite_sup.'MHz,lowlimit,'.$limite_inf.'MHz"');
  34 + }
  35 + }
  36 + $c1filts=shell_exec('lxi scpi -a '.$adresse.' "c1:filts?"');
  37 +?>
... ...
html/Oscilloscope/CH1/6_Filtre/form_filtre.php 0 → 100644
... ... @@ -0,0 +1,72 @@
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <form method="post" action="main.php?tab=CH1">
  4 + <input type="submit" name="filt_c1" value="Filtre ON/OFF CH1" class="btn btn-outline-danger"/>
  5 + </form>
  6 + <?php
  7 + echo "Etat du filtre : ";
  8 + if(strpos($filt_c1,"ON")){
  9 + echo "ON";
  10 + echo "<br/>";
  11 + if(strpos($c1filts,"LP")!=false){
  12 + echo "<form method='post' action='main.php?tab=CH1' oninput='limitesup.value=lim_sup.value;'>";
  13 + }else if(strpos($c1filts,"HP")!=false){
  14 + echo "<form method='post' action='main.php?tab=CH1' oninput='limiteinf.value=lim_inf.value;'>";
  15 + }else{
  16 + echo "<form method='post' action='main.php?tab=CH1' oninput='limitesup.value=lim_sup.value; limiteinf.value=lim_inf.value;'>";
  17 + }
  18 + echo '<fieldset>';
  19 + echo "<label for='c1_filts'>Type du Filtre : </label>";
  20 + echo "<select id='c1_filts' name='c1_filts' onchange='this.form.submit();'>";
  21 + echo "<option value='LP' ";
  22 + if(strpos($c1filts,"LP")!=false) echo "selected";
  23 + echo ">Passe Bas</option>";
  24 + echo "<option value='HP' ";
  25 + if(strpos($c1filts,"HP")!=false) echo "selected";
  26 + echo ">Passe Haut</option>";
  27 + echo "<option value='BP' ";
  28 + if(strpos($c1filts,"BP")!=false) echo "selected";
  29 + echo ">Passe Bande</option>";
  30 + echo "<option value='BR' ";
  31 + if(strpos($c1filts,"BR")!=false) echo "selected";
  32 + echo ">Coupe Bande</option>";
  33 + echo "</select>";
  34 + if(strpos($c1filts,"LP")!=false){
  35 + $limite = strstr($c1filts,"UPPLIMIT");
  36 + $lim_sup=floatval(substr($limite,9,-4));
  37 + echo '<label for="lim_sup" class="form-range">Limite supérieure passe bas</label>';
  38 + echo '<input type="range" id="lim_sup" name="lim_sup" class="form-range" min="5" max="245" step="5" value="'.$lim_sup.'" onchange="this.form.submit();">';
  39 + echo '<br/>';
  40 + echo 'Fréquence : <output for="out" name="limitesup">'.$lim_sup.'</output> MHz';
  41 + echo '<br/>';
  42 + }else if(strpos($c1filts,"HP")!=false){
  43 + $limite = strstr($c1filts,"LOWLIMIT");
  44 + $lim_inf=floatval(substr($limite,9,-4));
  45 + echo '<label for="lim_inf" class="form-range">Limite inférieure</label>';
  46 + echo '<input type="range" id="lim_inf" name="lim_inf" class="form-range" min="5" max="245" step="5" value="'.$lim_inf.'" onchange="this.form.submit();">';
  47 + echo '<br/>';
  48 + echo 'Fréquence : <output for="out" name="limiteinf">'.$lim_inf.'</output> MHz';
  49 + echo '<br/>';