Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			          wNodeSpec					 	 |
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
<!--#include file="class/classTabControl.asp"-->
18
<!--#include file="class/classTemplateManager.asp"-->
19
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_general.asp"-->
23
<%
24
'------------ VARIABLE DEFINITION -------------
25
Dim objTabControl
26
Dim objTemplateManager
27
Dim rsQry
28
Dim OsTab
29
'------------ CONSTANTS DECLARATION -----------
30
'------------ VARIABLE INIT -------------------
31
 
32
Call GetMainDBParameters ( dbPARproj_id, dbPARbranch_id, dbPARbom_id, dbPARnode_id, dbPARos_id, dbPARprod_id )
33
parNode_id = dbPARnode_id
34
parOs_id = dbPARos_id
35
'------------ CONDITIONS ----------------------
36
'----------------------------------------------
37
%>
38
<%
39
'--------------------------------------------------------------------------------------------------------------------------
40
Function GenerateOsSpec ( nOsId )
41
	Dim rsQry, query, returnString
42
	Dim PkgName, PkgVersion, Ext, Description
43
 
44
	OraDatabase.Parameters.Add "OS_ID", nOsId,	ORAPARM_INPUT, ORATYPE_NUMBER 
45
 
46
	Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ExportOsProductList.sql"), ORADYN_DEFAULT )
47
 
48
	returnString = NULL
49
 
50
	While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
51
		PkgName = rsQry("pkg_name")
52
		PkgVersion = rsQry("pkg_version")
53
		Ext = rsQry("v_ext")
54
		Description = rsQry("pv_description")
55
 
56
		' Format Description
57
		If NOT IsNull(Description) Then
58
			Description = Replace ( Description, VBNewLine, "" )
59
			Description = Replace ( Description, """", "" )
60
		End if
61
 
62
		' Format Extension
63
		If NOT IsNull(Ext) Then
64
			' Remove first dot from extension
65
			If InStr( 1, Ext, "." ) = 1 Then
66
				Ext = Right( Ext, Len(Ext) - 1 )
67
			End If
68
 
69
		End If
70
 
71
 
72
 
73
		returnString = returnString &_
74
			"'"& PkgName &"' => {"& VBNewLine &_
75
            "          ERGPkgFlag        => ""T"","& VBNewLine &_
76
            "          CheckVersionFlag  => ""T"","& VBNewLine 
77
 
78
		If IsNull(Ext) Then
79
			returnString = returnString &_
80
	            "          PkgVersion        => """& PkgVersion &""","&  VBNewLine 
81
		Else
82
			returnString = returnString &_
83
            "          PkgVersion        => """& Left(PkgVersion, Len(PkgVersion) - Len(Ext) - 1 ) &""","&  VBNewLine &_
84
            "          PkgProjAcronym    => """& Ext &""","&  VBNewLine 
85
		End If
86
 
87
		returnString = returnString &_
88
            "          PkgDesc           => """& Description &""" "& VBNewLine &_
89
            "      },"& VBNewLine
90
 
91
 
92
 
93
		rsQry.MoveNext()
94
	WEnd
95
 
96
	OraDatabase.Parameters.Remove "OS_ID"
97
 
98
	rsQry.Close
99
	Set rsQry = Nothing
100
 
101
 
102
	' Format final output
103
	If NOT IsNull(returnString) Then
104
		returnString = Left ( returnString, InStrRev( returnString, "," ) - 1 )
105
	End If
106
 
107
 
108
	' Return string 
109
	GenerateOsSpec = returnString
110
 
111
End Function
112
'--------------------------------------------------------------------------------------------------------------------------
113
%>
114
<%
115
'------------ RUN BEFORE PAGE RENDER ----------
116
 
117
 
118
'----------------------------------------------
119
%>
120
<html>
121
<head>
122
<title>Deployment Manager</title>
123
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
124
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
125
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
126
<script language="JavaScript" src="scripts/common.js"></script>
127
</head>
128
 
129
<body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" onLoad="self.focus();FormName.os_name.focus();">
130
<table width="100%"  border="0" cellspacing="0" cellpadding="10">
131
  <tr>
132
    <td bgcolor="#FFFFFF" class="body_txt"><span class="body_h1"><img src="icons/i_linkarrow_black.gif" width="11" height="11" align="absmiddle">&nbsp;Node Spec Export </span> <br>
133
    Click on the text to select.</td>
134
  </tr>
135
</table>
136
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
137
  <tr>
138
    <td width="1" background="images/bg_blue.gif"><img src="images/spacer.gif" width="10" height="35"></td>
139
    <td width="100%" background="images/bg_blue.gif" valign="bottom">
140
	<!-- TAB CONTROLS ++++++++++++++++++++++ -->
141
		<%
142
		'[1] Tab Name
143
		'[2] Tab Link
144
		'[3] JavaScript Event e.g. "onClick='...'"
145
		'[4] Tab Image Selected
146
		'[5] Tab Image Diselected
147
		'[6] Tab Image Disabled
148
		'[7] Tab Hint
149
		'[8] Force Disable. Values: Y, N(default)
150
 
151
 
152
		OraDatabase.Parameters.Add "NODE_ID", parNode_id, ORAPARM_INPUT, ORATYPE_NUMBER 
153
 
154
		Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("OsList.sql"), ORADYN_DEFAULT )
155
 
156
		OraDatabase.Parameters.Remove "NODE_ID"
157
 
158
 
159
		Set objTabControl = New TabControl
160
		objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleWinXP/tab_style.html") ) ' Supply tab style definition
161
		objTabControl.TabStyle = "StyleWinXP"
162
 
163
		If Request("ostab") <> "" Then
164
			OsTab = CDbl( Request("ostab") )
165
		Else
166
			OsTab = 0
167
		End If
168
 
169
 
170
		While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
171
 
172
			objTabControl.Add ( Array( rsQry("os_name"), SCRIPT_NAME &"?ostab="& rsQry("os_id") &"&"& objPMod.ComposeURL() , "", "", "", "", "", "" ) )
173
 
174
			If OsTab = 0 Then
175
				OsTab = CDbl( rsQry("os_id"))
176
				objTabControl.SelectByName rsQry("os_name")
177
 
178
			ElseIf OsTab = CDbl(rsQry("os_id")) Then
179
				OsTab = rsQry("os_id")
180
				objTabControl.SelectByName rsQry("os_name")
181
 
182
			End If
183
 
184
 
185
			rsQry.MoveNext()
186
		WEnd
187
 
188
		rsQry.Close()
189
		Set rsQry = nothing
190
 
191
 
192
		objTabControl.Render ()
193
		%>
194
		<!-- END OF TAB CONTROLS +++++++++++++++ -->
195
	</td>
196
    <td width="1" background="images/bg_blue.gif"></td>
197
  </tr>
198
  <tr>
199
    <td>&nbsp;</td>
200
    <td><br><textarea name="textfield" cols="70" rows="20" wrap="OFF" class="body_cmd" onFocus="this.select()"><%=GenerateOsSpec( OsTab )%></textarea></td>
201
    <td>&nbsp;</td>
202
  </tr>
203
</table>
204
</body>
205
</html>
206
<%
207
'------------ RUN AFTER PAGE RENDER -----------
208
'----------------------------------------------
209
%><!--#include file="common/globals_destructor.asp"-->