Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/01/2010, 06:58
bewmaster
 
Fecha de Ingreso: diciembre-2009
Mensajes: 85
Antigüedad: 14 años, 8 meses
Puntos: 0
ayuda con paginación parte 2

este es el resto de mi codigo
*********************

' reset the cursor to the beginning
If (MM_rs.CursorType > 0) Then
MM_rs.MoveFirst
Else
MM_rs.Requery
End If

' move the cursor to the selected record
i = 0
While (Not MM_rs.EOF And i < MM_offset)
MM_rs.MoveNext
i = i + 1
Wend
End If
%>
<%
' *** Move To Record: update recordset stats

' set the first and last displayed record
rsLink_first = MM_offset + 1
rsLink_last = MM_offset + MM_size
If (MM_rsCount <> -1) Then
If (rsLink_first > MM_rsCount) Then rsLink_first = MM_rsCount
If (rsLink_last > MM_rsCount) Then rsLink_last = MM_rsCount
End If

' set the boolean used by hide region to check if we are on the last record
MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_kee pNone=""

' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next

' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and previous links

MM_keepMove = MM_keepBoth
MM_moveParam = "index"

' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 0) Then
MM_moveParam = "offset"
If (MM_keepMove <> "") Then
params = Split(MM_keepMove, "&")
MM_keepMove = ""
For i = 0 To UBound(params)
nextItem = Left(params(i), InStr(params(i),"=") - 1)
If (StrComp(nextItem,MM_moveParam,1) <> 0) Then
MM_keepMove = MM_keepMove & "&" & params(i)
End If
Next
If (MM_keepMove <> "") Then
MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
End If
End If
End If

' set the strings for the move to links
If (MM_keepMove <> "") Then MM_keepMove = MM_keepMove & "&"
urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="
MM_moveFirst = urlStr & "0"
MM_moveLast = urlStr & "-1"
MM_moveNext = urlStr & Cstr(MM_offset + MM_size)
prev = MM_offset - MM_size
If (prev < 0) Then prev = 0
MM_movePrev = urlStr & Cstr(prev)
%>
<div style="height: 20px;"></div>
<%
While ((Repeat2__numRows <> 0) AND (NOT rsLink.EOF))
%>
<%
Dim strLinknum, strDescrip
strLinknum = rsLink("LINK_ID")
strDescrip = rsLink("LINK_DESC")
%>
<div class="dv6">
<div class="votcont"><div style="padding-top: 20px; text-align: center;"><span class="voteres" id="vot<%=(rsLink.Fields.Item("LINK_ID").Value)%>" ><%=(rsLink.Fields.Item("NO_RATES").Value)%></span></div><div class="votbot"><span class="cyel" id="tv<%=(rsLink.Fields.Item("LINK_ID").Value)%>"> <%=FormatNumber((rsLink.Fields.Item("RATING").Valu e), 1, -2, -2, -2) %></span></div></div>
<div class="divlinkname">
<h3><a class="artitle2" title="Visit (<%= (rsLink.Fields.Item("LINK_NAME").Value) %>) link added on (<%=(rsLink.Fields.Item("LINK_DATE").Value)%>)" href="<%=(rsLink.Fields.Item("LINK_URL").Value)%>" target="_blank"><%= (rsLink.Fields.Item("LINK_NAME").Value) %></a></h3></div>
<div class="divsum">


<% Response.Write Left(strDescrip, 250)%>
</div>

<td width="25%" height="115" style="border-style:none; border-width:medium; text-align:center;<font face="Arial" size="2"> <img class=bordeFOT height=110 hspace=10 src="../../dibujos/<%=rs("foto")%>" width=110 align=right vspace=5 border=0></td>



<div class="divopt2">
<span class="conlink6">Rating:<span id="star<%=(rsLink.Fields.Item("LINK_ID").Value)%> "><img src="starimages/<%=FormatNumber((rsLink.Fields.Item("RATING").Valu e), 1, -2, -2, -2) %>.gif" weight="57" height="12" style="vertical-align: middle; border: 0;" alt="<%=(rsLink.Fields.Item("LINK_NAME").Value)%> Link has been Rated <%= FormatNumber((rsLink.Fields.Item("RATING").Value), 1, -2, -2, -2) %> stars"></span></span>
</span><br>
<%
If Request.Cookies("RateSong")("Song" & strLinknum) = "True" Then
%>
<%else%>
<div id="dv<%=(rsLink.Fields.Item("LINK_ID").Value)%>" >
&nbsp;<b><span id="ra<%=(rsLink.Fields.Item("LINK_ID").Value)%>" class="cgr">Vota esta foto</span></b>
<ul class="srating">
<li><a href="javascript:void(0)" onmouseover="document.getElementById('ra<%=(rsLink .Fields.Item("LINK_ID").Value)%>').innerHTML='Poor - 1 estrella'" onmouseout="document.getElementById('ra<%=(rsLink. Fields.Item("LINK_ID").Value)%>').innerHTML='Vote this link'" title="Poor - 1 estrella" class="onestar" onclick="sndRating('<%=(rsLink.Fields.Item("LINK_I D").Value)%>','1');return false">1</a></li>
<li><a href="javascript:void(0)" onmouseover="document.getElementById('ra<%=(rsLink .Fields.Item("LINK_ID").Value)%>').innerHTML='Fair - 2 estrellas'" onmouseout="document.getElementById('ra<%=(rsLink. Fields.Item("LINK_ID").Value)%>').innerHTML='Vote this link'" title="Fair - 2 estrella" class="twostars" onclick="sndRating('<%=(rsLink.Fields.Item("LINK_I D").Value)%>','2');return false">2</a></li>
<li><a href="javascript:void(0)" onmouseover="document.getElementById('ra<%=(rsLink .Fields.Item("LINK_ID").Value)%>').innerHTML='Inte resting - 3 estrellas'" onmouseout="document.getElementById('ra<%=(rsLink. Fields.Item("LINK_ID").Value)%>').innerHTML='Vote this link'" title="Interesting - 3 estrella" class="threestars" onclick="sndRating('<%=(rsLink.Fields.Item("LINK_I D").Value)%>','3');return false">3</a></li>
<li><a href="javascript:void(0)" onmouseover="document.getElementById('ra<%=(rsLink .Fields.Item("LINK_ID").Value)%>').innerHTML='Good - 4 estrellas'" onmouseout="document.getElementById('ra<%=(rsLink. Fields.Item("LINK_ID").Value)%>').innerHTML='Vote this link'" title="Good - 4 estrella" class="fourstars" onclick="sndRating('<%=(rsLink.Fields.Item("LINK_I D").Value)%>','4');return false">4</a></li>
<li><a href="javascript:void(0)" onmouseover="document.getElementById('ra<%=(rsLink .Fields.Item("LINK_ID").Value)%>').innerHTML='Exce llent - 5 estrellas'" onmouseout="document.getElementById('ra<%=(rsLink. Fields.Item("LINK_ID").Value)%>').innerHTML='Vote this link'" title="Excellent - 5 estrella" class="fivestars" onclick="sndRating('<%=(rsLink.Fields.Item("LINK_I D").Value)%>','5');return false">5</a></li>
</ul>

</div>
<%End if%>
</div>
<br>
</div>
<%
Repeat2__index=Repeat2__index+1
Repeat2__numRows=Repeat2__numRows-1
rsLink.MoveNext()
Wend
%>
<br>
</div>
<br>
<br>
<br>
<br>
<%
rsLink.Close()
Set rsLink = Nothing
%>
<p style="text-align: center;"><span class="content2"><a href="http://www.ex-designz.net/directory/default.asp">Live</a></span></p>
<br>
<p style="text-align: center;"><span class="content2"><a href="http://www.banvalor.ws">link</a></span></p>




*******espero me puedan echar una mano
*******gracias