| 7225 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
' admin_build_platforms.asp
|
|
|
5 |
'=====================================================
|
|
|
6 |
%>
|
|
|
7 |
<%
|
|
|
8 |
Option explicit
|
|
|
9 |
' Good idea to set when using redirect
|
|
|
10 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
11 |
%>
|
|
|
12 |
<!--#include file="common/conf.asp"-->
|
|
|
13 |
<!--#include file="common/globals.asp"-->
|
|
|
14 |
<!--#include file="common/formating.asp"-->
|
|
|
15 |
<!--#include file="common/qstr.asp"-->
|
|
|
16 |
<!--#include file="common/common_subs.asp"-->
|
|
|
17 |
<!--#include file="common/_form_window_common.asp"-->
|
|
|
18 |
<!--#include file="class/classActionButtonControl.asp"-->
|
|
|
19 |
<%
|
|
|
20 |
'------------ ACCESS CONTROL ------------------
|
|
|
21 |
%>
|
|
|
22 |
<!--#include file="_access_control_login_optional.asp"-->
|
|
|
23 |
<!--#include file="_access_control_general.asp"-->
|
|
|
24 |
<%
|
|
|
25 |
'------------ Variable Definition -------------
|
|
|
26 |
Dim objBtnControl
|
|
|
27 |
Dim bCanEdit
|
|
|
28 |
'------------ Constants Declaration -----------
|
|
|
29 |
'------------ Variable Init -------------------
|
|
|
30 |
Set objBtnControl = New ActionButtonControl
|
|
|
31 |
bCanEdit = canActionControl("ConfigureBuildService")
|
|
|
32 |
'----------------------------------------------
|
| 7235 |
dpurdie |
33 |
'-------------------------------------------------
|
|
|
34 |
Sub InsertJavaScript %>
|
| 7244 |
dpurdie |
35 |
<script type="text/javascript" charset="utf-8">
|
| 7277 |
dpurdie |
36 |
$(document).ready(function(){
|
|
|
37 |
// Wire up the buttons
|
|
|
38 |
$('.btnEdit').click( function(){
|
|
|
39 |
var el = $(this);
|
|
|
40 |
var trel = el.closest("tr");
|
|
|
41 |
var bp_id = trel.data("bp_id");
|
|
|
42 |
MM_openVixIFrame('wAddBuildPlatform.asp?type=edit&bp_id=' + bp_id + '&rfile=<%=scriptName%><%=objPMod.ComposeURL()%>','Edit Build Platform');
|
|
|
43 |
});
|
|
|
44 |
|
|
|
45 |
$('.btnDel').click( function(){
|
|
|
46 |
var el = $(this);
|
|
|
47 |
var trel = el.closest("tr");
|
|
|
48 |
var bp_id = trel.data("bp_id");
|
|
|
49 |
var platform_name = trel.find('td:eq(0)').text();
|
|
|
50 |
var url = '_DeleteBuildPlatform.asp?bp_id=' + bp_id + '&rfile=<%=scriptName%><%=objPMod.ComposeURL()%>'
|
|
|
51 |
vixConfirm('Remove Build Platform \''+ platform_name +'\' from this list?',{title:'Delete Build Platform', button:'Delete', url: url});
|
|
|
52 |
});
|
|
|
53 |
});
|
| 7235 |
dpurdie |
54 |
</script>
|
|
|
55 |
<%End Sub
|
| 7277 |
dpurdie |
56 |
'-------------------------------------------------
|
| 7225 |
dpurdie |
57 |
%>
|
|
|
58 |
<html>
|
|
|
59 |
<head>
|
|
|
60 |
<title>Build Machine Administration</title>
|
|
|
61 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
62 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
63 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
64 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
65 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
| 7235 |
dpurdie |
66 |
<script language="JavaScript" src="scripts/remote_scripting.js?ver=<%=VixVerNum%>"></script>
|
| 7225 |
dpurdie |
67 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
|
|
68 |
<!--#include file="_jquery_includes.asp"-->
|
|
|
69 |
<!-- DROPDOWN MENUS -->
|
|
|
70 |
<!--#include file="_menu_def.asp"-->
|
|
|
71 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
| 7235 |
dpurdie |
72 |
<%Call InsertJavaScript %>
|
| 7225 |
dpurdie |
73 |
</head>
|
|
|
74 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
75 |
<!-- HEADER -->
|
|
|
76 |
<!--#include file="_header.asp"-->
|
|
|
77 |
<%
|
|
|
78 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
|
|
79 |
objFormComponent.FormName = "BUILD_PLATFORMS"
|
|
|
80 |
objFormComponent.Action = ScriptName
|
|
|
81 |
objFormComponent.OnSubmit = "ShowProgress();"
|
|
|
82 |
Call objFormComponent.FormStart()
|
|
|
83 |
%>
|
|
|
84 |
<div class="div_table">
|
|
|
85 |
<table border="0" cellspacing="0" cellpadding="0" class="center_table">
|
|
|
86 |
<tr>
|
|
|
87 |
<td>
|
|
|
88 |
<table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdBrown>
|
|
|
89 |
<caption>Current List of Build Platforms</caption>
|
|
|
90 |
<thead>
|
|
|
91 |
<tr>
|
|
|
92 |
<!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
93 |
<th>PLATFORM NAME</th>
|
|
|
94 |
<th>ALLOW USE</th>
|
|
|
95 |
<th width=250>DESCRIPTION</th>
|
| 7235 |
dpurdie |
96 |
<th>MACHTYPES</th>
|
| 7225 |
dpurdie |
97 |
<th>Edit</th>
|
|
|
98 |
</tr>
|
|
|
99 |
</thead>
|
|
|
100 |
|
|
|
101 |
<%
|
|
|
102 |
Dim rsQry
|
|
|
103 |
Dim bp_id
|
|
|
104 |
Dim bp_name
|
|
|
105 |
Dim description, active, activeChecked
|
| 7235 |
dpurdie |
106 |
DIM Query
|
|
|
107 |
Query = "SELECT" &_
|
|
|
108 |
" bp.bp_id," &_
|
|
|
109 |
" bp_name," &_
|
|
|
110 |
" bp_active," &_
|
|
|
111 |
" bp_description," &_
|
|
|
112 |
" LISTAGG(gbe_value, ', ') within group (order by gbe_value) as machTypes" &_
|
|
|
113 |
" FROM" &_
|
|
|
114 |
" build_platforms bp," &_
|
|
|
115 |
" gbe_machtype gbe," &_
|
|
|
116 |
" build_platforms_config bpc" &_
|
|
|
117 |
" WHERE" &_
|
|
|
118 |
" gbe.gbe_id(+) = bpc.gbe_id" &_
|
|
|
119 |
" AND bpc.bp_id(+) = bp.bp_id" &_
|
|
|
120 |
" GROUP BY bp.bp_id, bp_name, bp_active, bp_description" &_
|
|
|
121 |
" ORDER BY upper(bp.bp_name)"
|
|
|
122 |
|
|
|
123 |
Set rsQry = OraDatabase.DbCreateDynaset( Query, ORADYN_DEFAULT )
|
| 7225 |
dpurdie |
124 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
125 |
bp_id = rsQry("bp_id")
|
|
|
126 |
bp_name = rsQry("bp_name")
|
|
|
127 |
active = rsQry("bp_active")
|
|
|
128 |
If active = "Y" Then activeChecked = "checked" Else activeChecked = ""
|
|
|
129 |
description = rsQry("bp_description")
|
|
|
130 |
%>
|
| 7277 |
dpurdie |
131 |
<tr style="vertical-align:top;" data-bp_id="<%=bp_id%>">
|
| 7235 |
dpurdie |
132 |
<td nowrap>
|
|
|
133 |
<%=bp_name%>
|
|
|
134 |
</td>
|
| 7225 |
dpurdie |
135 |
<td nowrap><input type="checkbox" disabled <%=activeChecked%> ></td>
|
|
|
136 |
<td wrap><%=description%></td>
|
| 7235 |
dpurdie |
137 |
<td wrap><%=rsQry("machTypes")%></td>
|
|
|
138 |
<td nowrap class=tight>
|
| 7277 |
dpurdie |
139 |
<%
|
|
|
140 |
BuildJsButton bCanEdit, "btnEdit", "Edit Build Platform", "src='icons/i_edit.gif'"
|
|
|
141 |
BuildJsButton bCanEdit, "btnDel ", "Delete Build Platform", "src='icons/i_remove.gif'"
|
|
|
142 |
%>
|
|
|
143 |
</td>
|
| 7225 |
dpurdie |
144 |
</tr>
|
|
|
145 |
<%
|
|
|
146 |
rsQry.MoveNext()
|
|
|
147 |
Wend
|
|
|
148 |
rsQry.Close()
|
|
|
149 |
Set rsQry = nothing
|
|
|
150 |
%>
|
|
|
151 |
|
|
|
152 |
<tr>
|
| 7235 |
dpurdie |
153 |
<td align=right nowrap colspan=5 class=tight>
|
| 7225 |
dpurdie |
154 |
<% BuildEditButtonRaw bCanEdit, "Add Build Platform", "Insert New Build Platform",TRUE, _
|
|
|
155 |
"src='icons/btn_add.gif' width='13' height='13' align='absmiddle' border='0' hspace='3'", _
|
|
|
156 |
"MM_openVixIFrame('wAddBuildPlatform.asp','Add Build Platform')"%>
|
|
|
157 |
</tr>
|
|
|
158 |
|
|
|
159 |
</table>
|
|
|
160 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
161 |
<input type="hidden" name="action" value="true">
|
|
|
162 |
<%Call objFormComponent.FormEnd()%>
|
|
|
163 |
</table>
|
|
|
164 |
</div>
|
|
|
165 |
<!-- FOOTER -->
|
|
|
166 |
<!--#include file="_footer.asp"-->
|
|
|
167 |
</body>
|
|
|
168 |
</html>
|