Commit 35fd4b08e51ae5efbdaff9c9077fbd7fe24d32bb
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">'; | |