Subversion Repositories DevTools

Rev

Rev 6070 | Rev 6579 | 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
'|                 Project Suffix                    |
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
%>
6181 dpurdie 29
<!--#include file="_access_control_login_optional.asp"-->
5357 dpurdie 30
<!--#include file="_access_control_general.asp"-->
31
<%
32
'------------ Variable Definition -------------
33
Dim objBtnControl
5983 dpurdie 34
Dim bCanEdit
5357 dpurdie 35
'------------ Constants Declaration -----------
36
'------------ Variable Init -------------------
37
Set objBtnControl = New ActionButtonControl
5983 dpurdie 38
bCanEdit = canActionControl("CreateNewProject") and canActionControl("ConfigureBuildService")
5357 dpurdie 39
'----------------------------------------------
40
 
41
function niceBool (val)
42
    if val = "Y" Then
43
        niceBool = "Y"
44
    Else
45
        niceBool = "N"
46
    End If
47
End Function
48
 
49
function showCheck (val)
50
    if val = "Y" Then
51
        showCheck = "checked"
52
    Else
53
        showCheck = ""
54
    End If
55
End Function
56
 
57
%>
58
<html>
59
<head>
60
 
61
<title>Project Suffix Administration</title>
62
<link rel="shortcut icon" href="<%=FavIcon%>"/>
63
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
64
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
65
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
66
<link rel="stylesheet" href="images/navigation.css" type="text/css">
67
<script language="JavaScript" src="images/common.js"></script>
68
<!--#include file="_jquery_includes.asp"-->
69
<!-- DROPDOWN MENUS -->
70
<!--#include file="_menu_def.asp"-->
71
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
72
</head>
73
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
74
<!-- HEADER -->
75
<!--#include file="_header.asp"-->
76
  <%
77
  '-- FROM START ---------------------------------------------------------------------------------------------------------
78
  objFormComponent.FormName = "PROJECT_SUFFIX"
79
  objFormComponent.Action = ScriptName
80
  objFormComponent.OnSubmit = "ShowProgress();"
81
  Call objFormComponent.FormStart()
82
  %>
83
  <div class="div_table">
84
    <table border="0" cellspacing="0" cellpadding="0" >
85
      <tr>
86
        <td background="images/bg_bage_0a.gif">
87
            <div align="center" class=" body_col">Current Project Suffixes</div>
88
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
89
 
90
            <tr>
91
            <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
92
            <td width="1%"  background="images/bg_bage_0.gif"></td>
93
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Suffix</td>
94
            <td width="250" align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Comment</td>
95
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Free Form Version</td>
96
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Enable Selection</td>
97
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Edit</td>
98
            </tr>
99
 
100
          <%
101
          ' Load some action buttons
102
          Call objBtnControl.LoadActionButtons ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), OraDatabase )
103
          objBtnControl.ButtonSpacer = 1
5983 dpurdie 104
 
105
          If NOT bCanEdit Then
106
            Call objBtnControl.Active  ( "btnEditProjectExtensions", "N" )
107
            Call objBtnControl.Active  ( "btnDeleteProjectExtension", "N" )
108
          End If
109
 
5357 dpurdie 110
          Dim rsQry
111
          Dim extName
112
          Dim comment
113
          dim isaCots
114
          dim isVis
115
 
116
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PROJECT_EXTENTIONS pe ORDER BY pe.ext_name", ORADYN_DEFAULT )
117
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
118
              extName = rsQry("EXT_NAME")
119
              comment = rsQry("UCOMMENT")
120
              isaCots = niceBool(rsQry("IS_COTS"))
121
              isVis   = niceBool(rsQry("IS_VISIBLE"))
122
              %>
123
              <tr>  
124
                <td background="images/bg_bage_0.gif" align="center"></td>
125
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=extName%></td>
126
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=comment%></td>
127
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isaCots)%>></td>
128
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isVis)%>></td>
129
 
130
 
131
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), objAccessControl )%></td>
132
              </tr> 
133
              <%
134
              rsQry.MoveNext()
135
          Wend
136
          rsQry.Close()
137
          Set rsQry = nothing
138
          %>
139
 
140
      <tr>
5983 dpurdie 141
        <td background="images/bg_bage_0.gif" align="center" ></td>
142
        <td bgcolor="#FFFFFF" class="body_row" nowrap colspan="5">
143
            <%Call Action_Buttons_State ( "Add Project Extension", bCanEdit )%>
5357 dpurdie 144
      </tr>
145
    </table>
146
    <%=objPMod.ComposeHiddenTags()%>
147
    <input type="hidden" name="action" value="true">
148
    <%Call objFormComponent.FormEnd()%>
149
    </table>
150
    </div>
5957 dpurdie 151
<!-- FOOTER -->
152
<!--#include file="_footer.asp"-->
5357 dpurdie 153
</body>
154
</html>