Commit 35fd4b08e51ae5efbdaff9c9077fbd7fe24d32bb

Authored by lwadbled
1 parent 655d0e02

fix(*): ajout de commentaires et organisation de code

Showing 135 changed files with 546 additions and 537 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 135 files are displayed.

html/Captures/Siglent_SDS1102CML_SDS1MEBX2R2090_6_01_01_19.bmp
No preview for this file type
html/Captures/Siglent_Technologies_SDG1032X_SDG1XCAX3R0874_1_01_01_33R1.bmp
No preview for this file type
html/Generateur/Fonctions/Burst/form_burst.php
... ... @@ -17,7 +17,7 @@
17 17 background: #07e50a;
18 18 }
19 19 </style>
20   - <form method="post" action="main.php?tab=Fonctions">
  20 + <form method="post" action="main.php">
21 21 <input type="button" id="burst" name="burst" class="pannel-button" value="Burst" onclick="this.form.submit()"/>
22 22 <input type="hidden" id="burst" name="burst" value="BURST"/>
23 23 </form>
... ...
html/Generateur/Fonctions/Channel/form_channel.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Fonctions">
  3 + <form method="post" action="main.php">
4 4 <input type="button" id="channel" name="channel" class="pannel-button" value="Channel" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="channel" name="channel" value="CHANNEL"/>
6 6 </form>
... ...
html/Generateur/Fonctions/Mod/form_mod.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Fonctions">
  3 + <form method="post" action="main.php">
4 4 <input type="button" id="mod" name="mod" class="pannel-button" value="Mod" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="mod" name="mod" value="MOD"/>
6 6 </form>
... ...
html/Generateur/Fonctions/Parameter/form_parameter.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Fonctions">
  3 + <form method="post" action="main.php">
4 4 <input type="button" id="parameter" name="parameter" class="pannel-button" value="Parametre" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="parameter" name="parameter" value="PARAMETER"/>
6 6 </form>
... ...
html/Generateur/Fonctions/Sweep/form_sweep.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Fonctions">
  3 + <form method="post" action="main.php">
4 4 <input type="button" id="sweep" name="sweep" class="pannel-button" value="Sweep" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="sweep" name="sweep" value="SWEEP"/>
6 6 </form>
... ...
html/Generateur/Fonctions/Utility/form_utility.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Fonctions">
  3 + <form method="post" action="main.php">
4 4 <input type="button" id="utility" name="utility" class="pannel-button" value="Utility" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="utility" name="utility" value="UTILITY"/>
6 6 </form>
... ...
html/Generateur/Fonctions/Waves/form_waves.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Fonctions">
  3 + <form method="post" action="main.php">
4 4 <input type="button" id="waves" name="waves" class="pannel-button" value="Waveforms" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="waves" name="waves" value="WAVES"/>
6 6 </form>
... ...
html/Generateur/Global/Chiffres/form_chiffres.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <?php /* TODO : modifier les SRC */ ?>
4 3 <style>
5 4 .pave-numerique{
6 5 font-size: 1.6em;
... ... @@ -18,63 +17,63 @@
18 17 background: #07e50a;
19 18 }
20 19 </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">
  20 + <div class="w-100 my-md-3 pl-md-3 text-center">
  21 + <div class="text-center">
23 22 <div class="btn-group" role="group" aria-label="panel-haut">
24   - <form method="post" action="main.php?tab=Global">
  23 + <form method="post" action="main.php">
25 24 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="7" onclick="this.form.submit();"/>
26 25 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_7"/>
27 26 </form>
28   - <form method="post" action="main.php?tab=Global">
  27 + <form method="post" action="main.php">
29 28 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="8" onclick="this.form.submit();"/>
30 29 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_8"/>
31 30 </form>
32   - <form method="post" action="main.php?tab=Global">
  31 + <form method="post" action="main.php">
33 32 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="9" onclick="this.form.submit();"/>
34 33 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_9"/>
35 34 </form>
36 35 </div>
37 36 <br/>
38 37 <div class="btn-group" role="group" aria-label="panel-centre-haut">
39   - <form method="post" action="main.php?tab=Global">
  38 + <form method="post" action="main.php">
40 39 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="4" onclick="this.form.submit();"/>
41 40 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_4"/>
42 41 </form>
43   - <form method="post" action="main.php?tab=Global">
  42 + <form method="post" action="main.php">
44 43 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="5" onclick="this.form.submit();"/>
45 44 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_5"/>
46 45 </form>
47   - <form method="post" action="main.php?tab=Global">
  46 + <form method="post" action="main.php">
48 47 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="6" onclick="this.form.submit();"/>
49 48 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_6"/>
50 49 </form>
51 50 </div>
52 51 <br/>
53 52 <div class="btn-group" role="group" aria-label="panel-centre-bas">
54   - <form method="post" action="main.php?tab=Global">
  53 + <form method="post" action="main.php">
55 54 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="1" onclick="this.form.submit();"/>
56 55 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_1"/>
57 56 </form>
58   - <form method="post" action="main.php?tab=Global">
  57 + <form method="post" action="main.php">
59 58 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="2" onclick="this.form.submit();"/>
60 59 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_2"/>
61 60 </form>
62   - <form method="post" action="main.php?tab=Global">
  61 + <form method="post" action="main.php">
63 62 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="3" onclick="this.form.submit();"/>
64 63 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_3"/>
65 64 </form>
66 65 </div>
67 66 <br/>
68 67 <div class="btn-group" role="group" aria-label="panel-bas">
69   - <form method="post" action="main.php?tab=Global">
  68 + <form method="post" action="main.php">
70 69 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="." onclick="this.form.submit();"/>
71 70 <input type="hidden" id="chiffre" name="chiffre" value="POINT"/>
72 71 </form>
73   - <form method="post" action="main.php?tab=Global">
  72 + <form method="post" action="main.php">
74 73 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="0" onclick="this.form.submit();"/>
75 74 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_0"/>
76 75 </form>
77   - <form method="post" action="main.php?tab=Global">
  76 + <form method="post" action="main.php">
78 77 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="+/-" onclick="this.form.submit();"/>
79 78 <input type="hidden" id="chiffre" name="chiffre" value="NEGATIVE"/>
80 79 </form>
... ...
html/Generateur/Global/Fleches/form_fleches.php
1 1 <!DOCTYPE html>
2 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>
  3 + <div class="text-center">
  4 + <div class="btn-group" role="group" aria-label="gauche_droite">
  5 + <form method="post" action="main.php?tab=Global">
  6 + <input type="button" id="fleches" name="fleches" class="pave-numerique" value="<" onclick="this.form.submit();"/>
  7 + <input type="hidden" id="fleches" name="fleches" value="LEFT"/>
  8 + </form>
  9 + <form method="post" action="main.php?tab=Global">
  10 + <input type="button" id="fleches" name="fleches" class="pave-numerique" value=">" onclick="this.form.submit();"/>
  11 + <input type="hidden" id="fleches" name="fleches" value="RIGHT"/>
  12 + </form>
  13 + </div>
12 14 </div>
13 15 </html>
... ...
html/Generateur/Menus/Func1/form_func1.php
1 1 <!DOCTYPE html>
2 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()"/>
  3 + <form method="post" action="main.php">
  4 + <input type="button" id="func1" name="func1" class="func-button" value="" onclick="this.form.submit()"/>
20 5 <input type="hidden" id="func1" name="func1" value="FUNC1" class="btn-outline-danger"/>
21 6 </form>
22 7 <script type='text/javascript'>
... ... @@ -24,5 +9,6 @@
24 9 var pos = elem.getBoundingClientRect();
25 10 var btn = document.getElementById('func1');
26 11 btn.style = "top : "+pos.bottom+"px; left : "+pos.x+"px";
  12 + console.log(pos.bottom);
27 13 </script>
28 14 </html>
... ...
html/Generateur/Menus/Func2/form_func2.php
1 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()"/>
  2 + <form method="post" action="main.php">
  3 + <input type="button" id="func2" name="func2" class="func-button" value="" onclick="this.form.submit()"/>
19 4 <input type="hidden" id="func2" name="func2" value="FUNC2" class="btn-outline-danger"/>
20 5 </form>
21 6 <script type='text/javascript'>
... ...
html/Generateur/Menus/Func3/form_func3.php
1 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()"/>
  2 + <form method="post" action="main.php">
  3 + <input type="button" id="func3" name="func3" class="func-button" value="" onclick="this.form.submit()"/>
18 4 <input type="hidden" id="func3" name="func3" value="FUNC3" class="btn-outline-danger"/>
19 5 </form>
20 6 <script type='text/javascript'>
... ...
html/Generateur/Menus/Func4/form_func4.php
1 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()"/>
  2 + <form method="post" action="main.php">
  3 + <input type="button" id="func4" name="func4" class="func-button" value="" onclick="this.form.submit()"/>
18 4 <input type="hidden" id="func4" name="func4" value="FUNC4" class="btn-outline-danger"/>
19 5 </form>
20 6 <script type='text/javascript'>
... ...
html/Generateur/Menus/Func5/form_func5.php
1 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()"/>
  2 + <form method="post" action="main.php">
  3 + <input type="button" id="func5" name="func5" class="func-button" value="" onclick="this.form.submit()"/>
19 4 <input type="hidden" id="func5" name="func5" value="FUNC5" class="btn-outline-danger"/>
20 5 </form>
21 6 <script type='text/javascript'>
... ...
html/Generateur/Menus/Func6/form_func6.php
1 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>
  2 + <form method="post" action="main.php">
  3 + <input type="button" id="func6" name="func6" class="func-button" value="" onclick="this.form.submit()"/>
  4 + <input type="hidden" id="func6" name="func6" value="FUNC6"/>
  5 + </form>
21 6 <script type='text/javascript'>
22 7 var elem = document.getElementById('cam<?php echo $i ?>');
23 8 var pos = elem.getBoundingClientRect();
... ...
html/Generateur/Outputs/Output1/form_output_1.php
1 1 <!DOCTYPE>
2 2 <html>
3   - <form method="post" action="main.php?tab=Outputs">
  3 + <form method="post" action="main.php">
4 4 <input type="button" id="output1" name="output1" class="pannel-button" value="Output1" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="output1" name="output1" value="OUTPUT1"/>
6 6 </form>
... ...
html/Generateur/Outputs/Output2/form_output_2.php
1 1 <!DOCTYPE>
2 2 <html>
3   - <form method="post" action="main.php?tab=Outputs">
  3 + <form method="post" action="main.php">
4 4 <input type="button" id="output2" name="output2" class="pannel-button" value="Output2" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="output2" name="output2" value="OUTPUT2"/>
6 6 </form>
... ...
html/Generateur/commandes_generateur.php
1 1 <?php
2   - $chemin = getcwd().'/'.$Appareil[$i]['type'];
3   - $files = array_diff(scandir($chemin),array('..','.'));
4   - foreach($files as $Fich){
5   - $path = $chemin.'/'.$Fich;
  2 + /* On parcourt l'arborescence pour trouver les fichiers 'cmd_fichiers.php'
  3 + * Ces fichiers rรฉalisent les commandes de l'appareil selon les boutons appuyรฉs par l'utilisateur sur l'interface */
  4 + //$chemin = getcwd().'/'.$Appareil[$i]['type'];
  5 + //$files = array_diff(scandir($chemin),array('..','.'));
  6 + foreach($files as $dir){
  7 + $path = $chemin.'/'.$dir;
6 8 if(is_dir($path)){
7   - $files = array_diff(scandir($path),array('..','.'));
8   - foreach($files as $dir){
9   - $path2 = $path.'/'.$dir;
  9 + $sub_dir = array_diff(scandir($path),array('..','.'));
  10 + foreach($sub_dir as $new_dir){
  11 + $path2 = $path.'/'.$new_dir;
10 12 if(is_dir($path2)){
11   - $files2 = array_diff(scandir($path2),array('..','.'));
12   - foreach($files2 as $cmd){
  13 + $fichiers = array_diff(scandir($path2),array('..','.'));
  14 + foreach($fichiers as $cmd){
13 15 $path3 = $path2.'/'.$cmd;
14 16 if(is_file($path3) && strpos($path3,"cmd")!=false){
15 17 include($path3);
... ...
html/Generateur/main_generateur.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <?php
4   - if(isset($_GET['tab'])){
5   - $tab=$_GET['tab'];
6   - }else{
7   - $tab="Global";
  3 + <style>
  4 + /* Style des boutons */
  5 + .func-button{
  6 + height: 30px;
  7 + width: 80px;
  8 + background: #fff;
  9 + border-radius: 10px;
  10 + position: absolute;
8 11 }
  12 + .func-button:hover{
  13 + background: #b8ff70;
  14 + }
  15 + .func-button:active{
  16 + background: #07e50a;
  17 + }
  18 + </style>
  19 + <?php
9 20 echo '<div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">';
10 21 echo '<div class="mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center">';
11 22 /* Affichage image */
12 23 include('./Scripts/creation_img.php');
13 24 echo '</div>';
14 25 echo '<div class="bg-light mr-md-3 pt-3 px-3 pt-md-5 px-md-5 overflow-hidden">';
15   - /* Commandes de l'appareil */
  26 + /* Affichage des commandes de l'appareil */
16 27 echo '<div class="my-3 py-3">';
17 28 echo '<h2 class="display-6 text-center">Panel de commande</h2>';
18 29 echo '</div>';
19   - echo '<div class="bd-example">';
20   - echo '<nav>';
21   - echo '<div class="bg-warning nav nav-tabs mb-3" id="nav-tab" role="tablist">';
22   - $chemin = getcwd().'/'.$Appareil[$i]['type'];
23   - $files = array_diff(scandir($chemin),array('Menus','..','.'));
24   - foreach($files as $Fich){
25   - $trypath = $chemin.'/'.$Fich;
26   - if(is_dir($trypath)){
27   - echo '<button class="nav-link ';
28   - if($tab==$Fich){
29   - echo "active";
30   - }
31   - 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>';
32   - }
33   - }
34   - echo '</div>';
35   - echo '</nav>';
36   - echo '<div class="tab-content" id="nav-tabContent">';
37   - foreach($files as $Fich){
38   - $path = $chemin.'/'.$Fich;
  30 + //$chemin = $Appareil[$i]['type'];
  31 + //$files = array_diff(scandir($chemin),array('..','.'));
  32 + echo '<div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">';
  33 + /* On parcourt l'arborescence pour trouver les fichiers 'form_fichiers.php'
  34 + * Ces fichiers affichent les diffรฉrents boutons correspondant aux commandes de l'appareil */
  35 + foreach($files as $dir){
  36 + $path = $chemin.'/'.$dir;
39 37 if(is_dir($path)){
40   - echo '<div class="tab-pane fade ';
41   - if($tab==$Fich){
42   - echo "show active";
  38 + $subdir = array_diff(scandir($path),array('..','.'));
  39 + if($dir!="Menus"){
  40 + echo '<div class="mr-md-1 pt-1 px-1 pt-md-1 px-md-1">';
43 41 }
44   - echo '" id="nav-'.$Fich.'" role=tabpanel" aria-labelledby="nav-'.$Fich.'-tab">';
45   - echo '<p>';
46   - $files = array_diff(scandir($path),array('..','.'));
47   - foreach($files as $dir){
48   - $path2 = $path.'/'.$dir;
  42 + foreach($subdir as $new_dir){
  43 + $path2 = $path.'/'.$new_dir;
49 44 if(is_dir($path2)){
50   - $files2 = array_diff(scandir($path2),array('..','.'));
51   - foreach($files2 as $form){
  45 + $fichiers = array_diff(scandir($path2),array('..','.'));
  46 + foreach($fichiers as $form){
52 47 $path3 = $path2.'/'.$form;
53 48 if(is_file($path3) && strpos($path3,"form")!=false){
54 49 include($path3);
55   - echo '<br/>';
56 50 }
57 51 }
58 52 }
59 53 }
60   - echo '</p>';
61   - echo '</div>';
  54 + if($dir!="Menus"){
  55 + echo '</div>';
  56 + }
62 57 }
63 58 }
64 59 echo '</div>';
65 60 echo '</div>';
66 61 echo '</div>';
67   - ?>
68   - <style>
69   - .func-button{
70   - height: 30px;
71   - width: 80px;
72   - background: #fff;
73   - border-radius: 10px;
74   - position: absolute;
75   - }
76   - .func-button:hover{
77   - background: #b8ff70;
78   - }
79   - .func-button:active{
80   - background: #07e50a;
81   - }
82   - </style>
83   - <form method="post" action="main.php?tab=<?php echo $tab; ?>">
84   - <input type="button" id="func1" name="func1" class="func-button" value="" onclick="this.form.submit()"/>
85   - <input type="hidden" id="func1" name="func1" value="FUNC1" class="btn-outline-danger"/>
86   - </form>
87   - <form method="post" action="main.php?tab=<?php echo $tab; ?>">
88   - <input type="button" id="func2" name="func2" class="func-button" value="" onclick="this.form.submit()"/>
89   - <input type="hidden" id="func2" name="func2" value="FUNC2" class="btn-outline-danger"/>
90   - </form>
91   - <form method="post" action="main.php?tab=<?php echo $tab; ?>">
92   - <input type="button" id="func3" name="func3" class="func-button" value="" onclick="this.form.submit()"/>
93   - <input type="hidden" id="func3" name="func3" value="FUNC3" class="btn-outline-danger"/>
94   - </form>
95   - <form method="post" action="main.php?tab=<?php echo $tab; ?>">
96   - <input type="button" id="func4" name="func4" class="func-button" value="" onclick="this.form.submit()"/>
97   - <input type="hidden" id="func4" name="func4" value="FUNC4" class="btn-outline-danger"/>
98   - </form>
99   - <form method="post" action="main.php?tab=<?php echo $tab; ?>">
100   - <input type="button" id="func5" name="func5" class="func-button" value="" onclick="this.form.submit()"/>
101   - <input type="hidden" id="func5" name="func5" value="FUNC5" class="btn-outline-danger"/>
102   - </form>
103   - <form method="post" action="main.php?tab=<?php echo $tab; ?>">
104   - <input type="button" id="func6" name="func6" class="func-button" value="" onclick="this.form.submit()"/>
105   - <input type="hidden" id="func6" name="func6" value="FUNC6" class="btn-outline-danger"/>
106   - </form>
107   - </div>
108   - <script type='text/javascript'>
109   - var elem = document.getElementById('cam<?php echo $i ?>');
110   - var pos = elem.getBoundingClientRect();
111   - var btn = document.getElementById('func1');
112   - btn.style = "top : "+pos.bottom+"px; left : "+pos.x+"px";
113   - </script>
114   - <script type='text/javascript'>
115   - var elem = document.getElementById('cam<?php echo $i ?>');
116   - var pos = elem.getBoundingClientRect();
117   - var btn = document.getElementById('func2');
118   - var pos_x = pos.x+80;
119   - btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
120   - </script>
121   - <script type='text/javascript'>
122   - var elem = document.getElementById('cam<?php echo $i ?>');
123   - var pos = elem.getBoundingClientRect();
124   - var btn = document.getElementById('func3');
125   - var pos_x = pos.x+160;
126   - btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
127   - </script>
128   - <script type='text/javascript'>
129   - var elem = document.getElementById('cam<?php echo $i ?>');
130   - var pos = elem.getBoundingClientRect();
131   - var btn = document.getElementById('func4');
132   - var pos_x = pos.x+240;
133   - btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
134   - </script>
135   - <script type='text/javascript'>
136   - var elem = document.getElementById('cam<?php echo $i ?>');
137   - var pos = elem.getBoundingClientRect();
138   - var btn = document.getElementById('func5');
139   - var pos_x = pos.x+320;
140   - btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
141   - </script>
142   - <script type='text/javascript'>
143   - var elem = document.getElementById('cam<?php echo $i ?>');
144   - var pos = elem.getBoundingClientRect();
145   - var btn = document.getElementById('func6');
146   - var pos_x = pos.x+400;
147   - btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
148   - </script>
  62 + ?>
149 63 </html>
... ...
html/Generateur_test/Fonctions/Burst/cmd_burst.php renamed to html/Generateur_onglets/Fonctions/Burst/cmd_burst.php
html/Generateur_test/Fonctions/Burst/form_burst.php renamed to html/Generateur_onglets/Fonctions/Burst/form_burst.php
... ... @@ -17,7 +17,7 @@
17 17 background: #07e50a;
18 18 }
19 19 </style>
20   - <form method="post" action="main.php">
  20 + <form method="post" action="main.php?tab=Fonctions">
21 21 <input type="button" id="burst" name="burst" class="pannel-button" value="Burst" onclick="this.form.submit()"/>
22 22 <input type="hidden" id="burst" name="burst" value="BURST"/>
23 23 </form>
... ...
html/Generateur_test/Fonctions/Channel/cmd_channel.php renamed to html/Generateur_onglets/Fonctions/Channel/cmd_channel.php
html/Generateur_test/Fonctions/Channel/form_channel.php renamed to html/Generateur_onglets/Fonctions/Channel/form_channel.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=Fonctions">
4 4 <input type="button" id="channel" name="channel" class="pannel-button" value="Channel" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="channel" name="channel" value="CHANNEL"/>
6 6 </form>
... ...
html/Generateur_test/Fonctions/Mod/cmd_mod.php renamed to html/Generateur_onglets/Fonctions/Mod/cmd_mod.php
html/Generateur_test/Fonctions/Mod/form_mod.php renamed to html/Generateur_onglets/Fonctions/Mod/form_mod.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=Fonctions">
4 4 <input type="button" id="mod" name="mod" class="pannel-button" value="Mod" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="mod" name="mod" value="MOD"/>
6 6 </form>
... ...
html/Generateur_test/Fonctions/Parameter/cmd_parameter.php renamed to html/Generateur_onglets/Fonctions/Parameter/cmd_parameter.php
html/Generateur_test/Fonctions/Parameter/form_parameter.php renamed to html/Generateur_onglets/Fonctions/Parameter/form_parameter.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=Fonctions">
4 4 <input type="button" id="parameter" name="parameter" class="pannel-button" value="Parametre" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="parameter" name="parameter" value="PARAMETER"/>
6 6 </form>
... ...
html/Generateur_test/Fonctions/Sweep/cmd_sweep.php renamed to html/Generateur_onglets/Fonctions/Sweep/cmd_sweep.php
html/Generateur_test/Fonctions/Sweep/form_sweep.php renamed to html/Generateur_onglets/Fonctions/Sweep/form_sweep.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=Fonctions">
4 4 <input type="button" id="sweep" name="sweep" class="pannel-button" value="Sweep" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="sweep" name="sweep" value="SWEEP"/>
6 6 </form>
... ...
html/Generateur_test/Fonctions/Utility/cmd_utility.php renamed to html/Generateur_onglets/Fonctions/Utility/cmd_utility.php
html/Generateur_test/Fonctions/Utility/form_utility.php renamed to html/Generateur_onglets/Fonctions/Utility/form_utility.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=Fonctions">
4 4 <input type="button" id="utility" name="utility" class="pannel-button" value="Utility" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="utility" name="utility" value="UTILITY"/>
6 6 </form>
... ...
html/Generateur_test/Fonctions/Waves/cmd_waves.php renamed to html/Generateur_onglets/Fonctions/Waves/cmd_waves.php
html/Generateur_test/Fonctions/Waves/form_waves.php renamed to html/Generateur_onglets/Fonctions/Waves/form_waves.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=Fonctions">
4 4 <input type="button" id="waves" name="waves" class="pannel-button" value="Waveforms" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="waves" name="waves" value="WAVES"/>
6 6 </form>
... ...
html/Generateur_test/Global/Chiffres/cmd_chiffres.php renamed to html/Generateur_onglets/Global/Chiffres/cmd_chiffres.php
html/Generateur_test/Global/Chiffres/form_chiffres.php renamed to html/Generateur_onglets/Global/Chiffres/form_chiffres.php
... ... @@ -17,63 +17,63 @@
17 17 background: #07e50a;
18 18 }
19 19 </style>
20   - <div class="w-100 my-md-3 pl-md-3 text-center">
21   - <div class="text-center">
  20 + <div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">
  21 + <div class="mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center">
22 22 <div class="btn-group" role="group" aria-label="panel-haut">
23   - <form method="post" action="main.php">
  23 + <form method="post" action="main.php?tab=Global">
24 24 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="7" onclick="this.form.submit();"/>
25 25 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_7"/>
26 26 </form>
27   - <form method="post" action="main.php">
  27 + <form method="post" action="main.php?tab=Global">
28 28 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="8" onclick="this.form.submit();"/>
29 29 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_8"/>
30 30 </form>
31   - <form method="post" action="main.php">
  31 + <form method="post" action="main.php?tab=Global">
32 32 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="9" onclick="this.form.submit();"/>
33 33 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_9"/>
34 34 </form>
35 35 </div>
36 36 <br/>
37 37 <div class="btn-group" role="group" aria-label="panel-centre-haut">
38   - <form method="post" action="main.php">
  38 + <form method="post" action="main.php?tab=Global">
39 39 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="4" onclick="this.form.submit();"/>
40 40 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_4"/>
41 41 </form>
42   - <form method="post" action="main.php">
  42 + <form method="post" action="main.php?tab=Global">
43 43 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="5" onclick="this.form.submit();"/>
44 44 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_5"/>
45 45 </form>
46   - <form method="post" action="main.php">
  46 + <form method="post" action="main.php?tab=Global">
47 47 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="6" onclick="this.form.submit();"/>
48 48 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_6"/>
49 49 </form>
50 50 </div>
51 51 <br/>
52 52 <div class="btn-group" role="group" aria-label="panel-centre-bas">
53   - <form method="post" action="main.php">
  53 + <form method="post" action="main.php?tab=Global">
54 54 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="1" onclick="this.form.submit();"/>
55 55 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_1"/>
56 56 </form>
57   - <form method="post" action="main.php">
  57 + <form method="post" action="main.php?tab=Global">
58 58 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="2" onclick="this.form.submit();"/>
59 59 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_2"/>
60 60 </form>
61   - <form method="post" action="main.php">
  61 + <form method="post" action="main.php?tab=Global">
62 62 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="3" onclick="this.form.submit();"/>
63 63 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_3"/>
64 64 </form>
65 65 </div>
66 66 <br/>
67 67 <div class="btn-group" role="group" aria-label="panel-bas">
68   - <form method="post" action="main.php">
  68 + <form method="post" action="main.php?tab=Global">
69 69 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="." onclick="this.form.submit();"/>
70 70 <input type="hidden" id="chiffre" name="chiffre" value="POINT"/>
71 71 </form>
72   - <form method="post" action="main.php">
  72 + <form method="post" action="main.php?tab=Global">
73 73 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="0" onclick="this.form.submit();"/>
74 74 <input type="hidden" id="chiffre" name="chiffre" value="NUMBER_0"/>
75 75 </form>
76   - <form method="post" action="main.php">
  76 + <form method="post" action="main.php?tab=Global">
77 77 <input type="button" id="chiffre" name="chiffre" class="pave-numerique" value="+/-" onclick="this.form.submit();"/>
78 78 <input type="hidden" id="chiffre" name="chiffre" value="NEGATIVE"/>
79 79 </form>
... ...
html/Generateur_test/Global/Fleches/cmd_fleches.php renamed to html/Generateur_onglets/Global/Fleches/cmd_fleches.php
html/Generateur_test/Global/Fleches/form_fleches.php renamed to html/Generateur_onglets/Global/Fleches/form_fleches.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <div class="text-center">
4   - <div class="btn-group" role="group" aria-label="gauche_droite">
5   - <form method="post" action="main.php?tab=Global">
6   - <input type="button" id="fleches" name="fleches" class="pave-numerique" value="<" onclick="this.form.submit();"/>
7   - <input type="hidden" id="fleches" name="fleches" value="LEFT"/>
8   - </form>
9   - <form method="post" action="main.php?tab=Global">
10   - <input type="button" id="fleches" name="fleches" class="pave-numerique" value=">" onclick="this.form.submit();"/>
11   - <input type="hidden" id="fleches" name="fleches" value="RIGHT"/>
12   - </form>
13   - </div>
  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>
14 12 </div>
15 13 </html>
... ...
html/Generateur_test/Global/Knob/btn_knob_generateur.png renamed to html/Generateur_onglets/Global/Knob/btn_knob_generateur.png

16 KB

html/Generateur_test/Global/Knob/cmd_knob.php renamed to html/Generateur_onglets/Global/Knob/cmd_knob.php
html/Generateur_test/Global/Knob/form_knob.php renamed to html/Generateur_onglets/Global/Knob/form_knob.php
html/Generateur_test/Menus/Func1/cmd_func1.php renamed to html/Generateur_onglets/Menus/Func1/cmd_func1.php
html/Generateur_test/Menus/Func1/form_func1.php renamed to html/Generateur_onglets/Menus/Func1/form_func1.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
4   - <input type="button" id="func1" name="func1" class="func-button" value="" onclick="this.form.submit()"/>
  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()"/>
5 20 <input type="hidden" id="func1" name="func1" value="FUNC1" class="btn-outline-danger"/>
6 21 </form>
7 22 <script type='text/javascript'>
... ...
html/Generateur_test/Menus/Func2/cmd_func2.php renamed to html/Generateur_onglets/Menus/Func2/cmd_func2.php
html/Generateur_test/Menus/Func2/form_func2.php renamed to html/Generateur_onglets/Menus/Func2/form_func2.php
1 1 <html>
2   - <form method="post" action="main.php">
3   - <input type="button" id="func2" name="func2" class="func-button" value="" onclick="this.form.submit()"/>
  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()"/>
4 19 <input type="hidden" id="func2" name="func2" value="FUNC2" class="btn-outline-danger"/>
5 20 </form>
6 21 <script type='text/javascript'>
... ...
html/Generateur_test/Menus/Func3/cmd_func3.php renamed to html/Generateur_onglets/Menus/Func3/cmd_func3.php
html/Generateur_test/Menus/Func3/form_func3.php renamed to html/Generateur_onglets/Menus/Func3/form_func3.php
1 1 <html>
2   - <form method="post" action="main.php">
3   - <input type="button" id="func3" name="func3" class="func-button" value="" onclick="this.form.submit()"/>
  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()"/>
4 18 <input type="hidden" id="func3" name="func3" value="FUNC3" class="btn-outline-danger"/>
5 19 </form>
6 20 <script type='text/javascript'>
... ...
html/Generateur_test/Menus/Func4/cmd_func4.php renamed to html/Generateur_onglets/Menus/Func4/cmd_func4.php
html/Generateur_test/Menus/Func4/form_func4.php renamed to html/Generateur_onglets/Menus/Func4/form_func4.php
1 1 <html>
2   - <form method="post" action="main.php">
3   - <input type="button" id="func4" name="func4" class="func-button" value="" onclick="this.form.submit()"/>
  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()"/>
4 18 <input type="hidden" id="func4" name="func4" value="FUNC4" class="btn-outline-danger"/>
5 19 </form>
6 20 <script type='text/javascript'>
... ...
html/Generateur_test/Menus/Func5/cmd_func5.php renamed to html/Generateur_onglets/Menus/Func5/cmd_func5.php
html/Generateur_test/Menus/Func5/form_func5.php renamed to html/Generateur_onglets/Menus/Func5/form_func5.php
1 1 <html>
2   - <form method="post" action="main.php">
3   - <input type="button" id="func5" name="func5" class="func-button" value="" onclick="this.form.submit()"/>
  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()"/>
4 19 <input type="hidden" id="func5" name="func5" value="FUNC5" class="btn-outline-danger"/>
5 20 </form>
6 21 <script type='text/javascript'>
... ...
html/Generateur_test/Menus/Func6/cmd_func6.php renamed to html/Generateur_onglets/Menus/Func6/cmd_func6.php
html/Generateur_test/Menus/Func6/form_func6.php renamed to html/Generateur_onglets/Menus/Func6/form_func6.php
1 1 <html>
2   - <form method="post" action="main.php">
3   - <input type="button" id="func6" name="func6" class="func-button" value="" onclick="this.form.submit()"/>
4   - <input type="hidden" id="func6" name="func6" value="FUNC6"/>
5   - </form>
  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>
6 21 <script type='text/javascript'>
7 22 var elem = document.getElementById('cam<?php echo $i ?>');
8 23 var pos = elem.getBoundingClientRect();
... ...
html/Generateur_test/Outputs/Output1/cmd_output_1.php renamed to html/Generateur_onglets/Outputs/Output1/cmd_output_1.php
html/Generateur_test/Outputs/Output1/form_output_1.php renamed to html/Generateur_onglets/Outputs/Output1/form_output_1.php
1 1 <!DOCTYPE>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=Outputs">
4 4 <input type="button" id="output1" name="output1" class="pannel-button" value="Output1" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="output1" name="output1" value="OUTPUT1"/>
6 6 </form>
... ...
html/Generateur_test/Outputs/Output2/cmd_output_2.php renamed to html/Generateur_onglets/Outputs/Output2/cmd_output_2.php
html/Generateur_test/Outputs/Output2/form_output_2.php renamed to html/Generateur_onglets/Outputs/Output2/form_output_2.php
1 1 <!DOCTYPE>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=Outputs">
4 4 <input type="button" id="output2" name="output2" class="pannel-button" value="Output2" onclick="this.form.submit()"/>
5 5 <input type="hidden" id="output2" name="output2" value="OUTPUT2"/>
6 6 </form>
... ...
html/Generateur_test/commandes_generateur.php renamed to html/Generateur_onglets/commandes_generateur.php
html/Generateur_test/main_generateur.php renamed to html/Generateur_onglets/main_generateur.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <style>
4   - .func-button{
5   - height: 30px;
6   - width: 80px;
7   - background: #fff;
8   - border-radius: 10px;
9   - position: absolute;
10   - }
11   - .func-button:hover{
12   - background: #b8ff70;
13   - }
14   - .func-button:active{
15   - background: #07e50a;
16   - }
17   - </style>
18 3 <?php
  4 + if(isset($_GET['tab'])){
  5 + $tab=$_GET['tab'];
  6 + }else{
  7 + $tab="Global";
  8 + }
19 9 echo '<div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">';
20 10 echo '<div class="mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center">';
21 11 /* Affichage image */
... ... @@ -26,35 +16,134 @@
26 16 echo '<div class="my-3 py-3">';
27 17 echo '<h2 class="display-6 text-center">Panel de commande</h2>';
28 18 echo '</div>';
  19 + echo '<div class="bd-example">';
  20 + echo '<nav>';
  21 + echo '<div class="bg-warning nav nav-tabs mb-3" id="nav-tab" role="tablist">';
29 22 $chemin = getcwd().'/'.$Appareil[$i]['type'];
30   - $files = array_diff(scandir($chemin),array('..','.'));
31   - echo '<div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">';
  23 + $files = array_diff(scandir($chemin),array('Menus','..','.'));
  24 + foreach($files as $Fich){
  25 + $trypath = $chemin.'/'.$Fich;
  26 + if(is_dir($trypath)){
  27 + echo '<button class="nav-link ';
  28 + if($tab==$Fich){
  29 + echo "active";
  30 + }
  31 + 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>';
  32 + }
  33 + }
  34 + echo '</div>';
  35 + echo '</nav>';
  36 + echo '<div class="tab-content" id="nav-tabContent">';
32 37 foreach($files as $Fich){
33 38 $path = $chemin.'/'.$Fich;
34 39 if(is_dir($path)){
35   - $files = array_diff(scandir($path),array('..','.'));
36   - if($Fich!="Menus"){
37   - echo '<div class="mr-md-1 pt-1 px-1 pt-md-1 px-md-1">';
  40 + echo '<div class="tab-pane fade ';
  41 + if($tab==$Fich){
  42 + echo "show active";
38 43 }
  44 + echo '" id="nav-'.$Fich.'" role=tabpanel" aria-labelledby="nav-'.$Fich.'-tab">';
  45 + echo '<p>';
  46 + $files = array_diff(scandir($path),array('..','.'));
39 47 foreach($files as $dir){
40 48 $path2 = $path.'/'.$dir;
41 49 if(is_dir($path2)){
42   - $new_dir = array_diff(scandir($path2),array('..','.'));
43   - foreach($new_dir as $form){
  50 + $files2 = array_diff(scandir($path2),array('..','.'));
  51 + foreach($files2 as $form){
44 52 $path3 = $path2.'/'.$form;
45 53 if(is_file($path3) && strpos($path3,"form")!=false){
46 54 include($path3);
  55 + echo '<br/>';
47 56 }
48 57 }
49 58 }
50 59 }
51   - if($Fich!="Menus"){
52   - echo '</div>';
53   - }
  60 + echo '</p>';
  61 + echo '</div>';
54 62 }
55 63 }
56 64 echo '</div>';
57 65 echo '</div>';
58 66 echo '</div>';
59   - ?>
  67 + ?>
  68 + <style>
  69 + .func-button{
  70 + height: 30px;
  71 + width: 80px;
  72 + background: #fff;
  73 + border-radius: 10px;
  74 + position: absolute;
  75 + }
  76 + .func-button:hover{
  77 + background: #b8ff70;
  78 + }
  79 + .func-button:active{
  80 + background: #07e50a;
  81 + }
  82 + </style>
  83 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  84 + <input type="button" id="func1" name="func1" class="func-button" value="" onclick="this.form.submit()"/>
  85 + <input type="hidden" id="func1" name="func1" value="FUNC1" class="btn-outline-danger"/>
  86 + </form>
  87 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  88 + <input type="button" id="func2" name="func2" class="func-button" value="" onclick="this.form.submit()"/>
  89 + <input type="hidden" id="func2" name="func2" value="FUNC2" class="btn-outline-danger"/>
  90 + </form>
  91 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  92 + <input type="button" id="func3" name="func3" class="func-button" value="" onclick="this.form.submit()"/>
  93 + <input type="hidden" id="func3" name="func3" value="FUNC3" class="btn-outline-danger"/>
  94 + </form>
  95 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  96 + <input type="button" id="func4" name="func4" class="func-button" value="" onclick="this.form.submit()"/>
  97 + <input type="hidden" id="func4" name="func4" value="FUNC4" class="btn-outline-danger"/>
  98 + </form>
  99 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  100 + <input type="button" id="func5" name="func5" class="func-button" value="" onclick="this.form.submit()"/>
  101 + <input type="hidden" id="func5" name="func5" value="FUNC5" class="btn-outline-danger"/>
  102 + </form>
  103 + <form method="post" action="main.php?tab=<?php echo $tab; ?>">
  104 + <input type="button" id="func6" name="func6" class="func-button" value="" onclick="this.form.submit()"/>
  105 + <input type="hidden" id="func6" name="func6" value="FUNC6" class="btn-outline-danger"/>
  106 + </form>
  107 + </div>
  108 + <script type='text/javascript'>
  109 + var elem = document.getElementById('cam<?php echo $i ?>');
  110 + var pos = elem.getBoundingClientRect();
  111 + var btn = document.getElementById('func1');
  112 + btn.style = "top : "+pos.bottom+"px; left : "+pos.x+"px";
  113 + </script>
  114 + <script type='text/javascript'>
  115 + var elem = document.getElementById('cam<?php echo $i ?>');
  116 + var pos = elem.getBoundingClientRect();
  117 + var btn = document.getElementById('func2');
  118 + var pos_x = pos.x+80;
  119 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  120 + </script>
  121 + <script type='text/javascript'>
  122 + var elem = document.getElementById('cam<?php echo $i ?>');
  123 + var pos = elem.getBoundingClientRect();
  124 + var btn = document.getElementById('func3');
  125 + var pos_x = pos.x+160;
  126 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  127 + </script>
  128 + <script type='text/javascript'>
  129 + var elem = document.getElementById('cam<?php echo $i ?>');
  130 + var pos = elem.getBoundingClientRect();
  131 + var btn = document.getElementById('func4');
  132 + var pos_x = pos.x+240;
  133 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  134 + </script>
  135 + <script type='text/javascript'>
  136 + var elem = document.getElementById('cam<?php echo $i ?>');
  137 + var pos = elem.getBoundingClientRect();
  138 + var btn = document.getElementById('func5');
  139 + var pos_x = pos.x+320;
  140 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  141 + </script>
  142 + <script type='text/javascript'>
  143 + var elem = document.getElementById('cam<?php echo $i ?>');
  144 + var pos = elem.getBoundingClientRect();
  145 + var btn = document.getElementById('func6');
  146 + var pos_x = pos.x+400;
  147 + btn.style = "top : "+(pos.bottom)+"px; left : "+(pos_x)+"px";
  148 + </script>
60 149 </html>
... ...
html/Oscilloscope/CH1/1_Trace/form_trace.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH1">
  3 + <form method="post" action="main.php">
4 4 <input type="submit" name="tra_c1" value="Tracer/Effacer CH1" class="btn btn-outline-danger"/>
5 5 </form>
6 6 </html>
... ...
html/Oscilloscope/CH1/2_Attn/form_attn.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH1">
  3 + <form method="post" action="main.php">
4 4 <label for="c1_sonde">Attenuation Sonde CH1 :</label>
5 5 <select id="c1_sonde" name="c1_sonde" onchange="this.form.submit();">
6 6 <option value="0.1" <?php if(strpos($c1sonde,"ATTN 0.1")!=false) echo "selected" ?> >0.1X</option>
... ...
html/Oscilloscope/CH1/3_Unite/form_unite.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH1">
  3 + <form method="post" action="main.php">
4 4 <label for="c1_unit">Unitรฉ CH1 :</label>
5 5 <select id="c1_unit" name="c1_unit" onchange="this.form.submit();">
6 6 <option value="V" <?php if(strpos($c1u,"V")!=false) echo "selected" ?> >Volt</option>
... ...
html/Oscilloscope/CH1/4_Vdiv/form_volt_div.php
1 1 <!DOCTYPE html>
2 2 <html>
3 3 <?php
4   - /* TODO : Meilleur endroit ? */
5 4 $vdiv1 = floatval(substr($vdiv1,8,-2));
6 5 $sonde = floatval(substr($c1sonde,7));
7 6 $unite1 = substr($c1u,8,-1);
8 7 ?>
9   - <form method="post" action="main.php?tab=CH1">
  8 + <form method="post" action="main.php">
10 9 <label for="c1_vdiv"><?php if($unite1=="A"){echo "Amps";}else{echo "Volts";}?>/div CH1 :</label>
11 10 <select id="c1_vdiv" name="c1_vdiv" onchange="this.form.submit();">
12 11 <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>
... ...
html/Oscilloscope/CH1/5_Couplage/form_couplage.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH1">
  3 + <form method="post" action="main.php">
4 4 <label for="c1_cpl">Couplage CH1 :</label>
5 5 <select id="c1_cpl" name="c1_cpl" onchange="this.form.submit();">
6 6 <option value="D1M" <?php if(strpos($c1cpl,"D1M")!=false) echo "selected" ?> >DC</option>
... ...
html/Oscilloscope/CH1/6_Filtre/cmd_filtre.php
... ... @@ -14,7 +14,6 @@
14 14 }else{
15 15 $filt_c1 = shell_exec('lxi scpi -a '.$adresse.' "c1:filt?"');
16 16 }
17   - /* TODO : Probleme (Voir erreur /var/log/apache2/error.log) */
18 17 /* Commande type de filtre CH1 */
19 18 if(array_key_exists('c1_filts',$_POST)){
20 19 $c1filts=$_POST['c1_filts'];
... ...
html/Oscilloscope/CH1/6_Filtre/form_filtre.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH1">
  3 + <form method="post" action="main.php">
4 4 <input type="submit" name="filt_c1" value="Filtre ON/OFF CH1" class="btn btn-outline-danger"/>
5 5 </form>
6 6 <?php
... ...
html/Oscilloscope/CH1/7_Trigger_level/form_trig_lvl.php
1 1 <!DOCTYPE html>
2 2 <html>
3 3 <?php
4   - /* TODO : Meilleur endroit ? */
5 4 $val_c1trlv = floatval(substr($c1trlv,8,-2))/$vdiv1;
6 5 ?>
7   - <form method='post' action='main.php?tab=CH1' oninput='c1_triglv.value=c1_trlv.value'>
  6 + <form method='post' action='main.php' oninput='c1_triglv.value=c1_trlv.value'>
8 7 <label for="c1_trlv" class="form-range">Trigger Level CH1</label>
9 8 <input type="range" id="c1_trlv" name="c1_trlv" class="form-range" min="<?php echo (-4)*$vdiv1; ?>" max="<?php echo 4*$vdiv1; ?>" step="0.1" value="<?php echo $val_c1trlv*$vdiv1; ?>" onchange="this.form.submit();">
10 9 <br/>
... ...
html/Oscilloscope/CH2/1_Trace/form_trace.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH2">
  3 + <form method="post" action="main.php">
4 4 <input type="submit" name="tra_c2" value="Tracer/Effacer CH2" class="btn btn-outline-danger"/>
5 5 </form>
6 6 </html>
... ...
html/Oscilloscope/CH2/2_Attn/form_attn.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH2">
  3 + <form method="post" action="main.php">
4 4 <label for="c2_sonde">Attenuation Sonde CH2 :</label>
5 5 <select id="c2_sonde" name="c2_sonde" onchange="this.form.submit();">
6 6 <option value="0.1" <?php if(strpos($c2sonde,"ATTN 0.1")!=false) echo "selected" ?> >0.1X</option>
... ...
html/Oscilloscope/CH2/3_Unite/form_unite.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH2">
  3 + <form method="post" action="main.php">
4 4 <label for="c2_unit">Unitรฉ CH2 :</label>
5 5 <select id="c2_unit" name="c2_unit" onchange="this.form.submit();">
6 6 <option value="V" <?php if(strpos($c2u,"V")!=false) echo "selected" ?> >Volt</option>
... ...
html/Oscilloscope/CH2/4_Vdiv/form_volt_div.php
1 1 <!DOCTYPE html>
2 2 <html>
3 3 <?php
4   - /* TODO : Meilleur endroit ? */
5 4 $vdiv2 = floatval(substr($vdiv2,8,-2));
6 5 $sonde = floatval(substr($c2sonde,7));
7 6 $unite2 = substr($c2u,8,-1);
8 7 ?>
9   - <form method="post" action="main.php?tab=CH2">
  8 + <form method="post" action="main.php">
10 9 <label for="c2_vdiv"><?php if($unite2=="A"){echo "Amps";}else{echo "Volts";}?>/div CH2 :</label>
11 10 <select id="c2_vdiv" name="c2_vdiv" onchange="this.form.submit();">
12 11 <option value="<?php echo floatval(2.00E-03)*$sonde ?>V" <?php if($vdiv2==(floatval(2.00E-03*$sonde))) echo "selected" ?> ><?php echo floatval(2.00E-03)*$sonde.$unite2 ?></option>
... ...
html/Oscilloscope/CH2/5_Couplage/form_couplage.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH2">
  3 + <form method="post" action="main.php">
4 4 <label for="c2_cpl">Couplage CH2 :</label>
5 5 <select id="c2_cpl" name="c2_cpl" onchange="this.form.submit();">
6 6 <option value="D1M" <?php if(strpos($c2cpl,"D1M")!=false) echo "selected" ?> >DC</option>
... ...
html/Oscilloscope/CH2/6_Filtre/form_filtre.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=CH2">
  3 + <form method="post" action="main.php">
4 4 <input type="submit" name="filt_c2" value="Filtre ON/OFF CH2" class="btn btn-outline-danger"/>
5 5 </form>
6 6 <?php
... ...
html/Oscilloscope/CH2/7_Trigger_level/form_trig_lvl.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <?php
4   - /* TODO : Meilleur endroit ? */
  3 + <?php
5 4 $val_c2trlv = floatval(substr($c2trlv,8,-2))/$vdiv2;
6 5 ?>
7   - <form method='post' action='main.php?tab=CH2' oninput='c2_triglv.value=c2_trlv.value'>
  6 + <form method='post' action='main.php' oninput='c2_triglv.value=c2_trlv.value'>
8 7 <label for="c2_trlv" class="form-range">Trigger Level CH2</label>
9 8 <input type="range" id="c2_trlv" name="c2_trlv" class="form-range" min="<?php echo (-4)*$vdiv2; ?>" max="<?php echo 4*$vdiv2; ?>" step="0.1" value="<?php echo $val_c2trlv*$vdiv2; ?>" onchange="this.form.submit();">
10 9 <br/>
... ...
html/Oscilloscope/Curseurs/1_Choix/form_choix.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Curseurs">
  3 + <form method="post" action="main.php">
4 4 <label for="crms">Curseurs de mesure :</label>
5 5 <select id="crms" name="crms" onchange="this.form.submit();">
6 6 <option value="off" <?php if(strpos($crms,"OFF")!=false) echo "selected" ?> >OFF</option>
... ...
html/Oscilloscope/Curseurs/2_Affichage_curseurs/form_affichage_curseurs.php
... ... @@ -17,7 +17,7 @@
17 17 $valueA=floatval(substr($hrelA,13)); /* Parfois probleme de decalage par rapport au debut de la fenetre */
18 18 $valueB=floatval(substr($hrelB,13));
19 19 /* Curseur A */
20   - echo '<form method="post" action="oscillo.php?tab=Curseurs" oninput="resultatA.value=hrel_curseurA.value; resultatB.value=hrel_curseurB.value">';
  20 + echo '<form method="post" action="main.php" oninput="resultatA.value=hrel_curseurA.value; resultatB.value=hrel_curseurB.value">';
21 21 echo '<fieldset>';
22 22 if(strpos($trace_c1,"ON")!=false or strpos($trace_c2,"ON")!=false){
23 23 echo '<label for="choix">Voie :</label>';
... ... @@ -47,7 +47,7 @@
47 47 $valueA=floatval(substr($vrelA,13));
48 48 $valueB=floatval(substr($vrelB,13));
49 49 /* Curseur A */
50   - echo '<form method="post" action="oscillo.php?tab=Curseurs" oninput="resultatA.value=vrel_curseurA.value; resultatB.value=vrel_curseurB.value">';
  50 + echo '<form method="post" action="main.php" oninput="resultatA.value=vrel_curseurA.value; resultatB.value=vrel_curseurB.value">';
51 51 echo '<fieldset>';
52 52 if(strpos($trace_c1,"ON")!=false or strpos($trace_c2,"ON")!=false){
53 53 echo '<label for="choix">Voie :</label>';
... ...
html/Oscilloscope/Global/1_Mode_acqw/form_acqw.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Global">
  3 + <form method="post" action="main.php">
4 4 <label for="acqw">Mode d'acquisition :</label>
5 5 <select id="acqw" name="acqw" onchange="this.form.submit();">
6 6 <option value="sampling" <?php if(strpos($acqw_mode,"SAMPLING")!=false) echo "selected"; ?> >Echantillon</option>
... ...
html/Oscilloscope/Global/2_Cmd/form_run_stop_aset.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Global">
  3 + <form method="post" action="main.php">
4 4 <input type="submit" name="autoset" value="Autoset" class="btn btn-outline-danger"/>
5 5 <input type="submit" name="run" value="Run" class="btn btn-success"/>
6 6 <input type="submit" name="stop" value="Stop" class="btn btn-danger"/>
... ...
html/Oscilloscope/Global/3_Trigger/form_trigger_mode.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Global">
  3 + <form method="post" action="main.php">
4 4 <label for"trmd">Trigger mode :</label>
5 5 <select id="trmd" name="trmd" onchange="this.form.submit();">
6 6 <option value="auto" <?php if(strpos($trmd,"AUTO")!=false) echo "selected" ?> >AUTO</option>
... ...
html/Oscilloscope/Global/4_Temps_par_div/form_temps_div.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php?tab=Global" >
  3 + <form method="post" action="main.php" >
4 4 <label for="timediv">Temps/div :</label>
5 5 <select id="timediv" name="timediv" onchange="this.form.submit();">
6 6 <option value="2.5ns" <?php if(strpos($tdiv,"2.50E-09s")!=false) echo "selected" ?> >2.5ns</option>
... ...
html/Oscilloscope/commandes_oscilloscope.php
1 1 <?php
2   - $chemin = getcwd().'/'.$Appareil[$i]['type'];
3   - $files = array_diff(scandir($chemin),array('..','.'));
4   - foreach($files as $Fich){
5   - $path = $chemin.'/'.$Fich;
  2 + /* On parcourt l'arborescence pour trouver les fichiers 'cmd_fichiers.php'
  3 + * Ces fichiers rรฉalisent les commandes de l'appareil selon les boutons appuyรฉs par l'utilisateur sur l'interface */
  4 + //$chemin = getcwd().'/'.$Appareil[$i]['type'];
  5 + //$files = array_diff(scandir($chemin),array('..','.'));
  6 + foreach($files as $dir){
  7 + $path = $chemin.'/'.$dir;
6 8 if(is_dir($path)){
7   - $files = array_diff(scandir($path),array('..','.'));
8   - foreach($files as $dir){
9   - $path2 = $path.'/'.$dir;
  9 + $sub_dir = array_diff(scandir($path),array('..','.'));
  10 + foreach($sub_dir as $new_dir){
  11 + $path2 = $path.'/'.$new_dir;
10 12 if(is_dir($path2)){
11   - $files2 = array_diff(scandir($path2),array('..','.'));
12   - foreach($files2 as $cmd){
  13 + $fichiers = array_diff(scandir($path2),array('..','.'));
  14 + foreach($fichiers as $cmd){
13 15 $path3 = $path2.'/'.$cmd;
14 16 if(is_file($path3) && strpos($path3,"cmd")!=false){
15 17 include($path3);
... ...
html/Oscilloscope/main_oscilloscope.php
1 1 <!DOCTYPE html>
2 2 <html>
3 3 <?php
4   - if(isset($_GET['tab'])){
5   - $tab=$_GET['tab'];
6   - }else{
7   - $tab="Global";
8   - }
9 4 echo '<div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">';
10 5 echo '<div class="mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center">';
11 6 /* Affichage image */
... ... @@ -16,54 +11,33 @@
16 11 echo '<div class="my-3 py-3">';
17 12 echo '<h2 class="display-6 text-center">Panel de commande</h2>';
18 13 echo '</div>';
19   - echo '<div class="bd-example">';
20   - echo '<nav>';
21   - echo '<div class="bg-warning nav nav-tabs mb-3" id="nav-tab" role="tablist">';
22   - $chemin = getcwd().'/'.$Appareil[$i]['type'];
23   - $files = array_diff(scandir($chemin),array('..','.'));
24   - foreach($files as $Fich){
25   - $trypath = $chemin.'/'.$Fich;
26   - if(is_dir($trypath)){
27   - echo '<button class="nav-link ';
28   - if($tab==$Fich){
29   - echo "active";
30   - }
31   - 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>';
32   - }
33   - }
34   - echo '</div>';
35   - echo '</nav>';
36   - echo '<div class="tab-content" id="nav-tabContent">';
37   - foreach($files as $Fich){
38   - $path = $chemin.'/'.$Fich;
  14 + //$chemin = getcwd().'/'.$Appareil[$i]['type'];
  15 + //$files = array_diff(scandir($chemin),array('..','.'));
  16 + echo '<div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">';
  17 + /* On parcourt l'arborescence pour trouver les fichiers 'form_fichiers.php'
  18 + * Ces fichiers affichent les diffรฉrents boutons correspondant aux commandes de l'appareil */
  19 + foreach($files as $dir){
  20 + $path = $chemin.'/'.$dir;
39 21 if(is_dir($path)){
40   - echo '<div class="tab-pane fade ';
41   - if($tab==$Fich){
42   - echo "show active";
43   - }
44   - echo '" id="nav-'.$Fich.'" role=tabpanel" aria-labelledby="nav-'.$Fich.'-tab">';
45   - echo '<p>';
46   - $files = array_diff(scandir($path),array('..','.'));
47   - foreach($files as $dir){
48   - $path2 = $path.'/'.$dir;
  22 + $sub_dir = array_diff(scandir($path),array('..','.'));
  23 + echo '<div class="mr-md-1 pt-1 px-1 pt-md-1 px-md-1">';
  24 + foreach($sub_dir as $new_dir){
  25 + $path2 = $path.'/'.$new_dir;
49 26 if(is_dir($path2)){
50   - $files2 = array_diff(scandir($path2),array('..','.'));
51   - foreach($files2 as $form){
  27 + $fichiers = array_diff(scandir($path2),array('..','.'));
  28 + foreach($fichiers as $form){
52 29 $path3 = $path2.'/'.$form;
53 30 if(is_file($path3) && strpos($path3,"form")!=false){
54 31 include($path3);
55   - echo '<br/>';
56 32 }
57 33 }
58 34 }
59 35 }
60   - echo '</p>';
61   - echo '</div>';
  36 + echo '</div>';
62 37 }
63 38 }
64 39 echo '</div>';
65 40 echo '</div>';
66 41 echo '</div>';
67   - echo '</div>';
68 42 ?>
69 43 </html>
... ...
html/Oscilloscope_test/CH1/1_Trace/cmd_trace.php renamed to html/Oscilloscope_onglets/CH1/1_Trace/cmd_trace.php
html/Oscilloscope_test/CH1/1_Trace/form_trace.php renamed to html/Oscilloscope_onglets/CH1/1_Trace/form_trace.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=CH1">
4 4 <input type="submit" name="tra_c1" value="Tracer/Effacer CH1" class="btn btn-outline-danger"/>
5 5 </form>
6 6 </html>
... ...
html/Oscilloscope_test/CH1/2_Attn/cmd_attn.php renamed to html/Oscilloscope_onglets/CH1/2_Attn/cmd_attn.php
html/Oscilloscope_test/CH1/2_Attn/form_attn.php renamed to html/Oscilloscope_onglets/CH1/2_Attn/form_attn.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=CH1">
4 4 <label for="c1_sonde">Attenuation Sonde CH1 :</label>
5 5 <select id="c1_sonde" name="c1_sonde" onchange="this.form.submit();">
6 6 <option value="0.1" <?php if(strpos($c1sonde,"ATTN 0.1")!=false) echo "selected" ?> >0.1X</option>
... ...
html/Oscilloscope_test/CH1/3_Unite/cmd_unite.php renamed to html/Oscilloscope_onglets/CH1/3_Unite/cmd_unite.php
html/Oscilloscope_test/CH1/3_Unite/form_unite.php renamed to html/Oscilloscope_onglets/CH1/3_Unite/form_unite.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=CH1">
4 4 <label for="c1_unit">Unitรฉ CH1 :</label>
5 5 <select id="c1_unit" name="c1_unit" onchange="this.form.submit();">
6 6 <option value="V" <?php if(strpos($c1u,"V")!=false) echo "selected" ?> >Volt</option>
... ...
html/Oscilloscope_test/CH1/4_Vdiv/cmd_volt_div.php renamed to html/Oscilloscope_onglets/CH1/4_Vdiv/cmd_volt_div.php
html/Oscilloscope_test/CH1/4_Vdiv/form_volt_div.php renamed to html/Oscilloscope_onglets/CH1/4_Vdiv/form_volt_div.php
1 1 <!DOCTYPE html>
2 2 <html>
3 3 <?php
4   - /* TODO : Meilleur endroit ? */
5 4 $vdiv1 = floatval(substr($vdiv1,8,-2));
6 5 $sonde = floatval(substr($c1sonde,7));
7 6 $unite1 = substr($c1u,8,-1);
8 7 ?>
9   - <form method="post" action="main.php">
  8 + <form method="post" action="main.php?tab=CH1">
10 9 <label for="c1_vdiv"><?php if($unite1=="A"){echo "Amps";}else{echo "Volts";}?>/div CH1 :</label>
11 10 <select id="c1_vdiv" name="c1_vdiv" onchange="this.form.submit();">
12 11 <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>
... ...
html/Oscilloscope_test/CH1/5_Couplage/cmd_couplage.php renamed to html/Oscilloscope_onglets/CH1/5_Couplage/cmd_couplage.php
html/Oscilloscope_test/CH1/5_Couplage/form_couplage.php renamed to html/Oscilloscope_onglets/CH1/5_Couplage/form_couplage.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=CH1">
4 4 <label for="c1_cpl">Couplage CH1 :</label>
5 5 <select id="c1_cpl" name="c1_cpl" onchange="this.form.submit();">
6 6 <option value="D1M" <?php if(strpos($c1cpl,"D1M")!=false) echo "selected" ?> >DC</option>
... ...
html/Oscilloscope_test/CH1/6_Filtre/cmd_filtre.php renamed to html/Oscilloscope_onglets/CH1/6_Filtre/cmd_filtre.php
... ... @@ -14,7 +14,6 @@
14 14 }else{
15 15 $filt_c1 = shell_exec('lxi scpi -a '.$adresse.' "c1:filt?"');
16 16 }
17   - /* TODO : Probleme (Voir erreur /var/log/apache2/error.log) */
18 17 /* Commande type de filtre CH1 */
19 18 if(array_key_exists('c1_filts',$_POST)){
20 19 $c1filts=$_POST['c1_filts'];
... ...
html/Oscilloscope_test/CH1/6_Filtre/form_filtre.php renamed to html/Oscilloscope_onglets/CH1/6_Filtre/form_filtre.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=CH1">
4 4 <input type="submit" name="filt_c1" value="Filtre ON/OFF CH1" class="btn btn-outline-danger"/>
5 5 </form>
6 6 <?php
... ...
html/Oscilloscope_test/CH1/7_Trigger_level/cmd_trig_lvl.php renamed to html/Oscilloscope_onglets/CH1/7_Trigger_level/cmd_trig_lvl.php
html/Oscilloscope_test/CH1/7_Trigger_level/form_trig_lvl.php renamed to html/Oscilloscope_onglets/CH1/7_Trigger_level/form_trig_lvl.php
1 1 <!DOCTYPE html>
2 2 <html>
3 3 <?php
4   - /* TODO : Meilleur endroit ? */
5 4 $val_c1trlv = floatval(substr($c1trlv,8,-2))/$vdiv1;
6 5 ?>
7   - <form method='post' action='main.php' oninput='c1_triglv.value=c1_trlv.value'>
  6 + <form method='post' action='main.php?tab=CH1' oninput='c1_triglv.value=c1_trlv.value'>
8 7 <label for="c1_trlv" class="form-range">Trigger Level CH1</label>
9 8 <input type="range" id="c1_trlv" name="c1_trlv" class="form-range" min="<?php echo (-4)*$vdiv1; ?>" max="<?php echo 4*$vdiv1; ?>" step="0.1" value="<?php echo $val_c1trlv*$vdiv1; ?>" onchange="this.form.submit();">
10 9 <br/>
... ...
html/Oscilloscope_test/CH2/1_Trace/cmd_trace.php renamed to html/Oscilloscope_onglets/CH2/1_Trace/cmd_trace.php
html/Oscilloscope_test/CH2/1_Trace/form_trace.php renamed to html/Oscilloscope_onglets/CH2/1_Trace/form_trace.php
1 1 <!DOCTYPE html>
2 2 <html>
3   - <form method="post" action="main.php">
  3 + <form method="post" action="main.php?tab=CH2">
4 4 <input type="submit" name="tra_c2" value="Tracer/Effacer CH2" class="btn btn-outline-danger"/>
5 5 </form>
6 6 </html>
... ...
html/Oscilloscope_test/CH2/2_Attn/cmd_attn.php renamed to html/Oscilloscope_onglets/CH2/2_Attn/cmd_attn.php