| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| ADMIN Page |
|
|
|
6 |
'| GBE MACHCLASS |
|
|
|
7 |
'| |
|
|
|
8 |
'=====================================================
|
|
|
9 |
%>
|
|
|
10 |
<%
|
|
|
11 |
Option explicit
|
|
|
12 |
' Good idea to set when using redirect
|
|
|
13 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
14 |
%>
|
|
|
15 |
<!--#include file="common/conf.asp"-->
|
|
|
16 |
<!--#include file="common/globals.asp"-->
|
|
|
17 |
<!--#include file="common/formating.asp"-->
|
|
|
18 |
<!--#include file="common/qstr.asp"-->
|
|
|
19 |
<!--#include file="common/common_subs.asp"-->
|
|
|
20 |
<!--#include file="sec/Crypt.asp"-->
|
|
|
21 |
<!--#include file="common/_form_window_common.asp"-->
|
|
|
22 |
<!--#include file="_action_buttons.asp"-->
|
|
|
23 |
|
|
|
24 |
<!--#include file="class/classActionButtonControl.asp"-->
|
|
|
25 |
|
|
|
26 |
<%
|
|
|
27 |
'------------ ACCESS CONTROL ------------------
|
|
|
28 |
%>
|
| 6048 |
dpurdie |
29 |
<!--#include file="_access_control_login.asp"-->
|
| 5357 |
dpurdie |
30 |
<!--#include file="_access_control_general.asp"-->
|
|
|
31 |
<%
|
|
|
32 |
'------------ Variable Definition -------------
|
|
|
33 |
Dim objBtnControl
|
| 5983 |
dpurdie |
34 |
Dim bCanEdit
|
|
|
35 |
|
| 5357 |
dpurdie |
36 |
'------------ Constants Declaration -----------
|
|
|
37 |
'------------ Variable Init -------------------
|
|
|
38 |
Set objBtnControl = New ActionButtonControl
|
| 5983 |
dpurdie |
39 |
bCanEdit = canActionControl("ConfigureBuildService")
|
| 5357 |
dpurdie |
40 |
'----------------------------------------------
|
|
|
41 |
%>
|
|
|
42 |
<html>
|
|
|
43 |
<head>
|
|
|
44 |
<title>GBE MachClass Administration</title>
|
|
|
45 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
46 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
47 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
48 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
49 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
50 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
51 |
<!--#include file="_jquery_includes.asp"-->
|
|
|
52 |
<!-- DROPDOWN MENUS -->
|
|
|
53 |
<!--#include file="_menu_def.asp"-->
|
|
|
54 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
|
|
55 |
</head>
|
|
|
56 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
57 |
<!-- HEADER -->
|
|
|
58 |
<!--#include file="_header.asp"-->
|
|
|
59 |
|
|
|
60 |
<%
|
|
|
61 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
|
|
62 |
objFormComponent.FormName = "GBE_MACHCLASS"
|
|
|
63 |
objFormComponent.Action = ScriptName
|
|
|
64 |
objFormComponent.OnSubmit = "ShowProgress();"
|
|
|
65 |
Call objFormComponent.FormStart()
|
|
|
66 |
%>
|
|
|
67 |
<div class="div_table">
|
|
|
68 |
<table class="center_table" >
|
|
|
69 |
<tr>
|
|
|
70 |
<td background="images/bg_bage_0a.gif">
|
|
|
71 |
<div align="center" class=" body_col">Build Machine Types</div>
|
|
|
72 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
73 |
<tr>
|
|
|
74 |
<!-- DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
75 |
<td background="images/bg_bage_0.gif" align="center"></td>
|
|
|
76 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM ID</td>
|
|
|
77 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">BM Name</td>
|
|
|
78 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Edit</td>
|
|
|
79 |
</tr>
|
|
|
80 |
|
|
|
81 |
<%
|
|
|
82 |
' Load some action buttons
|
|
|
83 |
Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), OraDatabase )
|
|
|
84 |
objBtnControl.ButtonSpacer = 1
|
| 5983 |
dpurdie |
85 |
|
|
|
86 |
If NOT bCanEdit Then
|
|
|
87 |
Call objBtnControl.Active ( "btnEditGBE_Machclass", "N" )
|
|
|
88 |
Call objBtnControl.Active ( "btnDeleteGBE_Machclass", "N" )
|
|
|
89 |
End If
|
|
|
90 |
|
| 5357 |
dpurdie |
91 |
|
|
|
92 |
Dim rsQry, bm_id,GBE_VALUE
|
|
|
93 |
|
|
|
94 |
Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM BUILD_MACHINES ORDER BY BM_ID", ORADYN_DEFAULT )
|
|
|
95 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
96 |
bm_id = rsQry("bm_id")
|
|
|
97 |
GBE_VALUE = rsQry("bm_name")
|
|
|
98 |
%>
|
|
|
99 |
<tr>
|
|
|
100 |
<td background="images/bg_bage_0.gif"></td>
|
|
|
101 |
<td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_id")%></td>
|
|
|
102 |
<td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bm_name")%></td>
|
|
|
103 |
<td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render( Array("btnEditGBE_Machclass", "btnDeleteGBE_Machclass"), objAccessControl )%></td>
|
|
|
104 |
</tr>
|
|
|
105 |
<%
|
|
|
106 |
rsQry.MoveNext()
|
|
|
107 |
Wend
|
|
|
108 |
rsQry.Close()
|
|
|
109 |
Set rsQry = nothing
|
|
|
110 |
%>
|
|
|
111 |
|
|
|
112 |
<tr>
|
|
|
113 |
<td background="images/bg_bage_0.gif"></td>
|
|
|
114 |
<td bgcolor="#FFFFFF" class="body_row" nowrap></td>
|
|
|
115 |
<td bgcolor="#FFFFFF" class="body_row" nowrap></td>
|
| 5983 |
dpurdie |
116 |
<td bgcolor="#FFFFFF" class="body_row" nowrap><%Call Action_Buttons_State("Add BM_NAME", bCanEdit)%></td>
|
| 5357 |
dpurdie |
117 |
</tr>
|
|
|
118 |
|
|
|
119 |
</table>
|
|
|
120 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
121 |
<input type="hidden" name="action" value="true">
|
|
|
122 |
<%Call objFormComponent.FormEnd()%>
|
|
|
123 |
</table>
|
|
|
124 |
</div>
|
| 5957 |
dpurdie |
125 |
<!-- FOOTER -->
|
|
|
126 |
<!--#include file="_footer.asp"-->
|
| 5357 |
dpurdie |
127 |
</body>
|
|
|
128 |
</html>
|