Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5356 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			          FindInBom  				 	 |
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
<!--#include file="common/_bom_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ VARIABLE DEFINITION -------------
23
Dim rsQry
24
Dim parKeyword
25
'------------ CONSTANTS DECLARATION -----------
26
'------------ VARIABLE INIT -------------------
27
parKeyword = Request("keyword")
28
'------------ CONDITIONS ----------------------
29
'----------------------------------------------
30
%>
31
<%
32
'------------ RUN BEFORE PAGE RENDER ----------
33
objPMod.PersistInQryString ( "keyword" )
34
'----------------------------------------------
35
%>
36
<html>
37
<head>
38
<title>Production Manager</title>
39
<link rel="shortcut icon" href="<%=FavIcon%>"/>
40
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
41
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
42
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
43
<script language="JavaScript" src="scripts/common.js"></script>
44
</head>
45
 
46
<body leftmargin="0" topmargin="0">
47
<!-- HEADER ++++++++++++++++ -->
48
<!--#include file="_header.asp"-->
49
<!-- +++++++++++++++++++++++ -->
50
<!-- MAIN MENU  +  CRUMBS ++++++++++++++++ -->
51
<!--#include file="_main_menu.asp"-->
52
<!-- +++++++++++++++++++++++++++++++++++++ -->
53
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
54
  <tr>
55
    <td width="1%" valign="top" background="images/bg_bage_0.gif">
56
	<!-- NODE BROWSER ++++++++++++++++++++++ -->
57
	<!--#include file="_bom_browser.asp"-->
58
	<!-- END OF NODE BROWSER +++++++++++++++ -->
59
	</td>
60
    <td width="1" background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="600"></td>
61
    <td width="100%" valign="top" bgcolor="#FFFFFF">
62
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
63
	  <tr>
64
        <td valign="top" background="images/bg_green.gif"></td>
65
        <td align="right" valign="bottom" background="images/bg_green.gif" class="body_txtw"><%Call RenderTitleWithoutVersion( objBomCollector )%></td>
66
        <td background="images/bg_green.gif"><img src="images/spacer.gif" width="10" height="20"></td>
67
      </tr>
68
      <tr>
69
        <td width="1%" valign="top" background="images/bg_green.gif"></td>
70
        <td width="100%" valign="bottom" background="images/bg_green.gif">
71
		<!-- TAB CONTROLS ++++++++++++++++++++++ -->
72
		<!-- END OF TAB CONTROLS +++++++++++++++ -->
73
		</td>
74
        <td width="1%" background="images/bg_green.gif"><img src="images/spacer.gif" width="10" height="35"></td>
75
        </tr>
76
      <tr>
77
        <td background="images/bg_bage_0.gif"><img src="images/spacer.gif" width="30" height="10"></td>
78
        <td background="images/bg_bage_0.gif">
79
		<!-- BUTTONS CONTROL +++++++++++++++++++ -->
80
		<!-- +++++++++++++++++++++++++++++++++++ -->
81
		</td>
82
        <td background="images/bg_green.gif"><img src="images/p_bar_corrner.gif" width="17" height="42"></td>
83
        </tr>
84
      <tr>
85
        <td>&nbsp;</td>
86
        <td>&nbsp;</td>
87
        <td valign="top"><%If Request.Cookies( enumCOOKIE_NAME )( "user_bar" ) = "hide" Then%><a href="<%=SCRIPT_NAME%>?user_bar=<%=enumDEFAULT%>&<%=objPMod.ComposeURL()%>"><img src="icons/b_left.gif" title="Maximize favourits" width="13" height="13" vspace="5" border="0"></a><%End If%></td>
88
        </tr>
89
    </table>
90
	<table width="100%"  border="0" cellspacing="10" cellpadding="0">
91
	  <tr>
92
	  	<td class="body_txt">Search Results for <strong><%=parKeyword%></strong></td>
93
	  </tr>
94
      <tr>
95
        <td>
96
		<!-- PAGE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
97
		<%
98
		OraDatabase.Parameters.Add "BOM_ID", 	dbPARbom_id,	ORAPARM_INPUT, ORATYPE_NUMBER
99
		OraDatabase.Parameters.Add "KEYWORD", 	"%"& parKeyword &"%",	ORAPARM_INPUT, ORATYPE_NUMBER
100
 
101
 
102
		Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("FindInBom.sql") , ORADYN_DEFAULT )
103
 
104
		'Pass record set to Repeater
105
		objRepeater.RecordSet = rsQry
106
 
107
		'Define Table Row with bound variables
108
		objRepeater.Row = _
109
			"<tr>"&_
110
			"  <td class='body_rowlite' class='body_rowlite'><a href='""& <#URL#> &""' class='body_link'>""& HighlightSubstring ( <#RESULT_NAME#> , parKeyword ) &""</a><br>"&_
111
			"    ""& <#LOCATION#> &"" <br>"&_
112
			"  </td>"&_
113
			"</tr>"
114
		%>
115
		<%Call objRepeater.Navigator ( TRUE, TRUE )%>
116
		<table width="100%"  border="0" cellspacing="0" cellpadding="5">
117
		  <tr>
118
            <td background="images/bg_bage_0.gif"><img src="images/spacer.gif" width="1" height="1"></td>
119
		  </tr>
120
		  <%objRepeater.RenderDataGrid ()%>
121
		  <tr>
122
            <td background="images/bg_bage_0.gif"><img src="images/spacer.gif" width="1" height="1"></td>
123
		  </tr>
124
        </table>
125
		<%
126
		OraDatabase.Parameters.Remove "BOM_ID"
127
		OraDatabase.Parameters.Remove "KEYWORD"
128
 
129
		rsQry.Close()
130
		Set rsQry = Nothing
131
		%>
132
		<%Call objRepeater.Navigator ( FALSE, TRUE )%>		
133
		<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
134
	   </td>
135
      </tr>
136
    </table>
137
	</td>
138
    <td width="1%" valign="top" background="images/bg_favourits.gif">
139
	<%If Request.Cookies( enumCOOKIE_NAME )( "user_bar" ) <> "hide" Then%>
140
 
141
	<%End If%>
142
   </td>
143
  </tr>
144
  <tr>
145
    <td background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="15"></td>
146
    <td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
147
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
148
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
149
  </tr>
150
  <tr>
151
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="20"></td>
152
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
153
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td>
154
    <td bgcolor="#FFFFFF">&nbsp;</td>
155
  </tr>
156
</table>
157
<!-- FOOTER ++++++++++++++++ -->
158
<!--#include file="_footer.asp"-->
159
<!-- +++++++++++++++++++++++ -->
160
</body>
161
</html>
162
<%
163
'------------ RUN AFTER PAGE RENDER -----------
164
Set objPMod = Nothing
165
Set objCrumbs = Nothing
166
'Set objTabControl = Nothing
167
'----------------------------------------------
62 rsolanki 168
%><!--#include file="common/globals_destructor.asp"-->