📄 xxgl.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="error.asp"-->
<%
'
user=session("user")
pwd=session("pwd")
chkuser user,pwd
idd=request("idd")
pid=request("pid")
sqlstr="select * from menu where id="&idd
sqlstr2="select * from menu where class=1" 'class=1 is news
set rs=conn.execute(sqlstr)
set rs2=conn.execute(sqlstr2)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css">
<title><%=rs("title")%></title>
</head>
<body bgcolor="#FEFBF1" background="images/sky2.gif">
<p align="center"><a><font color="0099FF">添加新闻</font></a> <font color="0099FF">|</font> <a href="newlist.asp?idd=<%=idd%>&pid=<%=pid%>"><font color="0099FF">管理管理</font></a></p>
<form name="form1" method="post" action="addnew.asp">
<table width="500" border="1" align="center" bgcolor="#CCCCCC">
<tr>
<td width="100"><div align="center">标题</div></td>
<td width="400">
<input type="text" name="title" size="55">
</td>
</tr>
</table>
<table width="500" height="62" border="1" align="center" bgcolor="#CCCCCC">
<tr>
<td height="28" colspan="4">商品价格:
<input name="price" type="text" size="15" maxlength="8">
元
<input type="hidden" name="nr" value=<%=rs("content")%>></td>
</tr>
<tr>
<td width="78" height="26"><div align="center">新闻类型</div></td>
<td width="155">
<select name="newsclass" id="select">
<%
tmpi=1
while not rs2.eof%>
<option value="<%=rs2("rdclass")%>" <%if tmpi=int(idd) then response.Write("selected")%>><%=trim(rs2("title"))%></option>
<%
tmpi=tmpi+1
rs2.movenext
wend
tmpi=1
%>
</select></td>
<td width="63">特价商品</td>
<td width="176"><input name="state" type="checkbox" value=1>
如果是请打钩
<input name="pid" type="hidden" value=<%=pid%>></td>
</tr>
</table>
<br>
<input type="image" name="tj" src="images/qd.GIF" onMouseOver="this.src='images/qd1.gif'"
onmouseout="this.src='images/qd.gif'">
<img src="images/qx.GIF" onClick="form1.reset()" onMouseOver="this.src='images/qx1.gif'"
onmouseout="this.src='images/qx.gif'">
</form>
<%
rs.close
set rs=nothing
rs2.close
set rs2=nothing
set conn=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -