📄 banner.asp
字号:
<%
'修改:
'时间:
'模板设计:秦怀平(jincao@yeah.net)
'开发时间:2000.12
%>
<!--#include file="../include/checkUser.asp" -->
<!--#include file="../include/checkServer.asp" -->
<!--#include file="../include/odbc.asp" -->
<!--#include file="../include/myip.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Qinhp NetModel Generator">
<meta name="Author" content="QinHuaiPing(秦怀平)">
<link rel="stylesheet" href="../script/style.css" type="text/css">
<title>图片推荐管理</title>
<script language='JavaScript'>
function check(form1){
if (isNaN(form1.webnum.value))
{alert('WEB上条目必须是数字!');
form1.webnum.focus();
form1.webnum.select();
return (false);
}
if (form1.webnum.value<1)
{alert('WEB上条目必须大于1!');
form1.webnum.focus();
form1.webnum.select();
return (false);
}
}
</script>
</head><%set rs=server.CreateObject("adodb.recordset")
sql="select * from news2_photocommend where picmenuid='"&request("picmenuid")&"' order by infoindex "
rs.open sql,conn,3,3
if trim(request("submit"))<>"" then
nwebcount=clng(request("webnum"))
rsRecordCount=rs.RecordCount
'***********************
set rs2=server.CreateObject("adodb.recordset")
sqll="select * from news2_photocommend order by commendid desc"
'**********************
if rsRecordCount<nwebcount then
for i=1 to nwebcount-rsRecordCount
rs2.open sqll,conn,3,3
rs.AddNew
if rs2.eof then
tempno=1
else
tempno=clng(rs2("commendid"))+1
end if
rs2.close
this1Id=right("00000000000000000000"&cstr(tempno),10)
rs("commendid")= this1Id
rs("photoid")="0000000000"
rs("picmenuid")=trim(request("picmenuid"))
rs("phototitle")="新增加图片标题"
rs("infoindex")=rsRecordCount+i
rs("visible")="0"
rs.Update
next
else
' Response.Write
sqqq="delete from news2_photocommend where picmenuid='"&trim(request("picmenuid"))&"' and infoindex >"&cstr(nwebcount)
conn.execute sqqq
end if
rs.Close
rs.open sql,conn,3,3
end if
if not rs.EOF then
rs.MoveFirst
end if
%>
<body bgcolor="#DDDDDD"><p align=center><b><font size=4 color=#0000FF>图片推荐</font></b></p>
<form method=POST action=<%=request.servervariables("path_info")%> name=add >
<table width="100%">
<tr><td align=center><input type=button name=刷新 value="刷新" onclick="javascript:location.reload();"></td></tr>
<%'显示推荐图片新闻
for i2=1 to rs.RecordCount
if i2=1 and ( trim(request("picmenuid")="001000") or trim(request("picmenuid"))="002000" ) then
'体育性感体坛、体坛星图特殊要求%>
<tr>
<td align=center><img src="<%=smallPicUrl%><%=rs("smallpic")%>" name=picview Border=0 width=<%=request("width")%> height=<%=request("height")%>>
</td>
</tr>
<tr><td align=center><a href="uploadimg.asp?commendid=<%=rs("commendid")%>&smallpic=<%=trim(rs("smallpic"))%>" target="right">更新图片</A></td></tr>
<%
else
if trim(request("picmenuid"))<>"001000" and trim(request("picmenuid"))<>"002000" then
'其它图片栏目%>
<tr>
<td align=center><img src="<%=smallPicUrl%><%=rs("smallpic")%>" name=picview Border=0 width=<%=request("width")%> height=<%=request("height")%>>
</td>
</tr>
<tr><td align=center><a href="uploadimg.asp?commendid=<%=rs("commendid")%>&smallpic=<%=trim(rs("smallpic"))%>&width=<%=request("width")%>&height=<%=request("height")%>" target="right">更新图片</A></td></tr>
<%end if
end if%>
<%'体育性感体坛、体坛星图特殊要求
if i2=2 and ( trim(request("picmenuid")="001000") or trim(request("picmenuid"))="002000" ) then%>
<tr><td align=center colspan=3><br><b>* * 文字推荐 * *</b></td></tr>
<%end if%>
<tr>
<td> </td>
</tr>
<tr><td width='70%'><%=i2%> <%=rs("phototitle")%></td>
<td width='15%'><a href="srch.asp?picmenuid=<%=request("picmenuid")%>&commendid=<%=rs("commendid")%>&width=<%=request("width")%>&height=<%=request("height")%>" target="right">更新</A></td>
<%if rs("visible")="1" then%>
<td width='15%'><a href="view.asp?picmenuid=<%=request("picmenuid")%>&commendid=<%=rs("commendid")%>&width=<%=request("width")%>&height=<%=request("height")%>" target="right">查看</A></td></tr>
<%end if
rs.MoveNext
next
%>
</table>
<tr><td colspan=4> </td></tr>
<tr>
<td>WEB条目:
<input type=Text name=webnum size=3 value=<%=rs.RecordCount%> maxLength=2> <input type=submit name=submit value="修改">
</td></tr></table>
<input type=hidden name=picmenuid value=<%=request("picmenuid")%> >
<input type=hidden name=width value=<%=request("width")%> >
<input type=hidden name=height value=<%=request("height")%> >
</form>
<p>[<a href=../user/loginProcess.asp target=_top>返回</a>][<a href=../user/logout.asp target=_top>退出</a>]</p></body></html>
<%rs.Close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -