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

📄 hyfw_01_01.asp

📁 机票预定系统 各个模块的设计-ticket reservation systems detailed design system modules of the design
💻 ASP
字号:
<!--#include file="function/m_conn.asp"-->
<%
aa=trim(request("act"))
if trim(request("aboutid"))<>"" then
session("aboutid")=trim(request("aboutid"))
else
session("aboutid")=request.form("aboutid")
end if
dim ADDFlag
set rs=server.CreateObject("adodb.recordset")
AddFlag=request.querystring("AddFlag")
if aa="savemodify" then
 about1=request.form("about1")
 about2=request.form("about2")
 about4=request.form("about4")
 about3=now()
 image1=request.form("image1")
 image2=request.form("image2")
 if image1="" then image1=" "
 if image2="" then image2=" "
 if AddFlag<>"true" then
 sql="update about set about1='"&about1&"',about2='"&about2&"',about3='"&about3&"',about4='"&about4&"',image1='"&image1&"',image2='"&image2&"' where about_id="&session("aboutid")&""
 conn.execute(sql)
 else
sql="select * from about "
rs.open sql,conn,3,2
rs.addnew
rs("cataid")=trim(about_id)
rs("about1")=trim(about1)
rs("about2")=trim(about2)
rs("about3")=trim(about3)
rs("about4")=trim(about4)
rs("image1")=trim(image1)
rs("image2")=trim(image2)
rs.update
rs.close
 end if

 aa=""
%>
<script language="javascript">
alert("修改成功!");
</script>
<% 
end if
if session("aboutid")<>"" then
AddFlag="false"
sql="select * from about where about_id="&session("aboutid")&""
rs.open sql,conn,3,1
if not rs.eof then
about_id=rs("about_id")
about1=trim(rs("about1"))
about2=trim(rs("about2"))
about4=trim(rs("about4"))
image1=trim(rs("image1"))
image2=trim(rs("image2"))
end if
else
AddFlag="true"
end if
%>
<!--#include file="../../config.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=ZXLCompanyStr%>后台管理服务在线</title>
<link href="RLimages/user.css" rel="stylesheet" type="text/css">
</head>
<body>
  <table cellspacing="1" cellpadding="0" >
	  <form name="form1" action="hyfw_01_01.asp?aboutid=<%=about_id%>&AddFlag=<%=AddFlag%>" method="post">
        <tr> 
          <td width="23%" height="25" align="center"  bgcolor="#FFFFFF" >标题:</td>
          <td width="77%" bgcolor="#FFFFFF"> 
            <input name="about1" id="about1" value="<%=about1%>" size="45"> 
          <font color="#ff0000"> *</font></td>
        </tr>
        <tr> 
          <td height="25" align="center"  bgcolor="#FFFFFF" >信息来源:</td>
          <td bgcolor="#FFFFFF"> <input name="about4" id="about4" value="<%=about4%>" size="45"></td>
        </tr>
        <tr> 
          <td height="25" align="center"  bgcolor="#FFFFFF" >内容:</td>
          <td bgcolor="#FFFFFF">
            <textarea name="about2" cols=43 rows=8 id="about2"><%=about2%></textarea>
         </td>
        </tr>
<!--        <tr> 
          <td height="25" align="center" bgcolor="#FFFFFF"><a href="../upload/<%=image1%>" target=_blank>图片一: </a>   </td>
          <td align="left" bgcolor="#FFFFFF">
            <input type="text" name="image1" value="<%=image1%>">
          <a href="#" onClick="MyWindow=window.open('js/upload.asp?formname=form1&editname=image1&uppath=../../upload/&filelx=jpg','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=420,height=150');"><img src="RLimages/img.gif" width="20" height="20" border="0" align="absBottom" class="coolButton"></a></td>
        </tr>
        <tr>
          <td height="25" align="center" bgcolor="#FFFFFF"><a href="../upload/<%=image2%>" target=_blank>图片二:</a></td>
          <td align="left" bgcolor="#FFFFFF">
            <input type="text" name="image2" value="<%=image2%>">
            <a href="#" onClick="MyWindow=window.open('js/upload.asp?formname=form1&editname=image2&uppath=../../upload/&filelx=jpg','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=420,height=150');"><img src="RLimages/img.gif" width="20" height="20" border="0" align="absBottom" class="coolButton">
            
          </a></td>
        </tr> -->
        <tr>
          <td height="30" colspan="2" align="center" bgcolor="#FFFFFF">
		<input name="aboutid" type="hidden" value="<%=session("aboutid")%>">
		<input name="act" type="hidden" value="savemodify">
        <input type="submit" value=" 确 定 " name="cmdok">&nbsp;
		<input type="reset" value=" 重 填 " name="cmdReset">&nbsp;
		<input type="button" value=" 返 回 " name="back" onClick="javascript:window.history.back()"></td>
        </tr>
	</form>
</table>
</body>
</html>

⌨️ 快捷键说明

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