Subversion Repositories DevTools

Rev

Rev 6793 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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