Subversion Repositories DevTools

Rev

Rev 62 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
62 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|		          RequestProductLocation		 	 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<%
17
'------------ VARIABLE DEFINITION -------------
18
Dim rsQry
19
Dim bgColor
20
Dim parBomId
21
'------------ CONSTANTS DECLARATION -----------
22
'------------ VARIABLE INIT -------------------
23
parBomId = Request("bom_id")
24
'------------ CONDITIONS ----------------------
25
'----------------------------------------------
26
%>
27
<%
28
'--------------------------------------------------------------------------------------------------------------
29
'--------------------------------------------------------------------------------------------------------------
30
%>
31
<%
32
'------------ RUN BEFORE PAGE RENDER ----------
33
'----------------------------------------------
34
%>
35
 
36
 
37
		<table width="100%"  border="0" cellspacing="3" cellpadding="0">
38
          <%
39
		  OraDatabase.Parameters.Add "BOM_ID", 	parBomId,		ORAPARM_INPUT, ORATYPE_NUMBER 
40
		  OraDatabase.Parameters.Add "PROD_ID", Request("prod_id"),		ORAPARM_INPUT, ORATYPE_NUMBER 
41
 
42
		  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("BomProductLocations.sql"), ORADYN_DEFAULT )
43
 
44
		  bgColor = NULL
45
		  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
46
 
47
		  	If IsNull( bgColor ) Then
48
				bgColor = "bgcolor='#F5F5F5'"
49
			Else
50
				bgColor = NULL
51
			End If
52
		  %>
53
		  <tr>
54
            <td <%=bgColor%> nowrap valign="top" class="body_row" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;
55
			<img hspace="4" src="icons/<%=rsQry("node_icon")%>" align="absmiddle" border="0"><a href="NodeDefault.asp?node_id=<%=rsQry("node_id")%>&bom_id=<%=parBomId%>" class="body_link"><%=rsQry("node_name")%></a>
56
				&nbsp;/&nbsp;<a href="OsDefault.asp?os_id=<%=rsQry("os_id")%>&bom_id=<%=parBomId%>" class="body_link"><%=rsQry("os_name") %></a>
57
				&nbsp;/&nbsp;<a href="ProdDefault.asp?os_id=<%=rsQry("os_id")%>&prod_id=<%=rsQry("prod_id")%>&bom_id=<%=parBomId%>" class="body_link"><%=rsQry("pkg_name") &" "& rsQry("pkg_version")%></a>
58
			</td>
59
          </tr>
60
	  	  <%
61
		  	rsQry.MoveNext
62
		  WEnd
63
 
64
		  OraDatabase.Parameters.Remove "BOM_ID"
65
		  OraDatabase.Parameters.Remove "PROD_ID"
66
 
67
		  rsQry.Close
68
		  Set rsQry = Nothing
69
		  %>
70
 
71
 
72
		</table>	
73
 
74
 
75
 
76
<%
77
'------------ RUN AFTER PAGE RENDER -----------
78
'----------------------------------------------
79
%><!--#include file="common/globals_destructor.asp"-->