Subversion Repositories DevTools

Rev

Rev 13 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                                wAddProdSimilarNames                   |
'|                                                   |
'=====================================================
%>
<%
Option explicit
Response.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 rsQry
Dim parProd_name
'------------ CONSTANTS DECLARATION -----------
'------------ VARIABLE INIT -------------------
parProd_name = Request("prod_name")
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'--------------------------------------------------------------------------------------------------------------------------
'--------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------ RUN BEFORE PAGE RENDER ----------
objPMod.PersistInQryString ( Array("base_env_id", "prod_version") )
'----------------------------------------------
%>
<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">
<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">&nbsp;Add Product </span> <br>
    Choose different Product Name if you prefer.
      </td>
  </tr>
<%
'-- FROM START --------------------------------------------------------------------------------------------------------------
objFormComponent.FormName = "FormName"
objFormComponent.Action = "wAddProdNew.asp"
objFormComponent.OnSubmit = "ShowProgress();"
Call objFormComponent.FormStart()
%>  
  <tr>
    <td background="images/bg_login.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><%=ProgressBar()%></td>
        <td align="right"><input name="btn" type="reset" class="form_btn" value="&laquo; Back" onClick="history.back();">
        &nbsp;&nbsp;
        <input name="btn" type="submit" class="form_btn" value="Add">
          <input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>
<!-- NEW PRODUCT ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->         
    <%Call Messenger ( "Found similar Product Names. <br>Please choose different one if you prefer." , 3, "100%" )%>
        <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->    
        <!--#include file="messages/_msg_inline.asp"-->
    <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        <table width="100%"  border="0" cellspacing="2" cellpadding="0">
      <tr>
        <td><input name="prod_name" type="radio" value="<%=parProd_name%>" checked></td>
                <td class="body_txt"><%=parProd_name%></td>
      </tr>
      <tr>
        <td background="images/bg_bage_0h.gif"><img src="images/spacer.gif" width="1" height="2"></td>
        <td background="images/bg_bage_0h.gif"><img src="images/spacer.gif" width="1" height="1"></td>
      </tr>
          <%
          OraDatabase.Parameters.Add "PROD_NAME", parProd_name, ORAPARM_INPUT, ORATYPE_VARCHAR2
          
          Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("SimilarProductNames.sql"), ORADYN_DEFAULT )
          
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
          %>
      <tr>
        <td><input name="prod_name" type="radio" value="<%=rsQry("pkg_name")%>"></td>
                <td class="body_txt"><%=rsQry("pkg_name")%></td>
      </tr>
          <%rsQry.MoveNext
          WEnd
          
          OraDatabase.Parameters.Remove "PROD_NAME"
          rsQry.Close
          Set rsQry = Nothing
          %>
      <tr>
        <td width="1%" background="images/bg_bage_0h.gif"><img src="images/spacer.gif" width="1" height="2"></td>
                <td width="100%" background="images/bg_bage_0h.gif" class="val_err"><img src="images/spacer.gif" width="1" height="1"></td>
      </tr>
    </table>
        <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    </td>
  </tr>
  <%=objPMod.ComposeHiddenTags()%>
  <input type="hidden" name="skip_similar_names" value="true">
  <input type="hidden" name="action" value="true">
<%
Call objFormComponent.FormEnd()
'-- FROM END ----------------------------------------------------------------------------------------------------------------
%>
</table>
</body>
</html>
<%
'------------ RUN AFTER PAGE RENDER -----------
'----------------------------------------------
%><!--#include file="common/globals_destructor.asp"-->