Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
62 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			          wAddProdSimilarNames		 	 |
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/_popup_window_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ VARIABLE DEFINITION -------------
23
Dim rsQry
24
Dim parProd_name
25
'------------ CONSTANTS DECLARATION -----------
26
'------------ VARIABLE INIT -------------------
27
parProd_name = Request("prod_name")
28
'------------ CONDITIONS ----------------------
29
'----------------------------------------------
30
%>
31
<%
32
'--------------------------------------------------------------------------------------------------------------------------
33
'--------------------------------------------------------------------------------------------------------------------------
34
%>
35
<%
36
'------------ RUN BEFORE PAGE RENDER ----------
37
objPMod.PersistInQryString ( Array("base_env_id", "prod_version") )
38
'----------------------------------------------
39
%>
40
<html>
41
<head>
42
<title>Deployment Manager</title>
43
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
44
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
45
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
46
<script language="JavaScript" src="scripts/common.js"></script>
47
</head>
48
 
49
<body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0">
50
<table width="100%"  border="0" cellspacing="0" cellpadding="10">
51
  <tr>
52
    <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>
53
    Choose different Product Name if you prefer.
54
      </td>
55
  </tr>
56
<%
57
'-- FROM START --------------------------------------------------------------------------------------------------------------
58
objFormComponent.FormName = "FormName"
59
objFormComponent.Action = "wAddProdNew.asp"
60
objFormComponent.OnSubmit = "ShowProgress();"
61
Call objFormComponent.FormStart()
62
%>  
63
  <tr>
64
    <td background="images/bg_login.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
65
      <tr>
66
        <td><%=ProgressBar()%></td>
67
        <td align="right"><input name="btn" type="reset" class="form_btn" value="&laquo; Back" onClick="history.back();">
68
        &nbsp;&nbsp;
69
        <input name="btn" type="submit" class="form_btn" value="Add">
70
          <input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();"></td>
71
      </tr>
72
    </table></td>
73
  </tr>
74
  <tr>
75
    <td>
76
<!-- NEW PRODUCT ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->		
77
    <%Call Messenger ( "Found similar Product Names. <br>Please choose different one if you prefer." , 3, "100%" )%>
78
	<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->	
79
	<!--#include file="messages/_msg_inline.asp"-->
80
    <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
81
	<table width="100%"  border="0" cellspacing="2" cellpadding="0">
82
      <tr>
83
        <td><input name="prod_name" type="radio" value="<%=parProd_name%>" checked></td>
84
		<td class="body_txt"><%=parProd_name%></td>
85
      </tr>
86
      <tr>
87
        <td background="images/bg_bage_0h.gif"><img src="images/spacer.gif" width="1" height="2"></td>
88
        <td background="images/bg_bage_0h.gif"><img src="images/spacer.gif" width="1" height="1"></td>
89
      </tr>
90
	  <%
91
	  OraDatabase.Parameters.Add "PROD_NAME", parProd_name, ORAPARM_INPUT, ORATYPE_VARCHAR2
92
 
93
	  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("SimilarProductNames.sql"), ORADYN_DEFAULT )
94
 
95
	  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
96
	  %>
97
      <tr>
98
        <td><input name="prod_name" type="radio" value="<%=rsQry("pkg_name")%>"></td>
99
		<td class="body_txt"><%=rsQry("pkg_name")%></td>
100
      </tr>
101
	  <%rsQry.MoveNext
102
	  WEnd
103
 
104
	  OraDatabase.Parameters.Remove "PROD_NAME"
105
	  rsQry.Close
106
	  Set rsQry = Nothing
107
	  %>
108
      <tr>
109
        <td width="1%" background="images/bg_bage_0h.gif"><img src="images/spacer.gif" width="1" height="2"></td>
110
		<td width="100%" background="images/bg_bage_0h.gif" class="val_err"><img src="images/spacer.gif" width="1" height="1"></td>
111
      </tr>
112
    </table>
113
	<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
114
    </td>
115
  </tr>
116
  <%=objPMod.ComposeHiddenTags()%>
117
  <input type="hidden" name="skip_similar_names" value="true">
118
  <input type="hidden" name="action" value="true">
119
<%
120
Call objFormComponent.FormEnd()
121
'-- FROM END ----------------------------------------------------------------------------------------------------------------
122
%>
123
</table>
124
</body>
125
</html>
126
<%
127
'------------ RUN AFTER PAGE RENDER -----------
128
'----------------------------------------------
129
%><!--#include file="common/globals_destructor.asp"-->