view.asp

来自「功能齐全的oa系统」· ASP 代码 · 共 81 行

ASP
81
字号
<% option explicit%>
<!-- #include virtual="include/DataEnvi.asp" -->
<!-- #include virtual="include/String.asp" -->
<%
	Dim IntID
	Dim ObjDB,ObjRS,C
	IntID = Request.QueryString("ID")
	Set ObjDB = SErver.CreateObject("Adodb.Connection")
	Set C = Server.CreateObject("CMS2003.DBhandle")
	OpenDB ObjDB
	C.Init(ObjDB)
	Set ObjRS = C.View("Select * From t_OA_Private_Data Where ID = " & FixSQL(IntID))
	Sub Main()
	%>
	<form action="" method="post" onsubmit="return(CheckForm(this))" id=form1 name=form1>
	<table class=Ltable cellspacing=1 cellpadding=3>
	<tr class=LHtr>
		<td width="15%">查看文本资料</td>
		<td width="85%"> </td>
	</tr>
	<tr class=Ltr>
		<td>标题</td>
		<td><input type="text" class=Input size=28 Check=1 Show="标题" name="_Title" value="<%=ObjRS("Title")%>"></td>
	</tr>

	<tr class=Ltr>
		<td>内容</td>
		<td><textarea class=Textarea rows=10 cols=22 Check=1 Show="内容" name="_Body" value=""><%=ObjRS("Body")%></textarea></td>
	</tr>

	<tr class=Ltr>
		<td>检索关键词</td>
		<td><input type="text" class=Input Check=1 size=28 Show="检索关键词" name="_KeyWord" value="<%=ObjRS("KeyWord")%>"></td>
	</tr>
	<table cellspacing=1 cellpadding=3>
	<tr>
		<td>
		<input type="submit"  name="Submit" class=Button value="提 交"><input type="button" class=Button value="取 消" onclick="doList()" id=button1 name=button1>
		</td>
		<td>
		</td>
	</tr>
	</table>
	</FORM>
	
	<%
	End Sub
	
	
	If ObjRS("NodeType") = 0 Then
%>
<script language=javascript>
parent.location = "Index.asp?ParentID=<%=Request.QueryString("ID")%>"
</script>
<%
	End If

	If ObjRS("NodeType") = 1 Then
%>
<script language=javascript>
window.open("File/<%=ObjRS("ID")%>.<%=ObjRS("ExtName")%>")
parent.location = "Index.asp?ParentID=<%=ObjRS("ParentID")%>"
</script>
<%
	End If
	If ObjRS("NodeType") = 2 Then
%>
<!-- #include file="Templet.asp" -->
<%
	End If

	If ObjRS("NodeType") = 3 Then
%>
<script language=javascript>
window.open("<%=ObjRS("LinkURL")%>")
parent.location = "Index.asp?ParentID=<%=ObjRS("ParentID")%>"
</script>
<%
	End If
%>

⌨️ 快捷键说明

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