<%@ $Language=JScript /* PARA COLORES PHP */ %><% include("../includes/DB_Conectar.php"); //include("../includes/inc_auth.php"); include("../includes/funciones.php"); include("../includes/inc_encuestas_adm.php"); if(isset($borratodo)){ foreach($_POST as $key => $value ) { //echo "$key:$value
"; if(substr($key,0,4)=='chk_') { encBorrarEncuesta($value); } } } %> <%=$I_administration%> <%include("menu.php");%>

<%=$I_menuadmin_surveys_list;%>

  <% /*Paginado*/ $disprows=10;//ver si sale de un parametro general if (!isset($go) || trim($go)=="") { $go=0; } $curr=$go; $prev=$go - $disprows; $next=$go + $disprows; $sql = "select * from encEncuestas,encSecciones where encEncuestas.secID = encSecciones.secID order by encID limit $curr,$disprows"; $rs = $conn->execute($sql); if (!isset($max) || trim($max)=="") { $sqlaux = "select count(*) as CANT from encEncuestas"; $rsaux = $conn->execute($sqlaux); $max=$rsaux->field("CANT"); } $numpage=ceil($max/$disprows); if(!isset($currpage) || trim($currpage)=="") { $currpage=1; } %>
<% $color="#eeefff"; $image="icon_editar.gif"; $i=0; while(!$rs->eof) { $encID = $rs->field("encID"); $encNombre = $rs->field("encNombre"); $seccion = $rs->field("secNombre"); $publica = $rs->field("encPublica"); $activa = $rs->field("encActiva"); $cantvotos = $rs->field("encCantVotos"); %> > <% if($color=="#eeefff"){$color="#dcdcee";$image="icon_editar2.gif";} else if($color=="#dcdcee"){$color="#eeefff";$image="icon_editar.gif";} $rs->movenext(); $i++; } %> >
 
<%=$I_title%> <%=$I_topic;%> <%=$I_active;%> <%=$I_public;%> <%=$I_votes;%> <%=$I_results;%>
Edit
<%=$encNombre;%> <%=$seccion;%> <%=($activa=='S'?$I_yes:$I_no);%> <%=($publica=='S'?$I_yes:$I_no);%> <%=$cantvotos;%>
<%=$I_results;%>

 Page <%=$currpage%> of <%=$numpage%>     (Total <%=$max%>)<%if($ayudaID!=0){echo "    \"Help\"";}%>
<%if($prev>=0){%><%}else{%> <%}%> <%if($currpage<$numpage){%><%}else{%> <%}%>