| 6770 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
' admin_blat_machines.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="_action_buttons.asp"-->
|
|
|
19 |
<!--#include file="class/classActionButtonControl.asp"-->
|
|
|
20 |
<%
|
|
|
21 |
'------------ ACCESS CONTROL ------------------
|
|
|
22 |
%>
|
|
|
23 |
<!--#include file="_access_control_login_optional.asp"-->
|
|
|
24 |
<!--#include file="_access_control_general.asp"-->
|
|
|
25 |
<%
|
|
|
26 |
'------------ Variable Definition -------------
|
|
|
27 |
Dim objBtnControl
|
|
|
28 |
Dim bCanEdit
|
|
|
29 |
'------------ Constants Declaration -----------
|
|
|
30 |
'------------ Variable Init -------------------
|
|
|
31 |
Set objBtnControl = New ActionButtonControl
|
|
|
32 |
bCanEdit = canActionControl("ConfigureBuildService")
|
|
|
33 |
'----------------------------------------------
|
|
|
34 |
%>
|
|
|
35 |
<html>
|
|
|
36 |
<head>
|
|
|
37 |
<title>Package Replication Administration</title>
|
|
|
38 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
39 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
40 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
41 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
42 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
43 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
|
|
44 |
<!--#include file="_jquery_includes.asp"-->
|
|
|
45 |
<!-- DROPDOWN MENUS -->
|
|
|
46 |
<!--#include file="_menu_def.asp"-->
|
|
|
47 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
|
|
48 |
</head>
|
|
|
49 |
<body>
|
|
|
50 |
<!-- HEADER -->
|
|
|
51 |
<!--#include file="_header.asp"-->
|
|
|
52 |
<div class="div_table">
|
| 6793 |
dpurdie |
53 |
<table border="0" cellspacing="1" cellpadding="2" class='stdBrown center_table'>
|
|
|
54 |
<caption>List of Package Replicas</caption>
|
|
|
55 |
<thead>
|
|
|
56 |
<tr>
|
|
|
57 |
<!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
58 |
<th nowrap>Enabled</th>
|
|
|
59 |
<th nowrap>Server Name</th>
|
|
|
60 |
<th nowrap>Display Name</th>
|
|
|
61 |
<th nowrap>Replication Mode</th>
|
|
|
62 |
<th nowrap width=250>Description</th>
|
|
|
63 |
<th nowrap>Edit</th>
|
|
|
64 |
</tr>
|
|
|
65 |
</thead>
|
| 6770 |
dpurdie |
66 |
|
| 6793 |
dpurdie |
67 |
<%
|
|
|
68 |
' Load some action buttons
|
|
|
69 |
Call objBtnControl.LoadActionButtons ( Array("btnEditBlatMachine", "btnDeleteBlatMachine"), OraDatabase )
|
|
|
70 |
objBtnControl.ButtonSpacer = 1
|
| 6770 |
dpurdie |
71 |
|
| 6793 |
dpurdie |
72 |
If NOT bCanEdit Then
|
|
|
73 |
Call objBtnControl.Active ( "btnEditBlatMachine", "N" )
|
|
|
74 |
Call objBtnControl.Active ( "btnDeleteBlatMachine", "N" )
|
|
|
75 |
End If
|
|
|
76 |
|
|
|
77 |
Dim rsQry
|
|
|
78 |
Dim server_id,server_name,display_name, active, mode, description, replicationMode
|
|
|
79 |
Dim activeChecked
|
|
|
80 |
|
|
|
81 |
Set rsQry = OraDatabase.DbCreateDynaset( "select BLAT_ID, blat_server_name, blat_display_name,blat_enable, blat_mode, blat_description from BLAT_SERVERS order by UPPER(blat_server_name)", ORADYN_DEFAULT )
|
|
|
82 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
83 |
server_id = rsQry("BLAT_ID")
|
|
|
84 |
server_name = rsQry("blat_server_name")
|
|
|
85 |
display_name = rsQry("blat_display_name")
|
|
|
86 |
active = rsQry("blat_enable")
|
|
|
87 |
mode = rsQry("blat_mode")
|
|
|
88 |
description = rsQry("blat_description")
|
|
|
89 |
activeChecked = IIF( active = "Y", "checked", "")
|
| 6774 |
dpurdie |
90 |
|
| 6793 |
dpurdie |
91 |
Select Case mode
|
|
|
92 |
case "P" replicationMode = "All Projects"
|
|
|
93 |
case "E" replicationMode = "Entire Archive"
|
|
|
94 |
case "N" replicationMode = "Release/Package"
|
|
|
95 |
case else replicationMode = "Unknown"
|
|
|
96 |
End Select
|
| 6774 |
dpurdie |
97 |
|
| 6770 |
dpurdie |
98 |
%>
|
| 6793 |
dpurdie |
99 |
<tr style="vertical-align:top;">
|
|
|
100 |
<td nowrap><input type="checkbox" disabled <%=activeChecked%> ></td>
|
|
|
101 |
<td nowrap><%=server_name%></td>
|
|
|
102 |
<td nowrap><%=display_name%></td>
|
|
|
103 |
<td nowrap><%=replicationMode%></td>
|
|
|
104 |
<td wrap><%=description%></td>
|
| 6916 |
dpurdie |
105 |
<td nowrap class=tight><%Call objBtnControl.Render( Array("btnEditBlatMachine", "btnDeleteBlatMachine"), objAccessControl )%></td>
|
| 6793 |
dpurdie |
106 |
</tr>
|
|
|
107 |
<%
|
|
|
108 |
rsQry.MoveNext()
|
|
|
109 |
Wend
|
|
|
110 |
rsQry.Close()
|
|
|
111 |
Set rsQry = nothing
|
|
|
112 |
%>
|
|
|
113 |
|
|
|
114 |
<tr>
|
| 6916 |
dpurdie |
115 |
<td class='tight nowrap' colspan=6 align=right><%Call Action_Buttons_State("Add Package Replica", bCanEdit)%>
|
| 6793 |
dpurdie |
116 |
</tr>
|
| 6770 |
dpurdie |
117 |
|
| 6793 |
dpurdie |
118 |
</table>
|
| 6770 |
dpurdie |
119 |
</div>
|
|
|
120 |
<!-- FOOTER -->
|
|
|
121 |
<!--#include file="_footer.asp"-->
|
|
|
122 |
</body>
|
|
|
123 |
</html>
|