additem.asp

来自「影视点播系统代码」· ASP 代码 · 共 55 行

ASP
55
字号
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.redirect "index.asp"
end if

filmtype=request.form("filmtype")

if filmtype<>"" then
sql="select * from item"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
rs.addnew
rs("name")=filmtype
rs.update
issuccess=true
end if
%>
<html>
<head>
<title>添加影片类型</title>
<style type="text/css">
<!--
body,td,th {font-family: 宋体, Arial;font-size: 12px;}
a {font-size: 12px;}
a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:hover {text-decoration: none;}
a:active {text-decoration: none;}
-->
</style>
</head>
<body  link="#000033" vlink="#000033" alink="#000033" leftmargin="0" topmargin="0">
<!--#include file="item.asp"-->
<%
if issuccess=true then
response.write("<h2 align=center>影片类型添加成功</h2>")
end if
%>
<form action="" method="post">
<table border="1" width="40%" align="center" bordercolorlight="#FF6699" bordercolordark="#FFCCFF">
<tr>
<td  align="right">影片类型</td>
<td><input type="text" name="filmtype" size="19" style="background-color:#FFCCFF;color:#000000 "></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="新增"  style="border-style:groove">&nbsp;&nbsp;              
<input type="reset" value="重置" style="border-style:groove">            
</td>            
</tr>            
</table>  
</form>                             
</body>
</html> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?