Listas desplegables en php
Publicado por ulises (2 intervenciones) el 21/12/2021 16:50:32
Buenas tardes tengo un problema con un programa el cual lo hice en html y corrio con normalidad(bien) pero cuando lo quise integrar a un archivo php mi codigo hacia todo salvo los botones desplegables los cuales al clicarlos te soltaba una lista adjunto mi código en php la unica diferencia de estos dos es que no tiene sentencias php mi html
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?php
if(!isset($_SESSION["validarIngreso"])){
echo '<script>window.location = "index.php?pagina=ingreso";</script>';
return;
}else{
if($_SESSION["validarIngreso"] != "ok"){
echo '<script>window.location = "index.php?pagina=ingreso";</script>';
return;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Proyecto Marco</title>
<!--=====================================
PLUGINS DE CSS
======================================-->
<style type="text/css">
.button {
background-color: red;
border: none;
color: white;
padding: 10px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
}
.button1 {
background-color: white;
color: black;
}
.button1:hover {
background-color: green;
color: white;
}
.button2 {
display: inline-block;
padding: 1px 15px;
font-size: 24px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color: #fff;
background-color: #2F3BED;
border: none;
border-radius: 15px;
box-shadow: 0 4px #999;
}
.button2:hover {background-color: #09139E}
.button2:active {
background-color: #09139E;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
#cero{
position: relative;
top: -50px;
left: 10px;
}
#one {
position: relative;
top: 105px;
left: 10px;
}
#two {
position: relative;
top: -30px;
left: 5px;
}
#three {
position: relative;
top: -30px;
left: 70px;
}
#four {
position: relative;
top: -30px;
left: 110px;
}
#five {
position: relative;
top: -30px;
left: 220px;
}
#six {
position: relative;
top: -30px;
left: 330px;
}
#seven {
position: relative;
top: 110px;
left: 380px;
}
#eight {
position: relative;
top: 40px;
left: 310px;
}
#nine {
position: relative;
top: 190px;
left: 210px;
}
#ten {
position: relative;
top: 300px;
left: -620px;
}
#eleven {
position: relative;
top: 300px;
left: -270px;
}
#twelve {
position: relative;
top: 405px;
left: -390px;
}
#thriteen {
position: relative;
top: 370px;
left: 1030px;
}
body {
background-image: url('plano.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 80%;
background-position: 0cm 2cm;
}
</style>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!--=====================================
PLUGINS DE JS
======================================-->
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<!-- Latest compiled Fontawesome-->
<script src="https://kit.fontawesome.com/e632f1f723.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="cero" class="container-fluid">
<a class="btn btn-danger"href="index.php?pagina=ingreso">Salir</a>
</div>
<!--=====================================
BOTONERA
======================================-->
<div id="one"class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle"
data-toggle="dropdown">
Clima 1 <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a class="button button1">Encender</a></li>
<li><p>Subir <a class="button2"><i class="fas fa-caret-up"></i></a></p></li>
<li><p>Bajar <a class="button2"><i class="fas fa-caret-down"></i></a></p></li>
<li class="divider"></li>
<li><a href="#">Acción #4</a></li>
</ul>
</div>
Valora esta pregunta


0