📄 edit.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.redirect "../"
end if
lid=request("id")
sql="select * from data where id=cint('"&lid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
yesorno=request.form("yesorno")
itemm=request.form("itemm")
markk=request.form("markk")
showname=request.form("showname")
showlistname=request.form("showlistname")
showtype=request.form("showtype")
showaddress1=request.form("showaddress1")
showaddress2=request.form("showaddress2")
showaddress3=request.form("showaddress3")
showaddress4=request.form("showaddress4")
showaddress5=request.form("showaddress5")
if yesorno<>"" then
sql="select * from data where id=cint('"&lid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
rs("yesno")=yesorno
rs("item")=itemm
rs("mark")=markk
rs("name")=showname
rs("listname")=showlistname
rs("type")=showtype
rs("address1")=showaddress1
rs("address2")=showaddress2
rs("address3")=showaddress3
rs("address4")=showaddress4
rs("address5")=showaddress5
rs.update
response.redirect "editok.asp"
end if
end if
%>
<html>
<head>
<style type="text/css">
<!--
td { font-size: 12px; line-height: 17px }
body { font-size: 12px; line-height: 17px }
p { margin-top: 1; margin-bottom: 1 }
a:link { text-decoration: none; color: black }
a:visited { text-decoration: none; color: black }
a:active { text-decoration: none }
a:hover { text-decoration: underline; color: red }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>审核电影信息</title>
</head>
<body>
<div align="center">
<center>
<form action="" method="post" name="postart">
<div align="center">
<center>
<table border="0" width="500" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="30">
<p align="center"><b>本电影原始审核状态:</b><% if rs("yesno")="1" then %><font color="#008000">已通过审核</font><% end if %><% if rs("yesno")="0" then %><font color="#FF0000">未通过审核</font><% end if %>
</td>
</tr>
<tr>
<td width="100%" align="right" height="22">管理意见:</td>
<td width="100%" height="22"><select size="1" name="yesorno">
<option value="<%=rs("yesno")%>" selected><% if rs("yesno")="1" then %>已通过审核<% end if %><% if rs("yesno")="0" then %>未通过审核<% end if %></option>
<option value="0">不符合条件,无法通过审核</option>
<option value="1">符合条件,通过审核</option>
</select></td>
</tr>
<tr>
<td width="100%" align="right" height="8">电影名字:</td>
<td width="100%" height="8"><input type="text" name="showname" size="20" value="<%=rs("name")%>" maxlength="50"></td>
</tr>
<tr>
<td align="right" height="8">节目单:</td>
<td height="8"><input type="text" name="showlistname" size="20" value="<%=rs("listname")%>" maxlength="50"></td>
</tr>
<tr>
<td align="right" height="30">电影类型:</td>
<td height="30"><select size="1" name="itemm">
<option value="<%=rs("item")%>" selected><%=rs("item")%></option>
<option value="----------">----------</option>
<%
set rs_class = server.createobject("adodb.recordset")
sql = "select * from item"
rs_class.open sql,conn,1,1
do while not rs_class.eof
%>
<option value="<%=rs_class("name")%>"><%=rs_class("name")%></option>
<%
rs_class.movenext
loop
rs_class.close
%>
</select></td>
</tr>
<tr>
<td width="100%" align="right" height="30">推荐程序:</td>
<td width="100%" height="30"><select size="1" name="markk">
<option value="<%=rs("mark")%>" selected><%=rs("mark")%></option>
<option value="----------">----------</option>
<option value="★">★</option>
<option value="★★">★★</option>
<option value="★★★">★★★</option>
<option value="★★★★">★★★★</option>
<option value="★★★★★">★★★★★</option>
</select></td>
</tr>
<tr>
<td width="100%" align="right" height="23">播放格式:</td>
<td width="100%" height="23"><select size="1" name="showtype">
<option selected value="<%=rs("type")%>"><%=rs("type")%></option>
<option value="----">----</option>
<option value="realplay">realplay</option>
<option value="mediaplay">mediaplay</option>
<option value="网页">网页</option>
</select></td>
</tr>
<tr>
<td width="100%" align="right" height="10">第一集:</td>
<td width="100%" height="10"><input type="text" name="showaddress1" size="40" value="<%=rs("address1")%>" maxlength="100"></td>
</tr>
<tr>
<td width="100%" align="right" height="11">第二集:</td>
<td width="100%" height="11"><input type="text" name="showaddress2" size="40" value="<%=rs("address2")%>" maxlength="100"></td>
</tr>
<tr>
<td width="100%" align="right" height="9">第三集:</td>
<td width="100%" height="9"><input type="text" name="showaddress3" size="40" value="<%=rs("address3")%>" maxlength="100"></td>
</tr>
<tr>
<td width="100%" align="right" height="6">第四集:</td>
<td width="100%" height="6"><input type="text" name="showaddress4" size="40" value="<%=rs("address4")%>" maxlength="100"></td>
</tr>
<tr>
<td width="100%" align="right" height="13">第五集:</td>
<td width="100%" height="13"><input type="text" name="showaddress5" size="40" value="<%=rs("address5")%>" maxlength="100"></td>
</tr>
<tr>
<td width="100%" align="right" colspan="2" height="30">
<p align="center"><input type="submit" value="确定" name="ok"> <input type="reset" value="取消" name="reset">
<input type="button" value="返回" name="back" onClick="javascript:history.back()"></td>
</tr>
</table>
</center>
</div>
</form>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -