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

/SQL/scripts/db/dbuser.asp

http://github.com/khaneh/Orders
ASP | 46 lines | 44 code | 2 blank | 0 comment | 0 complexity | 6973d03a23dbabf52883051a9c525e33 MD5 | raw file
 1<!-- #INCLUDE FILE="../inc/mla_sql_include.asp" -->
 2<%
 3	Dim myDbName, myNodeId, myArrUser, myUserCount, i, myObjStr, myStrClass, myStrTree
 4	myNodeId = Request.QueryString("nid")
 5	myDbName = Request.QueryString("db")
 6	openConnection
 7	myStrTree = getTreeStr(Mid(myNodeId, 2) & "_4", Array(myDbName))
 8	myArrUser = getDbUser(myDbName)
 9	closeConnection
10	If isArray(myArrUser) Then myUserCount = UBound(myArrUser, 2) Else myUserCount = -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/user.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALIGN="MIDDLE" ALT="Users"> <% = myTObj.getTerm(10) %></TD></TR>
19		<TR><TD>
20			<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 ALIGN=CENTER CLASS="content" SUMMARY="User List">
21				<THEAD>
22					<TR><TD CLASS="collabel"><% = myTObj.getTerm(210) %></TD><TD CLASS="collabel"><% = myTObj.getTerm(211) %></TD></TR>
23				</THEAD>
24				<TBODY>
25					<%
26						Set myObjStr = New mlt_string
27						For i = 0 To myUserCount
28							If i MOD 2 = 0 Then myStrClass = "odd" Else myStrClass = "even" End If
29							myObjStr.strAppend "<TR CLASS=""" & myStrClass & """>" & vBCrLf
30							myObjStr.strAppend "<TD><IMG SRC=""../../themes/" & mla_cfg_theme & "/images/mylittletree/user.gif"" WIDTH=""16"" HEIGHT=""16"" BORDER=0 ALT=""" & myArrUser(0, i) & """ ALIGN=""MIDDLE""> "
31							myObjStr.strAppend "<B>" & myArrUser(0, i) & "</B>"
32							myObjStr.strAppend "</TD>" & vbCrLf
33							myObjStr.strAppend "<TD>" & myArrUser(1, i) & "</TD>" & vbCrLf
34							myObjStr.strAppend "</TR>" & vBCrLf
35						Next
36						Response.Write myObjStr.getStr()
37						Set myObjStr = Nothing
38					%>
39				</TBODY>
40			</TABLE>
41		</TD></TR>
42	</TABLE>
43
44</BODY>
45</HTML>
46<!-- #INCLUDE FILE="../inc/mla_sql_end.asp" -->