deleteoldfield.asp

来自「SmartCity远程数据库管理系统 本系统可使您不打开Microsoft A」· ASP 代码 · 共 82 行

ASP
82
字号
<!-- #include file="connmdb.asp" -->
<%
	dim tablename,no	
	tablename = request("tablename")

	rs.close
	sql = "select * from ["&tablename&"]"
	rs.open sql,conn,1,1
%>
<html>
<head>
<title>SmartCity&nbsp;远程数据库管理系统</title>
<link rel="stylesheet" type="text/css" href="data/css.css">
</head>
<body background="data/background.gif" bgproperties=fixed>
	<table width="100%" align="center">
		<tr>
			<td align="center">
					<b><font size="5">SmartCity&nbsp;远程数据库管理系统</font><br><font size="4">Version&nbsp;1.0&nbsp;beta</font><br><br></b>
			</td>
		</tr>		
		<tr>
			<td align="center">
				<div style="width: 740;">
					<table width="100%">
						<tr>
							<td align="center" width="80"><a href="index.asp">重选数据库</a></td>
							<td align="center" width="70"><a href="tablelist.asp">数据库列表</a></td>
							<td align="center" width="70"><a href="createnewtable.asp">新建表格</a></td>
							<td align="center" width="70"><a href="recordlist.asp?tablename=<%=tablename%>"><%=tablename%>列表</a></td>
							<td></td>
							<td align="center" width="50"><a href="changepsw.asp">修改密码</a></td>
							<td align="center" width="45"><a href="tablelist.asp?tablename=<%=tablename%>">返回</a></td>
						</tr>
					</table>
				</div>
				<br>
			</td>
		</tr>
		<tr>
			<td align="center">
				<form action="deletefield.asp?tablename=<%=tablename%>" method="post">
					字段名&nbsp;<select name="fieldname">
<%
	no = 0
	for each field in rs.fields
		no = no+1
%>
						  	<option value=<%=field.name%>
<%
		if no = 1 then
%>
							selected
<%
		end if
%>
							><%=field.name%></option>
<%
	next
%>		
						  </select>&nbsp;
					<input type="submit" value="删除" class="btn" onmouseover="this.style.color='FF9966'" onmouseout="this.style.color='#4B69D8'">
				</form>	
				<br><br><br>				
			</td>
		</tr>
		<tr>
			<td align="center">
				小城工作室作品&nbsp;&nbsp;2003.9<br>
				欢迎访问<a href="http://218.4.50.118/smartcity">『SmartCity&nbsp;小城在线』</a>
			</td>
		</tr>
	</talbe>

<%
	rs.close
	conn.close
	set rs = nothing
	set conn = nothing
%>
</body>
</html>

⌨️ 快捷键说明

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