Subversion Repositories DevTools

Rev

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

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