<% Option Explicit %>
<!--#include file="../../Inc/Cls_DB.asp" -->
<!--#include file="../../Inc/Const.asp" -->
<%
	Dim DBC,Conn
	On Error Resume Next
	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 ReturnError2()
Dim LableSql,RsLableObj,LableID
LableSql = "Select * from LableBackUp "
Set RsLableObj = Server.CreateObject("ADODB.recordset")
RSLableObj.open LableSql,conn,1,1
%>
<!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="../../CSS/css.css" rel="stylesheet">
<script language="JavaScript" src="../JS/PublicJS.js"></script>
<body topmargin="0" leftmargin="0" onClick="SelectLable();" onselectstart="return false;" oncontextmenu="SelectLable();showMenu(MouseRightMenu);return false;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
	<td width="43%" height="20" class="ButtonList"> 
      <div align="left">名称</div></td>
    <td width="6%" height="20" class="ButtonList"> 
      <div align="center">类型</div></td>
    <td width="22%" height="20" class="ButtonList"> 
      <div align="center">描述</div></td>
	<td width="29%" height="20" class="ButtonList"> 
      <div align="center">备份时间</div></td>
  </tr>
<%
do while not RsLableObj.eof
%>
  <tr style="background:white;cursor:default;"> 
    <td height="25"><table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td><img src="../Images/Lable_Lable.gif" width="18" height="18"></td>
			<td><span LableID="<%= RsLableObj("ID")%>"><% = RsLableObj("LableName")%></span></td>
		</tr></table>
	</td>
	<td><div align="center">标签</div></td>
    <td height="20"><div align="left">
        <% = RsLableObj("Description") %>
      </div></td>
	<td height="20"><% = RsLableObj("BackUpTime") %>
  </tr>
<%
	RsLableObj.MoveNext
loop
RsLableObj.Close
%>
</table>
</td>
</tr>
</table>
</body>
</html>

<!-- 鼠标右键菜单 -->
	<div id=MouseRightMenu onclick="ClickMenu(this);" onmouseover="MouseOverRightMenu();" onmouseout="MouseOverRightMenu();" class="menu"> 
	<div class="MouseRightItem" id="Vie" ExeFunction="BrowLable();">查看</div>
	<div class="MouseRightItem" id="Del" ExeFunction="DelLable();">删除</div>
	<div class="MouseRightItem" id="Rev" ExeFunction="RevLable();">还原</div>
	<hr id="HR1">
	<div class="MouseRightItem" id="Refresh" ExeFunction="window.location.reload();">刷新</div>
	   <hr id="HR6">
	  <div class="MouseRightItem" id="Pros" ExeFunction="javascript:window.prompt('本页面路径属性' , '<%=Request.ServerVariables("SCRIPT_NAME")%>');">路径属性</div>
	</div>
	</body>
	</html>
<%
Set RsLableObj = Nothing
Set Conn = Nothing
%>
<script language="JavaScript">
//var LableID='';
var SelectLableID='';
Vie.className='MenuItemDisable';
Del.className='MenuItemDisable';
Rev.className='MenuItemDisable';
function SelectLable()
{
	var TRObj=event.srcElement;
	var i=0,j=0;
	for (j=0;j<document.all.length;j++)
	{
		if (document.all(j).className=='TempletSelectItem')
		{
			document.all(j).className='TempletItem';
		}
	}
	if (TRObj.LableID!=null)
	{
		TRObj.className='TempletSelectItem';
		SelectLableID=TRObj.LableID;
	}
	else
	{
		SelectLableID='';
	}
	if (SelectLableID!='')
	{
		Vie.className='MouseRightItem';
		Del.className='MouseRightItem';
		Rev.className='MouseRightItem';
	}
	else
	{
		Vie.className='MenuItemDisable';
		Del.className='MenuItemDisable';
		Rev.className='MenuItemDisable';
	}
}
function BrowLable()
{
	if (SelectLableID!='')	OpenWindow('LableAttribute.asp?ID='+SelectLableID,360,190,window)
}
function DelLable()
{
	if (SelectLableID!='')	OpenWindow('Lable.asp?FileName=LableDel.asp&TableName=LableBackUp&ID='+SelectLableID,190,110,window)
}
function RevLable()
{
	if (SelectLableID!='')	OpenWindow('LableBack.asp?FileName=Templet_LableRevert.asp&LableID='+SelectLableID,190,110,window);
}
</script>