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

📄 del_area_t111.asp

📁 《网上客户管理系统》 开发及测试环境 操作系统:Windows 2000 Server 后台数据库:Access 2000 Web服务器:IIS 5.0
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../Connections/conn.asp" -->
<% set conn=server.CreateObject("ADODB.Connection")
conn.open("Driver={Microsoft Access Driver (*.mdb)};PWD=111;DBQ=" & server.MapPath("/NetCustomer/Customer.mdb"))
SelectID=request.QueryString("ProvinceID")
response.Write(SelectID)
%><%
Dim rs_province
Dim rs_province_numRows

Set rs_province = Server.CreateObject("ADODB.Recordset")
rs_province.ActiveConnection = MM_conn_STRING
rs_province.Source = "SELECT *  FROM DB_Area  WHERE TypeID=1 or TypeID=4 or TypeID=5"
rs_province.CursorType = 0
rs_province.CursorLocation = 2
rs_province.LockType = 1
rs_province.Open()

rs_province_numRows = 0
%>
<%
Dim rs_province_select__MMColParam
rs_province_select__MMColParam = "1"
If (Request.Form("province") <> "") Then 
  rs_province_select__MMColParam = Request.Form("province")
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>管理员登录--删除地域信息!</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style.css" rel="stylesheet">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	background-image:  url(../Images/bg.gif);
}
.style1 {color: #FFFFFF}
.style2 {color: #a2bcc5}
-->
</style></head>

<body>
<script language="javascript">
function ChangeItem(){
var SelectID=form1.Province.value;
window.location.href="del_area_T.asp?SelectID=2";
}
</script>
<table width="400" height="242" border="0" cellpadding="-2" cellspacing="-2" background="../Images/add_manager.gif">
  <tr>
    <td valign="top"><table width="400" height="271" cellpadding="-2" cellspacing="-2">
      <tr>
        <td width="11" height="85">&nbsp;</td>
        <td width="373">&nbsp;</td>
        <td width="14"><span class="style2"></span></td>
      </tr>
      <tr>
        <td height="144">&nbsp;</td>
        <td valign="top">
  
          <div align="center">
            <form name="form1" method="post">
            
            <table width="80%" height="142" border="1" cellpadding="-2"  cellspacing="-2" bordercolor="#669999" bordercolordark="#FFFFFF">
              <tr>
                <td width="32%" height="27" bgcolor="#809EA4"><div align="center" class="style1">省级名称: </div></td>
                <td width="68%">
				<%
				if SelectID<>"" then
				sql="select* from DB_area where father="&SelectID
				set rs_city=conn.execute(sql)
				else
				sql="select* from DB_area where father=1"
				set rs_city=conn.execute(sql)
				end if
				%>
                  <div align="left">
&nbsp;
<select name="Province" id="select4" onChange="ChangeItem()">
  <%
While (NOT rs_province.EOF)
%>
  <option value="<%=(rs_province.Fields.Item("ID").Value)%>" <% if SelectID=rs_province("ID") then %>selected <%end if%>><%=(rs_province.Fields.Item("Name").Value)%></option>
  <%
  rs_province.MoveNext()
Wend
If (rs_province.CursorType > 0) Then
  rs_province.MoveFirst
Else
  rs_province.Requery
End If
%>
</select>
</div></td>
                </tr>
              <tr>
                <td height="27" bgcolor="#809EA4"><div align="center" class="style1">市/县名称:
                  </div></td>
                <td height="34"><div align="left">&nbsp;
                  <select name="city" id="select4">
  <%
While (NOT rs_city.EOF)
%>
  <option value="<%=(rs_city.Fields.Item("ID").Value)%>" <% if SelectID=rs_city("ID") then %>selected <%end if%>><%=(rs_city.Fields.Item("Name").Value)%></option>
  <%
  rs_city.MoveNext()
Wend
If (rs_city.CursorType > 0) Then
  rs_city.MoveFirst
Else
  rs_city.Requery
End If
IF rs_city.EOF then %>
<option value="0">该省级名称没有下属地区!</option>
<% End If %>
</select>
</div></td>
              </tr>
              <tr>
                <td height="27" bgcolor="#809EA4"><div align="center" class="style1">区/镇/乡名称:</div></td>
                <td><div align="left">&nbsp;
                  <select name="town" id="select3">
                        </select></div></td>
              </tr>
              <tr>
                <td height="33" colspan="2"><div align="center">
                  <input name="Button" type="button" class="Style_button" value="保存" onClick="mycheck()">
                  <input name="Submit2" type="reset" class="Style_button" value="重置">
                  <input name="Button" type="button" class="Style_button" value="关闭" onClick="javascrip:opener.location.reload();window.close()">
</div></td>
              </tr>
              </table>
            </form>
            </div></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><form name="form2" method="post">
          <input name="HProvince" type="hidden" id="HProvince">
		</form></td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
<%
rs_town.Close()
Set rs_town = Nothing
%>
<%
rs_province.Close()
Set rs_province = Nothing
%>
<%
rs_province_select.Close()
Set rs_province_select = Nothing
%>
<%
rs_city.close()
set rs_city=nothing
%>

⌨️ 快捷键说明

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