PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/SQL/scripts/db/dbsp.asp

http://github.com/khaneh/Orders
ASP | 54 lines | 52 code | 2 blank | 0 comment | 0 complexity | a1825a764e20f30014ab268c98ff47ab MD5 | raw file
 1<!-- #INCLUDE FILE="../inc/mla_sql_include.asp" -->
 2<%
 3	Dim myDbName, myNodeId, myArrSp, mySpCount, i, myObjStr, myStrClass, mySpName, myStrTree
 4	myNodeId = Request.QueryString("nid")
 5	myDbName = Request.QueryString("db")
 6	openConnection
 7	myStrTree = getTreeStr(Mid(myNodeId, 2) & "_3", Array(myDbName))
 8	myArrSp = getDbSp(myDbName)
 9	closeConnection
10	If isArray(myArrSp) Then mySpCount = UBound(myArrSp, 2) Else mySpCount = -1 End If
11%>
12<!-- #INCLUDE FILE="../inc/metaheader.asp" -->
13<BODY>
14	<P CLASS="treeinfo"><% = myStrTree %></P>
15
16	<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0 CLASS="content" SUMMARY="Database Information">
17		<TR><TD CLASS="caption">
18		<IMG SRC="../../themes/<% = mla_cfg_theme %>/images/mylittletree/sp.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALIGN="MIDDLE" ALT="Stored Procedures"> <% = myTObj.getTerm(9) %></TD></TR>
19		<TR><TD>
20			<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 ALIGN=CENTER CLASS="content" SUMMARY="Stored Procedure List">
21				<THEAD>
22					<TR><TD CLASS="collabel"><% = myTObj.getTerm(170) %></TD><TD CLASS="collabel"><% = myTObj.getTerm(121) %></TD><TD CLASS="collabel"><% = myTObj.getTerm(122) %></TD></TR>
23				</THEAD>
24				<TBODY>
25					<%
26						Set myObjStr = New mlt_string
27						For i = 0 To mySpCount
28							mySpName ="[" & rembracket(myArrSp(1, i)) & "].[" & rembracket(myArrSp(0, i)) & "]"
29							If i MOD 2 = 0 Then myStrClass = "odd" Else myStrClass = "even" End If
30							myObjStr.strAppend "<TR CLASS=""" & myStrClass & """>" & vBCrLf
31							myObjStr.strAppend "<TD><IMG SRC=""../../themes/" & mla_cfg_theme & "/images/mylittletree/sp.gif"" WIDTH=""16"" HEIGHT=""16"" BORDER=0 ALT=""" & myArrSp(0, i) & """ ALIGN=""MIDDLE""> "
32							If mla_auth(3, 4) Then myObjStr.strAppend "<A HREF=""spstruct.asp?nid=" & myNodeId & "&db=" & Server.URLEncode(myDbName) & "&sp=" & Server.URLEncode(mySpName) & """>"
33							If Trim(myArrSp(3, i)) <> 0 Then
34								myObjStr.strAppend "<B><I>" & myArrSp(0, i) & "</I></B>"
35							Else
36								myObjStr.strAppend "<B>" & myArrSp(0, i) & "</B>"
37							End If
38							If mla_auth(3, 4) Then myObjStr.strAppend "</A>"
39							myObjStr.strAppend "</TD>" & vbCrLf
40							myObjStr.strAppend "<TD>" & myArrSp(1, i) & "</TD>" & vbCrLf
41							myObjStr.strAppend "<TD>" & myArrSp(2, i) & "</TD>" & vbCrLf
42							myObjStr.strAppend "</TR>" & vBCrLf
43						Next
44						Response.Write myObjStr.getStr()
45						Set myObjStr = Nothing
46					%>
47				</TBODY>
48			</TABLE>
49		</TD></TR>
50	</TABLE>
51
52</BODY>
53</HTML>
54<!-- #INCLUDE FILE="../inc/mla_sql_end.asp" -->