Subversion Repositories DevTools

Rev

Rev 6774 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6771 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'   build_replication_status.asp
5
'
6
'   Display the replication configuration
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
12
Response.Expires = 0  ' always load the page, dont store
13
%>
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/_form_window_common.asp"-->
20
<!--#include file="common/common_daemon.asp"-->
21
<% '------------ ACCESS CONTROL ------------------ %>
22
<!--#include file="_access_control_login_optional.asp"-->
23
<!--#include file="_access_control_general.asp"-->
24
<%
25
'------------ Variable Definition -------------
26
Dim rsQry
27
Dim styleAlt1
28
Dim styleAlt2
29
Dim styleNow
30
 
31
styleAlt1="class='body_rowg1'"
32
styleAlt2="class='body_rowg2'"
33
styleNow = styleAlt1
34
'----------------------------------------------
35
%>
36
<%
37
' Toggle row style between the two alternative styles
38
Sub ToggleStyleNow
39
   If styleNow = styleAlt1 Then
40
      styleNow = styleAlt2
41
   Else
42
      styleNow = styleAlt1
43
   End If
44
End Sub
45
'--------------------------------------------------------------------------------------------------------------------------
46
%>
47
<%
48
'------------ RUN BEFORE PAGE RENDER ----------
49
'----------------------------------------------
50
%>
51
<%
52
'------------------------------------------------------------------------------
53
Sub SidePanelContent
54
%>
55
<%
56
End Sub
57
'------------------------------------------------------------------------------
58
Sub ShowMainPanel
59
%>
60
<table width="10" class="embedded_table" style="margin-bottom:10px">
61
  <tr>
62
    <td>
63
        <table class="rounded_box embedded_table" width="100%" >
64
            <caption nowrap class="form_ttl tleft">Package Replication Summary</caption>
65
          <tr>
66
             <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
67
             <td bgcolor="#FFFFFF" valign="top">
68
                <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
69
                <!--#include file="messages/_msg_inline.asp"-->
70
                <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
71
                <table width="100%" border="0" cellspacing="1" cellpadding="1">
72
                   <tr class="form_field_bg">
73
                      <!-- Status Table Header -->
74
                      <td class="form_field_hdr form_align">Target</td>
75
                      <td class="form_field_hdr form_align">Enabled</td>
76
                      <td class="form_field_hdr form_align">Mode</td>
77
                      <td class="form_field_hdr form_align">Project</td>
78
                      <td class="form_field_hdr form_align">Release</td>
79
                   </tr>
80
 
81
                   <!-- Status Table Body -->
82
                    <%
83
                    Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReplicaStatus.sql"), cint(0))
84
                    While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
85
                        %><tr class="body_rowg2"><%
86
 
87
                        Dim enabledControl
88
                        enabledControl = "<input type='checkbox' disabled "& IIF(rsQry("ENABLED") =  "Y", "checked","")  &" >"
89
                        Select Case rsQry("etype")
90
                            ' Server entry
91
                            Case 0 
92
                                Dim replicationMode : replicationMode = IIF(rsQry("BLAT_FULL") = "Y", "Full Archive Replication", "")
93
 
94
                            %>
95
                                <td class="body_row" nowrap><a href=admin_blat_machines.asp?server_id=<%=rsQry("blat_id")%>><%=rsQry("blat_display_name")%></a></td>
96
                                <td><%=enabledControl%></td>
97
                                <td class="body_row" nowrap colspan=3><%=replicationMode%></td>
98
                            <%
99
 
100
                            ' No longer used
101
                            Case 1%>
102
                                <td></td>
103
                                <td><%=enabledControl%></td>
104
                                <td class="body_row" nowrap colspan=3>Full Archive Replication</td>
105
                            <%
106
 
107
                            ' Project Entry
108
                            Case 2%>
109
                                <td></td>
110
                                <td><%=enabledControl%></td>
111
                                <td class="body_row" nowrap>Project</td>
112
                                <td class="body_row" nowrap><a href=form_project_replication.asp?proj_id=<%=rsQry("PROJ_ID")%>><%=rsQry("PROJ_NAME")%></a></td>
113
                                <td class="body_row" nowrap></td>
114
                            <%
115
                            ' Release Entry - has xref to containing project
116
                            Case 3%>
117
                                <td></td>
118
                                <td><%=enabledControl%></td>
119
                                <td class="body_row" nowrap>Release</td>
120
                                <td class="body_row" nowrap><a href=form_project_replication.asp?proj_id=<%=rsQry("PROJ_ID")%>><%=rsQry("PROJ_NAME")%></a></td>
121
                                <td class="body_row" nowrap><a href=form_release_replication.asp?rtag_id=<%=rsQry("RTAG_ID")%>><%=rsQry("RTAG_NAME")%></a></td>
122
                            <%
123
 
124
                        End Select
125
                        %></tr><%
126
                        rsQry.MoveNext
127
                    WEnd
128
                    rsQry.Close
129
                    Set rsQry = Nothing
130
                    %>
131
                </table>
132
             </td>
133
             <td background="images/lbox_bgside_white.gif">&nbsp;</td>
134
           </tr>
135
        </table>
136
      </td>
137
  </tr>
138
</table>
139
<%
140
End Sub
141
%>
142
<html>
143
   <head>
144
      <title>Release Manager</title>
145
      <link rel="shortcut icon" href="<%=FavIcon%>"/>
146
      <meta http-equiv="Pragma" content="no-cache">
147
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
148
      <link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
149
      <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
150
      <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
151
      <!--#include file="_jquery_includes.asp"-->
152
      <!-- DROPDOWN MENUS -->
153
      <!--#include file="_menu_def.asp"-->
154
      <script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
155
   </head>
156
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
157
      <!-- HEADER -->
158
      <!--#include file="_header.asp"-->
159
      <!-- BODY ---->
160
      <table class="full_table">
161
         <tr>
162
            <td width="146px" class="panel_bg" valign="top">
163
                <%Call SidePanelContent%>
164
            </td>
165
            <td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
166
                <%Call ShowMainPanel%>
167
            </td>
168
         </tr>
169
         <tr>
170
            <td class="panel_bg" valign="bottom" align="center" height="350">
171
                <img src="images/img_gears.png" vspace="20" hspace="30"></td>
172
         </tr>
173
      </table>
174
      <!-- FOOTER -->
175
      <!--#include file="_footer.asp"-->
176
   </body>
177
</html>