%
Response.CacheConTRol = "no-cache"
Response.AddHeader "pragma","no-cache"
response.expires=0
if session("id")<>"" then
if session("td")<>"" or session("td")="" or isnull(session("td")) then
if session("td")="" or isnull(session("td")) then
session("td")="2010.01.01"
end if
if datediff("d",replace(session("td"),".","-"),left(now(),10))>0 then
%>
<%
else
if request("page")="" then
page=1
else
page=request("page")
end if
set db=server.createobject("adodb.connection")
db.open "provider=SQLOLEDB;Data Source=211.202.2.172; Initial Catalog=swmake; User Id=swmake; Password=pass5303@;'"
if session("id")="admin" then
sql="select * from repair order by ref desc,re_step asc"
else if session("id")<>"" and session("id")<>"admin" then
sql="select * from repair where id='"&session("id")&"' order by ref desc,re_step asc"
end if
end if
set rs=server.createobject("adodb.recordset")
rs.pagesize=20
rs.open sql,db,1
intBlockPage=20
%>