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

📄 manage2.asp

📁 机票预定系统 各个模块的设计-ticket reservation systems detailed design system modules of the design
💻 ASP
字号:
<!--#include file="include/conn.asp"-->
<% 
if ifAllowDynamicBunk="1" then
	nextPage="DynamicAdmin_add.asp"
else
	nextPage="rep.asp"
end if
del=request.Form("del")
if  trim(request.form("Myaction"))="del" then
	if del<>"" then
	  conn.execute("delete from repbunk where auto in ("&del&") ")
	else
		response.write "<script language=javascript>alert('请选择记录!');history.go(-1);</script>"
		response.end
	end If
End if
set oRst=server.createobject("adodb.recordset")
szSQL="select * from repbunk  order by DateTime desc"
oRst.Open szSQL,conn,1,3

%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="include/css.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="style/comm.css" />
<link rel="stylesheet" type="text/css" href="style/skin0.css" />
<title>后台管理机票系统</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function call(htmlurl){
	window.location.href=htmlurl;
	return false;
}

//-->
</script>

</head>
<body>
<div class="txt_title">添加假位(用途:隐藏某航班,不能扣位出票的舱位信息)</div>
<TABLE cellPadding=0 cellSpacing=1 >
          <form name="ZXLform" action="manage2.asp" method="post">
              <TR bgColor=#C3E7F9>
                <TH height="30">航班号</TH>
                <TH width="198" > 航班有效日期 </TH>
                <TH> 舱位列表</TH>
                <TH width="110">更新时间</TH>
                <TH height="30">操作</TH>
              </TR>
              <%
            i=0
			if not oRst.eof then
			while not oRst.eof 			
                i=i+1
                bc="bgcolor='#eff3f7'"
                if i mod 2=0 then bc="bgcolor='#FFFFFF'"
				if oRst("ifActive")="1" then ifActiveStr="checked"
				FlightNo=oRst("FlightNo")
				bunk=oRst("bunk")
                flyDate=oRst("flyDate")
				datetime=oRst("DateTime")
				Auto=oRst("Auto")
				endDatetime=oRst("endDatetime")
		  %>
              <TR <%=bc%> >
                <TD width="63" height="25" align=center><a href="<%=nextPage%>?auto=<%=Auto%>"><%=FlightNo%></a> </TD>
                <TD height="25" align=center ><%=flyDate%>-&gt;<%=endDatetime%></TD>
                <TD width="204" align="center"><%=bunk%></TD>
                <TD height="25" align="center" ><%=DateTime%></TD>
                <TD width="40" align="center"><input type="checkbox" name="del" value="<%=Auto%>"></TD>
              </TR>
              <%
			oRst.MoveNext
			wend
		end if
			%>
            <input type="hidden" name="Myaction" value="">
            <TR bgColor=#EEEEEE>
              <td height="30" colspan="6">
                    <input type="button" name="AddnewBunk" onClick="javascript:call('<%=nextPage%>');" value="添加新假位">
                    <input type="submit" name="Submit" onClick="javascript:ZXLform.Myaction.value='del'" value=" 删 除 "></td></TR>
          </form>
      </TABLE>
</body>
</html>

⌨️ 快捷键说明

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