-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpretratamentotab.php
204 lines (186 loc) · 10 KB
/
pretratamentotab.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<link href="css/secTab.css" rel="stylesheet" type="text/css" media="all">
<div class="x_content">
<div class="tab_container" role="tab_container" data-example-id="togglable-tabs">
<!--<div class="nav nav-tabs bar_tabs" role="tablist">
<input id="tab4" type="radio" name="tabs" class="input-tab">
<label class="tab-label" for="tab4"><span>Dados Bióticos</span></label>
<input id="tab5" type="radio" name="tabs" class="input-tab">
<label class="tab-label" for="tab5"><span>Dados Abióticos</span></label>
</div>
<div id="preTratamentoTab" class="tab-content">
<div class="tab-pane <?php //if ($stab=='4') echo 'in active';?>" id="tab_content4" aria-labelledby="home-tab">
<?php //require "dadosbioticostab.php";?>
</div>
<div class="tab-pane fade <?php //if ($stab=='5') echo 'in active';?>" id="tab_content5" aria-labelledby="home-tab">
<?php //require "dadosabioticostab.php";?>
</div>
</div>-->
<div class="nav nav-tabs bar_tabs" role="tablist">
<input id="tab9" type="radio" name="tabs" class="input-tab">
<label class="tab-label" for="tab9"><span>Aquisição de Dados Bióticos</span></label>
<input id="tab10" type="radio" name="tabs" class="input-tab">
<label class="tab-label" for="tab10"><span>Limpeza de Dados</span></label>
<input id="tab11" type="radio" name="tabs" class="input-tab">
<label class="tab-label" for="tab11"><span>Seleção de Dados Abióticos</span></label>
<input id="tab12" type="radio" name="tabs" class="input-tab">
<label class="tab-label" for="tab12"><span>Extensão</span></label>
<!-- <input id="tab18" type="radio" name="tabs" class="input-tab">
<label class="tab-label" for="tab18"><span>Projeção</span></label> -->
</div>
<div id="preTratamentoTab" class="tab-content">
<div class="tab-pane <?php if ($stab=='9') echo 'in active';?>" id="tab_content9" aria-labelledby="home-tab">
<?php require "dadosbioticos.php";?>
</div>
<div class="tab-pane fade <?php if ($stab=='10') echo 'in active';?>" id="tab_content10" aria-labelledby="home-tab">
<?php require "expdatacleaning.php";?>
</div>
<div class="tab-pane <?php if ($stab=='11') echo 'in active';?>" id="tab_content11" aria-labelledby="home-tab">
<?php require "selecaodadosabioticos.php";?>
</div>
<div class="tab-pane fade <?php if ($stab=='12') echo 'in active';?>" id="tab_content12" aria-labelledby="home-tab">
<?php require "expextensao.php";?>
</div>
<!-- <div class="tab-pane fade <?php //if ($stab=='18') echo 'in active';?>" id="tab_content18" aria-labelledby="home-tab">
<?php //require "expprojecao.php";?>
</div> -->
</div>
</div>
</div>
<script>
var stab = <?php
if(isset($stab)){
echo $stab;
} else {
echo 0;
}
?>;
if(stab == 9){
document.getElementById('tab9').checked = true;
document.getElementById('tab_content9').classList.add("in");
document.getElementById('tab_content9').classList.add("active");
document.getElementById('tab_content10').classList.remove("in");
document.getElementById('tab_content10').classList.remove("active");
document.getElementById('tab_content11').classList.remove("in");
document.getElementById('tab_content11').classList.remove("active");
document.getElementById('tab_content12').classList.remove("in");
document.getElementById('tab_content12').classList.remove("active");
// document.getElementById('tab_content18').classList.remove("in");
// document.getElementById('tab_content18').classList.remove("active");
}
else if(stab == 10){
document.getElementById('tab10').checked = true;
document.getElementById('tab_content9').classList.remove("in");
document.getElementById('tab_content9').classList.remove("active");
document.getElementById('tab_content10').classList.add("in");
document.getElementById('tab_content10').classList.add("active");
document.getElementById('tab_content11').classList.remove("in");
document.getElementById('tab_content11').classList.remove("active");
document.getElementById('tab_content12').classList.remove("in");
document.getElementById('tab_content12').classList.remove("active");
// document.getElementById('tab_content18').classList.remove("in");
// document.getElementById('tab_content18').classList.remove("active");
}
else if(stab == 11){
document.getElementById('tab11').checked = true;
document.getElementById('tab_content9').classList.remove("in");
document.getElementById('tab_content9').classList.remove("active");
document.getElementById('tab_content10').classList.remove("in");
document.getElementById('tab_content10').classList.remove("active");
document.getElementById('tab_content11').classList.add("in");
document.getElementById('tab_content11').classList.add("active");
document.getElementById('tab_content12').classList.remove("in");
document.getElementById('tab_content12').classList.remove("active");
// document.getElementById('tab_content18').classList.remove("in");
// document.getElementById('tab_content18').classList.remove("active");
}
else if(stab == 12){
document.getElementById('tab12').checked = true;
document.getElementById('tab_content9').classList.remove("in");
document.getElementById('tab_content9').classList.remove("active");
document.getElementById('tab_content10').classList.remove("in");
document.getElementById('tab_content10').classList.remove("active");
document.getElementById('tab_content11').classList.remove("in");
document.getElementById('tab_content11').classList.remove("active");
document.getElementById('tab_content12').classList.add("in");
document.getElementById('tab_content12').classList.add("active");
// document.getElementById('tab_content18').classList.remove("in");
// document.getElementById('tab_content18').classList.remove("active");
}
else if(stab == 18){
document.getElementById('tab18').checked = true;
document.getElementById('tab_content9').classList.remove("in");
document.getElementById('tab_content9').classList.remove("active");
document.getElementById('tab_content10').classList.remove("in");
document.getElementById('tab_content10').classList.remove("active");
document.getElementById('tab_content11').classList.remove("in");
document.getElementById('tab_content11').classList.remove("active");
document.getElementById('tab_content12').classList.remove("in");
document.getElementById('tab_content12').classList.remove("active");
// document.getElementById('tab_content18').classList.add("in");
// document.getElementById('tab_content18').classList.add("active");
}
$("label").click(function(){
console.log($(this).attr('for'))
var tab = $(this).attr('for');
if(tab == 'tab9'){
document.getElementById('tab_content9').classList.add("in");
document.getElementById('tab_content9').classList.add("active");
document.getElementById('tab_content10').classList.remove("in");
document.getElementById('tab_content10').classList.remove("active");
document.getElementById('tab_content11').classList.remove("in");
document.getElementById('tab_content11').classList.remove("active");
document.getElementById('tab_content12').classList.remove("in");
document.getElementById('tab_content12').classList.remove("active");
// document.getElementById('tab_content18').classList.remove("in");
// document.getElementById('tab_content18').classList.remove("active");
}
else if(tab == 'tab10'){
document.getElementById('tab_content9').classList.remove("in");
document.getElementById('tab_content9').classList.remove("active");
document.getElementById('tab_content10').classList.add("in");
document.getElementById('tab_content10').classList.add("active");
document.getElementById('tab_content11').classList.remove("in");
document.getElementById('tab_content11').classList.remove("active");
document.getElementById('tab_content12').classList.remove("in");
document.getElementById('tab_content12').classList.remove("active");
// document.getElementById('tab_content18').classList.remove("in");
// document.getElementById('tab_content18').classList.remove("active");
}
else if(tab == 'tab11'){
document.getElementById('tab_content9').classList.remove("in");
document.getElementById('tab_content9').classList.remove("active");
document.getElementById('tab_content10').classList.remove("in");
document.getElementById('tab_content10').classList.remove("active");
document.getElementById('tab_content11').classList.add("in");
document.getElementById('tab_content11').classList.add("active");
document.getElementById('tab_content12').classList.remove("in");
document.getElementById('tab_content12').classList.remove("active");
// document.getElementById('tab_content18').classList.remove("in");
// document.getElementById('tab_content18').classList.remove("active");
}
else if(tab == 'tab12'){
document.getElementById('tab_content9').classList.remove("in");
document.getElementById('tab_content9').classList.remove("active");
document.getElementById('tab_content10').classList.remove("in");
document.getElementById('tab_content10').classList.remove("active");
document.getElementById('tab_content11').classList.remove("in");
document.getElementById('tab_content11').classList.remove("active");
document.getElementById('tab_content12').classList.add("in");
document.getElementById('tab_content12').classList.add("active");
// document.getElementById('tab_content18').classList.remove("in");
// document.getElementById('tab_content18').classList.remove("active");
}
else if(tab == 'tab18'){
document.getElementById('tab_content9').classList.remove("in");
document.getElementById('tab_content9').classList.remove("active");
document.getElementById('tab_content10').classList.remove("in");
document.getElementById('tab_content10').classList.remove("active");
document.getElementById('tab_content11').classList.remove("in");
document.getElementById('tab_content11').classList.remove("active");
document.getElementById('tab_content12').classList.remove("in");
document.getElementById('tab_content12').classList.remove("active");
// document.getElementById('tab_content18').classList.add("in");
// document.getElementById('tab_content18').classList.add("active");
}
});
</script>