| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| ADMIN Page |
|
|
|
6 |
'| |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
|
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<!--#include file="sec/Crypt.asp"-->
|
|
|
20 |
<!--#include file="common/_form_window_common.asp"-->
|
|
|
21 |
<!--#include file="_action_buttons.asp"-->
|
|
|
22 |
|
|
|
23 |
<!--#include file="class/classActionButtonControl.asp"-->
|
|
|
24 |
|
|
|
25 |
<%
|
|
|
26 |
'------------ ACCESS CONTROL ------------------
|
|
|
27 |
%>
|
|
|
28 |
<!--#include file="_access_control_general.asp"-->
|
|
|
29 |
<%
|
|
|
30 |
'------------ Variable Definition -------------
|
|
|
31 |
Dim objBtnControl
|
|
|
32 |
'------------ Constants Declaration -----------
|
|
|
33 |
'------------ Variable Init -------------------
|
|
|
34 |
Set objBtnControl = New ActionButtonControl
|
|
|
35 |
'----------------------------------------------
|
|
|
36 |
%>
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
<%
|
|
|
41 |
' Page Access Condition
|
|
|
42 |
If NOT objAccessControl.IsActive("ConfigureBuildService") Then
|
|
|
43 |
Response.Redirect("message.asp?msg=401-9")
|
|
|
44 |
End If
|
|
|
45 |
%>
|
|
|
46 |
<%
|
|
|
47 |
Sub UpdateBuildInfo()
|
|
|
48 |
|
|
|
49 |
On Error Resume Next
|
|
|
50 |
OraDatabase.Parameters.Add "DATABASE_SERVER", Request("database server"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
51 |
OraDatabase.Parameters.Add "WEB_SERVER", Request("web server"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
52 |
OraDatabase.Parameters.Add "MAIL_SERVER", Request("mail server"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
53 |
OraDatabase.Parameters.Add "BUILD_FAILURE_MAIL_SENDER", Request("build failure mail sender"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
54 |
|
|
|
55 |
objEH.TryORA ( OraSession )
|
|
|
56 |
|
|
|
57 |
OraDatabase.ExecuteSQL _
|
|
|
58 |
"BEGIN PK_BUILDAPI.Update_Build_Service ( :DATABASE_SERVER, :WEB_SERVER, :MAIL_SERVER, :BUILD_FAILURE_MAIL_SENDER ); END;"
|
|
|
59 |
|
|
|
60 |
objEH.CatchORA ( OraSession )
|
|
|
61 |
|
|
|
62 |
OraDatabase.Parameters.Remove "DATABASE_SERVER"
|
|
|
63 |
OraDatabase.Parameters.Remove "WEB_SERVER"
|
|
|
64 |
OraDatabase.Parameters.Remove "MAIL_SERVER"
|
|
|
65 |
OraDatabase.Parameters.Remove "BUILD_FAILURE_MAIL_SENDER"
|
|
|
66 |
End Sub
|
|
|
67 |
%>
|
|
|
68 |
<%
|
|
|
69 |
If Request("action") = "true" Then
|
|
|
70 |
Call UpdateBuildInfo()
|
|
|
71 |
If objEH.Finally Then
|
|
|
72 |
Response.Redirect("admin.asp")
|
|
|
73 |
End If
|
|
|
74 |
End If
|
|
|
75 |
%>
|
|
|
76 |
<html>
|
|
|
77 |
<head>
|
|
|
78 |
|
|
|
79 |
<title>Buid Service Administration</title>
|
|
|
80 |
|
|
|
81 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
82 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
83 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
84 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
85 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
86 |
<!-- DROPDOWN MENUS -->
|
|
|
87 |
<!--#include file="_menu_def.asp"-->
|
|
|
88 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
|
|
89 |
</head>
|
|
|
90 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
91 |
<!-- MENU LAYERS -------------------------------------->
|
|
|
92 |
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
|
|
|
93 |
</div>
|
|
|
94 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
95 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
96 |
<!-- HEADER -->
|
|
|
97 |
<!--#include file="_header.asp"-->
|
|
|
98 |
|
|
|
99 |
<%
|
|
|
100 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
|
|
101 |
objFormComponent.FormName = "UpdateBuildServiceConfig"
|
|
|
102 |
objFormComponent.Action = ScriptName
|
|
|
103 |
objFormComponent.OnSubmit = "ShowProgress();"
|
|
|
104 |
Call objFormComponent.FormStart()
|
|
|
105 |
%>
|
|
|
106 |
<tr>
|
|
|
107 |
<td background="images/bg_login.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
108 |
<tr>
|
|
|
109 |
<td><%=ProgressBar%></td>
|
|
|
110 |
<td align="right"> </td>
|
|
|
111 |
</tr>
|
|
|
112 |
</table></td>
|
|
|
113 |
</tr>
|
|
|
114 |
<tr>
|
|
|
115 |
<td><table width="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="#FFCC00">
|
|
|
116 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
117 |
<%If NOT objEH.Finally Then%>
|
|
|
118 |
<tr>
|
|
|
119 |
<td class="form_iname"> </td>
|
|
|
120 |
<td>
|
|
|
121 |
<%objEH.DisplayMessage()%>
|
|
|
122 |
</td>
|
|
|
123 |
<td class="val_err"></td>
|
|
|
124 |
</tr>
|
|
|
125 |
<%End If%>
|
|
|
126 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
127 |
<tr>
|
|
|
128 |
<td nowrap class="form_iname" valign="top"><b>BUILD SERVICE</b></td>
|
|
|
129 |
<td valign="top"></td>
|
|
|
130 |
<td nowrap class="form_iname" valign="top"><b>CONFIGURATION</b></td>
|
|
|
131 |
</tr>
|
|
|
132 |
<%
|
|
|
133 |
Dim rsQry, query
|
|
|
134 |
|
|
|
135 |
query = "SELECT * FROM BUILD_SERVICE_CONFIG"
|
|
|
136 |
|
|
|
137 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
|
|
142 |
%>
|
|
|
143 |
<tr>
|
|
|
144 |
<td nowrap class="form_iname" valign="top"><%=rsQry("service")%></td>
|
|
|
145 |
<td valign="top"></td>
|
|
|
146 |
<td valign="top"><%=objFormComponent.TextBox (rsQry("service"), rsQry("config"), "size='30' class='form_ivalue'" )%></td>
|
|
|
147 |
</tr>
|
|
|
148 |
<%
|
|
|
149 |
rsQry.MoveNext()
|
|
|
150 |
Wend
|
|
|
151 |
|
|
|
152 |
rsQry.Close()
|
|
|
153 |
|
|
|
154 |
Set rsQry = Nothing
|
|
|
155 |
|
|
|
156 |
%>
|
|
|
157 |
<tr>
|
|
|
158 |
<td class="form_iname"> </td>
|
|
|
159 |
<td> </td>
|
|
|
160 |
<td class="val_err"><input name="btn" type="submit" class="form_btn" value="Update">
|
|
|
161 |
</tr>
|
|
|
162 |
</table></td>
|
|
|
163 |
</tr>
|
|
|
164 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
165 |
<input type="hidden" name="action" value="true">
|
|
|
166 |
<%
|
|
|
167 |
Call objFormComponent.FormEnd()
|
|
|
168 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
|
|
169 |
%>
|
|
|
170 |
<%
|
|
|
171 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
|
|
172 |
objFormComponent.FormName = "GBE_MACHTYPE"
|
|
|
173 |
objFormComponent.Action = ScriptName
|
|
|
174 |
objFormComponent.OnSubmit = "ShowProgress();"
|
|
|
175 |
Call objFormComponent.FormStart()
|
|
|
176 |
%>
|
|
|
177 |
<table width="50%" border="0" cellspacing="10" cellpadding="0" >
|
|
|
178 |
|
|
|
179 |
<div align="left" class=" body_col">
|
|
|
180 |
Current List of GBE_MACHTYPE
|
|
|
181 |
</div>
|
|
|
182 |
<tr>
|
|
|
183 |
<td></td>
|
|
|
184 |
<!-- GBE_MACHTYPE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
185 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">GBE_MACHTYPE VALUE</td>
|
|
|
186 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col"></td>
|
|
|
187 |
|
|
|
188 |
</tr>
|
|
|
189 |
|
|
|
190 |
<%
|
|
|
191 |
' Load some action buttons
|
|
|
192 |
Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_Machtype", "btnDeleteGBE_Machtype"), OraDatabase )
|
|
|
193 |
objBtnControl.ButtonSpacer = 1
|
|
|
194 |
|
|
|
195 |
Dim gbe_id, gbe_value
|
|
|
196 |
|
|
|
197 |
Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM GBE_MACHTYPE ORDER BY GBE_ID", ORADYN_DEFAULT )
|
|
|
198 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
199 |
gbe_id = rsQry("gbe_id")
|
|
|
200 |
gbe_value = rsQry("gbe_value")
|
|
|
201 |
%>
|
|
|
202 |
<tr>
|
|
|
203 |
<td align="left" valign="top" class="body_txt"></td>
|
|
|
204 |
<td align="left" valign="top" class="body_txt"><%=gbe_value%></td>
|
|
|
205 |
<td align="left" valign="top" class="body_txt"><%Call objBtnControl.Render ( Array("btnEditGBE_Machtype", "btnDeleteGBE_Machtype"), objAccessControl )%></td>
|
|
|
206 |
</tr>
|
|
|
207 |
<%
|
|
|
208 |
rsQry.MoveNext()
|
|
|
209 |
%>
|
|
|
210 |
<tr>
|
|
|
211 |
<td colspan="6" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
212 |
</tr>
|
|
|
213 |
<%
|
|
|
214 |
Wend
|
|
|
215 |
rsQry.Close()
|
|
|
216 |
Set rsQry = nothing
|
|
|
217 |
%>
|
|
|
218 |
|
|
|
219 |
<tr>
|
|
|
220 |
<td class="form_iname"> </td>
|
|
|
221 |
|
|
|
222 |
<td class="val_err"><a href=""><%Call Action_Buttons ( "Add GBE_MACHTYPE" )%> </a>
|
|
|
223 |
<td> </td>
|
|
|
224 |
</tr>
|
|
|
225 |
|
|
|
226 |
</table>
|
|
|
227 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
228 |
<input type="hidden" name="action" value="true">
|
|
|
229 |
<%
|
|
|
230 |
Call objFormComponent.FormEnd()
|
|
|
231 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
|
|
232 |
%>
|
|
|
233 |
|
|
|
234 |
</body>
|
|
|
235 |
</html>
|
|
|
236 |
<!-- FOOTER -->
|
|
|
237 |
<!--#include file="_footer.asp"-->
|
|
|
238 |
<%
|
|
|
239 |
Call Destroy_All_Objects
|
|
|
240 |
%>
|