<%=ucase(Mid(FormatDateTime(Date,1),1,1))&Replace(Mid(FormatDateTime(Date,1),2,Len(FormatDateTime(Date,1))),"_"," ")%>                    
   
 
 
   
 
<%'................................................................................................%> <% set con=server.createobject("adodb.connection") con.open "driver={Microsoft Access Driver (*.mdb)};DBQ=D:\xvrt\urbegi.com\data\links.mdb " idc=Trim(Request.QueryString("idc")) nc=Trim(Request.QueryString("nc")) Set rs=Server.CreateObject("adodb.recordset") sql="select distinct c.id, c.cat, c.descrip_c from categoria c inner join links l on c.id=l.idcat order by c.cat" rs.open sql,con,3,3,&H0001 if not rs.eof then %>
 
 
Categorias de Links de interés ...ID
 
 
<% i=1 if (cint(rs.RecordCount mod 2 )=0) or (rs.Recordcount<=3) then mitad=CInt(rs.RecordCount/2) else mitad=CInt(rs.RecordCount/2)+(rs.RecordCount mod 2 ) end if while not rs.eof and (i<=mitad) %> <%if (rs("descrip_c")<>"") then%> <% end if rs.Movenext i=i+1 wend %>
&nc=<%=rs("cat")%>" class="txtcapas"><%=rs("cat")%> <% Set rspt=Server.CreateObject("adodb.recordset") sqlpt="select id from links where idcat="&rs("id") rspt.open sqlpt,con,3,3,&H0001 if (rspt.Recordcount>0) then %> ( <%=rspt.Recordcount%> ) <% else %> ( 0 ) <% end if rspt.close set rspt=nothing %>
  <%=rs("descrip_c")%>
<% while not rs.eof %> <%if (rs("descrip_c")<>"") then%> <% end if rs.Movenext wend %>
&nc=<%=rs("cat")%>" class="txtcapas"><%=rs("cat")%> <% Set rspt=Server.CreateObject("adodb.recordset") sqlpt="select id from links where idcat="&rs("id") rspt.open sqlpt,con,3,3,&H0001 if (rspt.Recordcount>0) then %> ( <%=rspt.Recordcount%> ) <% else %> ( 0 ) <% end if rspt.close set rspt=nothing %>
  <%=rs("descrip_c")%>
<% if (idc<>"") and (isNumeric(idc)) and (nc<>"") then %>
 

<% Set rsp=Server.CreateObject("adodb.recordset") sqlp="select id, nom, url, descripcion from links where idcat="&idc rsp.open sqlp,con,3,3,&H0001 if not rsp.eof then %> <% else %> <% end if rsp.close set rsp=nothing %>
Categoria : <%=nc%>

<%while not rsp.eof%> <%if (rsp("descripcion")<>"") then%> <% end if rsp.Movenext wend %>
" class="txtcapas" target="_blank"><%=rsp("nom")%> <%if (rsp("descripcion")<>"") then%> : <%=rsp("descripcion")%> <%end if%>
ACTUALIZANDO CONTENIDOS ...

<% end if else %>
ACTUALIZANDO CONTENIDOS ...
<% end if rs.close set rs=nothing con.close set con=nothing %> <%'..................................................................................................%>
 
www.urbegi.com    C/ Polígono Industrial el Páramo, Pabellon B-7   48800  Balmaseda- Bizkaia  Tel.94 680 19 34   e-mail: urbegi@urbegi.com