
<% Option Explicit %>
<!--#include file="../../Inc/Const.asp" -->
<!--#include file="../../Inc/Cls_DB.asp" -->
<%
Dim DBC,Conn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../Inc/Session.asp" -->
<!--#include file="../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P0302") then Call ReturnError()
dim LableID,SQLStr,RsLableObj,TableName
	TableName = Request("TableName")
	LableID=clng(request("ID"))
	set RsLableObj=createobject("ADODB.recordset")
	SQLStr="Select * From "& TableName &" where ID="&LableID
	RsLableObj.open SQLStr,conn,1,3

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改标签</title>
</head>

<link href="../Inc/ModeWindow.css" rel="stylesheet">
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0">
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<form name=form method=post action="" >
	<tr>
	<td width="25%" height="60">
		<div align="right"><img src="../Images/Question.gif" width="39" height="37"></div></td>
	<td align="center" height="30"><font size=2.5>是否删除这项？</font></td></tr>
	<tr>
   	   <td height="30" align="center" colspan="2"> 
	   	<input type=hidden name=operation value=Modify>
	    <input type="submit" value="  确定  " class=Anbutc> 
		<input type="reset" value="  取消  " onclick="window.close()" class=Anbutc> </td>
	</tr>
</form>
</table>

</body>
</html>
<%
if request.Form("operation")="Modify" then
	on error resume next
	RsLableObj.delete
	RsLableObj.close
	set RsLableObj=nothing
	if err.Number=0 then
%>
	<script language="javascript">
	alert ("删除成功！")
	dialogArguments.location.reload();
	window.close();
	</script>
<%
	else
%>
	<script language="javascript">
	alert ("有错误发生，请重试")
	dialogArguments.location.reload();
	window.close();
	</script>
<%
	end if
end if

set conn=nothing
%>
