if ($rs == null) { $mensaje[0] = "no_preguntas"; die(json_encode($mensaje)); } else { if ($rs == "error") { $mensaje[0] = "error_bd"; die(json_encode($mensaje)); } else { //TITULO DE LA PAGINA $titulo_eva = "<legend><h1 class='titulo_eva'>" . $rs[0][0] . ": " . $rs[0][1] . "</h1></legend>"; //INICIO DE CUERPO PREGUNTAS $cuerpo_preguntas = "<div id='cuerpo_preguntas'>"; //TITULO DE LA PREGUNTA $titulo_pregunta = "<div id='titulo_pregunta' class='alert alert-info'>" . $rs[0][2] . "</div>"; //PARA CONSULTAR SI LAS OPCIONES DE REPSUESTA YA ESTAN CHEQUEADAS... $rs2 = $obj_evaluacion->consultar_evaluacion_cargada($id_unidad, $id_evaluacion); //fecha cierre $fecha_cierre = $rs[0][14]; //fecha actual $fecha_actual = date("Y-m-d"); //si la fecha actual es mayor a la fecha de la prueba debe bloquearse los radio if ($fecha_actual > $fecha_cierre) { $a = "disabled='disabled'"; $b = "si"; } else { $a = ''; $b = "no"; } //validando rs2 if ($rs2 == "error") { $mensaje[0] = "error_consulta";