base de datos

parent 8cbd2d90
......@@ -26,7 +26,7 @@ session_start();
<div class="circle mediun shade4"></div>
<div class="circle small shade5"></div>
</div>
<div class="container h-100">
<div class="container">
<!--div class="text-center" style="z-index: -1"><img src="images/header.png" width="800px"></div-->
<div class="d-flex justify-content-center h-100">
<div class="user_card">
......@@ -119,8 +119,18 @@ session_start();
</div>
</div>
<footer>
<div class="text-center fixed-bottom" style="margin-bottom: 20px">
<img src="images/Logo-Horizontal-V2-blanco.png" width="400px">
<div>
<hr>
<div class="text-center" style="margin-bottom: 10px">
<img src="images/g122.png" width="500px">
</div>
</footer>
</div>
<div class="text-center" ><img src="images/g122.png" width="500px" style="margin-bottom: 10px"></div>
<script>
contenido_textarea = ""
num_caracteres_permitidos = 200
......
This diff is collapsed.
......@@ -45,6 +45,7 @@ $conn->close();*/
</head>
<body>
<!--div class="text-center" style="z-index: -1"><img src="images/header.png" width="800px"></div-->
<div class="ripple-background">
<div class="circle xxlarge shade1"></div>
......@@ -55,7 +56,7 @@ $conn->close();*/
</div>
<div class="container h-100">
<div class="container">
<div class="d-flex justify-content-center h-100">
<div class="user_card">
......@@ -78,30 +79,32 @@ $conn->close();*/
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-search"></i></span>
</div>
<input type="text" autocomplete="on" list="Escuelas" name="escuela" id="input_escuela" class="form-control " value="" placeholder="Seleccione la clave o nombre de su escuela" required ">
<input type="hidden" name="clave_escuela" id="clave_escuela">
<input type="text" autocomplete="on" list="Escuelas" name="escuela" id="input_escuela"
class="form-control custom-select custom-select-sm" value=""
placeholder="Seleccione la clave o nombre de su escuela" required ">
<input type="hidden" name="clave_escuela" id="clave_escuela">
</div>
<datalist id="Escuelas">
<?php
while($row = $result1->fetch_assoc()) {
echo '<option value="'.utf8_encode($row["CV_CCT"]).'">'.utf8_encode($row["NOMBRECT"]).' <br>de '.utf8_encode($row["C_NOM_LOC"]).'</option>';
//echo '<option value="'.utf8_encode($row["NOMBRECT"]).'">de '.utf8_encode($row["C_NOM_LOC"]).' <br>clave: '.utf8_encode($row["CV_CCT"]).'</option>';
}
while($row = $result2->fetch_assoc()) {
echo '<option value="'.utf8_encode($row["CV_CCT"]).'">'.utf8_encode($row["NOMBRECT"]).' <br>de '.utf8_encode($row["C_NOM_LOC"]).'</option>';
}
while($row = $result3->fetch_assoc()) {
echo '<option value="'.utf8_encode($row["CV_CCT"]).'">'.utf8_encode($row["NOMBRECT"]).' <br>de '.utf8_encode($row["C_NOM_LOC"]).'</option>';
}
while($row = $result4->fetch_assoc()) {
echo '<option value="'.utf8_encode($row["CV_CCT"]).'">'.utf8_encode($row["NOMBRECT"]).' <br>de '.utf8_encode($row["LOCALIDAD"]).'</option>';
}
while($row = $result5->fetch_assoc()) {
//echo '<option value="'.utf8_encode($row["CV_CCT"]).'">'.utf8_encode($row["NOMBRECT"]).'</option>';
echo '<option value="'.utf8_encode($row["CV_CCT"]).'">'.utf8_encode($row["NOMBRECT"]).' <br>de '.utf8_encode($row["LOCALIDAD"]).'</option>';
}
?>
<?php
while ($row = $result1->fetch_assoc()) {
echo '<option value="' . utf8_encode($row["CV_CCT"]) . '">' . utf8_encode($row["NOMBRECT"]) . ' <br>de ' . utf8_encode($row["C_NOM_LOC"]) . '</option>';
//echo '<option value="'.utf8_encode($row["NOMBRECT"]).'">de '.utf8_encode($row["C_NOM_LOC"]).' <br>clave: '.utf8_encode($row["CV_CCT"]).'</option>';
}
while ($row = $result2->fetch_assoc()) {
echo '<option value="' . utf8_encode($row["CV_CCT"]) . '">' . utf8_encode($row["NOMBRECT"]) . ' <br>de ' . utf8_encode($row["C_NOM_LOC"]) . '</option>';
}
while ($row = $result3->fetch_assoc()) {
echo '<option value="' . utf8_encode($row["CV_CCT"]) . '">' . utf8_encode($row["NOMBRECT"]) . ' <br>de ' . utf8_encode($row["C_NOM_LOC"]) . '</option>';
}
while ($row = $result4->fetch_assoc()) {
echo '<option value="' . utf8_encode($row["CV_CCT"]) . '">' . utf8_encode($row["NOMBRECT"]) . ' <br>de ' . utf8_encode($row["LOCALIDAD"]) . '</option>';
}
while ($row = $result5->fetch_assoc()) {
//echo '<option value="'.utf8_encode($row["CV_CCT"]).'">'.utf8_encode($row["NOMBRECT"]).'</option>';
echo '<option value="' . utf8_encode($row["CV_CCT"]) . '">' . utf8_encode($row["NOMBRECT"]) . ' <br>de ' . utf8_encode($row["LOCALIDAD"]) . '</option>';
}
?>
</datalist>
......@@ -125,24 +128,34 @@ $conn->close();*/
</div>
<div class="d-flex justify-content-center mt-3 login_container">
<button type="submit" id="next" class="btn login_btn" disabled>Siguiente</button>
</div>
</form>
</div>
</div>
</div>
<footer>
<div class="text-center fixed-bottom" style="margin-bottom: 20px">
<img src="images/Logo-Horizontal-V2-blanco.png" width="400px">
<div>
<hr>
<div class="text-center" style="margin-bottom: 10px">
<img src="images/g122.png" width="500px">
</div>
</footer>
</div>
<div class="text-center" ><img src="images/g122.png" width="500px" style="margin-bottom: 10px"></div>
<script>
$("#input_escuela").bind('input', function () {
var dato = $('#input_escuela').val();
$('#clave_escuela').val($('#input_escuela').val());
document.getElementById('clave_escuela').value=$('#input_escuela').val();
var valor = checkExists( $('#input_escuela').val());
document.getElementById('clave_escuela').value = $('#input_escuela').val();
var valor = checkExists($('#input_escuela').val());
//alert(valor);
var lastword = valor.split(" ").pop();
$('#nombre_escuela').empty();
......@@ -150,7 +163,7 @@ $conn->close();*/
$('#titulo1').empty();
$('#titulo2').empty();
var porciones = valor.split('de ');
document.getElementById('input_escuela').value=porciones[0];
document.getElementById('input_escuela').value = porciones[0];
$('#nombre_escuela').append(porciones[0]);
$('#titulo1').append('<h1>Escuela: </h1>');
$('#titulo2').append('<h3>Localidad:</h3>');
......@@ -160,13 +173,12 @@ $conn->close();*/
{
dato: dato
},
function(data, status){
if (data=="1"){
function (data, status) {
if (data == "1") {
$('#next').attr("disabled", false);
} else {
$('#next').attr("disabled", true);
}
else {
$('#next').attr("disabled", true);
}
});
});
......@@ -176,7 +188,7 @@ $conn->close();*/
var i;
var flag;
for (i = 0; i < x.options.length; i++) {
if(inputValue == x.options[i].value){
if (inputValue == x.options[i].value) {
flag = x.options[i].text;
}
......
......@@ -36,7 +36,7 @@ if (isset($_POST['escuela'])) {
<div class="circle small shade5"></div>
</div>
<div class="container h-100">
<div class="container">
<!--div class="text-center" style="z-index: -1"><img src="images/header.png" width="800px"></div-->
<div class="d-flex justify-content-center h-100">
<div class="user_card">
......@@ -81,8 +81,17 @@ if (isset($_POST['escuela'])) {
</div>
</div>
</div>
<footer>
<div class="text-center fixed-bottom" style="margin-bottom: 20px">
<img src="images/Logo-Horizontal-V2-blanco.png" width="400px">
<div>
<hr>
<div class="text-center" style="margin-bottom: 10px">
<img src="images/g122.png" width="500px">
</div>
</footer>
</div>
<div class="text-center" ><img src="images/g122.png" width="500px" style="margin-bottom: 10px"></div>
</body>
</html>
......@@ -3,12 +3,14 @@
body,
html{
/*background-image: url("images/background.jpg");*/
margin: 0;
height: 100%;
border: 30px solid transparent;
padding: 20px;
background: #6C3721;
overflow: hidden;
/*background: #6C3721;*/
background-image: url("images/463980.jpg");
/*background-repeat: no-repeat;*/
background-size: 100%,100%;
/*-webkit-border-image: url("images/background2.png") 40 round; /* Safari 3.1-5 */
/*-o-border-image: url("images/background2.png") 40 round; /* Opera 11-12.1 */
/*border-image: url("images/background2.png") 40 round;*/
......@@ -17,18 +19,19 @@ html{
.user_card {
height: 600px;
width: 550px;
margin-top: auto;
margin-top: 200px;
margin-bottom: auto;
background: #f39c12;
background: rgba(132, 93, 5, 0.9);;
position: relative;
display: flex;
justify-content: center;
flex-direction: column;
padding: 10px;
/*padding: 10px;*/
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
-webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
-moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-radius: 5px;
color: white;
}
......@@ -110,7 +113,7 @@ input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
/*
.circle{
position: absolute;
border-radius: 50%;
......@@ -186,3 +189,4 @@ input[type=number]::-webkit-outer-spin-button {
transform: scale(0.8);
}
}
*/
\ No newline at end of file
......@@ -24,7 +24,7 @@
<div class="circle small shade5"></div>
</div>
<div class="container h-100">
<div class="container">
<!--div class="text-center" style="z-index: -1"><img src="images/header.png" width="800px"></div-->
<div class="d-flex justify-content-center h-100">
<div class="user_card">
......@@ -72,8 +72,17 @@
</div>
</div>
<footer>
<div class="text-center fixed-bottom" style="margin-bottom: 20px">
<img src="images/Logo-Horizontal-V2-blanco.png" width="400px">
<div>
<hr>
<div class="text-center" style="margin-bottom: 10px">
<img src="images/g122.png" width="500px">
</div>
</footer>
</div>
<div class="text-center" ><img src="images/g122.png" width="500px" style="margin-bottom: 10px"></div>
<script>
function redireccion() {
setTimeout(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment