Subversion Repositories DevTools

Rev

Rev 62 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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