set conn=server.CreateObject("adodb.connection")
conn.open "driver={SQL Server};server=(local);uid=sa;pwd=;database=info"
set rs=server.createobject("adodb.recordset")
sql="select * from datamanager where id=" & id
RS.open sql,conn,1,3
'Response.Write sql
Set upl=Server.CreateObject("SoftArtisans.FileManager")
Filepath="../Temp/" & Trim(Rs("filename"))
filename =Trim(Rs("filename"))
'response.Write filename
On Error Resume Next
If Not upl.FileExists (Server.MapPath(FilePath)) Then
upl.ImportFromBlob RS("filevalue"),Server.MapPath(FilePath)
End If
Set upl=Nothing%>
<script language="vbscript">
Function OpenAttachment(AttachmentFile)
If AttachmentFile <> "" Then
window.open AttachmentFile,"浏览附件","toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=650,height=450"
End If
End Function
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="../../../personal/office/css/css.css">
<script language="javascript1.2" src="../../../personal/office/js/openwin.js"></script>
</HEAD>
<body bgcolor="<%=Session("BodyColor")%>" topmargin="0" leftmargin="" rightmargin=0 bottommargin=0>
<% call bghead() %>
<br>
<center>
<table>
<tr>
<td><b>详细资料</b> </td>
<%
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
sql2="SELECT * FROM UnitGrantDefine a,RightClassDefine b Where a.Class_Id=b.Class_Id And b.Name='维护' And a.Item_Id=55 And a.Id=" & Session("User_Id")
Set Rs2 = Server.CreateObject("ADODB.Recordset")
rs2.Open sql2,Application("Manager_ConnectionString"),3,1
'Response.Write sql
If (Not (Rs2.BOF And Rs2.eof)) or rs("parentid")=1 Then
%>
<form method="post" action="editdata2.asp" name="form6">
<td><a href=# onclick="javascript:document.form6.submit()">【编辑】</a> <input type="hidden" name="id" value="<%=id%>"></td>
</form>
<form method="post" action="deldata2.asp" id="form2" name="form2">
<td><a href=# onclick=ondel()>【删除】</a>
<input type="hidden" name="id" value="<%=id%>"></td>
</form>