Subversion Repositories DevTools

Rev

Rev 6774 | Go to most recent revision | Details | 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
 
54
  <%
55
  '-- FROM START ---------------------------------------------------------------------------------------------------------
56
  objFormComponent.FormName = "BLAT_MACHINE"
57
  objFormComponent.Action = ScriptName
58
  objFormComponent.OnSubmit = "ShowProgress();"
59
  Call objFormComponent.FormStart()
60
  %>   
61
  <div class="div_table">
62
    <table border="0" cellspacing="0" cellpadding="0" class="center_table form_field_bg rounded_box embedded_table"" style="padding:10px;padding-top:0px">
63
        <caption nowrap class="form_ttl tleft">List of Package Replicas</caption>
64
      <tr>
65
        <td>
66
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
67
            <tr class="form_field_bg">
68
            <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
69
            <td nowrap class="form_field_hdr form_align">Enabled</td>
70
            <td nowrap class="form_field_hdr form_align">Server Name</td>
71
            <td nowrap class="form_field_hdr form_align">Display Name</td>
72
            <td nowrap class="form_field_hdr form_align">Replication Mode</td>
73
            <td nowrap class="form_field_hdr form_align" width=250>Description</td>
74
            <td nowrap class="form_field_hdr form_align">Edit</td>         
75
            </tr>
76
 
77
          <%
78
          ' Load some action buttons
79
          Call objBtnControl.LoadActionButtons ( Array("btnEditBlatMachine", "btnDeleteBlatMachine"), OraDatabase )
80
          objBtnControl.ButtonSpacer = 1
81
 
82
          If NOT bCanEdit Then
83
            Call objBtnControl.Active  ( "btnEditBlatMachine", "N" )
84
            Call objBtnControl.Active  ( "btnDeleteBlatMachine", "N" )
85
          End If
86
 
87
          Dim rsQry
88
          Dim server_id,server_name,display_name, active, full, description, replicationMode 
89
          Dim activeChecked
90
 
91
          Set rsQry = OraDatabase.DbCreateDynaset( "select BLAT_ID, blat_server_name, blat_display_name,blat_enable, blat_full, blat_description from BLAT_SERVERS order by UPPER(blat_server_name)", ORADYN_DEFAULT )
92
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
93
              server_id     = rsQry("BLAT_ID")
94
              server_name   = rsQry("blat_server_name")
95
              display_name  = rsQry("blat_display_name")
96
              active        = rsQry("blat_enable")
97
              full          = rsQry("blat_full")
98
              description   = rsQry("blat_description")
99
              activeChecked = IIF( active = "Y", "checked", "")
100
              replicationMode = IIF(full   = "Y", "Repository", "Release/Package")
101
              %>
102
              <tr style="vertical-align:top;"  class=body_rowg2>
103
                <td nowrap><input type="checkbox" disabled <%=activeChecked%> ></td>
104
                <td nowrap><%=server_name%></td>
105
                <td nowrap><%=display_name%></td>
106
                <td nowrap><%=replicationMode%></td>
107
                <td wrap><%=description%></td>
108
                <td nowrap><%Call objBtnControl.Render( Array("btnEditBlatMachine", "btnDeleteBlatMachine"), objAccessControl )%></td>
109
              </tr> 
110
              <%
111
              rsQry.MoveNext()
112
          Wend
113
          rsQry.Close()
114
          Set rsQry = nothing
115
          %>
116
 
117
      <tr class=body_rowg2>
118
        <td nowrap colspan=6 align=right><%Call Action_Buttons_State("Add Package Replica", bCanEdit)%>
119
      </tr>
120
 
121
    </table>
122
    <%=objPMod.ComposeHiddenTags()%>
123
    <input type="hidden" name="action" value="true">
124
    <%Call objFormComponent.FormEnd()%>
125
    </table>
126
    </div>
127
<!-- FOOTER -->
128
<!--#include file="_footer.asp"-->
129
</body>
130
</html>