⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add_line_sort.asp

📁 漂亮的欧美旅游模板
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Option Explicit%>
<!--#include file="chk.asp"-->
<!--#include file="db_conn.asp"-->
<!--#include file="../my_libs/my_request.asp"-->
<!--#include file="../my_libs/my_lib.asp"-->
<%
dim action,sql,rs,nums
action=my_request("action",0)
if action="save" then
call saveline()
else
end if

sql="select max(zm_flag) as maxflag from ssort_line"
set rs=conn.execute (sql)
if (rs.eof) then
nums=1
else
nums=rs("maxflag")+1
rs.close
set rs=nothing
end if
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<link rel="stylesheet" type="text/css" href="style_admin.css" />
</head>

<body>

<table width="98%" id="table1">
<form action=add_line_sort.asp method=post>
	<tr>
		<td width="976" colspan="2" class="top_td" height="26">旅游线路类别添加</td>
	</tr>
	<tr>
		<td width="321" align="right" class="left_td">线路类别名称:</td>
		<td width="649">
		<input type="text" name="ssort_linesort" size="32" maxlength="100"></td>
	</tr>
	<tr>
		<td width="321" align="right" class="left_td">排序:</td>
		<td width="649">
		<input type="text" name="ssort_flag" size="4" maxlength="4" value="<%=nums%>"><input type="hidden" name="action" value="save">(建议采用默认)</td>
	</tr>
	<tr>
		<td width="321" align="right" class="left_td">备注说明:</td>
		<td width="649"><textarea rows="6" name="ssort_content" cols="31"></textarea></td>
	</tr>
	<tr>
		<td width="970" align="right" colspan="2" bgcolor="#6699FF" class="left_td">
		<p align="center"><input type="submit" value="确定添加" name="submit"></td>
	</tr></form>
</table>

</body>

</html>
<%
sub saveline()
dim arrline(2)
arrline(0)=my_request("ssort_linesort",0)
arrline(1)=my_request("ssort_flag",1)
arrline(2)=my_request("ssort_content",0)
if arrline(0)="" or arrline(1)="" or arrline(2)="" or (isNumeric(arrline(1))=false) then
call wnourl("参数错误")
else
arrline(1)=cint(arrline(1))
conn.execute ("insert into ssort_line (zm_linesort,zm_flag,zm_content,zm_addtime) values ('"&arrline(0)&"',"&arrline(1)&",'"&arrline(2)&"','"&now()&"')")
call wurl("添加成功","manage_line_sort.asp")
end if
end sub
%>

⌨️ 快捷键说明

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