Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
129 ghuddy 5
'|                   Edit Project View Details    |
119 ghuddy 6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
129 ghuddy 12
Response.Expires = 0   ' always load the page, dont store
119 ghuddy 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="_action_buttons.asp"-->
21
 
22
<!--#include file="class/classActionButtonControl.asp"-->
23
<%
24
' Set rfile parameter. This is a return page after Login
25
Call objPMod.StoreParameter ( "rfile", "rtree.asp" )
26
objPMod.PersistInQryString("proj_id")
27
'------------ ACCESS CONTROL ------------------
28
%>
29
<!--#include file="_access_control_login.asp"-->
30
<!--#include file="_access_control_general.asp"-->
31
<!--#include file="_access_control_project.asp"-->
32
<%
33
'------------ Variable Definition -------------
34
Dim objSortHelper
35
Dim rsQry
36
Dim parRtagId
37
Dim parSourceRtagId
38
Dim query_string
39
Dim objBtnControl
129 ghuddy 40
Dim   rcon_id
119 ghuddy 41
'------------ Constants Declaration -----------
42
'------------ Variable Init -------------------
43
parRtagId = Request("rtag_id")
44
objPMod.PersistInQryString("rtag_id")
45
Set objBtnControl = New ActionButtonControl
46
'----------------------------------------------
47
%>
48
<%
49
'--------------------------------------------------------------------------------------------------------------------------
50
Sub GetFormDetails ( parRtagId, ByRef outobjDetails )
129 ghuddy 51
   Dim rsQry, query
52
 
53
 
54
   OraDatabase.Parameters.Add "RTAG_ID",    parRtagId,      ORAPARM_INPUT, ORATYPE_NUMBER
55
 
56
   query = _
57
   " SELECT * "&_
58
   "  FROM RELEASE_TAGS rt"&_
59
   " WHERE rt.RTAG_ID = :RTAG_ID"
60
 
61
   Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
62
 
63
   OraDatabase.Parameters.Remove "RTAG_ID"
64
 
65
 
66
 
67
   If rsQry.RecordCount > 0 Then
68
      outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
69
      outobjDetails.Item ("rtag_name") = rsQry("rtag_name")
70
      'outobjDetails.Item ("description") = rsQry("description")
71
      'outobjDetails.Item ("parent_rtag_id") = rsQry("parent_rtag_id")
72
      'outobjDetails.Item ("config_spec_branch") = rsQry("config_spec_branch")
73
      'outobjDetails.Item ("owner_email") = rsQry("owner_email")
74
      'If rsQry("assoc_mass_ref") <> "" Then
75
      'outobjDetails.Item ("massref_rtag_id") = rsQry("assoc_mass_ref")
76
      'End If
77
   Else
78
      Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. parRtagId="& parRtagId
79
 
80
   End If
81
 
82
 
83
   rsQry.Close
84
   Set rsQry = Nothing
119 ghuddy 85
End Sub
86
'--------------------------------------------------------------------------------------------------------------------------
87
Sub DeleteDaemon(rcon_id_list)
88
 
129 ghuddy 89
   OraDatabase.Parameters.Add "RCON_ID_LIST",   rcon_id_list,    ORAPARM_INPUT, ORATYPE_VARCHAR2
119 ghuddy 90
 
129 ghuddy 91
   On Error Resume Next
92
   objEH.TryORA()
93
 
94
   OraDatabase.ExecuteSQL _
95
   "BEGIN  PK_BUILDAPI.DELETE_DAEMON(:RCON_ID_LIST);  END;"
96
 
97
   objEH.CatchORA ( OraSession )
98
 
99
   OraDatabase.Parameters.Remove "RCON_ID_LIST"
119 ghuddy 100
End Sub
101
'--------------------------------------------------------------------------------------------------------------------------
102
%>
103
<%
104
'------------ RUN BEFORE PAGE RENDER ----------
105
' --- Get Form details from DB ---
106
Call GetFormDetails ( Request("rtag_id"), objFormCollector )
107
 
108
' --- Load Validation Rules ---
129 ghuddy 109
'Call objForm.LoadValidationRules ( Array("rtag_name","rtag_description", "config_spec_branch"), OraDatabase )      ' Load Validation Rules
119 ghuddy 110
 
111
' --- Enter Form Validation Rule Changes here... ----
112
'----------------------------------------------------
113
 
114
' --- RUN onPostBack ---
115
If Request("action") <> "" Then
129 ghuddy 116
   If objForm.IsValidOnPostBack Then
117
 
118
      Call DeleteDaemon(Request("rcon_id_list"))
119
 
120
      If objEH.Finally Then
121
         Call OpenInWindow ( "release_config.asp?rtag_id="& parRtagId )
122
      End If
123
 
124
   End If
125
 
119 ghuddy 126
End If
127
 
128
'----------------------------------------------
129
%>
130
 
131
<html>
132
<head>
133
<title>Release Manager</title>
134
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
135
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
136
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
137
<link rel="stylesheet" href="images/navigation.css" type="text/css">
138
<script language="JavaScript" src="images/common.js"></script>
139
 
140
<!-- DROPDOWN MENUS -->
141
 
142
 
143
<!--#include file="_menu_def.asp"-->
144
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
145
 
146
</head>
147
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
148
<!-- MENU LAYERS -------------------------------------->
129 ghuddy 149
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
119 ghuddy 150
</div>
151
<!-- TIPS LAYERS -------------------------------------->
152
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
153
<!----------------------------------------------------->
154
<!-- HEADER -->
155
<!--#include file="_header.asp"-->
156
<!-- BODY ---->
157
 
158
<table width="100%" border="0" cellspacing="0" cellpadding="0">
159
<%
160
'-- FROM START ---------------------------------------------------------------------------------------------------------
161
objFormComponent.FormName = "FormName"
162
objFormComponent.Action = ScriptName
163
Call objFormComponent.FormStart()
164
%>
129 ghuddy 165
  <tr>
119 ghuddy 166
    <td width="1" background="images/bg_home_orange.gif" valign="top">
129 ghuddy 167
   </td>
168
   <td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF"><table width="10" border="0" cellspacing="0" cellpadding="0">
119 ghuddy 169
      <tr>
170
        <td width="1%"></td>
171
        <td width="100%">
172
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
173
            <tr>
174
              <td nowrap class="body_txt">
175
 
129 ghuddy 176
           </td>
177
 
119 ghuddy 178
            </tr>
179
          </table>
180
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
181
            <tr>
182
              <td nowrap class="form_ttl"><p>&nbsp;</p>
183
                <p>ADMINISTER BUILD CONFIGURATION </p></td>
184
              <td align="right" valign="bottom"></td>
185
            </tr>
186
        </table></td>
187
        <td width="1%"></td>
188
      </tr>
189
      <tr>
190
        <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
191
        <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
192
        <td align="right" valign="top"  background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
193
      </tr>
194
      <tr>
195
        <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
196
        <td bgcolor="#FFFFFF" valign="top">
129 ghuddy 197
      <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
198
      <!--#include file="messages/_msg_inline.asp"-->
199
      <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
200
      <br>
201
      <!-- BUTTONS CONTROL +++++++++++++++++++ -->
202
      <%Call Action_Buttons ( "Add Daemon" )
119 ghuddy 203
 
129 ghuddy 204
       ' Load some action buttons
205
       Call objBtnControl.LoadActionButtons ( Array("btnEditDaemon", "btnDeleteDaemon"), OraDatabase )
206
       objBtnControl.ButtonSpacer = 1
119 ghuddy 207
 
129 ghuddy 208
      %>
119 ghuddy 209
 
129 ghuddy 210
      <!-- +++++++++++++++++++++++++++++++++++ -->
211
 
212
      <table width="100%"  border="0" cellspacing="2" cellpadding="0">
213
         </td>
214
         <td width="9%" valign="top"></td>
215
        </tr>
216
                <tr>
217
         <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"></td>
218
         <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">DAEMON HOSTNAME</td>
219
         <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">DAEMON MODE</td>
220
         <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">GBE_MACHTYPE</td>
221
         <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">GBE_BUILDFILTER</td>
222
         <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">ACTION</td>
223
         <td valign="top">
224
        </tr>
225
         <%
226
         query_string = "select * from release_config rc, gbe_machtype gbe "&_
227
         " where rc.rtag_id = "& parRtagId &" and gbe.gbe_id = rc.gbe_id order by daemon_mode"
228
         Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
229
 
230
         Dim daemon_mode, daemon
231
 
232
         '--- Render rows ---
233
          Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
234
         rcon_id = rsQry("rcon_id")
235
         daemon   =   rsQry("daemon_hostname")
236
 
237
          If rsQry("daemon_mode") = "M" Then
238
            daemon_mode = "MASTER"
239
          Else
240
            daemon_mode = "SLAVE"
241
          End If
242
 
243
 
244
         %>
119 ghuddy 245
      <tr>
246
        <td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
129 ghuddy 247
      </tr>
248
       <tr>
249
      <%If rsQry("daemon_mode") = "M" AND rsQry.RecordCount <> 1 Then%>
250
       <td align="center"><input type="checkbox" name="rcon_id_list" value="<%=rsQry("rcon_id")%>" disabled></td>
251
      <%Else%>
252
       <td align="center"><input type="checkbox" name="rcon_id_list" value="<%=rsQry("rcon_id")%>"></td>
253
      <%End If%>
254
       <td nowrap class="body_rowg"><%=rsQry("daemon_hostname")%></td>
255
       <td nowrap class="body_rowg"><%=daemon_mode%></td>
256
       <td nowrap class="body_rowg"><%=rsQry("gbe_value")%></td>
257
       <td nowrap class="body_rowg"><%=rsQry("gbe_buildfilter")%></td>
258
       <td nowrap class="body_rowg"><%Call objBtnControl.Render  ( Array("btnEditDaemon", "btnDeleteDaemon"), objAccessControl )%></td>
259
       </tr>
260
       <%
261
          rsQry.MoveNext
262
       Loop
263
             rsQry.Close()
264
            Set rsQry = nothing
265
        %>
119 ghuddy 266
 
267
 
129 ghuddy 268
 
269
        <tr>
270
          <td class="form_iname">&nbsp;</td>
271
          <td>&nbsp;</td>
272
          <td class="val_err"></td>
273
          </tr>
274
      </table>
275
 
276
 
277
      </td>
119 ghuddy 278
        <td background="images/lbox_bgside_white.gif">&nbsp;</td>
279
      </tr>
129 ghuddy 280
     <tr>
119 ghuddy 281
        <td background="images/bg_action_norm.gif" ></td>
282
        <td align="right" background="images/bg_action_norm.gif" >
283
 
129 ghuddy 284
      <%=objFormComponent.CancelButton ( "OK", "class='form_btn'", "dependencies.asp?rtag_id="& parRtagId )%>
285
      <%=objPMod.ComposeHiddenTags()%>
286
      <%If objAccessControl.IsActive("AdminView") Then%>
287
      <input name="btn" type="submit" class="form_btn" value="Delete">
288
      <%End If%>
289
      <input type="hidden" name="rcon_id_list" value="<%=Request("rcon_id_list")%>">
290
      <input type="hidden" name="action" value="true">
291
      </td>
119 ghuddy 292
        <td background="images/bg_action_norm.gif" ><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
293
      </tr>
294
      <tr>
295
        <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
296
        <td background="images/lbox_bg_blue.gif"></td>
297
        <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
298
      </tr>
299
    </table>
129 ghuddy 300
 
301
   <!-- ACTION BUTTONS ---------------------------------------------->
302
   <!-- ACTION BUTTONS END  ------------------------------------------></td>
303
   <td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
119 ghuddy 304
  </tr>
129 ghuddy 305
  <tr>
119 ghuddy 306
    <td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30"></td>
307
    <td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
308
  </tr>
309
<%
310
Call objFormComponent.FormEnd()
311
'-- FROM END ----------------------------------------------------------------------------------------------------------------
129 ghuddy 312
%>
119 ghuddy 313
</table>
314
 
315
 
316
<!-- FOOTER -->
317
<!--#include file="_footer.asp"-->
318
</body>
319
</html>
320
<%
321
Call Destroy_All_Objects
129 ghuddy 322
%>