<%@ $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(); } %> <%=$I_administration%> <%include("menu.php");%>
<%if($msje!=""){%> <%}%>
<% $e = encObtenerEncuesta($_GET["e"]); $p = encObtenerPregunta($_GET["p"]); %>

<%="$I_editanswer $I_from $I_question ".$p["Pregunta"]."";//$I_singlepageedition%>

<%=$msje%>
  <% $id = $_GET["r"]; if($id) { //aca buscas $r = encObtenerRespuesta($id); } %>
&p=<%=$_GET["p"];%>" onsubmit="return copia();" > "> ">
 
<%=$I_answer;%>
 
<%=$I_active;%>



<%if($id!=-1){ %> <%}else{ %> <%}%>