永发信息网

怎么样让图片没有权限显示设置

答案:2  悬赏:80  手机版
解决时间 2021-04-12 05:35

function WebContent(DataFrom,ID,SortPath)
dim rs,sql
dim HideSort
set rs = server.createobject("adodb.recordset")
if ID="" then
SortPath="0,"
elseif not IsNumeric(ID) then
response.write "<center>暂无相关信息</center>"
exit function
elseif conn.execute("select * from "&DataFrom&" Where ViewFlag and ID="&ID).eof then
response.write "<center>暂无相关信息</center>"
exit function
else
SortPath=conn.execute("select * from "&DataFrom&" Where ViewFlag and ID="&ID)("SortPath")
conn.execute("update "&DataFrom&" set ClickNumber=ClickNumber+1 Where ID="&ID)
end if
sql="select * from "&DataFrom&" Where not(ViewFlag) and Instr(SortPath,'"&SortPath&"')>0"
rs.open sql,conn,1,1
while not rs.eof
HideSort="and not(Instr(SortPath,'"&rs("SortPath")&"')>0) "&HideSort
rs.movenext
wend
rs.close
dim idCount
dim pages
pages=ProInfo
dim pagec
dim page
page=clng(request("Page"))
dim pagenc
pagenc=3
dim pagenmax
dim pagenmin
dim pageprevious
dim pagenext
datafrom="ew80_Products"
dim datawhere
datawhere="where ViewFlag and Instr(SortPath,'"&SortPath&"')>0 "&HideSort& " "
dim sqlid
dim Myself,PATH_INFO,QUERY_STRING
PATH_INFO = request.servervariables("PATH_INFO")
QUERY_STRING = request.ServerVariables("QUERY_STRING")'
if QUERY_STRING = "" then
Myself = PATH_INFO & "?"
elseif Instr(PATH_INFO & "?" & QUERY_STRING,"Page=")=0 then
Myself= PATH_INFO & "?" & QUERY_STRING & "&"
else
Myself = Left(PATH_INFO & "?" & QUERY_STRING,Instr(PATH_INFO & "?" & QUERY_STRING,"Page=")-1)
end if
dim taxis
taxis="order by ProductNo "
dim i
sql="select count(ID) as idCount from ["& datafrom &"]" & datawhere
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,0,1
idCount=rs("idCount")
if(idcount>0) then
if(idcount mod pages=0)then
pagec=int(idcount/pages)
else
pagec=int(idcount/pages)+1
end if
sql="select id from ["& datafrom &"] " & datawhere & taxis
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
rs.pagesize = pages
if page < 1 then page = 1
if page > pagec then page = pagec
if pagec > 0 then rs.absolutepage = page
for i=1 to rs.pagesize
if rs.eof then exit for
if(i=1)then
sqlid=rs("id")
else
sqlid=sqlid &","&rs("id")
end if
rs.movenext
next
end if
if(idcount>0 and sqlid<>"") then
sql="select * from ["& datafrom &"] where id in("& sqlid &") order by ProductNo "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,0,1
dim tr,td
dim ProductName,SmallPicPath,Content
Response.Write "<table border=""0"" cellpadding=""0"" cellspacing=""0"">"&VbCrLf
for tr=1 to 8
Response.Write " <tr>"&VbCrLf
for td=1 to 2
if StrLen(rs("ProductName"))<=18 then
ProductName=rs("ProductName")
else
ProductName=StrLeft(rs("ProductName"),16)
end If
If ISHTML = 1 Then
AutoLink = ""&ProName&""&Separated&""&rs("ID")&"."&HTMLName&""
Else
AutoLink = "ProductView.asp?ID="&rs("ID")&""
End If
SmallPicPath=HtmlSmallPic(rs("GroupID"),rs("SmallPic"),rs("Exclusive"))
Response.Write " <td width=""25""></td>"&VbCrLf
Response.Write " <td ><table cellpadding=""2"" cellspacing=""0"" >"&VbCrLf
Response.Write " <tr>"&VbCrLf
Response.Write " <td bgcolor=""#ffffff"" border: 1px solid #ccc; width:350px; height:250px; text-align:center;""><a href="""&AutoLink&""" title="""&rs("ProductName")&"""><img src="""&SmallPicPath&""" onload=""javascript:DrawImage(this,350,250);"" "&rs("ProductName")&""" border=""0"" /></a></td>"&VbCrLf
Response.Write " </tr>"&VbCrLf
Response.Write " <tr>"&VbCrLf
Response.Write " <td height:28px; text-align:center""><a href="""&AutoLink&""" title="""&rs("ProductName")&""">"&ProductName&"</a></td>"&VbCrLf
Response.Write " </tr>"&VbCrLf
Response.Write " <tr>"&VbCrLf
Response.Write " <td height:28px; text-align:center""><a href="""&AutoLink&""" title="""&rs("ProductName")&""">规格:"&rs("ProductModel")&"</a></td>"&VbCrLf
Response.Write " </tr>"&VbCrLf

Response.Write " </table></td>"&VbCrLf
rs.movenext
if rs.eof then exit for
next
Response.Write " </tr>"&VbCrLf
if rs.eof then exit for
next
Response.Write "</table>"&VbCrLf
else
response.write "<center>暂无相关信息</center>"
exit function
end if
Response.Write "<table width=""98%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"&VbCrLf
Response.Write " <tr height=""35"">"&VbCrLf
Response.Write " <td align=""center"">"&VbCrLf
Response.Write "共<strong color:red"">"&idcount&"</strong>条记录 页次:<strong color:red"">"&page&"</strong>/"&pagec&" 每页:<strong color:red"">"&pages&"</strong>条记录" & vbCrLf
pagenmin=page-pagenc
pagenmax=page+pagenc
if(pagenmin<1) then pagenmin=1
If ISHTML = 1 Then
If ID = "" Then
if(page>1) then response.write ("<a href="""&ProSortName&""&Separated&"1."&HTMLName&""" title=""回到第一页""><font face=""webdings"" color=""#000000"">9</font></a> ")
Else
if(page>1) then response.write ("<a href="""&ProSortName&""&Separated&""&ID&""&Separated&"1."&HTMLName&""" title=""回到第一页""><font face=""webdings"" color=""#000000"">9</font></a> ")
End If
Else
if(page>1) then response.write ("<a href="""& myself &"Page=1"" title=""回到第一页""><font face=""webdings"" color=""#000000"">9</font></a> ")
End If
if page-(pagenc*1+1)<=0 then
pageprevious=1
else
pageprevious=page-(pagenc*1+1)
end If
If ISHTML = 1 Then
If ID = "" Then
if(pagenmin>1) then response.write ("<a href="""&ProSortName&""&Separated&""&pageprevious&"."&HTMLName&""" title=""第"& pageprevious &"页""><font face=""webdings"" color=""#000000"">3</font></a> ")
Else
if(pagenmin>1) then response.write ("<a href="""&ProSortName&""&Separated&""&ID&""&Separated&""&pageprevious&"."&HTMLName&""" title=""第"& pageprevious &"页""><font face=""webdings"" color=""#000000"">3</font></a> ")
End If
Else
if(pagenmin>1) then response.write ("<a href="""& myself &"Page="& pageprevious &""" title=""第"& pageprevious &"页""><font face=""webdings"" color=""#000000"">3</font></a> ")
End If
if(pagenmax>pagec) then pagenmax=pagec
for i = pagenmin to pagenmax
if(i=page) then
response.write ("&nbsp;<strong color:red"">"& i &"</strong>&nbsp;")
Else
If ISHTML = 1 Then
If ID = "" Then
response.write ("[<a href="""&ProSortName&""&Separated&""&i&"."&HTMLName&""">"& i &"</a>]")
Else
response.write ("[<a href="""&ProSortName&""&Separated&""&ID&""&Separated&""&i&"."&HTMLName&""">"& i &"</a>]")
End If
Else
response.write ("[<a href="""& myself &"Page="&i&""">"& i &"</a>]")
End If
end if
next
if page+(pagenc*1+1)>=pagec then
pagenext=pagec
else
pagenext=page+(pagenc*1+1)
end If
If ISHTML = 1 Then
If ID = "" Then
if(pagenmax<pagec) then response.write (" <a href="""&ProSortName&""&Separated&""&pagenext&"."&HTMLName&""" title=""跳转到第"&pagenext&"页""><font face=""webdings"" color=""#999999"">:</font></a> ")
if(page<pagec) then response.write (" <a href="""&ProSortName&""&Separated&""&pagec&"."&HTMLName&""" title=""跳转到第"&pagec&"页""><font face=""webdings"" color=""#000000"">:</font></a>")
Else
if(pagenmax<pagec) then response.write (" <a href="""&ProSortName&""&Separated&""&ID&""&Separated&""&pagenext&"."&HTMLName&""" title=""跳转到第"&pagenext&"页""><font face=""webdings"" color=""#999999"">:</font></a> ")
if(page<pagec) then response.write (" <a href="""&ProSortName&""&Separated&""&ID&""&Separated&""&pagec&"."&HTMLName&""" title=""跳转到第"&pagec&"页""><font face=""webdings"" color=""#000000"">:</font></a>")
End If
Else
if(pagenmax<pagec) then response.write (" <a href="""& myself &"Page="& pagenext &""" title=""跳转到第"&pagenext&"页""><font face=""webdings"" color=""#999999"">:</font></a> ")
if(page<pagec) then response.write (" <a href="""& myself &"Page="& pagec &""" title=""跳转到第"&pagec&"页""><font face=""webdings"" color=""#000000"">:</font></a>")
End If
Response.Write " </td>"&VbCrLf
Response.Write " </tr>"&VbCrLf
Response.Write "</table>"&VbCrLf
rs.close
set rs=nothing
end function
%>

最佳答案

条件不足,无法明确字段。


刚看了下代码,你可以尝试修改ISHTML = 1这个字段。


不知道你定义的权限是如何分辨的。

全部回答
代码太长,很难让别人用心看。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
奔三的人还有精力玩QQ农场吗?
问问真的可以兑换QB吗
鼻子老流血什么原因,鼻子里面出血是怎么回事
沐猴一尊是什么意思?
为什么QQ农场邀请好友不行呀,总是说明天再来
诺基亚手机什么款式适合我?
爱一个人容易还是恨一个人难?
有用燃油助力车的吗?省油吗?
永和豆浆(泰顺店)地址有知道的么?有点事想过
选出下列各项中划线的文言词语解释不当的一项
天蓝色显白吗,浅蓝色显黑吗
现在的跑跑卡丁车有GKJ么,在哪弄?要能用的
黑光双龙魔影强化9上10会碎么??
QQ飞车刷车和衣服挂,在那里可以买,真的
龙天,龙在天上,读什么字
推荐资讯
什么是合情推理,重要有哪些形式
抚养权争取?
系统在格式化时的DOS命令是什么
一个四棱柱的侧面展开图是边长为40厘米的正方
如何确认电脑系统是中了ARP病毒
描写初春梧桐的诗词,赞美春天的梧桐树的诗句
爱国的现代诗歌自创,关于爱的名人名言 自创的
黄山屯溪优山美地房子是否可以入手购买
醍恩红酒行在哪里啊,我有事要去这个地方
寻仙里任务的原木枝怎么弄》??能捡到吗
谁有苏南《流年》TXT格式?
自己在家应该做点什么,小学生在家做一件有意
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?