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

📄 attribute.asp

📁 投资管理系统, asp+ mssql server
💻 ASP
字号:
<%
response.expires=-1
dim ThisKey
ThisKey = "c"
%>
<!--#include file="../inc/permission.asp"-->
<!--#include file="../inc/conn.asp"-->
<%
set rs=Server.CreateObject("ADODB.RecordSet")

if trim(request("dele"))="yes" then
	conn.execute("delete from tblAttribute where ID="&request("ID"))
	conn.execute("delete from tblAttribute2 where AttributeID="&request("ID"))
end if

sql="select ID,Attribute,Daihao from tblAttribute order by ID"
rs.open sql,conn,1,1
%>
<html>
<head>
<title>属性管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../css/main.css">
</head>
<BODY bgColor=#996600>
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><img src="../image/top_2.jpg" width="750" height="80"></td>
  </tr>
</table>
<div align="center"></div>
<TABLE align=center bgColor=#ffffff border=0 cellPadding=0 width=750>
  <TR>
      <TD align=middle 
    style="BORDER-BOTTOM: #996600 1px solid; BORDER-LEFT: #996600 1px solid; BORDER-RIGHT: #996600 1px solid; BORDER-TOP: #996600 1px solid" 
    vAlign=top width="100%" bgcolor="#FFCC33" height="368"> 
        <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
          <TBODY> 
          <TR bgcolor="#FF9900"> 
            
        <TD align=middle 
          style="BORDER-BOTTOM:1 solid #996600;" height="2">&nbsp;</TD>
          </TR>
          </TBODY> 
        </TABLE>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="362">
            <tr>
              <td width="17%" height="391" valign="top"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0" height="362">
            <tr>
              <td width="17%" height="391" valign="top"> 
                <div align="center">
                  <br>
                  <!--#include file="../inc/Rights.asp"-->
                </div>
              </td>
              <td width="83%" valign="top" align="center" height="391" style="border-left: 1px solid #996600" bgcolor="#FFFFCC"> 
                <table width="520" border="0" cellspacing="0" cellpadding="0" style="BORDER-BOTTOM: 1px solid #996600">
                  <tr>
                    <td valign="bottom"><img src="../image/tit_at.gif" width="111" height="24"></td>
                  </tr>
                </table>
                <table width="520" border="0" cellspacing="0" cellpadding="0">
                  <tr>
					<td>&nbsp;</td>
                    <td valign="bottom" align="left" width="100"> 
                      <img src="../image/sub.gif" width="53" height="19" onclick="OpenWindow('AddAttribute.asp','AddAttribute');" style="cursor:hand">
                    </td>
                  </tr>
                </table>
                <table width="520" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#996600">
                  <tr bgcolor="#FF9900" align=center> 
                    <td style="border-left:1 solid #996600;border-top:1 solid #996600;border-right:1 solid #996600;border-bottom:1 solid #996600;" width="25%"><font color="#ffffff">属性代号</font></td>
                    <td style="border-top:1 solid #996600;border-right:1 solid #996600;border-bottom:1 solid #996600;" width="25%"><font color=#ffffff><b>属性名称</b></font></td>
                    <td style="border-top:1 solid #996600;border-right:1 solid #996600;border-bottom:1 solid #996600;" width="25%"><font color=#ffffff><b>修改</b></font></td>
                    <td style="border-top:1 solid #996600;border-right:1 solid #996600;border-bottom:1 solid #996600;" width="25%"><font color=#ffffff><b>删除</b></font></td>
                  </tr>
                  <%
				  do while not rs.eof
					if not rs.eof then
				  %>
                  <tr align=center> 
                    <td style="border-left:1 solid #996600;border-right:1 solid #996600;border-bottom:1 solid #996600;"><%=trim(rs("Daihao"))%></td>
                    <td style="border-right:1 solid #996600;border-bottom:1 solid #996600;"><a href="Attribute2.asp?ID=<%=rs("ID")%>"><%=trim(rs("Attribute"))%></a></td>
                    <td style="border-right:1 solid #996600;border-bottom:1 solid #996600;"><a href=# onclick="OpenWindow('UpdateAttribute.asp?ID=<%=rs("ID")%>','UpdateAttribute');">修改</a></td>
                    <td style="border-right:1 solid #996600;border-bottom:1 solid #996600;"><a href="Attribute.asp?ID=<%=rs("ID")%>&dele=yes" onclick="return CheckDelete();">删除</a></td>
                  </tr>
                  <%
					end if
					rs.movenext
				 loop
				 rs.close
				 %>
                </table>
              </td>
            </tr>
          </table>
        </TD>
    </TR>
      
    <td bgcolor="#FF9900" height="23">&nbsp;
  </TABLE>
<script language=javascript>
function CheckDelete(){
	return confirm("确实删除吗?");
}

function OpenWindow(url,windowname){
window.open(url,windowname,'left=200,top=100,height=80,width=350,toolbar=no,menubar=no,scrollbars=no')
}
</script>
</BODY>
</HTML>
<!--#include file="../inc/close.asp"-->

⌨️ 快捷键说明

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