AJAX - Conflicto entre PHP y Ajax al hacer Pos

 
Vista:
sin imagen de perfil

Conflicto entre PHP y Ajax al hacer Pos

Publicado por Victor (29 intervenciones) el 06/10/2014 08:42:39
Buenos dias gente.
Tengo una pagina,muy conocida por xve,la cual me da un problema al hacer el pos del formulario.
Para marcar el valor de los radio buttons al entrar en la pagina he utilizado ajax,ya que con php no lo conseguia por que si bien marcaba el valor adecuado(segun un valor de la base de datos) no me permitia cambiarlo, y con ajax si me permite tanto marcar la opccion correcta como interactuar con los radiobuttons sin problemas.

El problema viene cuando quiero hacer el pos del formulario sin cambiar el valor de los radiobuttons,es como si ajax fuese el dueño del pos de la pagina por decirlo de alguna manera, y le doy a guardar no hace nada.
Pero si cambio hago cambios y tambien cambio el valor de los radiobutton y le doy a guardar si que me guarda los valores.
Ha alguien le ha pasado algo así?

Saludos.
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
Imágen de perfil de xve
Val: 90
Oro
Ha mantenido su posición en AJAX (en relación al último mes)
Gráfica de AJAX

Conflicto entre PHP y Ajax al hacer Pos

Publicado por xve (222 intervenciones) el 06/10/2014 11:20:16
Hola Victor, la verdad es que es muy extraño esto que comentas, ya que si no hay un error, AJAX debería de funcionar tanto si has modificado como si no has modificado el formulario.

has revisado la consola del navegador? por si te da algún error?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

Conflicto entre PHP y Ajax al hacer Pos

Publicado por Victor (29 intervenciones) el 06/10/2014 11:32:08
Buenas xve.

Ajax funciona perfectamente lo que no va es el pos del formulario si no utilzo los radiobuttons(que controla ajax).
Lo he solucionado quitando ajax y haciendolo todo con php pero aun así me gustaría saber pork no me funcionaba por si se me da la misma situacion en el futuro(para tratar de aprender basicamente).

Saludos.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 90
Oro
Ha mantenido su posición en AJAX (en relación al último mes)
Gráfica de AJAX

Conflicto entre PHP y Ajax al hacer Pos

Publicado por xve (222 intervenciones) el 06/10/2014 17:23:13
Hola Victor cuando hablas de pos te refieres a enviar los datos por POST?

Nos puedes mostrar la parte del código del formulario y como capturas dichos datos?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

Conflicto entre PHP y Ajax al hacer Pos

Publicado por Victor (29 intervenciones) el 06/10/2014 18:02:42
Si,cuando digo pos me refiero al post del formulario.

Esta es la pagina,rearmada para que se vea el codigo que me daba problemas.
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Victor Bachiller
 * Date: 6/08/14
 * Time: 18:24
 * To change this template use File | Settings | File Templates.
 */
require_once("cuadricula.php");
require_once("includeBoxGestacion.php");
if($_GET["valor"]!=null)
{
    $valorEntrada= $_GET["valor"];
}
$valores=poblarBoxGestacion($valorEntrada);
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="estilos.css"/>
    <script type="text/javascript" src="js/cambiarPestanna.js"></script>
    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
    <title>Box Gestacion</title>
<script type="text/javascript">
 
    function irAFicha(id)
    {
        this.location.href="vistaInteriorAnimal.php?valor="+id;
    }
 
    function vaciarGestacion(id)
    {
        if(confirm("Esta seguro de que desea vaciar los controles"))
        {
            var controles= document.getElementById("controlesGestacion").getElementsByTagName("input");
            for(i=0;i<controles.length;i++)
            {
                controles[i].value="";
            }
            document.frmBoxGestacion.action="interiorBoxGestacion.php?accion=vaciarGestacion&id="+id+"&valor="+id;
            document.frmBoxGestacion.submit();
            document.reload();
        }
    }
 
 
    /*
    *
    * */
    function guardar(id)
    {
        alert("Dentro de guardar gestacion Box vale"+id);
            document.frmBoxGestacion.action="interiorBoxGestacion.php?accion=guardarGestacion&id="+id+"&valor="+id;
            document.frmBoxGestacion.submit();
            //alert("Se ha guardardo");
            document.reload();
    }
 
 
 
    var estadoActual=1234;
 
    function marcarEstadoInicial(estado)
    {
        estadoActual=estado;
        //alert("holaaaaaa");
        //alert("Estado inicial vale"+estadoActual);
        switch (estado)
        {
            case 1:
                document.frmBoxGestacion.estado[0].checked=true;
                document.frmBoxGestacion.estado[1].checked=false;
                document.frmBoxGestacion.estado[2].checked=false;
                break;
            case 0:
                document.frmBoxGestacion.estado[0].checked=false;
                document.frmBoxGestacion.estado[1].checked=true;
                document.frmBoxGestacion.estado[2].checked=false;
                break;
            case 2:
                document.frmBoxGestacion.estado[0].checked=false;
                document.frmBoxGestacion.estado[1].checked=false;
                document.frmBoxGestacion.estado[2].checked=true;
                break;
        }
 
        $.ajax({
 
            data:  {estadoEnviado: estadoActual},
 
            url:   'interiorBoxGestacion.php',
 
            type:  'post',
 
            /*beforeSend: function () {

                $("#resultado").html("Procesando, espere por favor...");

            },*/
 
            success:  function (response) {
 
                $("#resultado").html(response);
 
            }
 
        });
    }
 
    /*
    * Funciona para marcar el estado en que se encuentra madre actualmente.
    */
    function marcaEstado(estado)
    {
        estadoActual=estado;
        alert("Por que lo dice Kami"+estadoActual);
        $.ajax({
 
            data:  {estadoEnviado: estadoActual},
 
            url:   'interiorBoxGestacion.php',
 
            type:  'post',
 
            beforeSend: function () {
 
                $("#resultado").html("Procesando, espere por favor...");
 
            },
 
            success:  function (response) {
 
                $("#resultado").html(response);
 
            }
 
        });
    }
 
</script>
</head>
<body onload="javascript:marcarEstadoInicial(<?php echo $valores['boxes'][0]['estadoEmbarazo']?>);" style="align:center;">
<div class="contenedor">
    <div class="titulo">GestionaTuFinca.com</div>
    <div id="pestanas">
        <ul id=lista>
            <li id="pestana1"><a href='index.php' >Salas</a></li>
            <li id="pestana2"><a href='silosVistaSilos.php'>Silos</a></li>
            <li id="pestana3"><a href='Animales.php'>Animales</a></li>
        </ul>
    </div>
    <body>
    <div id="contenidopestanas">
        <div id="cpestana1">
            <fieldset>
                    <legend>BoxGestacion</legend>
                    <label>
                        <?php
                        echo "Box:".$valorEntrada;
                        $valores=poblarBoxGestacion($valorEntrada);
                        ?>
                    </label>
                <div id="controlesGestacion">
                    <form name="frmBoxGestacion" enctype="multipart/form-data" action="" method="post">
                    <table style="margin-top: 20px;border:black,10px;border-width: 2px;">
                        <tr>
                            <td style="text-align: left;">
                                <label>
                                    Crotal
                                </label>
                                <input name="crotal" value="<?php if($valores['boxes'][0]['crotal']==0 || $valores['boxes'][0]['crotal']==null){echo "";}
                                                                    else{echo $valores['boxes'][0]['crotal'];} ?>"
                                       style="width: 150px;text-align: left;margin-left: 80px;">
                            </td>
                            <td>
                                <label>
                                    Crotal Madre
                                </label>
                                <input name="crotalMadre" value="<?php echo $valores['boxes'][0]['crotalMadre']?>"
                                       style="width: 150px;text-align: left;margin-left: 12px;">
                                <?php
                                $Disabled= "";
                                if(isset($valores['boxes'][0]['crotalMadre']) &&
                                    ($valores['boxes'][0]['crotalMadre']!=0)&&
                                    (trim($valores['boxes'][0]['crotalMadre'])!=""))
                                    {
                                        $Disabled="Enabled";
 
                                    }else
                                    {
                                        $Disabled= "Disabled";
                                    }
                                ?>
                                <button <?php echo ($Disabled) ?> style="width: 20px;height: 20px;"
                                        onclick="javascript:irAFicha(<?php echo $valores['boxes'][0]['crotalMadre']?>)">
                                    <label>Ir</label>
                                </button>
                            </td>
                        </tr>
                        <tr style="margin-left: 0px;">
                            <td style="text-align: left;">
                                <label>
                                    Fecha de Entrada
                                </label>
                                <input type="date" name="fchEntrada" value="<?php echo $valores['boxes'][0]['fechaEntrada']?>" id="fechaEntrada"
                                       style="margin-left: 8px;width: 150px;">
 
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>
                                    Inseminacion
                                </label>
                                <input name="fchInse" value="<?php echo $valores['boxes'][0]['fechaInse1']?>"
                                       style="width: 150px; margin-left: 33px" type="date">
                            </td>
                            <td>
                                <label>
                                    Inseminacion 2
                                </label>
                                <input name="fchInse2" value="<?php echo $valores['boxes'][0]['fechaInse2']?>" style="width: 150px;" type="date">
                            </td>
                            <td>
                                <label>
                                    Inseminacion 3
                                </label>
                                <input name="fhcInse3" value="<?php echo $valores['boxes'][0]['fechaInse3']?>" style="width: 150px;" ty type="date">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>
                                    Fecha Recelo
                                </label>
                                <input name="fchRecelo" value="<?php echo $valores['boxes'][0]['fechaEntrada']?>" type="date"
                                       style="margin-left: 33px;width: 150px;">
                            </td>
                            <td>
                                <label>
                                    Recelo 2
                                </label>
                                <input name="fchRecelo2" value="<?php echo $valores['boxes'][0]['fechaEntrada']?>" type="date"
                                       style="margin-left: 42px;width: 150px;">
                            </td>
                            <td>
                                <label>
                                    Recelo 3
                                </label>
                                <input name="fchRecelo3" value="<?php echo $valores['boxes'][0]['fechaEntrada']?>" type="date"
                                       style="margin-left: 42px;width: 150px;">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div id="resultado" HIDDEN="hidden">
                                    <?php
                                    //Estado actual del embarazo.
                                    //$estadoEmbarazo =$valores['boxes'][0]['estadoEmbarazo'];
                                    $estadoEmbarazo =$_POST["estadoEnviado"];
                                    echo "ESTADO ACTUAL DEL EMBARAZO".$estadoEmbarazo;
                                    ?>
                                </div>
                                   <label style="margin-right: 35px;">
                                       Embarazada
                                    </label>
                                    <label>Si</label>
                                    <input  name="estado" type="radio" value="1" style="margin-right:15px;' title="Si" checked=''"" onclick="javascript:marcaEstado(1)">
                                   <label>No</label>
                                    <input  name="estado" type="radio" value="0" style="margin-right:15px;' title="No" checked=''"" onclick="javascript:marcaEstado(0)">
                                    <label>No lo se</label>
                                    <input  name="estado" type="radio" value="2" style="margin-right:15px;' title="No lo se" checked=''"" onclick="javascript:marcaEstado(2)">

                                <label>No</label>
                                <?php if($valores['boxes'][0]['estadoEmbarazo']==0)
                                            {echo "<input  name='estado'type='radio' value='0' style='margin-right:15px;' title='No' checked='checked='";}
                                    else{echo "<input  name='estado'type='radio' value='0' style='margin-right:15px;' title='No'";}?>
 
                                <label>No le se</label>
                                <?php if($valores['boxes'][0]['estadoEmbarazo']==2)
                                            {echo "<input  name='estado'type='radio' value='2' style='margin-right:15px;' title='No lo se' checked='checked='";}
                                    else{echo "<input  name='estado'type='radio' value='2' style='margin-right:15px;' title='No lo se'";}?>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
                <table style="padding-left: 350px;text-align: center;">
                    <tr>
                        <td>
                            <a href="javascript:guardar(<?php echo $valorEntrada?>)">
                                <input type="button" title="Guardar" value="Guardar">
                            </a>
                            <a href="VistaGestacion.php">
                                <input type="button" enable title="Volver" value="Volver">
                            </a>
                            <a href="javascript:vaciarGestacion(<?php echo $valorEntrada?>)">
                                <input type="button" title="Vaciar" value="Vaciar">
                            </a>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </div>
    </body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

Conflicto entre PHP y Ajax al hacer Pos

Publicado por Victor (29 intervenciones) el 07/10/2014 10:16:51
Perdon,se me olvidó quitar los radiobutton controlados por php.
Este seria el codigo que daba problemas:
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Victor Bachiller
 * Date: 6/08/14
 * Time: 18:24
 * To change this template use File | Settings | File Templates.
 */
require_once("cuadricula.php");
require_once("includeBoxGestacion.php");
if($_GET["valor"]!=null)
{
    $valorEntrada= $_GET["valor"];
}
$valores=poblarBoxGestacion($valorEntrada);
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="estilos.css"/>
    <script type="text/javascript" src="js/cambiarPestanna.js"></script>
    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
    <title>Box Gestacion</title>
<script type="text/javascript">
 
    function irAFicha(id)
    {
        this.location.href="vistaInteriorAnimal.php?valor="+id;
    }
 
    function vaciarGestacion(id)
    {
        if(confirm("Esta seguro de que desea vaciar los controles"))
        {
            var controles= document.getElementById("controlesGestacion").getElementsByTagName("input");
            for(i=0;i<controles.length;i++)
            {
                controles[i].value="";
            }
            document.frmBoxGestacion.action="interiorBoxGestacion.php?accion=vaciarGestacion&id="+id+"&valor="+id;
            document.frmBoxGestacion.submit();
            document.reload();
        }
    }
 
 
    /*
    *
    * */
    function guardar(id)
    {
        alert("Dentro de guardar gestacion Box vale"+id);
            document.frmBoxGestacion.action="interiorBoxGestacion.php?accion=guardarGestacion&id="+id+"&valor="+id;
            document.frmBoxGestacion.submit();
            //alert("Se ha guardardo");
            document.reload();
    }
 
 
 
    var estadoActual=1234;
 
    function marcarEstadoInicial(estado)
    {
        estadoActual=estado;
        //alert("holaaaaaa");
        //alert("Estado inicial vale"+estadoActual);
        switch (estado)
        {
            case 1:
                document.frmBoxGestacion.estado[0].checked=true;
                document.frmBoxGestacion.estado[1].checked=false;
                document.frmBoxGestacion.estado[2].checked=false;
                break;
            case 0:
                document.frmBoxGestacion.estado[0].checked=false;
                document.frmBoxGestacion.estado[1].checked=true;
                document.frmBoxGestacion.estado[2].checked=false;
                break;
            case 2:
                document.frmBoxGestacion.estado[0].checked=false;
                document.frmBoxGestacion.estado[1].checked=false;
                document.frmBoxGestacion.estado[2].checked=true;
                break;
        }
 
        $.ajax({
 
            data:  {estadoEnviado: estadoActual},
 
            url:   'interiorBoxGestacion.php',
 
            type:  'post',
 
            /*beforeSend: function () {

                $("#resultado").html("Procesando, espere por favor...");

            },*/
 
            success:  function (response) {
 
                $("#resultado").html(response);
 
            }
 
        });
    }
 
    /*
    * Funciona para marcar el estado en que se encuentra madre actualmente.
    */
    function marcaEstado(estado)
    {
        estadoActual=estado;
        alert("Por que lo dice Kami"+estadoActual);
        $.ajax({
 
            data:  {estadoEnviado: estadoActual},
 
            url:   'interiorBoxGestacion.php',
 
            type:  'post',
 
            beforeSend: function () {
 
                $("#resultado").html("Procesando, espere por favor...");
 
            },
 
            success:  function (response) {
 
                $("#resultado").html(response);
 
            }
 
        });
    }
 
</script>
</head>
<body onload="javascript:marcarEstadoInicial(<?php echo $valores['boxes'][0]['estadoEmbarazo']?>);" style="align:center;">
<div class="contenedor">
    <div class="titulo">GestionaTuFinca.com</div>
    <div id="pestanas">
        <ul id=lista>
            <li id="pestana1"><a href='index.php' >Salas</a></li>
            <li id="pestana2"><a href='silosVistaSilos.php'>Silos</a></li>
            <li id="pestana3"><a href='Animales.php'>Animales</a></li>
        </ul>
    </div>
    <body>
    <div id="contenidopestanas">
        <div id="cpestana1">
            <fieldset>
                    <legend>BoxGestacion</legend>
                    <label>
                        <?php
                        echo "Box:".$valorEntrada;
                        $valores=poblarBoxGestacion($valorEntrada);
                        ?>
                    </label>
                <div id="controlesGestacion">
                    <form name="frmBoxGestacion" enctype="multipart/form-data" action="" method="post">
                    <table style="margin-top: 20px;border:black,10px;border-width: 2px;">
                        <tr>
                            <td style="text-align: left;">
                                <label>
                                    Crotal
                                </label>
                                <input name="crotal" value="<?php if($valores['boxes'][0]['crotal']==0 || $valores['boxes'][0]['crotal']==null){echo "";}
                                                                    else{echo $valores['boxes'][0]['crotal'];} ?>"
                                       style="width: 150px;text-align: left;margin-left: 80px;">
                            </td>
                            <td>
                                <label>
                                    Crotal Madre
                                </label>
                                <input name="crotalMadre" value="<?php echo $valores['boxes'][0]['crotalMadre']?>"
                                       style="width: 150px;text-align: left;margin-left: 12px;">
                                <?php
                                $Disabled= "";
                                if(isset($valores['boxes'][0]['crotalMadre']) &&
                                    ($valores['boxes'][0]['crotalMadre']!=0)&&
                                    (trim($valores['boxes'][0]['crotalMadre'])!=""))
                                    {
                                        $Disabled="Enabled";
 
                                    }else
                                    {
                                        $Disabled= "Disabled";
                                    }
                                ?>
                                <button <?php echo ($Disabled) ?> style="width: 20px;height: 20px;"
                                        onclick="javascript:irAFicha(<?php echo $valores['boxes'][0]['crotalMadre']?>)">
                                    <label>Ir</label>
                                </button>
                            </td>
                        </tr>
                        <tr style="margin-left: 0px;">
                            <td style="text-align: left;">
                                <label>
                                    Fecha de Entrada
                                </label>
                                <input type="date" name="fchEntrada" value="<?php echo $valores['boxes'][0]['fechaEntrada']?>" id="fechaEntrada"
                                       style="margin-left: 8px;width: 150px;">
 
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>
                                    Inseminacion
                                </label>
                                <input name="fchInse" value="<?php echo $valores['boxes'][0]['fechaInse1']?>"
                                       style="width: 150px; margin-left: 33px" type="date">
                            </td>
                            <td>
                                <label>
                                    Inseminacion 2
                                </label>
                                <input name="fchInse2" value="<?php echo $valores['boxes'][0]['fechaInse2']?>" style="width: 150px;" type="date">
                            </td>
                            <td>
                                <label>
                                    Inseminacion 3
                                </label>
                                <input name="fhcInse3" value="<?php echo $valores['boxes'][0]['fechaInse3']?>" style="width: 150px;" ty type="date">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>
                                    Fecha Recelo
                                </label>
                                <input name="fchRecelo" value="<?php echo $valores['boxes'][0]['fechaEntrada']?>" type="date"
                                       style="margin-left: 33px;width: 150px;">
                            </td>
                            <td>
                                <label>
                                    Recelo 2
                                </label>
                                <input name="fchRecelo2" value="<?php echo $valores['boxes'][0]['fechaEntrada']?>" type="date"
                                       style="margin-left: 42px;width: 150px;">
                            </td>
                            <td>
                                <label>
                                    Recelo 3
                                </label>
                                <input name="fchRecelo3" value="<?php echo $valores['boxes'][0]['fechaEntrada']?>" type="date"
                                       style="margin-left: 42px;width: 150px;">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div id="resultado" HIDDEN="hidden">
                                    <?php
                                    //Estado actual del embarazo.
                                    //$estadoEmbarazo =$valores['boxes'][0]['estadoEmbarazo'];
                                    $estadoEmbarazo =$_POST["estadoEnviado"];
                                    echo "ESTADO ACTUAL DEL EMBARAZO".$estadoEmbarazo;
                                    ?>
                                </div>
                                   <label style="margin-right: 35px;">
                                       Embarazada
                                    </label>
                                    <label>Si</label>
                                    <input  name="estado" type="radio" value="1" style="margin-right:15px;' title="Si" checked=''"" onclick="javascript:marcaEstado(1)">
                                   <label>No</label>
                                    <input  name="estado" type="radio" value="0" style="margin-right:15px;' title="No" checked=''"" onclick="javascript:marcaEstado(0)">
                                    <label>No lo se</label>
                                    <input  name="estado" type="radio" value="2" style="margin-right:15px;' title="No lo se" checked=''"" onclick="javascript:marcaEstado(2)">
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
                <table style="padding-left: 350px;text-align: center;">
                    <tr>
                        <td>
                            <a href="javascript:guardar(<?php echo $valorEntrada?>)">
                                <input type="button" title="Guardar" value="Guardar">
                            </a>
                            <a href="VistaGestacion.php">
                                <input type="button" enable title="Volver" value="Volver">
                            </a>
                            <a href="javascript:vaciarGestacion(<?php echo $valorEntrada?>)">
                                <input type="button" title="Vaciar" value="Vaciar">
                            </a>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </div>
    </body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar