HTML - editar registros por ventana modal

 
Vista:
sin imagen de perfil

editar registros por ventana modal

Publicado por Sergio (1 intervención) el 28/11/2016 18:44:35
buen dia,

llevo varios dias intentando solucionar este problema.

este es el html que abre la ventana

1
2
3
4
5
6
7
8
9
10
11
12
13
<input type="radio" id="mostrar-modal" name="modal"/>
<label for="mostrar-modal">+ nueva sede</label>
 
 
<input type="radio" name="modal" id="cerrar-modal"/>
      <label for="cerrar-modal">X</label>
      <div id="modal">
        <div class="contenido">
 
        <form></form>
 
        </div>
      </div>

y este es el css

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
#modal {
  position: fixed;
  top: -100%;
  left: 0;
  height: 100%;
  width: 100%;
}
 
#mostrar-modal {
  display: none;
}
#mostrar-modal:checked ~ #modal {
  top: 0;
}
#mostrar-modal:checked ~ #cerrar-modal + label {
  display: block;
}
 
#cerrar-modal {
  display: none;
}
#cerrar-modal + label {
  position:fixed;
  top: 1em;
  right: 1em;
  z-index: 100;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  background: #F30004;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  display: none;
}
#cerrar-modal:checked ~ #modal {
  top: -100%;
}
#cerrar-modal:checked + label {
  display: none;
}



PERO LO QUE QUIERO LOGRAR ES CON ESTAS MISMAS BASES PODER MODIFICAR REGISTROS SIN TENER QUE ALTERAR TODA LA ESTRUCTURA DEL SITIO QUE YA TENGO...

NO SE SI CON ESAS BASES SE LOGRE HACER LO QUE QUIERO O TENGA QUE ACUDIR A OTRO METODO PERO QUE NO SEA MUY COMPLEJO.. HE VISTO LO DE ACTUALIZAR EN TIEMPO REAL CON AJAX Y JQUERY PERO NO ENCUENTRO UN EJEMPLO SIMPLE QUE HAGA PUNTUALMENTE LO QUE NECESITO... SIEMPRE TIENE 4 O MAS ARCHIVOS PHP QUE HACEN DE TODO Y TRATO DE LIMPIARLOS PERO SIMEPRE FALLA ALGO Y RESULTA MUY CUMPLEJO HACERLO...

PUES UNA COSA TÉCNICAMENTE TAN SENCILLA ME ESTA TOMANDO MAS TIEMPO DE LO QUE DEBERIA.. PUES EL PROPOSITO DE HACERLO ASI ES SALIR DE LO CONVENCIONAL Y PROBAR COSAS DISTINTAS


SI ALGUIEN TUVIERA ALGUN APORTE O ALGUNA IDEA DE COMO HACERLO. ME VENDRIA MUY BIEN CADA GRANITO QUE ME PUEDAN BRINDAR.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder