Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|                  ADMIN Page                       |
6
'|  admin_gbe_buildstandard.asp
7
'|                                                   |
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0    ' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="sec/Crypt.asp"-->
21
<!--#include file="common/_form_window_common.asp"-->
22
<!--#include file="_action_buttons.asp"-->
23
 
24
<!--#include file="class/classActionButtonControl.asp"-->
25
 
26
<%
27
'------------ ACCESS CONTROL ------------------
28
%>
29
<!--#include file="_access_control_general.asp"-->
30
<%
31
'------------ Variable Definition -------------
32
Dim objBtnControl
5983 dpurdie 33
Dim bCanEdit
5357 dpurdie 34
'------------ Constants Declaration -----------
35
'------------ Variable Init -------------------
36
Set objBtnControl = New ActionButtonControl
5983 dpurdie 37
bCanEdit = canActionControl("ConfigureBuildService") 
5357 dpurdie 38
'----------------------------------------------
39
%>
40
<html>
41
<head>
42
<title>GBE Build Standard Addendum</title>
43
<link rel="shortcut icon" href="<%=FavIcon%>"/>
44
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
45
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
46
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
47
<link rel="stylesheet" href="images/navigation.css" type="text/css">
48
<script language="JavaScript" src="images/common.js"></script>
49
<!--#include file="_jquery_includes.asp"-->
50
<!-- DROPDOWN MENUS -->
51
<!--#include file="_menu_def.asp"-->
52
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
53
</head>
54
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
55
<!-- MENU LAYERS -------------------------------------->
56
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
57
</div>
58
<!-- TIPS LAYERS -------------------------------------->
59
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
60
<!-- HEADER -->
61
<!--#include file="_header.asp"-->
62
 
63
  <%
64
  '-- FROM START ---------------------------------------------------------------------------------------------------------
65
  objFormComponent.FormName = "GBE_BUILDSTANDARD"
66
  objFormComponent.Action = ScriptName
67
  objFormComponent.OnSubmit = "ShowProgress();"
68
  Call objFormComponent.FormStart()
69
  %>   
70
  <div class="div_table">
71
    <table class="center_table" >
72
      <tr>
73
        <td background="images/bg_bage_0a.gif">
74
            <div align="center" class=" body_col">Build Standards</div>
75
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
76
            <tr>
77
            <!-- BSA DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
78
            <td background="images/bg_bage_0.gif" align="center"></td>
79
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Id</td>
80
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Build Standard</td>
81
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Sub Type</td>
82
            <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Edit</td>
83
            </tr>
84
 
85
          <%
86
          ' Load some action buttons
87
          Call objBtnControl.LoadActionButtons ( Array("btnEditGBE_BuildStandard", "btnDeleteGBE_BuildStandard"), OraDatabase )
88
          objBtnControl.ButtonSpacer = 1
5983 dpurdie 89
 
90
          If NOT bCanEdit Then
91
            Call objBtnControl.Active  ( "btnEditGBE_BuildStandard", "N" )
92
            Call objBtnControl.Active  ( "btnDeleteGBE_BuildStandard", "N" )
93
          End If
94
 
5357 dpurdie 95
 
96
          Dim bsa_id,rsQry ,GBE_VALUE
97
 
98
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM BUILD_STANDARDS BS, BUILD_STANDARDS_ADDENDUM BSA WHERE BSA.BS_ID=BS.BS_ID(+) ORDER BY BSA.BS_ID, BSA_ID", ORADYN_DEFAULT )
99
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
100
              bsa_id = rsQry("bsa_id")
101
              GBE_VALUE = rsQry("bs_name") & " - " & rsQry("bsa_name")
102
              %>
103
              <tr>  
104
                <td background="images/bg_bage_0.gif"></td>
105
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=bsa_id%></td>
106
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bs_name")%></td>
107
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=rsQry("bsa_name")%></td>
108
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render( Array("btnEditGBE_BuildStandard", "btnDeleteGBE_BuildStandard"), objAccessControl )%></td>
109
              </tr> 
110
              <%
111
              rsQry.MoveNext()
112
          Wend
113
          rsQry.Close()
114
          Set rsQry = nothing
115
          %>
116
 
117
        <tr>
118
            <td background="images/bg_bage_0.gif"></td>
119
            <td bgcolor="#FFFFFF" class="body_row" nowrap colspan=3></td>
5983 dpurdie 120
            <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call Action_Buttons_State("Add GBE_BUILDSTANDARD", bCanEdit)%></td>
5357 dpurdie 121
        </tr>
122
 
123
    </table>
124
    <%=objPMod.ComposeHiddenTags()%>
125
    <input type="hidden" name="action" value="true">
126
    <%Call objFormComponent.FormEnd()%>
127
    </table>
128
    </div>
5957 dpurdie 129
<!-- FOOTER -->
130
<!--#include file="_footer.asp"-->
5357 dpurdie 131
</body>
132
</html>