<% dim rsL,LMThis Dim Page_MaxID,Page_IDs filename="list.html?id=" & id & "&" Page_MaxID=0 Page_IDs="" Function Func_Title() Dim sql,ICWordsStr id=request("id") If Not IsNumeric(id) Or id="" Then response.write "" response.end End If ClassName=GetTxtLM(id) LMThis=Getyktbx(id) if request("page")<>"" And IsNumeric(request("page")) then currentPage=cint(request("page")) else currentPage=1 end If if currentpage<1 Then currentpage=1 sql="select * from page_id_pdf where xgid="&id & " and page=0" set rs=server.CreateObject("adodb.recordset") rs.open sql,conn2,1,1 If Not rs.eof then totalPut=rs("pdfid") Else rs.close Set rs=Nothing sql="select count(0) from pdf_info p,pdf_file f where p.pdfid=f.id and p.xgid"&JBNum&"="&id&" and f.filesize is not null" sql="select count(0) from pdf_info where xgid"&JBNum&"="&id & " and pdfid is not null" set rs=server.CreateObject("adodb.recordset") rs.open sql,conn2,1,1 totalPut=rs(0) End if rs.close Set rs=Nothing sql="select * from page_id_pdf where xgid="&id & " and page=" & currentPage set rs=server.CreateObject("adodb.recordset") rs.open sql,conn2,1,1 If Not rs.eof then Page_MaxID=rs("pdfid") Page_IDs=rs("ids") sql="select id,icname,ic1,ic2,pdfid from pdf_info where id in (" & Page_IDs & ")" Else If currentpage>1 Then sql="select top "&listnum&" id,icname,ic1,ic2,pdfid from pdf_info where xgid"&JBNum&"="&id&" and id <(select top 1 id from(select top "&listnum*(currentpage-1)&" id from pdf_info where xgid"&JBNum&"="&id&" and pdfid is not null order by id desc) as A order by id) and pdfid is not null order by id desc" Else sql="select top "&listnum&" id,icname,ic1,ic2,pdfid from pdf_info where xgid"&JBNum&"="&id&" and pdfid is not null order by id desc" End If End if rs.close Set rs=Nothing ' If currentpage>1 Then ' sql="select top "&listnum&" p.id,p.icname,p.ic1,p.ic2,f.filepage,f.filesize from pdf_info p,pdf_file f where p.pdfid=f.id and p.xgid"&JBNum&"="&id&" and f.filesize is not null and p.id <(select top 1 p.id from(select top "&listnum*(currentpage-1)&" p.id from pdf_info p,pdf_file f where p.pdfid=f.id and p.xgid"&JBNum&"="&id&" and f.filesize is not null order by p.id desc) as A order by id) order by p.id desc" ' Else ' sql="select top "&listnum&" p.id,p.icname,p.ic1,p.ic2,f.filepage,f.filesize from pdf_info p,pdf_file f where p.pdfid=f.id and p.xgid"&JBNum&"="&id&" and f.filesize is not null order by p.id desc" ' End If set rsL=server.CreateObject("adodb.recordset") rsL.open sql,conn2,1,1 If Not rsL.eof then ICWordsStr=Trim(rsL("icname")) rsL.movenext If Not rsL.eof then If Trim(rsL("icname"))<>ICWordsStr Then ICWordsStr=ICWordsStr & " " & Trim(rsL("icname")) rsL.moveprevious End if ICWordsStr=Replace(ICWordsStr,Chr(13),"") ICWordsStr=Trim(Replace(ICWordsStr,Chr(10),""))&" " End If Func_Title="" & ICWordsStr & ClassName & "PDF资料,datasheet技术资料,下载"&ClassName&"PDF资料,雷动天科技!"&vbCrLf&""&vbCrLf & ""&vbCrLf&"" End Function %>
您所在的位置: 首页 > PDF资料<%=LMThis%>
<%showaction()%>
热门型号: <% Dim PDF_Hot_List,MxinID_PDF_Hot_List If CHK_Application("PDF_Hot_List") Then set rs=server.CreateObject("adodb.recordset") sql="select top 1 id from stock where id in (select top 300 id from stock where isys=1 order by id desc) order by id" rs.open sql,conn2,1,1 MxinID_PDF_Hot_List=rs(0) rs.close set rs=Nothing set rs=server.CreateObject("adodb.recordset") sql="select top 40 ic1 from stock where isys=1 and gic1=1 and id in (select top 200 id from stock where isys=1 and gic1=1 and id<" & MxinID_PDF_Hot_List & " order by id desc) order by newid()" rs.open sql,conn2,1,1 do while not rs.eof PDF_Hot_List=PDF_Hot_List&""&Trim(rs(0))&" " rs.movenext loop rs.close set rs=nothing Call SET_Application("PDF_Hot_List",PDF_Hot_List) End If response.write(Application("PDF_Hot_List")) %>
<% function showaction() if rsL.eof and rsL.bof Then response.write("
·目前还没有内容!
") else if (currentpage-1)*listnum>totalput then if (totalPut mod listnum)=0 then currentpage=totalPut \ listnum else currentpage=totalPut \ listnum + 1 end if end if showContent() showpage totalput,listnum,filename end if rsL.close Set rsL=nothing end Function function showpage(totalnumber,listnum,filename) dim n if totalnumber mod listnum=0 then n=totalnumber \ listnum else n=totalnumber \ listnum + 1 end if response.write "
" response.write "共 "&n&" 页 | 第 "&CurrentPage&" 页 |  " if CurrentPage<2 then response.write "首页 上一页 " else response.write "首页 " response.write "上一页 " end if if n-currentpage<1 then response.write "下一页 尾页" else response.write "下一页 " response.write "尾页
" end if ' response.write "共 "&totalPut&" | "&n&" 页 | 第 "&CurrentPage&" 页 |  " ' ' if CurrentPage<2 then ' response.write "首页 上一页 " ' else ' response.write "首页 " ' response.write "上一页 " ' end if ' if n-currentpage<1 then ' response.write "下一页 尾页" ' else ' response.write "下一页 " ' response.write "尾页" ' end if ' response.write " 转到:" ' response.write "" end Function function showContent() dim classi,t,filepage,filesize,rsF for t=1 to listnum if rsL.eof then exit for if t mod 2=1 then classi=1 else classi=2 end if %> <%rsL.movenext next end Function Function Getyktbx(id) Dim rs,yktbxShow set rs=server.CreateObject("adodb.recordset") sql="select ic1,xgid from pdf_class where id="&id rs.open sql,conn2,1,1 If rs.eof then rs.close set rs=Nothing response.write "" response.end End If yktbxShow=" > "&rs(0)&"" JBNum=1 If rs(1)>0 Then yktbxShow=Getyktbx(rs(1)) & yktbxShow JBNum=2 End if rs.close set rs=Nothing Getyktbx=yktbxShow End Function Function GetTxtLM(id) Dim rs set rs=server.CreateObject("adodb.recordset") sql="select ic1 from pdf_class where id="&id rs.open sql,conn2,1,1 GetTxtLM=rs(0) rs.close set rs=Nothing End Function %>