%@ $Language=JScript /* PARA COLORES PHP */ %><% include("../includes/DB_Conectar.php"); /*toma la seguridad de la página admEncEncuestas*/ $admABMLink_manual="admEncEncuestas.php"; include("../includes/funciones.php"); include("../includes/inc_encuestas_adm.php"); //aca proceso las posibilidades if($_GET["ds"]==1) { $msje=$I_datasaved; } if($id==-1 && $accion=="Guardar") { encNuevaRespuesta($_POST["pregunta"],addslashes($_POST["spTitulo"]),$_POST["tipo"]); // Hacemos un query para obtener el id y mostrar los datos como para agregar respuestas. header("Location: admEncPreguntasEdit.php?e=".$_GET["e"]."&p=".$_GET["p"]."&ds=1"); exit(); } if($id!=-1 && $accion=="Actualizar") { //actualizo encModificarRespuesta($id,$_POST["pregunta"],addslashes($_POST["spTitulo"]),$_POST["tipo"]); header("Location: admEncPreguntasEdit.php?e=".$_GET["e"]."&p=".$_GET["p"]."&ds=1"); exit(); } if($id!=-1 && $accion=="Borrar") { //borro encBorrarRespuesta($id); header("Location: admEncPreguntasEdit.php?e=".$_GET["e"]."&p=".$_GET["p"]); exit(); } %>