Subversion Repositories DevTools

Rev

Rev 1283 | Details | Compare with Previous | 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
'------------ RUN BEFORE PAGE RENDER ----------
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>
3909 dpurdie 47
<!-- Include VBScript shared with WSF component -->
48
<script language="VBScript" runat="server" src="common/nodeSpec.vbs"></script>
13 rsolanki 49
</head>
50
 
51
<body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" onLoad="self.focus();FormName.os_name.focus();">
52
<table width="100%"  border="0" cellspacing="0" cellpadding="10">
53
  <tr>
54
    <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>
55
    Click on the text to select.</td>
56
  </tr>
57
</table>
58
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
59
  <tr>
60
    <td width="1" background="images/bg_blue.gif"><img src="images/spacer.gif" width="10" height="35"></td>
61
    <td width="100%" background="images/bg_blue.gif" valign="bottom">
62
	<!-- TAB CONTROLS ++++++++++++++++++++++ -->
63
		<%
64
		'[1] Tab Name
65
		'[2] Tab Link
66
		'[3] JavaScript Event e.g. "onClick='...'"
67
		'[4] Tab Image Selected
68
		'[5] Tab Image Diselected
69
		'[6] Tab Image Disabled
70
		'[7] Tab Hint
71
		'[8] Force Disable. Values: Y, N(default)
72
 
3909 dpurdie 73
		OraDatabase.Parameters.Add "NODE_ID", parNode_id, ORAPARM_INPUT, ORATYPE_NUMBER
13 rsolanki 74
 
75
		Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("OsList.sql"), ORADYN_DEFAULT )
76
 
77
		OraDatabase.Parameters.Remove "NODE_ID"
78
 
79
 
80
		Set objTabControl = New TabControl
81
		objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleWinXP/tab_style.html") ) ' Supply tab style definition
82
		objTabControl.TabStyle = "StyleWinXP"
83
 
84
		If Request("ostab") <> "" Then
85
			OsTab = CDbl( Request("ostab") )
86
		Else
87
			OsTab = 0
88
		End If
89
 
90
		While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
91
 
92
			objTabControl.Add ( Array( rsQry("os_name"), SCRIPT_NAME &"?ostab="& rsQry("os_id") &"&"& objPMod.ComposeURL() , "", "", "", "", "", "" ) )
93
 
94
			If OsTab = 0 Then
95
				OsTab = CDbl( rsQry("os_id"))
96
				objTabControl.SelectByName rsQry("os_name")
97
 
98
			ElseIf OsTab = CDbl(rsQry("os_id")) Then
99
				OsTab = rsQry("os_id")
100
				objTabControl.SelectByName rsQry("os_name")
101
 
102
			End If
103
 
104
			rsQry.MoveNext()
105
		WEnd
106
 
107
		rsQry.Close()
108
		Set rsQry = nothing
109
 
110
 
111
		objTabControl.Render ()
112
		%>
113
		<!-- END OF TAB CONTROLS +++++++++++++++ -->
114
	</td>
115
    <td width="1" background="images/bg_blue.gif"></td>
116
  </tr>
117
  <tr>
118
    <td>&nbsp;</td>
119
    <td><br><textarea name="textfield" cols="70" rows="20" wrap="OFF" class="body_cmd" onFocus="this.select()"><%=GenerateOsSpec( OsTab )%></textarea></td>
120
    <td>&nbsp;</td>
121
  </tr>
122
</table>
123
</body>
124
</html>
125
<%
126
'------------ RUN AFTER PAGE RENDER -----------
127
'----------------------------------------------
128
%><!--#include file="common/globals_destructor.asp"-->