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

📄 invest_title_admin.asp

📁 ASP网页
💻 ASP
字号:
<%@ Language=VBScript%>
<%
Response.Buffer=false
Response.Expires=0
if Session("userqx")="1" or Session("userqx")="9" then
else
	Response.Redirect "../warn.asp"
end if
%>

<!-- #include file="../dsn.asp" -->

<%
keyno=Request.QueryString("keyno")
parentno=Request.QueryString("parentno")

set cn=server.CreateObject("ADODB.Connection")
cn.Open mycnstr
set rs=server.CreateObject("ADODB.Recordset")

sqltext="select title from investigate where keyno="&parentno
rs.Open	sqltext,cn,1,1
if not rs.EOF then
	htmltitle=left(trim(rs(0)),30)
else
	Response.End
end if	
rs.Close


htmlname="invest_title_admin.asp?parentno="+parentno
addhtml="invest_title_edit.asp?parentno="+parentno

if keyno<>"" then
	sqltext="delete from investigate where keyno="&keyno
	cn.Execute sqltext
end if
%>
<html>
<head>
<title><%=htmltitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {font-size: 12px; color: #000000; font-family: 宋体}
td {font-size: 12px; color: #000000; font-family: 宋体;line-height:130%}
.t1 {font:12px 宋体;color=000000} 
.t2 {font:12px 宋体;color:ffffff} 
.t3 {font:12px 宋体;color:336699} 
.t4 {font:12px 宋体;color:ff0000} 

.bt1 {font:14px 宋体;color=000000} 
.bt2 {font:12px 宋体;color:ffffff} 
.bt3 {font:14px 宋体;color:336699} 
.bt4 {font:14px 宋体;color:ff0000} 
.bt5 {font:14px 宋体;color:0000ff}
.bt10 {font:14px 宋体;color:0000ff}

.td1 {font-size:12px;background-color:#3388bb;color:#ffffff}
.td2 {font-size:12px;background-color:#ffffff;color:#000000;}

A:link {color: #000077}
A:visited {color: #000077}
A:hover {color: #ff0000}

A.title1:link {text-decoration:none;color:#336699;}
A.title1:visited {text-decoration:none;color:#336699;}
A.title1:active {text-decoration:none;color:#336699;}
A.title1:hover {text-decoration:none;color:#336699;}
-->
</style>
</head>
<body topmargin=5>
<table width="100%" align=center>
	<tr>
	<td valign="top" align="left" width="100%">
		<form name="form1">
		<table width="100%" height="20" border="0">
			<tr>
			<td style="font-size:12px;"></td>
			<td><font color="navy" style="font-size:14px"><b><%=htmltitle%></b></font></td>
			<td align="right">
			</td>
			</tr>
		</table>
		<table width="100%" height="20" border="0">
			<tr>
		<%
		sqltext="select * from investigate where parentno="&parentno&" order by sortnum"
		'Response.Write sqltext
		rs.Open sqltext,cn,1,1

	%>
		<td class=t1 align="left">
			<a href="<%=htmlname%>">[刷新列表]</a>
			<a href="invest_admin.asp">[返回主题]</a>
			<a href="<%=addhtml%>">[增加]</a></td>
		</td>
		</tr>
		</table>
			<table width="100%" border="0" cellspacing="1" cellpadding="1" style="font-size:14.5px;line-height:100%">
				<tr bgcolor="336699" style="color:#ffffff" align="center">
				<td class=bt2>删除</td><td class=bt2>序号</td>
				<td class=bt2>标题</td><td class=bt2>结果</td></tr>
		<%
		i=0
		do while not rs.EOF 
			if (i mod 2)=1 then
				Response.Write("<tr bgcolor=fefefe>")
			else
				Response.Write("<tr bgcolor=efefef>")
			end if	
		%>
			<td width="35" align="center">
				<img onclick="Javascript:delrec('<%=rs("keyno")%>','<%=trim(rs("title"))%>')" src="../admin/delete.gif">
			</td>
			<td width="35" align="center"><%=rs("sortnum")%></td>
			<td align=left><a href="<%=addhtml%>&keyno=<%=rs("keyno")%>"><%=left(trim(rs("title")),30)%></td>
			<td width="35" align="right"><%=rs("result")%></td>
			</tr>
		<%	
			i=i+1
			rs.MoveNext
		loop
		%>
			</table>
		</td></tr>
		</form>
</td></tr><table>
</body>
</html>

<script language="Javascript">

	function delrec(code,topic)
	{
		if (confirm('您确认要删除“'+topic+'”吗?')==true)
		{
		window.location.href="<%=htmlname%>&keyno="+code
		return false;
		}
	}
	
	function invest_view(keyno)
	{
	window.open('invest_view.asp?parentno='+keyno,'','toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no,scrollbars=no,width=450,height=320,left=130,top=80')
	}
</script>

⌨️ 快捷键说明

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