Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|				       SEARCH RESULT			     |
6
'|					  PACKAGES					     |
7
'|                                                   |
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0	' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<%
21
' Make sure rtag_id is always present
22
If Request("pv_id") = "" AND Request("rtag_id") = "" Then
23
	Response.Redirect("index.asp")
24
End If
25
 
26
objPMod.PersistInQryString ( aPersistList(enumPAR_ADD_TYPE) )
27
objPMod.PersistInCookie("pkgfind")
28
%>
29
<%
30
'------------ ACCESS CONTROL ------------------
31
%>
32
<!--#include file="_access_control_login.asp"-->
33
<!--#include file="_access_control_general.asp"-->
34
<%
35
'------------ Variable Definition -------------
36
Dim parAdd_type
37
Dim parPkgfind
38
Dim rsFind
39
Dim parPv_id
40
Dim RecCount
41
'------------ Constants Declaration -----------
42
'------------ Variable Init -------------------
43
parAdd_type = Request("add_type")
44
parPkgfind = Request("pkgfind")
45
parPv_id = Request("pv_id")
46
'----------------------------------------------
47
%>
48
<%
49
Function Page_Title ( NNadd_type )
50
	If NNadd_type = Cstr(enum_ADD_PACKAGES) Then
51
		Page_Title = "ADD package"
52
 
53
	ElseIf NNadd_type = Cstr(enum_ADD_DEPENDENCIES) Then
54
		Page_Title = "ADD dependency"
55
 
56
	ElseIf NNadd_type = Cstr(enum_ADD_RUNTIME_DEPENDENCIES) Then
57
		Page_Title = "ADD Runtime Dependency"
58
 
59
	Else
60
		Page_Title = ""
61
 
62
	End If
63
End Function
64
 
65
Function Search_For_Package_Names ( SSpkgfind )
66
	Dim pkg_name_like, SQLor, pkglistARR
67
 
68
	SQLor = ""
69
	If Len( Replace( SSpkgfind, " ", "" ) ) = 0 Then
70
		' Show all pkg names
71
		SQLor = " OR pkg.pkg_name LIKE '%'"
72
 
73
	Else
74
		' Search for ...
75
		pkglistARR = Split( Trim( SSpkgfind ), " ")
76
 
77
		If Ubound( pkglistARR ) > 0 Then
78
			' Multiple pkg_name search
79
			For Each pkg_name_like In pkglistARR
80
				If pkg_name_like <> "" Then
81
					SQLor = SQLor &" OR UPPER(pkg.pkg_name) LIKE UPPER('%"& pkg_name_like &"%')"
82
				End If
83
			Next
84
 
85
		Else
86
			' Single pkg_name search
87
			SQLor = " OR UPPER(pkg.pkg_name) LIKE UPPER('%"& Trim( SSpkgfind ) &"%')"
88
		End If
89
 
90
	End If
91
 
92
	Search_For_Package_Names = _
93
	" SELECT pkg.*"&_
94
	"  FROM packages pkg"&_
95
	" WHERE pkg.pkg_id != 0"&_
96
	"   AND ( pkg.pkg_name = ''"&_
97
	SQLor &_
98
	"       )"&_
99
	"ORDER BY UPPER(pkg.pkg_name)"
100
 
101
End Function
102
%>
103
<html>
104
<head>
105
<title>Release Manager</title>
106
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
107
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
108
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
109
<link rel="stylesheet" href="images/navigation.css" type="text/css">
110
<script language="JavaScript" src="images/common.js"></script>
111
<!-- DROPDOWN MENUS -->
112
<!--#include file="_menu_def.asp"-->
113
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
114
 
115
</head>
116
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.pkgnames.btnnext.focus();">
117
<!-- MENU LAYERS -------------------------------------->
118
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
119
</div>
120
<!-- TIPS LAYERS -------------------------------------->
121
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
122
<!----------------------------------------------------->
123
<!-- HEADER -->
124
<!--#include file="_header.asp"-->
125
<!-- BODY ---->
126
<table width="100%" height="80%" border="0" cellpadding="0" cellspacing="0">
127
  <tr>
128
    <td align="center" valign="top" background="images/bg_lght_gray.gif">
129
	<!-- MIDDLE ---------------------------------------->
130
	<table width="650" border="0" cellspacing="0" cellpadding="0">
131
	  <tr> 
132
	    <td> 
133
	      <table width="100%" border="0" cellspacing="0" cellpadding="0">
134
	        <tr> 
135
	          <td width="1%"></td>
136
	          <td align="right"><img src="images/h_trsp_dot.gif" width="30" height="30"></td>
137
	          <td width="1%"></td>
138
	        </tr>
139
	        <tr> 
140
	          <td width="1%"></td>
141
	          <td> 
142
	            <table width="100%" border="0" cellspacing="0" cellpadding="0">
143
	              <tr> 
144
	                  <td nowrap class="form_ttl"><%=Page_Title ( parAdd_type )%></td>
145
	                <td align="right" valign="bottom"></td>
146
	              </tr>
147
	            </table>
148
	          </td>
149
	          <td width="1%"></td>
150
	        </tr>
151
	        <tr> 
152
	          <td align="left" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
153
	          <td background="images/lbox_bg_blue.gif" align="right"><!-- Heading --><img src="images/h_trsp_dot.gif" width="1" height="20"><!-- END Heading --></td>
154
	          <td align="right" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
155
	        </tr>
156
	        <tr> 
157
	            <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
158
	            <td bgcolor="#FFFFFF" valign="top"> 
159
                  <!-- Body -->
160
                  <br>
161
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
162
                    <tr>
163
                      <td valign="bottom" nowrap><span class="form_txt">Search result 
164
                        for <strong><%=parPkgfind%></strong></span></td>
165
                      <td align="right" valign="top" nowrap><a href="form_new_pkg_name.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&add_type=<%=parAdd_type%>" class="body_txt_drk"><strong>Not 
166
                        found what you looking for?</strong><br>
167
                        <img src="images/i_new_pkg.gif" width="20" height="21" hspace="3" border="0" align="absmiddle">Create 
168
                        new package name.</a></td>
169
                    </tr>
170
                  </table><br>
171
                  <table width="100%" border="0" cellspacing="1" cellpadding="2">
172
					<form name="pkgnames" method="post" action="form_add_pkg_versions.asp">
173
                      <tr> 
174
                        <td colspan="2" valign="bottom" nowrap class="form_txt">Select desired packages and click Next.</td>
175
                      </tr>
176
					  <tr> 
177
                        <td background="images/bg_form_lightbluedark.gif"></td>
178
                        <td background="images/bg_form_lightbluedark.gif" class="form_txt"><b>Package Name</b></td>
179
                      </tr>
180
					  <%Set rsFind = OraDatabase.DbCreateDynaset( Search_For_Package_Names ( parPkgfind ), cint(0))%>
181
					  <%RecCount = CInt(rsFind.RecordCount)%>
182
					  <%While ((NOT rsFind.BOF) AND (NOT rsFind.EOF)) %>
183
                      <tr> 
184
                        <td background="images/bg_form_lightgray.gif"><input name="pkg_list" id="pkg_list" type="checkbox" value="<%=rsFind("pkg_id")%>" <%If RecCount = 1 Then%>checked<%End If%>></td>
185
                        <td background="images/bg_form_lightgray.gif" class="form_txt"><%=Highlight_Substring ( rsFind("pkg_name"), parPkgfind )%></td>
186
                      </tr>
187
					  <%rsFind.MoveNext
188
					  WEnd
189
 
190
					  rsFind.Close
191
					  Set rsFind = nothing
192
					  %>
193
                      <tr> 
194
                        <td width="1%" nowrap class="form_field">&nbsp; </td>
195
                        <td nowrap width="100%" class="form_txt">
196
						  <%If Request("errmsg") <> "" Then Call DisplayInfo( "PKG_NAME_REQUIRED", 200 )%>
197
						  <input type="reset" name="btn" value="&laquo; Back" class="form_btn" onClick="history.back();"> 
198
                          <input type="submit" name="btn" value="Next &raquo;" class="form_btn" id="btnnext"> 
199
                          <input type="reset" name="btn" value="Cancel" class="form_btn" onClick="history.go(-2);">
200
                          <br>
201
                          <br>
202
                        </td>
203
                      </tr>
204
					  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
205
                      <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
206
                      <input type="hidden" name="add_type" value="<%=parAdd_type%>">
207
					  <input type="hidden" name="pkgfind" value="<%=parPkgfind%>">
208
                    </form>
209
                  </table>
210
	            <!-- END Body-->
211
	          </td>
212
	          <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
213
	        </tr>
214
	        <tr> 
215
	          <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
216
	          <td background="images/lbox_bg_blue.gif"></td>
217
	          <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
218
	        </tr>
219
	      </table>
220
	    </td>
221
	  </tr>
222
	</table>
223
	<!-------------------------------------------------->
224
	</td>
225
  </tr>
226
  <tr>
227
    <td valign="bottom" background="images/bg_lght_gray.gif">
228
	<!-- FOOTER -->
229
	<!--#include file="_footer.asp"-->
230
	</td>
231
  </tr>
232
</table>
233
</body>
234
</html>
235
<%
236
Call Destroy_All_Objects
237
%>