<%@ $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_') { $qrtab = $conn->execute("select tabID from Tablas where tabNombre ='Banners' "); $tabID = $qrtab->field(tabID); $qrdel = $conn->execute("delete from ADVF_Vinculante where fgnID = '$value' and tabID = '$tabID'"); $sqdele = "delete from Banners where banID = '$value'"; $qrdele = $conn->execute($sqdele); } } } %> <%=$I_administration%> <%include("menu.php");%>

<%=$I_bannerslist%>

  <% /*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 Banners order by banDescripcion limit $curr,$disprows"; $rs = $conn->execute($sql); if (!isset($max) || trim($max)=="") { $sqlaux = "select count(*) as CANT from Banners"; $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) { $banID = $rs->field("banID"); $banDescripcion = $rs->field("banDescripcion"); $banUrl = $rs->field("banUrl"); if($rs->field("banPublic")=="S"){$banPublic="SI";} else{$banPublic=$I_no;} if($rs->field("banActivo")=="S"){$banActivo="SI";} else{$banActivo=$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_description%> URL Pop Up <%=$I_active%>
<%=$I_edit%>
<%=checkVar($banDescripcion);%> <%=checkVar($banUrl);%> <%=checkVar($banPublic);%> <%=checkVar($banActivo);%>

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