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

📄 month.asp

📁 机票预定系统 各个模块的设计-ticket reservation systems detailed design system modules of the design
💻 ASP
字号:
<!--#include file="include/conn.asp"-->
<%
if trim(request("action"))="delete" then
k=request("deleteid")
'response.write k
'response.end
deleteid=split(request("deleteid"))
for i=0 to ubound(deleteid)
deleteid(i)=replace(deleteid(i),",","")
sql="delete from TAMonths where [序号] ="&deleteid(i)
conn.execute(sql)
next
action=""
msg_ok="群组删除成功!id共"&i&"个,分别是"&k
end if
'-----------------以上是册除代码
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后台管理机票系统</title>
<link href="include/css.css" rel="stylesheet" type="text/css">
</head>
<script>
function call(){
//添加记录或修改记录时所跳转的页面
window.location.href="Month_mod.asp";
return false;
}
function dele(){
//删除记录所用的函数
if(!confirm('已经确认需要删除选中的信息吗?')) return false;
ZXLform.submit();
}
function sltall(){
var nn=self.document.all.item("deleteid");
for(j=0;j<nn.length;j++){
self.document.all.item("deleteid",j).checked=true;
  }
}
function escall(){
var nn=self.document.all.item("deleteid");
for(j=0;j<nn.length;j++){
self.document.all.item("deleteid",j).checked=false;
  }
}
</script>
<body>
<TABLE cellPadding=0 cellSpacing=1 >
      <form name="ZXLform" action="Month.asp" method="post">
        <TBODY>
          <TR bgColor=#C3E7F9>
            <TH height="30">序号</TH>
            <TH width="191" height="30"> 月份代码</TH>
            <TH width="171" height="30"> 月份名称</TH>
            <TH width="140">更新时间</TH>
            <!--<TH height="30">操作</TH>-->
          </TR>
	<%
	dim szSQL
    set oRst=Server.CreateObject("AdoDb.recordset")
	szSQL="select * from TAMonths order by [序号]"
	oRst.Open szSQL,conn,1,1
		  '--------------------分页
		if oRst.eof then
			response.write("当前没有记录")
			response.end
		else
		if request.QueryString("pageno")="" then
			pageno=1
		else
			pageno=cint(request.QueryString("pageno"))
		end if
		recordcounts=oRst.recordcount
		pagesiz=15
		oRst.pagesize=15
		pagecounts=oRst.pagecount
		if pageno<1 then
 			pageno=1
 		end if
 		if pageno>pagecounts-1 then
			pageno=pagecounts
 		end if
		oRst.absolutepage=pageno
            i=0
			while not oRst.eof  and pagesiz>0			
                i=i+1
                bc="bgcolor='#eff3f7'"
                if i mod 2=0 then bc="bgcolor='#FFFFFF'"
				id=oRst("序号")
				MonthCode=oRst("月份代号")
                MonthNam=oRst("月份名称")
				updatetime=oRst("updatetime")
		  %>
          <TR <%=bc%> >
            <TD width="61" height="25" align=center><%=i%></TD>
            <TD height="25" align="center" nowrap style="padding-left:3px"><!--<a href="Month_mod.asp?id=<%=id%>">--><%=MonthCode%><!--</a>--></TD>
            <TD height="25" align="center"  style="padding-left:3px"><%=MonthNam%></TD>
			<TD height="25" nowrap><div align="center"><%=Updatetime%></div></TD>     
            <!--<TD width="41" align="center"><input name="deleteid" type="checkbox" id="deleteid" value="<%=id%>">
            </TD>-->
          </TR>
          <%
			oRst.MoveNext
			pagesiz=pagesiz-1
			wend
		end if
			%>
        
      </form>
    </TABLE>
</body>
</html>

⌨️ 快捷键说明

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