Subversion Repositories DevTools

Rev

Details | 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
%>
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
57
If NOT canActionControl("ConfigureBuildService") Then
58
    Response.Redirect("message.asp?msg=401-9")
59
End If
60
%>
61
<html>
62
<head>
63
 
64
<title>Project Suffix Administration</title>
65
<link rel="shortcut icon" href="<%=FavIcon%>"/>
66
 
67
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
68
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
69
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
70
<link rel="stylesheet" href="images/navigation.css" type="text/css">
71
<script language="JavaScript" src="images/common.js"></script>
72
<!--#include file="_jquery_includes.asp"-->
73
<!-- DROPDOWN MENUS -->
74
<!--#include file="_menu_def.asp"-->
75
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
76
</head>
77
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
78
<!-- MENU LAYERS -------------------------------------->
79
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
80
</div>
81
<!-- TIPS LAYERS -------------------------------------->
82
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
83
<!-- HEADER -->
84
<!--#include file="_header.asp"-->
85
 
86
  <%
87
  '-- FROM START ---------------------------------------------------------------------------------------------------------
88
  objFormComponent.FormName = "PROJECT_SUFFIX"
89
  objFormComponent.Action = ScriptName
90
  objFormComponent.OnSubmit = "ShowProgress();"
91
  Call objFormComponent.FormStart()
92
  %>
93
  <div class="div_table">
94
    <table border="0" cellspacing="0" cellpadding="0" >
95
      <tr>
96
        <td background="images/bg_bage_0a.gif">
97
            <div align="center" class=" body_col">Current Project Suffixes</div>
98
            <table width="100%"  border="0" cellspacing="1" cellpadding="2">
99
 
100
            <tr>
101
            <!-- BUILD_MACHINE DETAILS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
102
            <td width="1%"  background="images/bg_bage_0.gif"></td>
103
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Suffix</td>
104
            <td width="250" align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Comment</td>
105
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Free Form Version</td>
106
            <td width="20"  align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Enable Selection</td>
107
            <td             align="left" nowrap background="images/bg_bage_0.gif" class="body_col">Edit</td>
108
            </tr>
109
 
110
          <%
111
          ' Load some action buttons
112
          Call objBtnControl.LoadActionButtons ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), OraDatabase )
113
          objBtnControl.ButtonSpacer = 1
114
          Dim rsQry
115
          Dim extName
116
          Dim comment
117
          dim isaCots
118
          dim isVis
119
 
120
          Set rsQry = OraDatabase.DbCreateDynaset( "SELECT * FROM PROJECT_EXTENTIONS pe ORDER BY pe.ext_name", ORADYN_DEFAULT )
121
          While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
122
              extName = rsQry("EXT_NAME")
123
              comment = rsQry("UCOMMENT")
124
              isaCots = niceBool(rsQry("IS_COTS"))
125
              isVis   = niceBool(rsQry("IS_VISIBLE"))
126
              %>
127
              <tr>  
128
                <td background="images/bg_bage_0.gif" align="center"></td>
129
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=extName%></td>
130
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%=comment%></td>
131
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isaCots)%>></td>
132
                <td bgcolor="#FFFFFF" class="body_row" nowrap><input disabled="1" type="checkbox" class="body_row"<%=showCheck(isVis)%>></td>
133
 
134
 
135
                <td bgcolor="#FFFFFF" class="body_row" nowrap><%Call objBtnControl.Render ( Array("btnEditProjectExtensions", "btnDeleteProjectExtension"), objAccessControl )%></td>
136
              </tr> 
137
              <%
138
              rsQry.MoveNext()
139
          Wend
140
          rsQry.Close()
141
          Set rsQry = nothing
142
          %>
143
 
144
      <tr>
145
        <td background="images/bg_bage_0.gif" align="center"></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></td>
149
        <td bgcolor="#FFFFFF" class="body_row" nowrap></td>
150
        <td bgcolor="#FFFFFF" class="body_row" nowrap><a href=""><%Call Action_Buttons ( "Add Project Extension" )%> </a>
151
      </tr>
152
    </table>
153
    <%=objPMod.ComposeHiddenTags()%>
154
    <input type="hidden" name="action" value="true">
155
    <%Call objFormComponent.FormEnd()%>
156
    </table>
157
    </div>
158
</body>
159
</html>
160
<!-- FOOTER -->
161
<!--#include file="_footer.asp"-->
162
<%
163
Call Destroy_All_Objects
164
%>