Rev 62 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| wAddProdBySearch |'| |'=====================================================%><%Option explicitResponse.Expires = 0%><!--#include file="common/globals.asp"--><!--#include file="common/config.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/_popup_window_common.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ VARIABLE DEFINITION -------------Dim rsQryDim parProd_name'------------ CONSTANTS DECLARATION -----------'------------ VARIABLE INIT -------------------parBom_id = Request("bom_id")parProd_name = Request("prod_name")parOs_id = Request("os_id")'------------ CONDITIONS ----------------------'----------------------------------------------%><%'--------------------------------------------------------------------------------------------------------------------------Function SearchProductNamesQuery ( sProd_name )Dim tempSTRtempSTR = GetQuery ("ProductNameSearch.sql")SearchProductNamesQuery = Replace ( tempSTR, ":PROD_NAME", sProd_name )End Function'--------------------------------------------------------------------------------------------------------------------------%><%'------------ RUN BEFORE PAGE RENDER ----------objPMod.PersistInQryString ( Array("base_env_id") )'----------------------------------------------%><html><head><title>Deployment Manager</title><meta HTTP-EQUIV="Pragma" CONTENT="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css"><script language="JavaScript" src="scripts/common.js"></script></head><body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" onLoad="self.focus();"><table width="100%" border="0" cellspacing="0" cellpadding="10"><tr><td bgcolor="#FFFFFF" class="body_txt"><span class="body_h1"><img src="icons/i_linkarrow_black.gif" width="11" height="11" align="absmiddle"> Add Product </span> <br><br></td></tr><form name="FormSearch" method="post" action="wAddProdBySearch.asp"><tr><td background="images/bg_quicksearch.gif" class="body_txt"><table width="100" border="0" cellspacing="3" cellpadding="0"><tr><td nowrap class="body_txtw"><strong>Product Search</strong> </td><td><input name="prod_name" type="text" class="body_txt" size="20" value="<%=parProd_name%>"></td><td><input name="btnSearch" type="image" src="icons/b_search.gif" width="16" height="16" border="0"></td></tr></table></td></tr><%=objPMod.ComposeHiddenTags()%></form><form name="FormName" method="post" action="wAddProdGetVersion.asp"><tr><td background="images/bg_login.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td> </td><td align="right"><input name="btn" type="reset" class="form_btn" value="« Back" onClick="history.back();"><input name="btn" type="submit" class="form_btn" value="Next »" <%If parProd_name = "" Then%>disabled<%End If%>> <input name="btn" type="reset" class="form_btn" value="Add" disabled><input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();"></td></tr></table></td></tr><tr><td><!-- PRODUCT NAME RESULTS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><%If parProd_name <> "" Then%><table width="100%" border="0" cellspacing="10" cellpadding="0"><tr><td width="100%" valign="top" nowrap class="body_txt">Search result for <strong><%=parProd_name%></strong> <br><br><%Set rsQry = OraDatabase.DbCreateDynaset( SearchProductNamesQuery ( parProd_name ), ORADYN_DEFAULT )%><%If rsQry.RecordCount < 1 Then%><!-- NO RESULTS -->No Results Found.<%Else%><!-- FOUND RESULTS -->Select Product and click Next.<table width="100%" border="0" cellspacing="2" cellpadding="0"><%While (NOT rsQry.BOF) AND (NOT rsQry.EOF)%><tr><td nowrap class="form_iname"><input type="checkbox" name="pkg_id_list" value="<%=rsQry("pkg_id")%>" <%=rsQry("checked")%>></td><td valign="top" nowrap class="body_txt"><img src="icons/i_product.gif" width="19" height="19" hspace="2" align="absmiddle"><%=HighlightSubstring ( rsQry("pkg_name"), parProd_name )%></td></tr><%rsQry.MoveNext%><%WEndrsQry.CloseSet rsQry = Nothing%><tr><td width="1" background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="1"></td><td width="100%" background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr></table><%End If%></td></tr></table><%End If%><!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --></td></tr><%=objPMod.ComposeHiddenTags()%></form></table></body></html><%'------------ RUN AFTER PAGE RENDER -----------'Set objFormCollector = Nothing'----------------------------------------------%><!--#include file="common/globals_destructor.asp"-->