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

/SQL/scripts/db/dbdefault.asp

http://github.com/khaneh/Orders
ASP | 48 lines | 46 code | 2 blank | 0 comment | 0 complexity | ba77b94934c7a3de790e3f0445e42bd3 MD5 | raw file
 1<!-- #INCLUDE FILE="../inc/mla_sql_include.asp" -->
 2<%
 3	Dim myDbName, myNodeId, myArrDefault, myDefaultCount, i, myObjStr, myStrClass, myStrTree, myDefaultName
 4	myNodeId = Request.QueryString("nid")
 5	myDbName = Request.QueryString("db")
 6	openConnection
 7	myStrTree = getTreeStr(Mid(myNodeId, 2) & "_7", Array(myDbName))
 8	myArrDefault = getDbDefault(myDbName)
 9	closeConnection
10	If isArray(myArrDefault) Then myDefaultCount = UBound(myArrDefault, 2) Else myDefaultCount = -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/default.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALIGN="MIDDLE" ALT="Defaults"> <% = myTObj.getTerm(13) %></TD></TR>
19		<TR><TD>
20			<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 ALIGN=CENTER CLASS="content" SUMMARY="Default List">
21				<THEAD>
22					<TR><TD CLASS="collabel"><% = myTObj.getTerm(190) %></TD><TD CLASS="collabel"><% = myTObj.getTerm(121) %></TD><TD CLASS="collabel"><% = myTObj.getTerm(122) %></TD><TD CLASS="collabel"><% = myTObj.getTerm(191) %></TD></TR>
23				</THEAD>
24				<TBODY>
25					<%
26						Set myObjStr = New mlt_string
27						For i = 0 To myDefaultCount
28							myDefaultName = "[" & rembracket(myArrDefault(1, i)) & "].[" & rembracket(myArrDefault(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/default.gif"" WIDTH=""16"" HEIGHT=""16"" BORDER=0 ALT=""" & myArrDefault(0, i) & """ ALIGN=""MIDDLE""> "
32							myObjStr.strAppend "<B>" & myArrDefault(0, i) & "</B></TD>" & vbCrLf
33							myObjStr.strAppend "<TD>" & myArrDefault(1, i) & "</TD>" & vbCrLf
34							myObjStr.strAppend "<TD>" & myArrDefault(2, i) & "</TD>" & vbCrLf
35							myObjStr.strAppend "<TD>" & myArrDefault(3, i) & "</TD>" & vbCrLf
36							myObjStr.strAppend "</TR>" & vBCrLf
37						Next
38						Response.Write myObjStr.getStr()
39						Set myObjStr = Nothing
40					%>
41				</TBODY>
42			</TABLE>
43		</TD></TR>
44	</TABLE>
45
46</BODY>
47</HTML>
48<!-- #INCLUDE FILE="../inc/mla_sql_end.asp" -->