Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3863 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
4029 dpurdie 5
'|                  ADMIN Page                       |
6
'|                 Project Suffix                    |
7
'|                                                   |
3863 dpurdie 8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
4029 dpurdie 13
Response.Expires = 0    ' always load the page, dont store
3863 dpurdie 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
33
'------------ Constants Declaration -----------
34
'------------ Variable Init -------------------
35
Set objBtnControl = New ActionButtonControl
36
'----------------------------------------------
37
 
38
function niceBool (val)
39
    if val = "Y" Then
40
        niceBool = "Y"
41
    Else
42
        niceBool = "N"
43
    End If
44
End Function
45
 
46
function showCheck (val)
47
    if val = "Y" Then
48
        showCheck = "checked"
49
    Else
50
        showCheck = ""
51
    End If
52
End Function
53
 
54
%>
55
<%
56
' Page Access Condition
5061 dpurdie 57
If NOT canActionControl("ConfigureBuildService") Then
4029 dpurdie 58
    Response.Redirect("message.asp?msg=401-9")
3863 dpurdie 59
End If
60
%>
61
<html>
62
<head>
63
 
64
<title>Project Suffix Administration</title>
65
 
66
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
67
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
68
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
69
<link rel="stylesheet" href="images/navigation.css" type="text/css">
70
<script language="JavaScript" src="images/common.js"></script>
71
<!-- DROPDOWN MENUS -->
72
<!--#include file="_menu_def.asp"-->
73
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
74
</head>
75
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
76
<!-- MENU LAYERS -------------------------------------->
77
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
78
</div>
79
<!-- TIPS LAYERS -------------------------------------->
80
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
81
<!-- HEADER -->
82
<!--#include file="_header.asp"-->
83
 
84
  <%
85
  '-- FROM START ---------------------------------------------------------------------------------------------------------
86
  objFormComponent.FormName = "PROJECT_SUFFIX"
87
  objFormComponent.Action = ScriptName
88
  objFormComponent.OnSubmit = "ShowProgress();"
89
  Call objFormComponent.FormStart()
90
  %>
91
  <div class="div_table">
92
    <table border="0" cellspacing="0" cellpadding="0" >
93
      <tr>
94
        <td background="images/bg_bage_0a.gif">
95
            <div align="center" class=" body_col">Current Project Suffixes</div>
96
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
97
 
98
            <tr>
4029 dpurdie 99
            <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
3863 dpurdie 100
            <td width="1%"  background="images/bg_bage_0.gif"></td>
101
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Suffix</td>
102
            <td width="250" align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Comment</td>
103
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Free Form Version</td>
104
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Enable Selection</td>
4029 dpurdie 105
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Edit</td>
3863 dpurdie 106
            </tr>
107
 
4029 dpurdie 108
          <%
109
          ' Load some action buttons
110
          Call objBtnControl.LoadActionButtons ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), OraDatabase )
111
          objBtnControl.ButtonSpacer = 1
112
          Dim rsQry
3863 dpurdie 113
          Dim extName
114
          Dim comment
115
          dim isaCots
116
          dim isVis
117
 
4029 dpurdie 118
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PROJECT_EXTENTIONS pe ORDER BY pe.ext_name", ORADYN_DEFAULT )
119
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
120
              extName = rsQry("EXT_NAME")
121
              comment = rsQry("UCOMMENT")
3863 dpurdie 122
              isaCots = niceBool(rsQry("IS_COTS"))
123
              isVis   = niceBool(rsQry("IS_VISIBLE"))
4029 dpurdie 124
              %>
125
              <tr>  
126
                <td background="images/bg_bage_0.gif" align="center"></td>
127
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=extName%></td>
128
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=comment%></td>
129
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isaCots)%>></td>
130
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isVis)%>></td>
3863 dpurdie 131
 
132
 
4029 dpurdie 133
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), objAccessControl )%></td>
134
              </tr> 
135
              <%
136
              rsQry.MoveNext()
137
          Wend
138
          rsQry.Close()
139
          Set rsQry = nothing
140
          %>
141
 
3863 dpurdie 142
      <tr>
4029 dpurdie 143
        <td background="images/bg_bage_0.gif" align="center"></td>
144
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
145
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
146
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
147
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
148
        <td bgcolor="#FFFFFF" class="body_row" nowrap><a href=""><%Call Action_Buttons ( "Add Project Extension" )%> </a>
3863 dpurdie 149
      </tr>
150
    </table>
151
    <%=objPMod.ComposeHiddenTags()%>
152
    <input type="hidden" name="action" value="true">
153
    <%Call objFormComponent.FormEnd()%>
154
    </table>
155
    </div>
156
</body>
157
</html>
158
<!-- FOOTER -->
159
<!--#include file="_footer.asp"-->
160
<%
161
Call Destroy_All_Objects
162
%>