Subversion Repositories DevTools

Rev

Rev 5513 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5355 dpurdie 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
<link rel="shortcut icon" href="<%=FavIcon%>"/>
44
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
45
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
46
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
47
<script language="JavaScript" src="scripts/common.js"></script>
48
</head>
49
 
50
<body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0">
51
<table width="100%"  border="0" cellspacing="0" cellpadding="10">
52
  <tr>
53
    <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>
54
    Choose different Product Name if you prefer.
55
      </td>
56
  </tr>
57
<%
58
'-- FROM START --------------------------------------------------------------------------------------------------------------
59
objFormComponent.FormName = "FormName"
60
objFormComponent.Action = "wAddProdNew.asp"
61
objFormComponent.OnSubmit = "ShowProgress();"
62
Call objFormComponent.FormStart()
63
%>  
64
  <tr>
65
    <td background="images/bg_login.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
66
      <tr>
67
        <td><%=ProgressBar()%></td>
68
        <td align="right"><input name="btn" type="reset" class="form_btn" value="&laquo; Back" onClick="history.back();">
69
        &nbsp;&nbsp;
70
        <input name="btn" type="submit" class="form_btn" value="Add">
71
          <input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();"></td>
72
      </tr>
73
    </table></td>
74
  </tr>
75
  <tr>
76
    <td>
77
<!-- NEW PRODUCT ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->		
78
    <%Call Messenger ( "Found similar Product Names. <br>Please choose different one if you prefer." , 3, "100%" )%>
79
	<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->	
80
	<!--#include file="messages/_msg_inline.asp"-->
81
    <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
82
	<table width="100%"  border="0" cellspacing="2" cellpadding="0">
83
      <tr>
84
        <td><input name="prod_name" type="radio" value="<%=parProd_name%>" checked></td>
85
		<td class="body_txt"><%=parProd_name%></td>
86
      </tr>
87
      <tr>
88
        <td background="images/bg_bage_0h.gif"><img src="images/spacer.gif" width="1" height="2"></td>
89
        <td background="images/bg_bage_0h.gif"><img src="images/spacer.gif" width="1" height="1"></td>
90
      </tr>
91
	  <%
92
	  OraDatabase.Parameters.Add "PROD_NAME", parProd_name, ORAPARM_INPUT, ORATYPE_VARCHAR2
93
 
94
	  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("SimilarProductNames.sql"), ORADYN_DEFAULT )
95
 
96
	  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
97
	  %>
98
      <tr>
99
        <td><input name="prod_name" type="radio" value="<%=rsQry("pkg_name")%>"></td>
100
		<td class="body_txt"><%=rsQry("pkg_name")%></td>
101
      </tr>
102
	  <%rsQry.MoveNext
103
	  WEnd
104
 
105
	  OraDatabase.Parameters.Remove "PROD_NAME"
106
	  rsQry.Close
107
	  Set rsQry = Nothing
108
	  %>
109
      <tr>
110
        <td width="1%" background="images/bg_bage_0h.gif"><img src="images/spacer.gif" width="1" height="2"></td>
111
		<td width="100%" background="images/bg_bage_0h.gif" class="val_err"><img src="images/spacer.gif" width="1" height="1"></td>
112
      </tr>
113
    </table>
114
	<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
115
    </td>
116
  </tr>
117
  <%=objPMod.ComposeHiddenTags()%>
118
  <input type="hidden" name="skip_similar_names" value="true">
119
  <input type="hidden" name="action" value="true">
120
<%
121
Call objFormComponent.FormEnd()
122
'-- FROM END ----------------------------------------------------------------------------------------------------------------
123
%>
124
</table>
125
</body>
126
</html>
5958 dpurdie 127
<!--#include file="common/globals_destructor.asp"-->