gonggao.asp

来自「房地产管理系统 vb写的,很不错!!!!!!!!!!!」· ASP 代码 · 共 163 行

ASP
163
字号
<!--#include file="../inc/conn.asp"-->
<%
'┌─  风云ASP在线  ────────────────────────┐
'│                                                                 │
'│  作者:赵振波.	http://www.fyasp.com	    				    │
'│                                                                 │
'│   Q Q:176189168  										   	    │
'│                                                                 │
'│ Email:fy96@163.com                                             │
'│                                                                 │
'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│
'│                                                                 │
'│                                                                 │
'└───────────────────  http://www.fyasp.com ──┘
%>
<%
If session("manager")="" Then
  Response.Redirect("manage.asp")
  Response.end
 End If
%>
<html>
<!-- DW6 -->
<head>
<title>后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../ht.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body bgcolor="#666666" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><img src="../images/ht_01.gif" width=778 height=62 usemap="#Map" border="0"></td>
  </tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/htbj.gif">
  <tr> 
    <td valign="top" align="left" width="145" height="395">
      <!--#include file="List.asp" -->
    </td>
    <td height="395" align="center" valign="top"> <br> <table width="621" border="0" cellspacing="0" cellpadding="0" height="98">
        <tr> 
          <td align="center" valign="top"> <table width="606" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><img src="../images/httable_01.gif" width=606 height=17></td>
              </tr>
              <tr> 
                <td height="268" valign="top" background="../images/httable_02.gif"> 
                  <table width="316" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="25"><a href="gonggao_add.asp">[公告添加]</a></td>
                      <td><a href="gonggao.asp">[公告删除、修改]</a></td>
                    </tr>
                  </table>
                  <form action="gonggao_del_ok.asp" method="post" name="form1">
                    <table width="80%" border="0" align="center" cellpadding="1" cellspacing="1">
                      <tr align="center" bgcolor="#666666"> 
                        <td width="9%"> </td>
                        <td width="70%"><font color="#FFFFFF">公告内容</font></td>
                        <td width="21%"><font color="#FFFFFF">登记时间</font></td>
                      </tr>
                      <%
						opendataconn
						 set rs=server.createobject("adodb.recordset")
						   sql="select * from gonggao order by dateandtime desc"
						rs.open sql,conn,1,1
						if rs.eof then
						response.write"<tr><td colspan=4>现在还没有公告</td></tr>"
						end if
						do while not rs.eof 
						%>
                      <tr bgcolor="#868686"> 
                        <td> <input type="checkbox" name="id" value="<%=trim(rs("id"))%>"></td>
                        <td><a href="gonggao_modi.asp?id=<%=trim(rs("id"))%>"><%=trim(rs("content"))%></a></td>
                        <td align="center"><%=trim(rs("dateandtime"))%></td>
                      </tr>
                      <%
						 rs.movenext
						 loop
						 rs.close
						 set rs=nothing
						 closedataconn
						%>
                      <tr bgcolor="#868686"> 
                        <td> <input type="checkbox" name="chkall" value="on" onClick="CheckAll()"  class="inputblack"></td>
                        <td colspan="2"> &nbsp; 选取以上全部记录</td>
                      </tr>
                      <tr align="center" bgcolor="#868686"> 
                        <td colspan="3"> <input type="submit" name="Submit" value=" 删 除 "> 
                          &nbsp;&nbsp; <input type="submit" name="Submit2" value=" 取 消 "> 
                        </td>
                      </tr>
                      <script language="javascript">
function CheckAll()
  {
     for (var i=0;i<document.form1.elements.length;i++)
     {
       document.form1.elements[i].checked=document.form1.chkall.checked
     }
  }
function chk()
  {

    for (var i=0;i<document.form1.elements.length;i++)
    {
      if (document.form1.elements[i].checked) 
        {
          return 1;
        }
    }
   return 0;
  }
  function frm_submit()
  {

    if (!chk())
      {
        alert("请先选择欲删除的记录。");
        return false;
      }
    else
      {
        if (confirm('您确实要删除选中的项?此操作不可恢复。'))
         {
           document.form1.submit();
         }
        else
         {
           return false;
         }
      }
  }
</script>
                    </table>
                  </form></td>
              </tr>
              <tr> 
                <td><img src="../images/httable_04.gif" width=606 height=19></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><img src="../images/ht_04.gif" width="778" height="4"></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map">
  <area shape="rect" coords="630,36,775,56" href="http://www.fyasp.com" target="_blank">
</map>
</body>
</html>

⌨️ 快捷键说明

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