Subversion Repositories DevTools

Rev

Rev 6877 | 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
'|                 PROJECTS                       	 |
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="common/_form_window_common.asp"-->
21
<!--#include file="_action_buttons.asp"-->
22
 
23
<!--#include file="class/classActionButtonControl.asp"-->
24
 
25
<%
26
'------------ ACCESS CONTROL ------------------
27
%>
6181 dpurdie 28
<!--#include file="_access_control_login_optional.asp"-->
5357 dpurdie 29
<!--#include file="_access_control_general.asp"-->
30
<%
31
'------------ Variable Definition -------------
32
Dim objBtnControl
33
Dim rsProj
5983 dpurdie 34
Dim bCanEdit
5357 dpurdie 35
'------------ Constants Declaration -----------
36
'------------ Variable Init -------------------
37
Set objBtnControl = New ActionButtonControl
5983 dpurdie 38
bCanEdit = canActionControl("CreateNewProject")
5357 dpurdie 39
'----------------------------------------------
40
%>
41
<%
42
'-----------------------------------------------------------------------------------------------------------------------
43
Function Get_Projects
44
	Get_Projects = _
45
	" SELECT * FROM projects ORDER BY proj_name ASC"
46
End Function
47
'-----------------------------------------------------------------------------------------------------------------------
48
%>
49
<html>
50
<head>
51
<title>Project Administration</title>
52
<link rel="shortcut icon" href="<%=FavIcon%>"/>
53
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
54
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 55
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
56
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
57
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5590 dpurdie 58
<!--#include file="_jquery_includes.asp"-->
5357 dpurdie 59
<!-- DROPDOWN MENUS -->
60
<!--#include file="_menu_def.asp"-->
6579 dpurdie 61
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 62
</head>
63
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
64
<!-- HEADER -->
65
<!--#include file="_header.asp"-->
66
<div class="div_table">
6793 dpurdie 67
  <table align=center border="0" cellspacing="1" cellpadding="2" class='stdBrown'>
68
      <caption>Project Information</caption>
69
      <thead>
70
        <tr>
71
          <th nowrap>Project Name </th>
72
          <th nowrap>Code Review Base URL</th>
73
          <th nowrap>JIRA Key</th>
74
          <th >&nbsp;</th>
75
        </tr>
76
      </thead>
77
            <%Set rsProj = OraDatabase.DbCreateDynaset( Get_Projects, cint(0))
78
        While ((NOT rsProj.BOF) AND (NOT rsProj.EOF))
79
        %>
5357 dpurdie 80
      <tr>
6793 dpurdie 81
        <td nowrap><%=UCase(rsProj.Fields("proj_name"))%></td>
82
        <td nowrap><%=rsProj.Fields("base_url")%></td>
83
        <td nowrap><%=rsProj.Fields("jira_key")%></td>
84
        <td align="center" nowrap>
85
        <%If bCanEdit Then%>
6827 dpurdie 86
            <span class=pointer onclick="MM_openVixIFrame('_wform_edit_projects.asp?proj_id=<%=rsProj.Fields("proj_id")%>','Edit Project Config')"><%=LIMG_EDIT%></span>
6793 dpurdie 87
        <%Else%>
88
            <%=LIMG_EDIT_DISABLED%>
89
        <%End If%>
5357 dpurdie 90
        </td>
91
      </tr>
6793 dpurdie 92
      <%rsProj.MoveNext
93
      WEnd%>
94
        <%If rsProj.RecordCount < 1 Then%>
95
            <tr> 
96
                <td nowrap class="err_alert"><img src="images/h_trsp_dot.gif" width="16" height="16" align="absmiddle" vspace="4"><b>No projects available!</b></td>
97
            </tr>
98
            <tr> 
6877 dpurdie 99
                <td class='bg_dialog_line'></td>
6793 dpurdie 100
            </tr>
101
        <%End If%>
5357 dpurdie 102
    </table>
6793 dpurdie 103
</div>
5957 dpurdie 104
<!-- FOOTER -->
105
<!--#include file="_footer.asp"-->
5357 dpurdie 106
</body>
107
</html>