PageRenderTime 27ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/SQL/scripts/srv/srvrole.asp

http://github.com/khaneh/Orders
ASP | 42 lines | 40 code | 2 blank | 0 comment | 0 complexity | 6908321e1033c6a75976ee2a1d7b9d79 MD5 | raw file
 1<!-- #INCLUDE FILE="../inc/mla_sql_include.asp" -->
 2<%
 3	Dim myArrRole, myRoleCount, i, myObjStr, myStrClass, myStrTree
 4	openConnection
 5	myStrTree = getTreeStr("2_3_2", Array())
 6	myArrRole = getSrvRole()
 7	closeConnection
 8	If isArray(myArrRole) Then myRoleCount = UBound(myArrRole, 2) Else myRoleCount = -1 End If
 9%>
10<!-- #INCLUDE FILE="../inc/metaheader.asp" -->
11<BODY>
12	<P CLASS="treeinfo"><% = myStrTree %></P>
13
14	<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0 CLASS="content" SUMMARY="Database Information">
15		<TR><TD CLASS="caption"><IMG SRC="../../themes/<% = mla_cfg_theme %>/images/mylittletree/srvrole.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALIGN="MIDDLE" ALT="Server Role"> <% = myTObj.getTerm(231) %></TD></TR>
16		<TR><TD>
17			<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 ALIGN=CENTER CLASS="content" SUMMARY="Server Role List">
18				<THEAD>
19					<TR><TD CLASS="collabel"><% = myTObj.getTerm(250) %></TD><TD CLASS="collabel"><% = myTObj.getTerm(251) %></TD></TR>
20				</THEAD>
21				<TBODY>
22					<%
23						Set myObjStr = New mlt_string
24						For i = 0 To myRoleCount
25							If i MOD 2 = 0 Then myStrClass = "odd" Else myStrClass = "even" End If
26							myObjStr.strAppend "<TR CLASS=""" & myStrClass & """>" & vBCrLf
27							myObjStr.strAppend "<TD><IMG SRC=""../../themes/" & mla_cfg_theme & "/images/mylittletree/srvrole.gif"" WIDTH=""16"" HEIGHT=""16"" BORDER=0 ALT=""" & myArrRole(0, i) & """ ALIGN=""MIDDLE""> "
28							myObjStr.strAppend "<B>" & myArrRole(0, i) & "</B></TD>" & vbCrLf
29							myObjStr.strAppend "<TD>" & myArrRole(1, i) & "</TD>" & vbCrLf
30							myObjStr.strAppend "</TR>" & vBCrLf
31						Next
32						Response.Write myObjStr.getStr()
33						Set myObjStr = Nothing
34					%>
35				</TBODY>
36			</TABLE>
37		</TD></TR>
38	</TABLE>
39
40</BODY>
41</HTML>
42<!-- #INCLUDE FILE="../inc/mla_sql_end.asp" -->