Subversion Repositories DevTools

Rev

Rev 5983 | Rev 6070 | 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
%>
6048 dpurdie 29
<!--#include file="_access_control_login.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
<!-- MENU LAYERS -------------------------------------->
75
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
76
</div>
77
<!-- TIPS LAYERS -------------------------------------->
78
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
79
<!-- HEADER -->
80
<!--#include file="_header.asp"-->
81
  <%
82
  '-- FROM START ---------------------------------------------------------------------------------------------------------
83
  objFormComponent.FormName = "PROJECT_SUFFIX"
84
  objFormComponent.Action = ScriptName
85
  objFormComponent.OnSubmit = "ShowProgress();"
86
  Call objFormComponent.FormStart()
87
  %>
88
  <div class="div_table">
89
    <table border="0" cellspacing="0" cellpadding="0" >
90
      <tr>
91
        <td background="images/bg_bage_0a.gif">
92
            <div align="center" class=" body_col">Current Project Suffixes</div>
93
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
94
 
95
            <tr>
96
            <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
97
            <td width="1%"  background="images/bg_bage_0.gif"></td>
98
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Suffix</td>
99
            <td width="250" align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Comment</td>
100
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Free Form Version</td>
101
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Enable Selection</td>
102
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Edit</td>
103
            </tr>
104
 
105
          <%
106
          ' Load some action buttons
107
          Call objBtnControl.LoadActionButtons ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), OraDatabase )
108
          objBtnControl.ButtonSpacer = 1
5983 dpurdie 109
 
110
          If NOT bCanEdit Then
111
            Call objBtnControl.Active  ( "btnEditProjectExtensions", "N" )
112
            Call objBtnControl.Active  ( "btnDeleteProjectExtension", "N" )
113
          End If
114
 
5357 dpurdie 115
          Dim rsQry
116
          Dim extName
117
          Dim comment
118
          dim isaCots
119
          dim isVis
120
 
121
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PROJECT_EXTENTIONS pe ORDER BY pe.ext_name", ORADYN_DEFAULT )
122
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
123
              extName = rsQry("EXT_NAME")
124
              comment = rsQry("UCOMMENT")
125
              isaCots = niceBool(rsQry("IS_COTS"))
126
              isVis   = niceBool(rsQry("IS_VISIBLE"))
127
              %>
128
              <tr>  
129
                <td background="images/bg_bage_0.gif" align="center"></td>
130
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=extName%></td>
131
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=comment%></td>
132
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isaCots)%>></td>
133
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isVis)%>></td>
134
 
135
 
136
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), objAccessControl )%></td>
137
              </tr> 
138
              <%
139
              rsQry.MoveNext()
140
          Wend
141
          rsQry.Close()
142
          Set rsQry = nothing
143
          %>
144
 
145
      <tr>
5983 dpurdie 146
        <td background="images/bg_bage_0.gif" align="center" ></td>
147
        <td bgcolor="#FFFFFF" class="body_row" nowrap colspan="5">
148
            <%Call Action_Buttons_State ( "Add Project Extension", bCanEdit )%>
5357 dpurdie 149
      </tr>
150
    </table>
151
    <%=objPMod.ComposeHiddenTags()%>
152
    <input type="hidden" name="action" value="true">
153
    <%Call objFormComponent.FormEnd()%>
154
    </table>
155
    </div>
5957 dpurdie 156
<!-- FOOTER -->
157
<!--#include file="_footer.asp"-->
5357 dpurdie 158
</body>
159
</html>