<%@ $Language=JScript /* PARA COLORES PHP */ %><% include("../includes/DB_Conectar.php"); include("../includes/inc_auth.php"); include("../includes/funciones.php"); if(isset($borratodo)){ foreach($_POST as $key => $value ) { //echo "$key:$value
"; if(substr($key,0,4)=='chk_') { $squpdate = "delete from forForo where forID = '$value'"; $qrupdate = $conn->execute($squpdate); $squpdate = "delete from forTema where forID = '$value'"; $qrupdate = $conn->execute($squpdate); } } } %> <%=$I_administration%> <%include("menu.php");%>

<%=getPageTitle($PHP_SELF);%>

  <% /*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 forForo order by forTipo,forFechaAlta desc limit $curr,$disprows"; $rs = $conn->execute($sql); if (!isset($max) || trim($max)=="") { $sqlaux = "select count(*) as CANT from forForo"; $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) { $forID = $rs->field("forID"); $forNombre = $rs->field("forNombre"); $forTipo = $rs->field("forTipo"); if($rs->field("forActivo")=="S"){$forActivo=$I_yes;} else{$forActivo=$I_no;} %> > <% if($color=="#eeefff"){$color="#dcdcee";$image="icon_editar2.gif";} else if($color=="#dcdcee"){$color="#eeefff";$image="icon_editar.gif";} $rs->movenext(); $i++; } %> >
 
<%=$I_forumtopic%> <%=$I_type%> <%=$I_active%>
<%=$I_edit%>
<%=checkVar($forNombre);%> <%=checkVar($forTipo);%> <%=checkVar($forActivo);%>

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